node-mock-server
Advanced tools
Comparing version 0.24.0 to 0.25.0
@@ -45,2 +45,3 @@ | ||
* @param {boolean} options.open | ||
* @param {boolean} options.useTrailingSlashes | ||
* @param {string|undefined} options.jsVersion | ||
@@ -47,0 +48,0 @@ * @public |
@@ -395,3 +395,3 @@ | ||
* @param {Object} req is the original request | ||
* @param {String} directory for the response | ||
* @param {String} dir directory for the response | ||
* @param {Object} options | ||
@@ -741,3 +741,3 @@ * @returns {String} | ||
// removing trailing slashes to make it work on windows | ||
if (path.slice(-1) === '/') { | ||
if (!options.useTrailingSlashes && path.slice(-1) === '/') { | ||
path = path.slice(0, -1); | ||
@@ -744,0 +744,0 @@ } |
{ | ||
"name": "node-mock-server", | ||
"version": "0.24.0", | ||
"version": "0.25.0", | ||
"description": "File based Node REST API mock server", | ||
@@ -71,3 +71,3 @@ "email": "simon.mollweide@web.de", | ||
"yamljs": "0.3.0", | ||
"snyk": "^1.222.1" | ||
"snyk": "^1.230.5" | ||
}, | ||
@@ -80,5 +80,6 @@ "devDependencies": { | ||
"eslint-plugin-import": "2.14.0", | ||
"mocha": "5.2.0" | ||
"mocha": "5.2.0", | ||
"nodemon": "1.19.3" | ||
}, | ||
"snyk": true | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
757675
108
7429
7
20
Updatedsnyk@^1.230.5