jsonpolice
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -855,2 +855,5 @@ 'use strict'; | ||
function create(dataOrUri, opts) { | ||
if (!dataOrUri) { | ||
throw new SchemaError(opts.scope, 'no_data'); | ||
} | ||
if ((typeof dataOrUri === 'undefined' ? 'undefined' : _typeof(dataOrUri)) === 'object' && dataOrUri[__schema] instanceof Schema) { | ||
@@ -857,0 +860,0 @@ return Promise.resolve(dataOrUri[__schema]); |
{ | ||
"name": "jsonpolice", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "JSON Schema parser and validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -695,2 +695,5 @@ import _ from 'lodash'; | ||
export function create(dataOrUri, opts) { | ||
if (!dataOrUri) { | ||
throw new SchemaError(opts.scope, 'no_data'); | ||
} | ||
if (typeof dataOrUri === 'object' && dataOrUri[__schema] instanceof Schema) { | ||
@@ -697,0 +700,0 @@ return Promise.resolve(dataOrUri[__schema]); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1924
207975