Comparing version 3.1.2 to 3.2.0
@@ -37,3 +37,3 @@ const Trouter = require('trouter') | ||
if (typeof prefix === 'function') { | ||
middlewares = [prefix] | ||
middlewares = [prefix, ...middlewares] | ||
prefix = '/' | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "0http", | ||
"version": "v3.1.2", | ||
"version": "v3.2.0", | ||
"description": "Cero friction HTTP request router. The need for speed!", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"format": "npx standard --fix", | ||
"test": "PORT=3000 NODE_ENV=testing npx nyc --check-coverage --lines 85 node ./node_modules/mocha/bin/mocha tests/*.test.js" | ||
"test": "cross-env PORT=3000 NODE_ENV=testing npx nyc --check-coverage --lines 85 node ./node_modules/mocha/bin/mocha tests/*.test.js" | ||
}, | ||
@@ -34,2 +34,3 @@ "repository": { | ||
"chai": "^4.3.6", | ||
"cross-env": "^7.0.3", | ||
"find-my-way": "^5.2.0", | ||
@@ -51,2 +52,2 @@ "mocha": "^9.2.0", | ||
} | ||
} | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
13236
7