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 1.0.3 to 1.0.4

3

lib/validator/json.schema.definition.d.ts
import { Schema, ValidatorResult } from 'jsonschema';
import { JsonElementType } from '@apigames/json';
export declare type setupSchemaDependenciesFunction = (schemaDefinition: IJsonSchemaDefinition) => void;

@@ -8,3 +7,3 @@ export interface IJsonSchemaDefinition {

schemaDefinition(): Schema;
postSchemaValidation?(payloadDocument: JsonElementType, validationResult: ValidatorResult): void;
postSchemaValidation?(payloadDocument: any, validationResult: ValidatorResult): void;
}
import { ValidationError, Validator } from 'jsonschema';
import { JsonElementType } from '@apigames/json';
import type { IJsonSchemaDefinition } from './json.schema.definition';

@@ -13,3 +12,3 @@ export default class JsonSchemaValidator {

get validator(): Validator;
validate: (payloadDocument: JsonElementType, schemaDefinition: IJsonSchemaDefinition) => boolean;
validate: (payloadDocument: any, schemaDefinition: IJsonSchemaDefinition) => boolean;
}

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

"license": "MIT",
"version": "1.0.3",
"version": "1.0.4",
"main": "lib/index.js",

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

"dependencies": {
"@apigames/json": "^1.0.28",
"@apigames/json": "^1.0.32",
"deep-equal": "^1.0.1",

@@ -24,4 +24,4 @@ "es6-promise": "^4.2.8",

"devDependencies": {
"@types/jest": "^26.0.0",
"@types/node": "^14.6.4",
"@types/jest": "^26.0.14",
"@types/node": "^14.11.1",
"@typescript-eslint/eslint-plugin": "^3.10.1",

@@ -35,4 +35,4 @@ "@typescript-eslint/parser": "^3.10.1",

"jest": "^26.4.2",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
"ts-jest": "^26.4.0",
"typescript": "^4.0.3"
},

@@ -39,0 +39,0 @@ "eslintConfig": {},

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