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 5.0.0 to 5.1.0

2

dist/schema.d.ts

@@ -9,2 +9,3 @@ import { SchemaOptions } from './global';

constructor(scope: string, opts: SchemaOptions);
abstract schema(): Promise<any>;
abstract validate(data: any, path: string): Promise<any>;

@@ -24,2 +25,3 @@ static factories: {

protected default(data: any): any;
schema(): Promise<any>;
validate(data: any, path?: string): Promise<any>;

@@ -26,0 +28,0 @@ protected validateType(data: any, path: string): Promise<any>;

@@ -282,2 +282,7 @@ "use strict";

}
schema() {
return __awaiter(this, void 0, void 0, function* () {
return this.data;
});
}
validate(data, path = '') {

@@ -284,0 +289,0 @@ return __awaiter(this, void 0, void 0, function* () {

2

package.json
{
"name": "jsonpolice",
"version": "5.0.0",
"version": "5.1.0",
"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