Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "fsjjv", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "JJV extended to firestore useage", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -52,5 +52,9 @@ const jjv = require("jjv") | ||
// Register schemas | ||
const schemas = require(options.schemaPath) | ||
for (let [name, schema] of Object.entries(schemas)) { | ||
env.addSchema(name, schema) | ||
if (options.schemaPath.constructor === String) options.schemaPath = [options.schemaPath] | ||
for (const path of schemaPath) { | ||
const schemas = require(path) | ||
for (let [name, schema] of Object.entries(schemas)) { | ||
env.addSchema(name, schema) | ||
} | ||
} | ||
@@ -57,0 +61,0 @@ |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4299
50