Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@seriousme/openapi-schema-validator

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seriousme/openapi-schema-validator - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

4

CHANGELOG.md

@@ -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

5

index.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc