@digest/koa 3.5.1 → 3.6.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.
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const path_1 = __importDefault(require("path"));
15
+ const node_path_1 = __importDefault(require("node:path"));
16
16
  const koa_history_api_fallback_1 = __importDefault(require("koa-history-api-fallback"));
17
17
  const history = (baseHref, options) => {
18
18
  const ACCEPT_HEADERS = [
@@ -20,7 +20,7 @@ const history = (baseHref, options) => {
20
20
  'application/xhtml+xml'
21
21
  ];
22
22
  const defaultIndex = baseHref ?
23
- path_1.default.join(baseHref, 'index.html') :
23
+ node_path_1.default.join(baseHref, 'index.html') :
24
24
  undefined;
25
25
  const defaultOptions = Object.assign({ htmlAcceptHeaders: ACCEPT_HEADERS, index: defaultIndex }, options);
26
26
  const middleware = (0, koa_history_api_fallback_1.default)(defaultOptions);
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 Koa from 'koa';
4
4
  export default function (app: Koa): Server;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/koa",
3
3
  "title": "Koa Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "3.5.1",
5
+ "version": "3.6.0",
6
6
  "description": "Digested Koa configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -51,7 +51,7 @@
51
51
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
52
52
  },
53
53
  "dependencies": {
54
- "@digest/scripts": "^3.5.1",
54
+ "@digest/scripts": "^3.6.0",
55
55
  "@koa/router": "^12.0.0",
56
56
  "koa": "^2.13.4",
57
57
  "koa-helmet": "^6.1.0",
@@ -68,7 +68,7 @@
68
68
  "@types/koa-mount": "^4.0.1",
69
69
  "@types/koa-send": "^4.1.3",
70
70
  "@types/koa-static": "^4.0.2",
71
- "@types/koa__router": "^8.0.11"
71
+ "@types/koa__router": "^12.0.0"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "koa": "^2.13.4"
@@ -77,5 +77,5 @@
77
77
  "digest",
78
78
  "koa"
79
79
  ],
80
- "gitHead": "ffae282c11332597e89a81ac88daa6af57508df2"
80
+ "gitHead": "6dbabfc3844f33f4b2864fd4273a2b630504830f"
81
81
  }