@apidevtools/json-schema-ref-parser
Advanced tools
Comparing version 9.0.8 to 9.0.9
@@ -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", |
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
150855
+ Addedargparse@2.0.1(transitive)
+ Addedjs-yaml@4.1.0(transitive)
- Removedargparse@1.0.10(transitive)
- Removedesprima@4.0.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedsprintf-js@1.0.3(transitive)
Updatedjs-yaml@^4.1.0