Skip to content

Commit

Permalink
Remove node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Mar 28, 2024
1 parent 41e1b17 commit ae0cca0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion generator/generate-manifest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DefInfo } from './util.js';
import { OpenAPIObject } from 'openapi3-ts';
import fetch from 'node-fetch';
import { writeOutFile } from './generate-common.js';

const httpClientType = `import { HttpClient, get } from '../http.js';`;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"jest": "^29.3.1",
"lodash": "^4.17.21",
"mkdirp": "^2.1.3",
"node-fetch": "2.6.6",
"openapi3-ts": "^2.0.1",
"prettier": "^2.8.1",
"ts-jest": "^29.0.3",
Expand Down
2 changes: 0 additions & 2 deletions tests/manifest-fetcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { getDestinyManifest } from '../generated-src/destiny2/api';
import { getDestinyManifestSlice } from '../generated-src/destiny2/manifest';
import { HttpClientConfig } from '../generated-src/http';

import fetch from 'node-fetch';

async function httpClient(config: HttpClientConfig) {
return (fetch as any)(config.url, config)
.then((res: Response) => res.json())
Expand Down
1 change: 0 additions & 1 deletion tests/test-manifest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fetch } from 'node-fetch';
import { getDestinyManifest } from '../lib/destiny2/index.js';
import { getDestinyManifestSlice } from '../lib/destiny2/manifest.js';
async function httpClient(config) {
Expand Down
25 changes: 0 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2593,13 +2593,6 @@ natural-compare@^1.4.0:
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==

node-fetch@2.6.6:
version "2.6.6"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89"
integrity sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==
dependencies:
whatwg-url "^5.0.0"

node-int64@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
Expand Down Expand Up @@ -2999,11 +2992,6 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"

tr46@~0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==

ts-jest@^29.0.3:
version "29.0.5"
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.0.5.tgz#c5557dcec8fe434fcb8b70c3e21c6b143bfce066"
Expand Down Expand Up @@ -3080,19 +3068,6 @@ walker@^1.0.8:
dependencies:
makeerror "1.0.12"

webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==

whatwg-url@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
dependencies:
tr46 "~0.0.3"
webidl-conversions "^3.0.0"

which@^2.0.1:
version "2.0.2"
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
Expand Down

0 comments on commit ae0cca0

Please sign in to comment.