jsonschema
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28919
790
0