New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@apigames/json-schema

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apigames/json-schema - npm Package Compare versions

Comparing version 22.1.0-dev.6 to 22.1.0-dev.7

1

lib/validator/json.schema.validator.d.ts

@@ -6,2 +6,3 @@ import { ValidationError, Validator } from 'jsonschema';

private _validationErrors;
private CallSchemaDefinitionsSetupSchemaDependencies;
private SetupSchemaDependencies;

@@ -8,0 +9,0 @@ private SetupSchema;

16

lib/validator/json.schema.validator.js

@@ -10,6 +10,3 @@ "use strict";

this.SetupSchemaDependencies = (schemaDefinition, context) => {
if (schemaDefinition.SetupSchemaDependencies) {
const setupSchemaDependencyFunction = this.SetupSchemaDependencies.bind(this);
schemaDefinition.SetupSchemaDependencies(setupSchemaDependencyFunction, context);
}
this.CallSchemaDefinitionsSetupSchemaDependencies(schemaDefinition, context);
const _schemaDefinition = schemaDefinition.SchemaDefinition(context);

@@ -19,6 +16,3 @@ this.validator.addSchema(_schemaDefinition, schemaDefinition.SchemaName(context));

this.SetupSchema = (schemaDefinition, context) => {
if (schemaDefinition.SetupSchemaDependencies) {
const setupSchemaDependencyFunction = this.SetupSchemaDependencies.bind(this);
schemaDefinition.SetupSchemaDependencies(setupSchemaDependencyFunction, context);
}
this.CallSchemaDefinitionsSetupSchemaDependencies(schemaDefinition, context);
};

@@ -51,2 +45,8 @@ this.SetupValidator = () => {

}
CallSchemaDefinitionsSetupSchemaDependencies(schemaDefinition, context) {
if ((0, json_1.isDefined)(schemaDefinition.SetupSchemaDependencies)) {
const setupSchemaDependencyFunction = this.SetupSchemaDependencies.bind(this);
schemaDefinition.SetupSchemaDependencies(setupSchemaDependencyFunction, context);
}
}
get validationErrors() {

@@ -53,0 +53,0 @@ return this._validationErrors;

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "22.1.0-dev.6",
"version": "22.1.0-dev.7",
"main": "lib/index.js",

@@ -27,3 +27,3 @@ "types": "lib/index.d.ts",

"dependencies": {
"@apigames/json": "22.1.0-dev.7",
"@apigames/json": "22.1.0-dev.8",
"deep-equal": "2.0.5",

@@ -30,0 +30,0 @@ "es6-promise": "4.2.8",

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