serve-handler
Advanced tools
Comparing version 4.0.1 to 5.0.0
{ | ||
"name": "serve-handler", | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"description": "The routing foundation of `serve` and static deployments on Now", | ||
@@ -68,3 +68,3 @@ "main": "src/index.js", | ||
"fast-url-parser": "1.1.3", | ||
"glob-slasher": "1.0.1", | ||
"glob-slash": "1.0.0", | ||
"mime-types": "2.1.18", | ||
@@ -71,0 +71,0 @@ "minimatch": "3.0.4", |
@@ -180,4 +180,4 @@ # serve-handler | ||
}] | ||
}] | ||
} | ||
} | ||
] | ||
} | ||
@@ -184,0 +184,0 @@ ``` |
@@ -8,3 +8,3 @@ // Native | ||
const url = require('fast-url-parser'); | ||
const slasher = require('glob-slasher'); | ||
const slasher = require('glob-slash'); | ||
const minimatch = require('minimatch'); | ||
@@ -220,3 +220,11 @@ const pathToRegExp = require('path-to-regexp'); | ||
return Object.assign(defaultHeaders, related); | ||
const headers = Object.assign(defaultHeaders, related); | ||
for (const key in headers) { | ||
if (headers.hasOwnProperty(key) && headers[key] === null) { | ||
delete headers[key]; | ||
} | ||
} | ||
return headers; | ||
}; | ||
@@ -510,3 +518,3 @@ | ||
const cwd = process.cwd(); | ||
const current = config.public ? path.join(cwd, config.public) : cwd; | ||
const current = config.public ? path.resolve(cwd, config.public) : cwd; | ||
const handlers = getHandlers(methods); | ||
@@ -513,0 +521,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
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
40838
599
+ Addedglob-slash@1.0.0
- Removedglob-slasher@1.0.1
- Removedglob-slasher@1.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash._objecttypes@2.4.1(transitive)
- Removedlodash.isobject@2.4.1(transitive)
- Removedtoxic@1.0.1(transitive)