@apidevtools/json-schema-ref-parser 11.2.1 → 11.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,15 +124,6 @@ async function get(u, httpOptions) {
124
124
  controller = new AbortController();
125
125
  timeoutId = setTimeout(() => controller.abort(), httpOptions.timeout);
126
126
  }
127
- if (!global.fetch) {
128
- const { default: fetch, Request, Headers } = await Promise.resolve().then(() => __importStar(require("node-fetch")));
129
- // @ts-ignore
130
- global.fetch = fetch;
131
- // @ts-ignore
132
- global.Request = Request;
133
- // @ts-ignore
134
- global.Headers = Headers;
135
- }
136
127
  const response = await fetch(u, {
137
128
  method: "GET",
138
129
  headers: httpOptions.headers || {},
@@ -113,15 +113,6 @@ async function get(u: RequestInfo | URL, httpOptions: HTTPResolverOptions) {
113
113
  timeoutId = setTimeout(() => controller.abort(), httpOptions.timeout);
114
114
  }
115
115
 
116
- if (!global.fetch) {
117
- const { default: fetch, Request, Headers } = await import("node-fetch");
118
- // @ts-ignore
119
- global.fetch = fetch;
120
- // @ts-ignore
121
- global.Request = Request;
122
- // @ts-ignore
123
- global.Headers = Headers;
124
- }
125
116
  const response = await fetch(u, {
126
117
  method: "GET",
127
118
  headers: httpOptions.headers || {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apidevtools/json-schema-ref-parser",
3
- "version": "11.2.1",
3
+ "version": "11.2.2",
4
4
  "description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",
5
5
  "keywords": [
6
6
  "json",
@@ -82,7 +82,6 @@
82
82
  "eslint-plugin-promise": "^6.1.1",
83
83
  "eslint-plugin-unused-imports": "^3.1.0",
84
84
  "jsdom": "^24.0.0",
85
- "node-fetch": "^3.3.2",
86
85
  "prettier": "^3.2.5",
87
86
  "rimraf": "^5.0.5",
88
87
  "typescript": "^5.3.3",