@digest/express 3.3.4 → 3.4.2
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const history: (baseHref
|
|
1
|
+
declare const history: (baseHref?: string) => import("express-serve-static-core").Router;
|
|
2
2
|
export default history;
|
package/dist/routers/history.js
CHANGED
package/dist/routers/stats.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const express_1 = require("express");
|
|
7
|
-
const helmet_1 =
|
|
4
|
+
const helmet_1 = require("helmet");
|
|
8
5
|
const stats = () => {
|
|
9
6
|
const router = (0, express_1.Router)({
|
|
10
7
|
caseSensitive: true,
|
|
11
8
|
strict: true
|
|
12
9
|
});
|
|
13
|
-
const helmetMiddleware = helmet_1.
|
|
10
|
+
const helmetMiddleware = (0, helmet_1.contentSecurityPolicy)({
|
|
14
11
|
directives: {
|
|
15
|
-
'script-src': [
|
|
12
|
+
'script-src': [
|
|
13
|
+
'\'self\'',
|
|
14
|
+
'\'unsafe-inline\''
|
|
15
|
+
]
|
|
16
16
|
},
|
|
17
17
|
useDefaults: true
|
|
18
18
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@digest/express",
|
|
3
3
|
"title": "Express Digest",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.4.2",
|
|
6
6
|
"description": "Digested Express configurations",
|
|
7
7
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
8
8
|
"contributors": [
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"clean": "rimraf node_modules dist package-lock.json npm-debug.log"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@digest/scripts": "^3.
|
|
47
|
+
"@digest/scripts": "^3.4.2",
|
|
48
48
|
"connect-history-api-fallback": "^1.6.0",
|
|
49
49
|
"connect-slashes": "^1.4.0",
|
|
50
|
-
"express-static-gzip": "^2.1.
|
|
51
|
-
"helmet": "^
|
|
52
|
-
"serve-static": "^1.14.
|
|
50
|
+
"express-static-gzip": "^2.1.5",
|
|
51
|
+
"helmet": "^5.0.2",
|
|
52
|
+
"serve-static": "^1.14.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"digest",
|
|
65
65
|
"express"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "d1fe65ee592106decc06de94337da74ba6a4345e"
|
|
68
68
|
}
|