@apidevtools/json-schema-ref-parser
Advanced tools
Comparing version 11.2.1 to 11.2.2
@@ -127,11 +127,2 @@ "use strict"; | ||
} | ||
if (!global.fetch) { | ||
const { default: fetch, Request, Headers } = await Promise.resolve().then(() => __importStar(require("node-fetch"))); | ||
// @ts-ignore | ||
global.fetch = fetch; | ||
// @ts-ignore | ||
global.Request = Request; | ||
// @ts-ignore | ||
global.Headers = Headers; | ||
} | ||
const response = await fetch(u, { | ||
@@ -138,0 +129,0 @@ method: "GET", |
@@ -116,11 +116,2 @@ import { ono } from "@jsdevtools/ono"; | ||
if (!global.fetch) { | ||
const { default: fetch, Request, Headers } = await import("node-fetch"); | ||
// @ts-ignore | ||
global.fetch = fetch; | ||
// @ts-ignore | ||
global.Request = Request; | ||
// @ts-ignore | ||
global.Headers = Headers; | ||
} | ||
const response = await fetch(u, { | ||
@@ -127,0 +118,0 @@ method: "GET", |
{ | ||
"name": "@apidevtools/json-schema-ref-parser", | ||
"version": "11.2.1", | ||
"version": "11.2.2", | ||
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers", | ||
@@ -85,3 +85,2 @@ "keywords": [ | ||
"jsdom": "^24.0.0", | ||
"node-fetch": "^3.3.2", | ||
"prettier": "^3.2.5", | ||
@@ -88,0 +87,0 @@ "rimraf": "^5.0.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19
1
307712
7138