@wll8/json-server
Advanced tools
@@ -68,3 +68,4 @@ "use strict"; | ||
| const keys = Object.keys(db.value()).map(key => `/${key}`); | ||
| opts._noDataNext && keys.length ? router.use(keys, nested(opts)) : router.use(nested(opts)); // Create routes | ||
| opts._noDataNext && keys.length && router.use(keys, nested(opts)); | ||
| !opts._noDataNext && router.use(nested(opts)); // Create routes | ||
@@ -99,3 +100,4 @@ db.forEach((value, key) => { | ||
| opts._noDataNext && keys.length ? router.use(keys, render) : router.use(render); | ||
| opts._noDataNext && keys.length && router.use(keys, render); | ||
| !opts._noDataNext && router.use(render); | ||
| router.use((err, req, res, next) => { | ||
@@ -102,0 +104,0 @@ console.error(err.stack); |
+1
-1
| { | ||
| "name": "@wll8/json-server", | ||
| "version": "0.17.2-alpha.1", | ||
| "version": "0.17.2-alpha.2", | ||
| "description": "Get a full fake REST API with zero coding in less than 30 seconds", | ||
@@ -5,0 +5,0 @@ "main": "./lib/server/index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
65538
0.07%1097
0.18%