@digest/express 3.5.1 → 4.0.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.
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const path_1 = __importDefault(require("path"));
6
+ const node_path_1 = __importDefault(require("node:path"));
7
7
  const connect_history_api_fallback_1 = __importDefault(require("connect-history-api-fallback"));
8
8
  const express_1 = require("express");
9
9
  const ACCEPT_HEADERS = [
@@ -15,7 +15,7 @@ const history = (baseHref = '/') => {
15
15
  caseSensitive: true,
16
16
  strict: true
17
17
  });
18
- const defaultIndex = path_1.default.join(baseHref, 'index.html');
18
+ const defaultIndex = node_path_1.default.join(baseHref, 'index.html');
19
19
  const historyMiddleware = (0, connect_history_api_fallback_1.default)({
20
20
  htmlAcceptHeaders: ACCEPT_HEADERS,
21
21
  index: defaultIndex
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="node" />
2
- import { type Server } from 'http';
2
+ import { type Server } from 'node:http';
3
3
  import { type Express } from 'express';
4
4
  export default function (app: Express): Server;
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": "3.5.1",
5
+ "version": "4.0.0",
6
6
  "description": "Digested Express configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -45,11 +45,11 @@
45
45
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
46
46
  },
47
47
  "dependencies": {
48
- "@digest/scripts": "^3.5.1",
48
+ "@digest/scripts": "^3.0.0",
49
49
  "connect-history-api-fallback": "^2.0.0",
50
50
  "connect-slashes": "^1.4.0",
51
51
  "express-static-gzip": "^2.1.7",
52
- "helmet": "^5.1.1",
52
+ "helmet": "^6.0.0",
53
53
  "serve-static": "^1.15.0"
54
54
  },
55
55
  "devDependencies": {
@@ -64,6 +64,5 @@
64
64
  "keywords": [
65
65
  "digest",
66
66
  "express"
67
- ],
68
- "gitHead": "ffae282c11332597e89a81ac88daa6af57508df2"
67
+ ]
69
68
  }