@digest/express 3.3.4 → 3.3.5

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: string) => import("express-serve-static-core").Router;
1
+ declare const history: (baseHref?: string) => import("express-serve-static-core").Router;
2
2
  export default history;
@@ -10,7 +10,7 @@ const ACCEPT_HEADERS = [
10
10
  'text/html',
11
11
  'application/xhtml+xml'
12
12
  ];
13
- const history = (baseHref) => {
13
+ const history = (baseHref = '/') => {
14
14
  const router = (0, express_1.Router)({
15
15
  caseSensitive: true,
16
16
  strict: true
@@ -12,7 +12,10 @@ const stats = () => {
12
12
  });
13
13
  const helmetMiddleware = helmet_1.default.contentSecurityPolicy({
14
14
  directives: {
15
- 'script-src': ['\'self\'', '\'unsafe-inline\'']
15
+ 'script-src': [
16
+ '\'self\'',
17
+ '\'unsafe-inline\''
18
+ ]
16
19
  },
17
20
  useDefaults: true
18
21
  });
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.3.4",
5
+ "version": "3.3.5",
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.3.4",
47
+ "@digest/scripts": "^3.3.5",
48
48
  "connect-history-api-fallback": "^1.6.0",
49
49
  "connect-slashes": "^1.4.0",
50
50
  "express-static-gzip": "^2.1.1",
51
- "helmet": "^4.6.0",
52
- "serve-static": "^1.14.1"
51
+ "helmet": "^5.0.1",
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": "9d4de3a9c295ffa38a7bf06217fd8955528fd9ee"
67
+ "gitHead": "c92b63a632cc91df2fbfc342ae638ddee694f62c"
68
68
  }