jsonpolice
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -30,5 +30,5 @@ "use strict"; | ||
if (!dataOrUri) { | ||
throw new global_1.SchemaError(opts.scope, 'no_data'); | ||
return Promise.reject(new global_1.SchemaError(opts.scope, 'no_data')); | ||
} | ||
if (typeof dataOrUri === 'object' && dataOrUri[global_1.__schema] && typeof dataOrUri[global_1.__schema].validate === 'function') { | ||
else if (typeof dataOrUri === 'object' && dataOrUri[global_1.__schema] && typeof dataOrUri[global_1.__schema].validate === 'function') { | ||
return dataOrUri[global_1.__schema]; | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "jsonpolice", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "JSON Schema parser and validator", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/lodash": "4.14.74", | ||
"@types/lodash": "4.14.77", | ||
"chai": "4.1.2", | ||
@@ -48,10 +48,10 @@ "chai-as-promised": "7.1.1", | ||
"commitizen": "2.9.6", | ||
"coveralls": "2.13.1", | ||
"coveralls": "3.0.0", | ||
"cz-conventional-changelog": "2.0.0", | ||
"husky": "0.14.3", | ||
"mocha": "3.5.0", | ||
"mocha": "4.0.1", | ||
"nyc": "11.2.1", | ||
"rimraf": "2.6.1", | ||
"semantic-release": "^7.0.2", | ||
"typescript": "2.5.2" | ||
"rimraf": "2.6.2", | ||
"semantic-release": "^8.0.3", | ||
"typescript": "2.5.3" | ||
}, | ||
@@ -64,5 +64,5 @@ "config": { | ||
"dependencies": { | ||
"jsonref": "^4.0.1", | ||
"jsonref": "^4.0.2", | ||
"lodash": "^4.17.4" | ||
} | ||
} |
55590
Updatedjsonref@^4.0.2