Socket
Socket
Sign inDemoInstall

@apidevtools/json-schema-ref-parser

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apidevtools/json-schema-ref-parser - npm Package Compare versions

Comparing version 9.0.8 to 9.0.9

12

lib/index.d.ts

@@ -1,2 +0,2 @@

import { JSONSchema4, JSONSchema4Type, JSONSchema6, JSONSchema6Type } from "json-schema";
import { JSONSchema4, JSONSchema4Type, JSONSchema6, JSONSchema6Type, JSONSchema7, JSONSchema7Type } from "json-schema";

@@ -176,3 +176,3 @@ export = $RefParser;

export type JSONSchema = JSONSchema4 | JSONSchema6;
export type JSONSchema = JSONSchema4 | JSONSchema6 | JSONSchema7;
export type SchemaCallback = (err: Error | null, schema?: JSONSchema) => any;

@@ -212,3 +212,3 @@ export type $RefsCallback = (err: Error | null, $refs?: $Refs) => any;

} & {
[key: string]: Partial<ResolverOptions> | boolean;
[key: string]: Partial<ResolverOptions> | HTTPResolverOptions | boolean | undefined;
};

@@ -289,3 +289,3 @@

callback?: (error: Error | null, data: string | null) => any
): string | Buffer | Promise<string | Buffer>;
): string | Buffer | JSONSchema | Promise<string | Buffer | JSONSchema>;
}

@@ -401,3 +401,3 @@

*/
public get($ref: string): JSONSchema4Type | JSONSchema6Type
public get($ref: string): JSONSchema4Type | JSONSchema6Type | JSONSchema7Type

@@ -410,3 +410,3 @@ /**

*/
public set($ref: string, value: JSONSchema4Type | JSONSchema6Type): void
public set($ref: string, value: JSONSchema4Type | JSONSchema6Type | JSONSchema7Type): void
}

@@ -413,0 +413,0 @@

@@ -48,3 +48,3 @@ "use strict";

try {
return yaml.safeLoad(data);
return yaml.load(data);
}

@@ -51,0 +51,0 @@ catch (e) {

{
"name": "@apidevtools/json-schema-ref-parser",
"version": "9.0.8",
"version": "9.0.9",
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",

@@ -79,5 +79,8 @@ "keywords": [

"call-me-maybe": "^1.0.1",
"js-yaml": "^3.13.1"
"js-yaml": "^4.1.0"
},
"release": {
"branches": [
"main"
],
"plugins": [

@@ -84,0 +87,0 @@ "@semantic-release/commit-analyzer",

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