@seriousme/openapi-schema-validator
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -6,2 +6,6 @@ # Changelog | ||
## [v2.2.5] 13-11-2024 | ||
### Changed | ||
- fix: reverted: removed dependency on "node:url" to aid in bundling because of Windows incompatibility | ||
## [v2.2.4] 12-11-2024 | ||
@@ -8,0 +12,0 @@ ### Changed |
import { readFileSync } from "node:fs"; | ||
import { readFile } from "node:fs/promises"; | ||
import { URL, fileURLToPath } from "node:url"; | ||
import Ajv04 from "ajv-draft-04"; | ||
@@ -16,4 +17,4 @@ import addFormats from "ajv-formats"; | ||
function localFile(file) { | ||
return new URL(file, import.meta.url).pathname; | ||
function localFile(fileName) { | ||
return fileURLToPath(new URL(fileName, import.meta.url)); | ||
} | ||
@@ -20,0 +21,0 @@ |
{ | ||
"name": "@seriousme/openapi-schema-validator", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Validate OpenApi specifications against their JSON schema", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,2 +6,3 @@ import { strict as assert } from "node:assert/strict"; | ||
import { test } from "node:test"; | ||
import { URL } from "node:url"; | ||
import { Validator } from "../index.js"; | ||
@@ -8,0 +9,0 @@ import { Snapshot } from "./snapshot.js"; |
@@ -5,6 +5,7 @@ import { strict as assert } from "node:assert/strict"; | ||
import { test } from "node:test"; | ||
import { URL, fileURLToPath } from "node:url"; | ||
import { load } from "js-yaml"; | ||
function localFile(file) { | ||
return new URL(file, import.meta.url).pathname; | ||
function localFile(fileName) { | ||
return fileURLToPath(new URL(fileName, import.meta.url)); | ||
} | ||
@@ -11,0 +12,0 @@ |
import { strict as assert } from "node:assert/strict"; | ||
import { execSync } from "node:child_process"; | ||
import { test } from "node:test"; | ||
import { URL, fileURLToPath } from "node:url"; | ||
function localFile(file) { | ||
return new URL(file, import.meta.url).pathname; | ||
function localFile(fileName) { | ||
return fileURLToPath(new URL(fileName, import.meta.url)); | ||
} | ||
@@ -8,0 +9,0 @@ |
import { strict as assert } from "node:assert/strict"; | ||
import { test } from "node:test"; | ||
import { URL, fileURLToPath } from "node:url"; | ||
import { Validator } from "../index.js"; | ||
function localFile(file) { | ||
return new URL(file, import.meta.url).pathname; | ||
function localFile(fileName) { | ||
return fileURLToPath(new URL(fileName, import.meta.url)); | ||
} | ||
@@ -8,0 +9,0 @@ |
@@ -5,6 +5,7 @@ import { strict as assert } from "node:assert/strict"; | ||
import { test } from "node:test"; | ||
import { URL, fileURLToPath } from "node:url"; | ||
import { Validator } from "../index.js"; | ||
function localFile(file) { | ||
return new URL(file, import.meta.url).pathname; | ||
function localFile(fileName) { | ||
return fileURLToPath(new URL(fileName, import.meta.url)); | ||
} | ||
@@ -11,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
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
348151
10001