express-mock-api-middleware
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -32,3 +32,3 @@ "use strict"; | ||
var VALID_METHODS = ['get', 'post', 'put', 'patch', 'delete']; | ||
// const VALID_METHODS = ['get', 'post', 'put', 'patch', 'delete', 'head']; | ||
var BODY_PARSED_METHODS = ['post', 'put', 'patch', 'delete']; | ||
@@ -102,5 +102,8 @@ | ||
} // debug(`parsed: ${method} ${path}`); | ||
// assert( | ||
// VALID_METHODS.includes(method), | ||
// `Invalid method ${method} for path ${path}, please check your mock files.` | ||
// ); | ||
(0, _assert.default)(VALID_METHODS.includes(method), "Invalid method ".concat(method, " for path ").concat(path, ", please check your mock files.")); | ||
return { | ||
@@ -107,0 +110,0 @@ method: method, |
{ | ||
"name": "express-mock-api-middleware", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Express middleware for mocking restful APIs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
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
16083
11
232
3