@vercel/redwood 2.4.0 → 2.4.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -821,7 +821,7 @@ var require_superstatic = __commonJS({
821
821
  convertTrailingSlash: () => convertTrailingSlash,
822
822
  getCleanUrls: () => getCleanUrls2,
823
823
  pathToRegexp: () => pathToRegexp,
824
- sourceToRegex: () => sourceToRegex
824
+ sourceToRegex: () => sourceToRegex2
825
825
  });
826
826
  module2.exports = __toCommonJS2(superstatic_exports);
827
827
  var import_url = require("url");
@@ -899,7 +899,7 @@ var require_superstatic = __commonJS({
899
899
  }
900
900
  function convertRedirects(redirects, defaultStatus = 308) {
901
901
  return redirects.map((r) => {
902
- const { src, segments } = sourceToRegex(r.source);
902
+ const { src, segments } = sourceToRegex2(r.source);
903
903
  const hasSegments = collectHasSegments(r.has);
904
904
  normalizeHasKeys(r.has);
905
905
  normalizeHasKeys(r.missing);
@@ -932,7 +932,7 @@ var require_superstatic = __commonJS({
932
932
  }
933
933
  function convertRewrites(rewrites, internalParamNames) {
934
934
  return rewrites.map((r) => {
935
- const { src, segments } = sourceToRegex(r.source);
935
+ const { src, segments } = sourceToRegex2(r.source);
936
936
  const hasSegments = collectHasSegments(r.has);
937
937
  normalizeHasKeys(r.has);
938
938
  normalizeHasKeys(r.missing);
@@ -963,7 +963,7 @@ var require_superstatic = __commonJS({
963
963
  function convertHeaders(headers) {
964
964
  return headers.map((h) => {
965
965
  const obj = {};
966
- const { src, segments } = sourceToRegex(h.source);
966
+ const { src, segments } = sourceToRegex2(h.source);
967
967
  const hasSegments = collectHasSegments(h.has);
968
968
  normalizeHasKeys(h.has);
969
969
  normalizeHasKeys(h.missing);
@@ -1025,7 +1025,7 @@ var require_superstatic = __commonJS({
1025
1025
  }
1026
1026
  return routes;
1027
1027
  }
1028
- function sourceToRegex(source) {
1028
+ function sourceToRegex2(source) {
1029
1029
  const keys = [];
1030
1030
  const r = pathToRegexp("632", source, keys, {
1031
1031
  strict: true,
@@ -2077,7 +2077,8 @@ var require_dist3 = __commonJS({
2077
2077
  isHandler: () => isHandler,
2078
2078
  isValidHandleValue: () => isValidHandleValue,
2079
2079
  mergeRoutes: () => import_merge.mergeRoutes,
2080
- normalizeRoutes: () => normalizeRoutes
2080
+ normalizeRoutes: () => normalizeRoutes,
2081
+ sourceToRegex: () => import_superstatic2.sourceToRegex
2081
2082
  });
2082
2083
  module2.exports = __toCommonJS2(src_exports2);
2083
2084
  var import_url = require("url");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/redwood",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs",
@@ -22,8 +22,8 @@
22
22
  "@types/aws-lambda": "8.10.19",
23
23
  "@types/node": "14.18.33",
24
24
  "@types/semver": "6.0.0",
25
- "@vercel/build-utils": "12.2.0",
26
- "@vercel/routing-utils": "5.2.0",
25
+ "@vercel/build-utils": "13.0.1",
26
+ "@vercel/routing-utils": "5.2.1",
27
27
  "execa": "3.2.0",
28
28
  "fs-extra": "11.1.0",
29
29
  "jest-junit": "16.0.0"