@digest/express 4.14.15 → 4.14.16

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.
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const express_1 = require("express");
7
7
  const express_static_gzip_1 = __importDefault(require("express-static-gzip"));
8
8
  const serve_static_1 = __importDefault(require("serve-static"));
9
- const MAX_AGE = 31536000;
9
+ const MAX_AGE = 31_536_000;
10
10
  const defaultServeStaticOptions = {
11
11
  immutable: true,
12
12
  index: false,
@@ -44,7 +44,10 @@ const statics = (baseHref, staticPath, production = false, serveStaticOptions) =
44
44
  caseSensitive: true,
45
45
  strict: true
46
46
  });
47
- const options = Object.assign(Object.assign({}, defaultServeStaticOptions), serveStaticOptions);
47
+ const options = {
48
+ ...defaultServeStaticOptions,
49
+ ...serveStaticOptions
50
+ };
48
51
  const staticBase = '/{*expressStaticPath}';
49
52
  const serveStatic = removeBaseHref(production ?
50
53
  (0, express_static_gzip_1.default)(staticPath, {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/express",
3
3
  "title": "Express Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.14.15",
5
+ "version": "4.14.16",
6
6
  "description": "Digested Express configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -63,5 +63,5 @@
63
63
  "digest",
64
64
  "express"
65
65
  ],
66
- "gitHead": "1a53c4bf3a1a7a600c75eb88c72afe3eb150ece2"
66
+ "gitHead": "aee0bf3ce973c772a7a29ed065a3208e80cadca1"
67
67
  }