@vercel/gatsby-plugin-vercel-builder 2.0.142 → 2.0.144

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 +9 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -928,7 +928,7 @@ var require_superstatic = __commonJS({
928
928
  route.missing = r.missing;
929
929
  }
930
930
  return route;
931
- } catch (e) {
931
+ } catch (_e) {
932
932
  throw new Error(`Failed to parse redirect: ${JSON.stringify(r)}`);
933
933
  }
934
934
  });
@@ -961,7 +961,7 @@ var require_superstatic = __commonJS({
961
961
  route.status = r.statusCode;
962
962
  }
963
963
  return route;
964
- } catch (e) {
964
+ } catch (_e) {
965
965
  throw new Error(`Failed to parse rewrite: ${JSON.stringify(r)}`);
966
966
  }
967
967
  });
@@ -1172,7 +1172,7 @@ var require_superstatic = __commonJS({
1172
1172
  if (attemptDirectCompile) {
1173
1173
  try {
1174
1174
  return (0, import_path_to_regexp.compile)(value, { validate: false })(indexes);
1175
- } catch (e) {
1175
+ } catch (_e) {
1176
1176
  }
1177
1177
  }
1178
1178
  for (const key of Object.keys(indexes)) {
@@ -1769,6 +1769,7 @@ var require_schemas = __commonJS({
1769
1769
  }
1770
1770
  }
1771
1771
  },
1772
+ // biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then keyword
1772
1773
  then: {
1773
1774
  required: ["args"]
1774
1775
  }
@@ -1792,6 +1793,7 @@ var require_schemas = __commonJS({
1792
1793
  }
1793
1794
  ]
1794
1795
  },
1796
+ // biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then keyword
1795
1797
  then: {
1796
1798
  properties: {
1797
1799
  target: {
@@ -1800,6 +1802,7 @@ var require_schemas = __commonJS({
1800
1802
  if: {
1801
1803
  type: "string"
1802
1804
  },
1805
+ // biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then keyword
1803
1806
  then: {
1804
1807
  pattern: "^[a-zA-Z0-9_-]+$"
1805
1808
  }
@@ -2368,7 +2371,7 @@ var require_dist3 = __commonJS({
2368
2371
  function checkRegexSyntax(type, index, src) {
2369
2372
  try {
2370
2373
  new RegExp(src);
2371
- } catch (err) {
2374
+ } catch (_err) {
2372
2375
  const prop = type === "Route" ? "src`/`source" : "source";
2373
2376
  return `${type} at index ${index} has invalid \`${prop}\` regular expression "${src}".`;
2374
2377
  }
@@ -2383,7 +2386,7 @@ var require_dist3 = __commonJS({
2383
2386
  const destinationSegments = /* @__PURE__ */ new Set();
2384
2387
  try {
2385
2388
  sourceSegments = new Set((0, import_superstatic.sourceToRegex)(source).segments);
2386
- } catch (err) {
2389
+ } catch (_err) {
2387
2390
  return {
2388
2391
  message: `${type} at index ${index} has invalid \`source\` pattern "${source}".`,
2389
2392
  link: "https://vercel.link/invalid-route-source-pattern"
@@ -2404,7 +2407,7 @@ var require_dist3 = __commonJS({
2404
2407
  (name) => destinationSegments.add(name)
2405
2408
  );
2406
2409
  }
2407
- } catch (err) {
2410
+ } catch (_err) {
2408
2411
  }
2409
2412
  const hasSegments = (0, import_superstatic.collectHasSegments)(has);
2410
2413
  for (const segment of destinationSegments) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/gatsby-plugin-vercel-builder",
3
- "version": "2.0.142",
3
+ "version": "2.0.144",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -17,7 +17,7 @@
17
17
  "esbuild": "0.27.0",
18
18
  "etag": "1.8.1",
19
19
  "fs-extra": "11.1.0",
20
- "@vercel/build-utils": "13.6.2"
20
+ "@vercel/build-utils": "13.7.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/etag": "1.8.0",
@@ -27,7 +27,7 @@
27
27
  "@types/react": "18.0.26",
28
28
  "jest-junit": "16.0.0",
29
29
  "typescript": "4.9.5",
30
- "@vercel/routing-utils": "6.0.1"
30
+ "@vercel/routing-utils": "6.0.2"
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "scripts": {