@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.
- package/dist/routers/statics.js +5 -2
- package/package.json +2 -2
package/dist/routers/statics.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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.
|
|
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": "
|
|
66
|
+
"gitHead": "aee0bf3ce973c772a7a29ed065a3208e80cadca1"
|
|
67
67
|
}
|