@jsenv/server 15.2.18 → 15.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/fetch_filesystem.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/server",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.3.0",
|
|
4
4
|
"description": "Write your Node.js server using pure functions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@jsenv/abort": "4.3.0",
|
|
37
37
|
"@jsenv/humanize": "1.2.8",
|
|
38
|
-
"@jsenv/url-meta": "8.5.
|
|
38
|
+
"@jsenv/url-meta": "8.5.1",
|
|
39
39
|
"@jsenv/utils": "2.1.2",
|
|
40
40
|
"ws": "8.18.0"
|
|
41
41
|
},
|
package/src/fetch_filesystem.js
CHANGED
|
@@ -339,7 +339,7 @@ const getMtimeResponse = async ({ headers, sourceStat }) => {
|
|
|
339
339
|
let cachedModificationDate;
|
|
340
340
|
try {
|
|
341
341
|
cachedModificationDate = new Date(headers["if-modified-since"]);
|
|
342
|
-
} catch
|
|
342
|
+
} catch {
|
|
343
343
|
return {
|
|
344
344
|
status: 400,
|
|
345
345
|
statusText: "if-modified-since header is not a valid date",
|
|
@@ -441,7 +441,7 @@ const asUrlString = (value) => {
|
|
|
441
441
|
try {
|
|
442
442
|
const urlObject = new URL(value);
|
|
443
443
|
return String(urlObject);
|
|
444
|
-
} catch
|
|
444
|
+
} catch {
|
|
445
445
|
return null;
|
|
446
446
|
}
|
|
447
447
|
}
|