@vercel/routing-utils 5.2.0 → 5.2.1
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { GetRoutesProps, NormalizedRoutes, Route, RouteWithHandle } from './type
|
|
|
2
2
|
export { appendRoutesToPhase } from './append';
|
|
3
3
|
export { mergeRoutes } from './merge';
|
|
4
4
|
export * from './schemas';
|
|
5
|
-
export { getCleanUrls } from './superstatic';
|
|
5
|
+
export { getCleanUrls, sourceToRegex } from './superstatic';
|
|
6
6
|
export * from './types';
|
|
7
7
|
declare const VALID_HANDLE_VALUES: readonly ["filesystem", "hit", "miss", "rewrite", "error", "resource"];
|
|
8
8
|
export type HandleValue = (typeof VALID_HANDLE_VALUES)[number];
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,8 @@ __export(src_exports, {
|
|
|
25
25
|
isHandler: () => isHandler,
|
|
26
26
|
isValidHandleValue: () => isValidHandleValue,
|
|
27
27
|
mergeRoutes: () => import_merge.mergeRoutes,
|
|
28
|
-
normalizeRoutes: () => normalizeRoutes
|
|
28
|
+
normalizeRoutes: () => normalizeRoutes,
|
|
29
|
+
sourceToRegex: () => import_superstatic2.sourceToRegex
|
|
29
30
|
});
|
|
30
31
|
module.exports = __toCommonJS(src_exports);
|
|
31
32
|
var import_url = require("url");
|
|
@@ -370,6 +371,7 @@ function getTransformedRoutes(vercelConfig) {
|
|
|
370
371
|
isValidHandleValue,
|
|
371
372
|
mergeRoutes,
|
|
372
373
|
normalizeRoutes,
|
|
374
|
+
sourceToRegex,
|
|
373
375
|
...require("./schemas"),
|
|
374
376
|
...require("./types")
|
|
375
377
|
});
|