@jsenv/server 15.2.19 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/server",
3
- "version": "15.2.19",
3
+ "version": "15.3.0",
4
4
  "description": "Write your Node.js server using pure functions",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -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 (e) {
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 (e) {
444
+ } catch {
445
445
  return null;
446
446
  }
447
447
  }