@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.
@@ -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).substr(1);
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.0",
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": "c76781fac978fee923d8180706103bad13ca33a0"
33
+ "gitHead": "a400b9b29d171232f4649e67e1fdcf4fb8d6a4c8"
34
34
  }