@digest/koa 4.14.6 → 4.14.9

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.
@@ -11,7 +11,7 @@ const history = (baseHref) => {
11
11
  strict: true
12
12
  });
13
13
  const historyMiddleware = (0, history_1.default)(baseHref);
14
- const historyBase = '(.*)';
14
+ const historyBase = '{*historyMiddleware}';
15
15
  router.get(historyBase, historyMiddleware);
16
16
  router.head(historyBase, historyMiddleware);
17
17
  router.options(historyBase, historyMiddleware);
@@ -12,7 +12,7 @@ const statics = (baseHref, staticPath, production = false, serveStaticOptions) =
12
12
  strict: true
13
13
  });
14
14
  const staticMiddleware = (0, statics_1.default)(baseHref, staticPath, production, serveStaticOptions);
15
- const staticBase = '(.*)';
15
+ const staticBase = '{*staticMiddleware}';
16
16
  router.get(staticBase, (0, koa_mount_1.default)(baseHref, staticMiddleware));
17
17
  router.head(staticBase, (0, koa_mount_1.default)(baseHref, staticMiddleware));
18
18
  router.options(staticBase, (0, koa_mount_1.default)(baseHref, staticMiddleware));
@@ -11,7 +11,7 @@ const stats = () => {
11
11
  strict: true
12
12
  });
13
13
  const statsMiddleware = (0, stats_1.default)();
14
- const statsPath = '/stats/(.*)';
14
+ const statsPath = '/stats/{*statsMiddleware}';
15
15
  router.get(statsPath, statsMiddleware);
16
16
  router.head(statsPath, statsMiddleware);
17
17
  router.options(statsPath, statsMiddleware);
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": "4.14.6",
5
+ "version": "4.14.9",
6
6
  "description": "Digested Koa configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -74,5 +74,5 @@
74
74
  "digest",
75
75
  "koa"
76
76
  ],
77
- "gitHead": "af58088b1b1a805901a52dc502472269dde55367"
77
+ "gitHead": "224fd8426b6ab9d684b4ead3146bf2d2f2eec890"
78
78
  }