vercel 39.2.1 → 39.2.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 +47 -67
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -48136,7 +48136,7 @@ var require_package = __commonJS2({
48136
48136
  "../client/package.json"(exports2, module2) {
48137
48137
  module2.exports = {
48138
48138
  name: "@vercel/client",
48139
- version: "13.5.1",
48139
+ version: "13.5.2",
48140
48140
  main: "dist/index.js",
48141
48141
  typings: "dist/index.d.ts",
48142
48142
  homepage: "https://vercel.com",
@@ -48177,7 +48177,7 @@ var require_package = __commonJS2({
48177
48177
  dependencies: {
48178
48178
  "@vercel/build-utils": "8.8.0",
48179
48179
  "@vercel/error-utils": "2.0.3",
48180
- "@vercel/routing-utils": "4.0.0",
48180
+ "@vercel/routing-utils": "5.0.0",
48181
48181
  "async-retry": "1.2.3",
48182
48182
  "async-sema": "3.0.0",
48183
48183
  "fs-extra": "8.0.1",
@@ -113460,12 +113460,11 @@ var require_dist22 = __commonJS2({
113460
113460
  }
113461
113461
  });
113462
113462
 
113463
- // ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
113463
+ // ../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js
113464
113464
  var require_dist23 = __commonJS2({
113465
- "../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
113465
+ "../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
113466
113466
  "use strict";
113467
113467
  Object.defineProperty(exports2, "__esModule", { value: true });
113468
- exports2.pathToRegexp = exports2.tokensToRegexp = exports2.regexpToFunction = exports2.match = exports2.tokensToFunction = exports2.compile = exports2.parse = void 0;
113469
113468
  function lexer(str) {
113470
113469
  var tokens = [];
113471
113470
  var i = 0;
@@ -113505,7 +113504,7 @@ var require_dist23 = __commonJS2({
113505
113504
  break;
113506
113505
  }
113507
113506
  if (!name)
113508
- throw new TypeError("Missing parameter name at ".concat(i));
113507
+ throw new TypeError("Missing parameter name at " + i);
113509
113508
  tokens.push({ type: "NAME", index: i, value: name });
113510
113509
  i = j;
113511
113510
  continue;
@@ -113515,7 +113514,7 @@ var require_dist23 = __commonJS2({
113515
113514
  var pattern = "";
113516
113515
  var j = i + 1;
113517
113516
  if (str[j] === "?") {
113518
- throw new TypeError('Pattern cannot start with "?" at '.concat(j));
113517
+ throw new TypeError('Pattern cannot start with "?" at ' + j);
113519
113518
  }
113520
113519
  while (j < str.length) {
113521
113520
  if (str[j] === "\\") {
@@ -113531,15 +113530,15 @@ var require_dist23 = __commonJS2({
113531
113530
  } else if (str[j] === "(") {
113532
113531
  count++;
113533
113532
  if (str[j + 1] !== "?") {
113534
- throw new TypeError("Capturing groups are not allowed at ".concat(j));
113533
+ throw new TypeError("Capturing groups are not allowed at " + j);
113535
113534
  }
113536
113535
  }
113537
113536
  pattern += str[j++];
113538
113537
  }
113539
113538
  if (count)
113540
- throw new TypeError("Unbalanced pattern at ".concat(i));
113539
+ throw new TypeError("Unbalanced pattern at " + i);
113541
113540
  if (!pattern)
113542
- throw new TypeError("Missing pattern at ".concat(i));
113541
+ throw new TypeError("Missing pattern at " + i);
113543
113542
  tokens.push({ type: "PATTERN", index: i, value: pattern });
113544
113543
  i = j;
113545
113544
  continue;
@@ -113554,7 +113553,8 @@ var require_dist23 = __commonJS2({
113554
113553
  options = {};
113555
113554
  }
113556
113555
  var tokens = lexer(str);
113557
- var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a, _b = options.delimiter, delimiter3 = _b === void 0 ? "/#?" : _b;
113556
+ var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a;
113557
+ var defaultPattern = "[^" + escapeString(options.delimiter || "/#?") + "]+?";
113558
113558
  var result = [];
113559
113559
  var key = 0;
113560
113560
  var i = 0;
@@ -113568,7 +113568,7 @@ var require_dist23 = __commonJS2({
113568
113568
  if (value2 !== void 0)
113569
113569
  return value2;
113570
113570
  var _a2 = tokens[i], nextType = _a2.type, index = _a2.index;
113571
- throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type));
113571
+ throw new TypeError("Unexpected " + nextType + " at " + index + ", expected " + type);
113572
113572
  };
113573
113573
  var consumeText = function() {
113574
113574
  var result2 = "";
@@ -113578,24 +113578,6 @@ var require_dist23 = __commonJS2({
113578
113578
  }
113579
113579
  return result2;
113580
113580
  };
113581
- var isSafe = function(value2) {
113582
- for (var _i = 0, delimiter_1 = delimiter3; _i < delimiter_1.length; _i++) {
113583
- var char2 = delimiter_1[_i];
113584
- if (value2.indexOf(char2) > -1)
113585
- return true;
113586
- }
113587
- return false;
113588
- };
113589
- var safePattern = function(prefix2) {
113590
- var prev = result[result.length - 1];
113591
- var prevText = prefix2 || (prev && typeof prev === "string" ? prev : "");
113592
- if (prev && !prevText) {
113593
- throw new TypeError('Must have text between two parameters, missing text after "'.concat(prev.name, '"'));
113594
- }
113595
- if (!prevText || isSafe(prevText))
113596
- return "[^".concat(escapeString(delimiter3), "]+?");
113597
- return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter3), "])+?");
113598
- };
113599
113581
  while (i < tokens.length) {
113600
113582
  var char = tryConsume("CHAR");
113601
113583
  var name = tryConsume("NAME");
@@ -113614,7 +113596,7 @@ var require_dist23 = __commonJS2({
113614
113596
  name: name || key++,
113615
113597
  prefix,
113616
113598
  suffix: "",
113617
- pattern: pattern || safePattern(prefix),
113599
+ pattern: pattern || defaultPattern,
113618
113600
  modifier: tryConsume("MODIFIER") || ""
113619
113601
  });
113620
113602
  continue;
@@ -113637,7 +113619,7 @@ var require_dist23 = __commonJS2({
113637
113619
  mustConsume("CLOSE");
113638
113620
  result.push({
113639
113621
  name: name_1 || (pattern_1 ? key++ : ""),
113640
- pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
113622
+ pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1,
113641
113623
  prefix,
113642
113624
  suffix,
113643
113625
  modifier: tryConsume("MODIFIER") || ""
@@ -113663,7 +113645,7 @@ var require_dist23 = __commonJS2({
113663
113645
  } : _a, _b = options.validate, validate2 = _b === void 0 ? true : _b;
113664
113646
  var matches = tokens.map(function(token) {
113665
113647
  if (typeof token === "object") {
113666
- return new RegExp("^(?:".concat(token.pattern, ")$"), reFlags);
113648
+ return new RegExp("^(?:" + token.pattern + ")$", reFlags);
113667
113649
  }
113668
113650
  });
113669
113651
  return function(data) {
@@ -113679,17 +113661,17 @@ var require_dist23 = __commonJS2({
113679
113661
  var repeat = token.modifier === "*" || token.modifier === "+";
113680
113662
  if (Array.isArray(value)) {
113681
113663
  if (!repeat) {
113682
- throw new TypeError('Expected "'.concat(token.name, '" to not repeat, but got an array'));
113664
+ throw new TypeError('Expected "' + token.name + '" to not repeat, but got an array');
113683
113665
  }
113684
113666
  if (value.length === 0) {
113685
113667
  if (optional)
113686
113668
  continue;
113687
- throw new TypeError('Expected "'.concat(token.name, '" to not be empty'));
113669
+ throw new TypeError('Expected "' + token.name + '" to not be empty');
113688
113670
  }
113689
113671
  for (var j = 0; j < value.length; j++) {
113690
113672
  var segment = encode(value[j], token);
113691
113673
  if (validate2 && !matches[i].test(segment)) {
113692
- throw new TypeError('Expected all "'.concat(token.name, '" to match "').concat(token.pattern, '", but got "').concat(segment, '"'));
113674
+ throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
113693
113675
  }
113694
113676
  path11 += token.prefix + segment + token.suffix;
113695
113677
  }
@@ -113698,7 +113680,7 @@ var require_dist23 = __commonJS2({
113698
113680
  if (typeof value === "string" || typeof value === "number") {
113699
113681
  var segment = encode(String(value), token);
113700
113682
  if (validate2 && !matches[i].test(segment)) {
113701
- throw new TypeError('Expected "'.concat(token.name, '" to match "').concat(token.pattern, '", but got "').concat(segment, '"'));
113683
+ throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
113702
113684
  }
113703
113685
  path11 += token.prefix + segment + token.suffix;
113704
113686
  continue;
@@ -113706,7 +113688,7 @@ var require_dist23 = __commonJS2({
113706
113688
  if (optional)
113707
113689
  continue;
113708
113690
  var typeOfMessage = repeat ? "an array" : "a string";
113709
- throw new TypeError('Expected "'.concat(token.name, '" to be ').concat(typeOfMessage));
113691
+ throw new TypeError('Expected "' + token.name + '" to be ' + typeOfMessage);
113710
113692
  }
113711
113693
  return path11;
113712
113694
  };
@@ -113759,19 +113741,17 @@ var require_dist23 = __commonJS2({
113759
113741
  function regexpToRegexp(path11, keys) {
113760
113742
  if (!keys)
113761
113743
  return path11;
113762
- var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
113763
- var index = 0;
113764
- var execResult = groupsRegex.exec(path11.source);
113765
- while (execResult) {
113766
- keys.push({
113767
- // Use parenthesized substring match if available, index otherwise
113768
- name: execResult[1] || index++,
113769
- prefix: "",
113770
- suffix: "",
113771
- modifier: "",
113772
- pattern: ""
113773
- });
113774
- execResult = groupsRegex.exec(path11.source);
113744
+ var groups = path11.source.match(/\((?!\?)/g);
113745
+ if (groups) {
113746
+ for (var i = 0; i < groups.length; i++) {
113747
+ keys.push({
113748
+ name: i,
113749
+ prefix: "",
113750
+ suffix: "",
113751
+ modifier: "",
113752
+ pattern: ""
113753
+ });
113754
+ }
113775
113755
  }
113776
113756
  return path11;
113777
113757
  }
@@ -113779,7 +113759,7 @@ var require_dist23 = __commonJS2({
113779
113759
  var parts = paths.map(function(path11) {
113780
113760
  return pathToRegexp(path11, keys, options).source;
113781
113761
  });
113782
- return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
113762
+ return new RegExp("(?:" + parts.join("|") + ")", flags(options));
113783
113763
  }
113784
113764
  function stringToRegexp(path11, keys, options) {
113785
113765
  return tokensToRegexp(parse9(path11, options), keys, options);
@@ -113790,9 +113770,9 @@ var require_dist23 = __commonJS2({
113790
113770
  }
113791
113771
  var _a = options.strict, strict = _a === void 0 ? false : _a, _b = options.start, start = _b === void 0 ? true : _b, _c = options.end, end = _c === void 0 ? true : _c, _d = options.encode, encode = _d === void 0 ? function(x) {
113792
113772
  return x;
113793
- } : _d, _e = options.delimiter, delimiter3 = _e === void 0 ? "/#?" : _e, _f = options.endsWith, endsWith = _f === void 0 ? "" : _f;
113794
- var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
113795
- var delimiterRe = "[".concat(escapeString(delimiter3), "]");
113773
+ } : _d;
113774
+ var endsWith = "[" + escapeString(options.endsWith || "") + "]|$";
113775
+ var delimiter3 = "[" + escapeString(options.delimiter || "/#?") + "]";
113796
113776
  var route = start ? "^" : "";
113797
113777
  for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
113798
113778
  var token = tokens_1[_i];
@@ -113807,33 +113787,33 @@ var require_dist23 = __commonJS2({
113807
113787
  if (prefix || suffix) {
113808
113788
  if (token.modifier === "+" || token.modifier === "*") {
113809
113789
  var mod = token.modifier === "*" ? "?" : "";
113810
- route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
113790
+ route += "(?:" + prefix + "((?:" + token.pattern + ")(?:" + suffix + prefix + "(?:" + token.pattern + "))*)" + suffix + ")" + mod;
113811
113791
  } else {
113812
- route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
113792
+ route += "(?:" + prefix + "(" + token.pattern + ")" + suffix + ")" + token.modifier;
113813
113793
  }
113814
113794
  } else {
113815
- if (token.modifier === "+" || token.modifier === "*") {
113816
- throw new TypeError('Can not repeat "'.concat(token.name, '" without a prefix and suffix'));
113817
- }
113818
- route += "(".concat(token.pattern, ")").concat(token.modifier);
113795
+ route += "(" + token.pattern + ")" + token.modifier;
113819
113796
  }
113820
113797
  } else {
113821
- route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
113798
+ route += "(?:" + prefix + suffix + ")" + token.modifier;
113822
113799
  }
113823
113800
  }
113824
113801
  }
113825
113802
  if (end) {
113826
113803
  if (!strict)
113827
- route += "".concat(delimiterRe, "?");
113828
- route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")");
113804
+ route += delimiter3 + "?";
113805
+ route += !options.endsWith ? "$" : "(?=" + endsWith + ")";
113829
113806
  } else {
113830
113807
  var endToken = tokens[tokens.length - 1];
113831
- var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0;
113808
+ var isEndDelimited = typeof endToken === "string" ? delimiter3.indexOf(endToken[endToken.length - 1]) > -1 : (
113809
+ // tslint:disable-next-line
113810
+ endToken === void 0
113811
+ );
113832
113812
  if (!strict) {
113833
- route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
113813
+ route += "(?:" + delimiter3 + "(?=" + endsWith + "))?";
113834
113814
  }
113835
113815
  if (!isEndDelimited) {
113836
- route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
113816
+ route += "(?=" + delimiter3 + "|" + endsWith + ")";
113837
113817
  }
113838
113818
  }
113839
113819
  return new RegExp(route, flags(options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "39.2.1",
3
+ "version": "39.2.2",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -26,12 +26,12 @@
26
26
  "@vercel/go": "3.2.1",
27
27
  "@vercel/hydrogen": "1.0.9",
28
28
  "@vercel/next": "4.4.0",
29
- "@vercel/node": "4.0.0",
29
+ "@vercel/node": "5.0.0",
30
30
  "@vercel/python": "4.5.1",
31
- "@vercel/redwood": "2.1.9",
32
- "@vercel/remix-builder": "3.0.0",
31
+ "@vercel/redwood": "2.1.10",
32
+ "@vercel/remix-builder": "4.0.0",
33
33
  "@vercel/ruby": "2.1.0",
34
- "@vercel/static-build": "2.5.38",
34
+ "@vercel/static-build": "2.5.39",
35
35
  "chokidar": "4.0.0"
36
36
  },
37
37
  "devDependencies": {
@@ -79,12 +79,12 @@
79
79
  "@types/yauzl-promise": "2.1.0",
80
80
  "@vercel-internals/constants": "1.0.4",
81
81
  "@vercel-internals/get-package-json": "1.0.0",
82
- "@vercel-internals/types": "3.0.1",
83
- "@vercel/client": "13.5.1",
82
+ "@vercel-internals/types": "3.0.2",
83
+ "@vercel/client": "13.5.2",
84
84
  "@vercel/error-utils": "2.0.3",
85
85
  "@vercel/frameworks": "3.4.0",
86
- "@vercel/fs-detectors": "5.3.0",
87
- "@vercel/routing-utils": "4.0.0",
86
+ "@vercel/fs-detectors": "5.3.1",
87
+ "@vercel/routing-utils": "5.0.0",
88
88
  "@vitest/expect": "2.1.3",
89
89
  "ajv": "6.12.2",
90
90
  "alpha-sort": "2.0.1",