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

jsonschema

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonschema - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

3

lib/validator.js

@@ -166,3 +166,4 @@ 'use strict';

}
if ((typeof instance !== 'object' || instance) && Object.getPrototypeOf(instance) !== Object.prototype) {
// TODO: fix this - see #15
if (!(instance && (typeof instance) === 'object' && !(instance instanceof Array) && !(instance instanceof Date))) {
errors.push(helpers.createError(schema, undefined, undefined, "not an object", instance));

@@ -169,0 +170,0 @@ return errors;

{
"author": "Tom de Grunt <tom@degrunt.nl>",
"name": "jsonschema",
"version": "0.3.0",
"version": "0.3.1",
"dependencies": {

@@ -10,3 +10,3 @@ },

"mocha": "~1.3",
"should": "~0.6.3"
"chai": "~1.4.0"
},

@@ -21,3 +21,4 @@ "optionalDependencies": {},

"jsonschema",
"validator"
"validator",
"validation"
],

@@ -28,3 +29,3 @@ "repository": {

},
"description": "JSON Schema",
"description": "A fast and easy to use JSON Schema validator",
"scripts": {

@@ -31,0 +32,0 @@ "test": "./node_modules/.bin/mocha -R spec"

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