@vercel/routing-utils 1.13.0 → 1.13.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/superstatic.js +1 -1
- package/package.json +2 -2
package/dist/superstatic.js
CHANGED
|
@@ -308,7 +308,7 @@ function safelyCompile(value, indexes, attemptDirectCompile) {
|
|
|
308
308
|
.replace(/--ESCAPED_PARAM_ASTERISK/g, '*');
|
|
309
309
|
// the value needs to start with a forward-slash to be compiled
|
|
310
310
|
// correctly
|
|
311
|
-
return path_to_regexp_1.compile(`/${value}`, { validate: false })(indexes).
|
|
311
|
+
return path_to_regexp_1.compile(`/${value}`, { validate: false })(indexes).slice(1);
|
|
312
312
|
}
|
|
313
313
|
function toSegmentDest(index) {
|
|
314
314
|
const i = index + 1; // js is base 0, regex is base 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/routing-utils",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "Vercel routing utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"optionalDependencies": {
|
|
31
31
|
"ajv": "^6.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "a400b9b29d171232f4649e67e1fdcf4fb8d6a4c8"
|
|
34
34
|
}
|