🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@apigames/json-schema

Package Overview
Dependencies
Maintainers
1
Versions
88
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

to
1.0.12

3

lib/validator/json.schema.validator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsonschema_1 = require("jsonschema");
const json_1 = require("@apigames/json");
class JsonSchemaValidator {

@@ -31,3 +32,3 @@ constructor() {

this._validationErrors = undefined;
if (!payloadDocument) {
if (json_1.isUndefined(payloadDocument)) {
this._validationErrors = [new jsonschema_1.ValidationError('The payload was empty.')];

@@ -34,0 +35,0 @@ return false;

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

"license": "MIT",
"version": "1.0.11",
"version": "1.0.12",
"main": "lib/index.js",

@@ -9,0 +9,0 @@ "types": "lib/index.d.ts",