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

jsonpolice

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonpolice - npm Package Compare versions

Comparing version 3.5.0 to 3.5.1

5

dist/index.d.ts
import { SchemaOptions } from './global';
import { Schema } from './schema';
import './schema_array';

@@ -10,6 +11,6 @@ import './schema_boolean';

export { Schema } from './schema';
export declare function create(dataOrUri: any, opts?: SchemaOptions): Promise<any>;
export declare function create(dataOrUri: any, opts?: SchemaOptions): Promise<Schema>;
export declare function flatten(dataOrUri: any, opts?: SchemaOptions): Promise<any>;
export declare function getVersion(dataOrUri: any, opts?: SchemaOptions): Promise<any>;
export declare function addVersion(dataOrUri: any, opts?: SchemaOptions): Promise<any>;
export declare function fireValidationError(dataScope: string, schemaScope: string, type: string, info?: any): void;
export declare function fireValidationError(dataScope: string, schemaScope: string, type: string, info?: any): never;

2

dist/index.js

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

return vers.get(data.$schema, opts).then(function (schemaVersion) {
var _schemaVersion = schema_1.Schema.create(schemaVersion, _.defaults(opts, { scope: refs.scope(schemaVersion) }));
let _schemaVersion = schema_1.Schema.create(schemaVersion, _.defaults(opts, { scope: refs.scope(schemaVersion) }));
_schemaVersion.validate(data);

@@ -35,0 +35,0 @@ return schema_1.Schema.create(data, opts);

{
"name": "jsonpolice",
"version": "3.5.0",
"version": "3.5.1",
"description": "JSON Schema parser and validator",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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