is-my-json-valid
Advanced tools
Comparing version 2.8.0 to 2.9.0
{ | ||
"name": "is-my-json-valid", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"description": "A JSONSchema validator that uses code generation to be extremely fast", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,7 +7,7 @@ var fs = require('fs') | ||
module.exports = function(file, encodings) { | ||
module.exports = function(file, opts) { | ||
file = path.join(path.dirname(module.parent.filename), file) | ||
if (!fs.existsSync(file) && fs.existsSync(file+'.schema')) file += '.schema' | ||
if (!fs.existsSync(file) && fs.existsSync(file+'.json')) file += '.json' | ||
return compile(fs.readFileSync(file, 'utf-8')) | ||
return compile(fs.readFileSync(file, 'utf-8'), opts) | ||
} |
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
96957
43
3106