@vercel/static-build 2.12.5 → 2.12.6

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 +19 -24
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -11484,16 +11484,10 @@ var require_frameworks = __commonJS({
11484
11484
  value: "N/A"
11485
11485
  }
11486
11486
  },
11487
- getOutputDirName: async () => "public",
11488
- defaultRoutes: [
11489
- {
11490
- handle: "filesystem"
11491
- },
11492
- {
11493
- src: "/(.*)",
11494
- dest: "/"
11495
- }
11496
- ]
11487
+ getOutputDirName: async () => "public"
11488
+ // No `defaultRoutes`: `@vercel/go` emits its own catch-all, which points at
11489
+ // the Lambda's real output path and carries the `request.path` transform
11490
+ // that makes rewrites visible to the server.
11497
11491
  },
11498
11492
  {
11499
11493
  name: "Services",
@@ -19297,7 +19291,7 @@ var require_dist5 = __commonJS({
19297
19291
  exports.tokensToFunction = tokensToFunction;
19298
19292
  function match(str, options) {
19299
19293
  var keys = [];
19300
- var re = pathToRegexp(str, keys, options);
19294
+ var re = pathToRegexp2(str, keys, options);
19301
19295
  return regexpToFunction(re, keys, options);
19302
19296
  }
19303
19297
  exports.match = match;
@@ -19358,7 +19352,7 @@ var require_dist5 = __commonJS({
19358
19352
  }
19359
19353
  function arrayToRegexp(paths, keys, options) {
19360
19354
  var parts = paths.map(function(path6) {
19361
- return pathToRegexp(path6, keys, options).source;
19355
+ return pathToRegexp2(path6, keys, options).source;
19362
19356
  });
19363
19357
  return new RegExp("(?:" + parts.join("|") + ")", flags(options));
19364
19358
  }
@@ -19420,14 +19414,14 @@ var require_dist5 = __commonJS({
19420
19414
  return new RegExp(route, flags(options));
19421
19415
  }
19422
19416
  exports.tokensToRegexp = tokensToRegexp;
19423
- function pathToRegexp(path6, keys, options) {
19417
+ function pathToRegexp2(path6, keys, options) {
19424
19418
  if (path6 instanceof RegExp)
19425
19419
  return regexpToRegexp(path6, keys);
19426
19420
  if (Array.isArray(path6))
19427
19421
  return arrayToRegexp(path6, keys, options);
19428
19422
  return stringToRegexp(path6, keys, options);
19429
19423
  }
19430
- exports.pathToRegexp = pathToRegexp;
19424
+ exports.pathToRegexp = pathToRegexp2;
19431
19425
  }
19432
19426
  });
19433
19427
 
@@ -19685,7 +19679,7 @@ var require_dist6 = __commonJS({
19685
19679
  exports.tokensToFunction = tokensToFunction;
19686
19680
  function match(str, options) {
19687
19681
  var keys = [];
19688
- var re = pathToRegexp(str, keys, options);
19682
+ var re = pathToRegexp2(str, keys, options);
19689
19683
  return regexpToFunction(re, keys, options);
19690
19684
  }
19691
19685
  exports.match = match;
@@ -19748,7 +19742,7 @@ var require_dist6 = __commonJS({
19748
19742
  }
19749
19743
  function arrayToRegexp(paths, keys, options) {
19750
19744
  var parts = paths.map(function(path6) {
19751
- return pathToRegexp(path6, keys, options).source;
19745
+ return pathToRegexp2(path6, keys, options).source;
19752
19746
  });
19753
19747
  return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
19754
19748
  }
@@ -19810,14 +19804,14 @@ var require_dist6 = __commonJS({
19810
19804
  return new RegExp(route, flags(options));
19811
19805
  }
19812
19806
  exports.tokensToRegexp = tokensToRegexp;
19813
- function pathToRegexp(path6, keys, options) {
19807
+ function pathToRegexp2(path6, keys, options) {
19814
19808
  if (path6 instanceof RegExp)
19815
19809
  return regexpToRegexp(path6, keys);
19816
19810
  if (Array.isArray(path6))
19817
19811
  return arrayToRegexp(path6, keys, options);
19818
19812
  return stringToRegexp(path6, keys, options);
19819
19813
  }
19820
- exports.pathToRegexp = pathToRegexp;
19814
+ exports.pathToRegexp = pathToRegexp2;
19821
19815
  }
19822
19816
  });
19823
19817
 
@@ -19852,7 +19846,7 @@ var require_superstatic = __commonJS({
19852
19846
  convertRewrites: () => convertRewrites2,
19853
19847
  convertTrailingSlash: () => convertTrailingSlash,
19854
19848
  getCleanUrls: () => getCleanUrls2,
19855
- pathToRegexp: () => pathToRegexp,
19849
+ pathToRegexp: () => pathToRegexp2,
19856
19850
  sourceToRegex: () => sourceToRegex2
19857
19851
  });
19858
19852
  module2.exports = __toCommonJS2(superstatic_exports);
@@ -19870,7 +19864,7 @@ var require_superstatic = __commonJS({
19870
19864
  const rightSerialized = typeof right === "undefined" ? "undefined" : right.toString();
19871
19865
  return leftSerialized === rightSerialized;
19872
19866
  }
19873
- function pathToRegexp(callerId, path6, keys, options) {
19867
+ function pathToRegexp2(callerId, path6, keys, options) {
19874
19868
  const newKeys = cloneKeys(keys);
19875
19869
  const currentRegExp = (0, import_path_to_regexp.pathToRegexp)(path6, keys, options);
19876
19870
  try {
@@ -20090,7 +20084,7 @@ var require_superstatic = __commonJS({
20090
20084
  }
20091
20085
  function sourceToRegex2(source) {
20092
20086
  const keys = [];
20093
- const r = pathToRegexp("632", source, keys, {
20087
+ const r = pathToRegexp2("632", source, keys, {
20094
20088
  strict: true,
20095
20089
  sensitive: true,
20096
20090
  delimiter: "/"
@@ -20250,9 +20244,9 @@ var require_superstatic = __commonJS({
20250
20244
  const hashKeys = [];
20251
20245
  const hostnameKeys = [];
20252
20246
  try {
20253
- pathToRegexp("528", pathname, pathnameKeys);
20254
- pathToRegexp("834", hash || "", hashKeys);
20255
- pathToRegexp("712", hostname || "", hostnameKeys);
20247
+ pathToRegexp2("528", pathname, pathnameKeys);
20248
+ pathToRegexp2("834", hash || "", hashKeys);
20249
+ pathToRegexp2("712", hostname || "", hostnameKeys);
20256
20250
  } catch (_) {
20257
20251
  }
20258
20252
  destParams = new Set(
@@ -21431,6 +21425,7 @@ var require_dist7 = __commonJS({
21431
21425
  mergeRoutes: () => import_merge.mergeRoutes,
21432
21426
  normalizeRoutePrefix: () => import_service_route_ownership.normalizeRoutePrefix,
21433
21427
  normalizeRoutes: () => normalizeRoutes,
21428
+ pathToRegexp: () => import_superstatic2.pathToRegexp,
21434
21429
  scopeRouteSourceToOwnership: () => import_service_route_ownership.scopeRouteSourceToOwnership,
21435
21430
  sourceToRegex: () => import_superstatic2.sourceToRegex
21436
21431
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.12.5",
3
+ "version": "2.12.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "ts-morph": "12.0.0",
17
17
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.12",
18
- "@vercel/gatsby-plugin-vercel-builder": "2.2.39",
18
+ "@vercel/gatsby-plugin-vercel-builder": "2.2.40",
19
19
  "@vercel/static-config": "3.4.1"
20
20
  },
21
21
  "devDependencies": {
@@ -37,11 +37,11 @@
37
37
  "semver": "7.5.2",
38
38
  "tree-kill": "1.2.2",
39
39
  "vitest": "4.1.10",
40
- "@vercel/build-utils": "14.0.5",
40
+ "@vercel/build-utils": "14.1.0",
41
41
  "@vercel/error-utils": "2.2.1",
42
- "@vercel/frameworks": "3.30.9",
43
- "@vercel/fs-detectors": "6.15.5",
44
- "@vercel/routing-utils": "6.4.1"
42
+ "@vercel/frameworks": "3.31.0",
43
+ "@vercel/fs-detectors": "6.15.7",
44
+ "@vercel/routing-utils": "6.5.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "node ../../utils/build-builder.mjs",