@vercel/routing-utils 5.2.0 → 5.2.2
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/dist/schemas.d.ts +2 -2
- package/dist/schemas.js +2 -2
- 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
|
});
|
package/dist/schemas.d.ts
CHANGED
|
@@ -218,7 +218,7 @@ export declare const routesSchema: {
|
|
|
218
218
|
readonly patternProperties: {
|
|
219
219
|
readonly '^.{1,256}$': {
|
|
220
220
|
readonly type: "string";
|
|
221
|
-
readonly maxLength:
|
|
221
|
+
readonly maxLength: 32768;
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
224
|
};
|
|
@@ -1714,7 +1714,7 @@ export declare const headersSchema: {
|
|
|
1714
1714
|
};
|
|
1715
1715
|
readonly value: {
|
|
1716
1716
|
readonly type: "string";
|
|
1717
|
-
readonly maxLength:
|
|
1717
|
+
readonly maxLength: 32768;
|
|
1718
1718
|
};
|
|
1719
1719
|
};
|
|
1720
1720
|
};
|
package/dist/schemas.js
CHANGED
|
@@ -380,7 +380,7 @@ const routesSchema = {
|
|
|
380
380
|
patternProperties: {
|
|
381
381
|
"^.{1,256}$": {
|
|
382
382
|
type: "string",
|
|
383
|
-
maxLength:
|
|
383
|
+
maxLength: 32768
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
},
|
|
@@ -577,7 +577,7 @@ const headersSchema = {
|
|
|
577
577
|
},
|
|
578
578
|
value: {
|
|
579
579
|
type: "string",
|
|
580
|
-
maxLength:
|
|
580
|
+
maxLength: 32768
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
}
|