Skip to content

Commit

Permalink
use fetch from @dcl/platform-server-commons
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Goldman committed Dec 7, 2023
1 parent 11a3957 commit 78f4176
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@dcl/crypto": "^3.4.5",
"@dcl/hashing": "^3.0.4",
"@dcl/platform-crypto-middleware": "^1.0.2",
"@dcl/platform-server-commons": "^0.0.2",
"@dcl/platform-server-commons": "^0.0.3",
"@dcl/protocol": "^1.0.0-6200210039.commit-75f18e8",
"@dcl/schemas": "^9.9.0",
"@ensdomains/eth-ens-namehash": "^2.0.15",
Expand Down
27 changes: 0 additions & 27 deletions src/adapters/fetch.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createDotEnvConfigComponent } from '@well-known-components/env-config-provider'
import { createServerComponent, createStatusCheckComponent } from '@well-known-components/http-server'
import { createLogComponent } from '@well-known-components/logger'
import { createFetchComponent } from './adapters/fetch'
import { createFetchComponent } from '@dcl/platform-server-commons'
import { createMetricsComponent, instrumentHttpServerWithMetrics } from '@well-known-components/metrics'
import { createSubgraphComponent } from '@well-known-components/thegraph-component'
import {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/name-deny-list-checker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createConfigComponent } from '@well-known-components/env-config-provide
import { createLogComponent } from '@well-known-components/logger'
import { IConfigComponent, ILoggerComponent } from '@well-known-components/interfaces'
import { createNameDenyListChecker } from '../../src/adapters/name-deny-list-checker'
import { createFetchComponent } from '../../src/adapters/fetch'
import { createFetchComponent } from '@dcl/platform-server-commons'

describe('name deny list checker', function () {
let logs: ILoggerComponent
Expand Down
2 changes: 1 addition & 1 deletion test/unit/wallet-stats.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createConfigComponent } from '@well-known-components/env-config-provider'
import { createLogComponent } from '@well-known-components/logger'
import { IConfigComponent, ILoggerComponent } from '@well-known-components/interfaces'
import { createFetchComponent } from '../../src/adapters/fetch'
import { createFetchComponent } from '@dcl/platform-server-commons'
import { IPgComponent } from '@well-known-components/pg-component'
import { createWalletStatsComponent } from '../../src/adapters/wallet-stats'
import { createDatabaseMock } from '../mocks/database-mock'
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,12 @@
"@well-known-components/fetch-component" "^2.0.2"
"@well-known-components/interfaces" "^1.4.2"

"@dcl/platform-server-commons@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@dcl/platform-server-commons/-/platform-server-commons-0.0.2.tgz#32ef35295dbe8619d754c84573e95739caf74f95"
integrity sha512-F57emfy+68rIs1FmzaNWrLunMmUpsQNPNECk/F0ITyDq6Alhx9W4l6xrHF25nGW/lqc0VaogBM7JvCxOQjf2kg==
"@dcl/platform-server-commons@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@dcl/platform-server-commons/-/platform-server-commons-0.0.3.tgz#5fd282435da44306e2e6a0640e2a4db66f44a298"
integrity sha512-+zJQSxEAVx2w+GKwEu9Em3/mu1uztSPiZT4cbO3N/eTnFmOYo0OE3NhjePeV5rs6Pej6LeGckdoOszFEYHEeMg==
dependencies:
"@well-known-components/http-server" "^2.0.0"
"@well-known-components/interfaces" "^1.4.2"
node-fetch "^2.7.0"

Expand Down

0 comments on commit 78f4176

Please sign in to comment.