vercel 39.1.0 → 39.1.1

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 +109 -118
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -4159,7 +4159,7 @@ var require_source = __commonJS2({
4159
4159
  const chalk116 = {};
4160
4160
  applyOptions(chalk116, options);
4161
4161
  chalk116.template = (...arguments_) => chalkTag(chalk116.template, ...arguments_);
4162
- Object.setPrototypeOf(chalk116, Chalk3.prototype);
4162
+ Object.setPrototypeOf(chalk116, Chalk.prototype);
4163
4163
  Object.setPrototypeOf(chalk116.template, chalk116);
4164
4164
  chalk116.template.constructor = () => {
4165
4165
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
@@ -4167,7 +4167,7 @@ var require_source = __commonJS2({
4167
4167
  chalk116.template.Instance = ChalkClass;
4168
4168
  return chalk116.template;
4169
4169
  };
4170
- function Chalk3(options) {
4170
+ function Chalk(options) {
4171
4171
  return chalkFactory(options);
4172
4172
  }
4173
4173
  for (const [styleName, style] of Object.entries(ansiStyles)) {
@@ -4294,10 +4294,10 @@ var require_source = __commonJS2({
4294
4294
  }
4295
4295
  return template(chalk116, parts.join(""));
4296
4296
  };
4297
- Object.defineProperties(Chalk3.prototype, styles);
4298
- var chalk115 = Chalk3();
4297
+ Object.defineProperties(Chalk.prototype, styles);
4298
+ var chalk115 = Chalk();
4299
4299
  chalk115.supportsColor = stdoutColor;
4300
- chalk115.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
4300
+ chalk115.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4301
4301
  chalk115.stderr.supportsColor = stderrColor;
4302
4302
  module2.exports = chalk115;
4303
4303
  }
@@ -7283,17 +7283,17 @@ var require_chalk = __commonJS2({
7283
7283
  obj.level = options.level === void 0 ? scLevel : options.level;
7284
7284
  obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
7285
7285
  }
7286
- function Chalk3(options) {
7287
- if (!this || !(this instanceof Chalk3) || this.template) {
7286
+ function Chalk(options) {
7287
+ if (!this || !(this instanceof Chalk) || this.template) {
7288
7288
  const chalk115 = {};
7289
7289
  applyOptions(chalk115, options);
7290
7290
  chalk115.template = function() {
7291
7291
  const args2 = [].slice.call(arguments);
7292
7292
  return chalkTag.apply(null, [chalk115.template].concat(args2));
7293
7293
  };
7294
- Object.setPrototypeOf(chalk115, Chalk3.prototype);
7294
+ Object.setPrototypeOf(chalk115, Chalk.prototype);
7295
7295
  Object.setPrototypeOf(chalk115.template, chalk115);
7296
- chalk115.template.constructor = Chalk3;
7296
+ chalk115.template.constructor = Chalk;
7297
7297
  return chalk115.template;
7298
7298
  }
7299
7299
  applyOptions(this, options);
@@ -7425,8 +7425,8 @@ var require_chalk = __commonJS2({
7425
7425
  }
7426
7426
  return template(chalk115, parts.join(""));
7427
7427
  }
7428
- Object.defineProperties(Chalk3.prototype, styles);
7429
- module2.exports = Chalk3();
7428
+ Object.defineProperties(Chalk.prototype, styles);
7429
+ module2.exports = Chalk();
7430
7430
  module2.exports.supportsColor = stdoutColor;
7431
7431
  module2.exports.default = module2.exports;
7432
7432
  }
@@ -13147,7 +13147,7 @@ var require_lru = __commonJS2({
13147
13147
  }
13148
13148
  }
13149
13149
  exports3.LRUMap = LRUMap;
13150
- function Entry2(key, value) {
13150
+ function Entry(key, value) {
13151
13151
  this.key = key;
13152
13152
  this.value = value;
13153
13153
  this[NEWER] = void 0;
@@ -13178,7 +13178,7 @@ var require_lru = __commonJS2({
13178
13178
  this._keymap.clear();
13179
13179
  let it = entries[Symbol.iterator]();
13180
13180
  for (let itv = it.next(); !itv.done; itv = it.next()) {
13181
- let e2 = new Entry2(itv.value[0], itv.value[1]);
13181
+ let e2 = new Entry(itv.value[0], itv.value[1]);
13182
13182
  this._keymap.set(e2.key, e2);
13183
13183
  if (!entry) {
13184
13184
  this.oldest = e2;
@@ -13208,7 +13208,7 @@ var require_lru = __commonJS2({
13208
13208
  this._markEntryAsUsed(entry);
13209
13209
  return this;
13210
13210
  }
13211
- this._keymap.set(key, entry = new Entry2(key, value));
13211
+ this._keymap.set(key, entry = new Entry(key, value));
13212
13212
  if (this.newest) {
13213
13213
  this.newest[NEWER] = entry;
13214
13214
  entry[OLDER] = this.newest;
@@ -20560,7 +20560,7 @@ var require_source2 = __commonJS2({
20560
20560
  const chalk116 = {};
20561
20561
  applyOptions(chalk116, options);
20562
20562
  chalk116.template = (...arguments_) => chalkTag(chalk116.template, ...arguments_);
20563
- Object.setPrototypeOf(chalk116, Chalk3.prototype);
20563
+ Object.setPrototypeOf(chalk116, Chalk.prototype);
20564
20564
  Object.setPrototypeOf(chalk116.template, chalk116);
20565
20565
  chalk116.template.constructor = () => {
20566
20566
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
@@ -20568,7 +20568,7 @@ var require_source2 = __commonJS2({
20568
20568
  chalk116.template.Instance = ChalkClass;
20569
20569
  return chalk116.template;
20570
20570
  };
20571
- function Chalk3(options) {
20571
+ function Chalk(options) {
20572
20572
  return chalkFactory(options);
20573
20573
  }
20574
20574
  for (const [styleName, style] of Object.entries(ansiStyles)) {
@@ -20695,10 +20695,10 @@ var require_source2 = __commonJS2({
20695
20695
  }
20696
20696
  return template(chalk116, parts.join(""));
20697
20697
  };
20698
- Object.defineProperties(Chalk3.prototype, styles);
20699
- var chalk115 = Chalk3();
20698
+ Object.defineProperties(Chalk.prototype, styles);
20699
+ var chalk115 = Chalk();
20700
20700
  chalk115.supportsColor = stdoutColor;
20701
- chalk115.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
20701
+ chalk115.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
20702
20702
  chalk115.stderr.supportsColor = stderrColor;
20703
20703
  module2.exports = chalk115;
20704
20704
  }
@@ -26873,7 +26873,7 @@ var require_lib7 = __commonJS2({
26873
26873
  }
26874
26874
  var INTERNALS$1 = Symbol("Response internals");
26875
26875
  var STATUS_CODES = http3.STATUS_CODES;
26876
- var Response3 = class _Response {
26876
+ var Response2 = class _Response {
26877
26877
  constructor() {
26878
26878
  let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
26879
26879
  let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -26931,8 +26931,8 @@ var require_lib7 = __commonJS2({
26931
26931
  });
26932
26932
  }
26933
26933
  };
26934
- Body.mixIn(Response3.prototype);
26935
- Object.defineProperties(Response3.prototype, {
26934
+ Body.mixIn(Response2.prototype);
26935
+ Object.defineProperties(Response2.prototype, {
26936
26936
  url: { enumerable: true },
26937
26937
  status: { enumerable: true },
26938
26938
  ok: { enumerable: true },
@@ -26941,7 +26941,7 @@ var require_lib7 = __commonJS2({
26941
26941
  headers: { enumerable: true },
26942
26942
  clone: { enumerable: true }
26943
26943
  });
26944
- Object.defineProperty(Response3.prototype, Symbol.toStringTag, {
26944
+ Object.defineProperty(Response2.prototype, Symbol.toStringTag, {
26945
26945
  value: "Response",
26946
26946
  writable: false,
26947
26947
  enumerable: false,
@@ -27254,7 +27254,7 @@ var require_lib7 = __commonJS2({
27254
27254
  };
27255
27255
  const codings = headers.get("Content-Encoding");
27256
27256
  if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) {
27257
- response = new Response3(body, response_options);
27257
+ response = new Response2(body, response_options);
27258
27258
  resolve12(response);
27259
27259
  return;
27260
27260
  }
@@ -27264,7 +27264,7 @@ var require_lib7 = __commonJS2({
27264
27264
  };
27265
27265
  if (codings == "gzip" || codings == "x-gzip") {
27266
27266
  body = body.pipe(zlib.createGunzip(zlibOptions));
27267
- response = new Response3(body, response_options);
27267
+ response = new Response2(body, response_options);
27268
27268
  resolve12(response);
27269
27269
  return;
27270
27270
  }
@@ -27276,18 +27276,18 @@ var require_lib7 = __commonJS2({
27276
27276
  } else {
27277
27277
  body = body.pipe(zlib.createInflateRaw());
27278
27278
  }
27279
- response = new Response3(body, response_options);
27279
+ response = new Response2(body, response_options);
27280
27280
  resolve12(response);
27281
27281
  });
27282
27282
  return;
27283
27283
  }
27284
27284
  if (codings == "br" && typeof zlib.createBrotliDecompress === "function") {
27285
27285
  body = body.pipe(zlib.createBrotliDecompress());
27286
- response = new Response3(body, response_options);
27286
+ response = new Response2(body, response_options);
27287
27287
  resolve12(response);
27288
27288
  return;
27289
27289
  }
27290
- response = new Response3(body, response_options);
27290
+ response = new Response2(body, response_options);
27291
27291
  resolve12(response);
27292
27292
  });
27293
27293
  writeToStream(req, request);
@@ -27302,7 +27302,7 @@ var require_lib7 = __commonJS2({
27302
27302
  exports2.default = exports2;
27303
27303
  exports2.Headers = Headers6;
27304
27304
  exports2.Request = Request2;
27305
- exports2.Response = Response3;
27305
+ exports2.Response = Response2;
27306
27306
  exports2.FetchError = FetchError;
27307
27307
  }
27308
27308
  });
@@ -33587,7 +33587,7 @@ var require_package = __commonJS2({
33587
33587
  "../client/package.json"(exports2, module2) {
33588
33588
  module2.exports = {
33589
33589
  name: "@vercel/client",
33590
- version: "13.4.17",
33590
+ version: "13.4.18",
33591
33591
  main: "dist/index.js",
33592
33592
  typings: "dist/index.d.ts",
33593
33593
  homepage: "https://vercel.com",
@@ -33616,7 +33616,7 @@ var require_package = __commonJS2({
33616
33616
  "@types/jest": "27.4.1",
33617
33617
  "@types/minimatch": "3.0.5",
33618
33618
  "@types/ms": "0.7.30",
33619
- "@types/node": "14.18.33",
33619
+ "@types/node": "16.18.119",
33620
33620
  "@types/node-fetch": "2.5.4",
33621
33621
  "@types/recursive-readdir": "2.2.0",
33622
33622
  "@types/tar-fs": "1.16.1",
@@ -33624,7 +33624,7 @@ var require_package = __commonJS2({
33624
33624
  typescript: "4.9.5"
33625
33625
  },
33626
33626
  dependencies: {
33627
- "@vercel/build-utils": "8.4.12",
33627
+ "@vercel/build-utils": "8.5.0",
33628
33628
  "@vercel/error-utils": "2.0.3",
33629
33629
  "@vercel/routing-utils": "3.1.0",
33630
33630
  "async-retry": "1.2.3",
@@ -35390,7 +35390,7 @@ var require_upload = __commonJS2({
35390
35390
  var import_http4 = __toESM4(require("http"));
35391
35391
  var import_https = __toESM4(require("https"));
35392
35392
  var import_stream = require("stream");
35393
- var import_events3 = require("events");
35393
+ var import_node_events = __toESM4(require("events"));
35394
35394
  var import_async_retry6 = __toESM4(require_lib10());
35395
35395
  var import_async_sema = require_lib9();
35396
35396
  var import_utils4 = require_utils4();
@@ -35438,6 +35438,8 @@ var require_upload = __commonJS2({
35438
35438
  debug2("Building an upload list...");
35439
35439
  const semaphore = new import_async_sema.Sema(50, { capacity: 50 });
35440
35440
  const defaultAgent = apiUrl2?.startsWith("https://") ? new import_https.default.Agent({ keepAlive: true }) : new import_http4.default.Agent({ keepAlive: true });
35441
+ const abortController = new AbortController();
35442
+ import_node_events.default.setMaxListeners(50);
35441
35443
  shas.forEach((sha, index) => {
35442
35444
  const uploadProgress = uploads[index];
35443
35445
  uploadList[sha] = (0, import_async_retry6.default)(
@@ -35487,7 +35489,9 @@ var require_upload = __commonJS2({
35487
35489
  body,
35488
35490
  teamId,
35489
35491
  apiUrl: apiUrl2,
35490
- userAgent
35492
+ userAgent,
35493
+ // @ts-expect-error: typescript is getting confused with the signal types from node (web & server) and node-fetch (server only)
35494
+ signal: abortController.signal
35491
35495
  },
35492
35496
  clientOptions.debug
35493
35497
  );
@@ -35522,6 +35526,7 @@ ${e2}`);
35522
35526
  throw err;
35523
35527
  } else {
35524
35528
  debug2("Other error, bailing: " + err.message);
35529
+ abortController.abort();
35525
35530
  return bail(err);
35526
35531
  }
35527
35532
  }
@@ -35562,7 +35567,7 @@ ${e2}`);
35562
35567
  yield { type: "error", payload: e2 };
35563
35568
  }
35564
35569
  }
35565
- var UploadProgress = class extends import_events3.EventEmitter {
35570
+ var UploadProgress = class extends import_node_events.EventEmitter {
35566
35571
  constructor(sha, file) {
35567
35572
  super();
35568
35573
  this.sha = sha;
@@ -49204,7 +49209,7 @@ var require_Client = __commonJS2({
49204
49209
  var fsUnlink = (0, util_1.promisify)(fs_1.unlink);
49205
49210
  var LIST_COMMANDS_DEFAULT = ["LIST -a", "LIST"];
49206
49211
  var LIST_COMMANDS_MLSD = ["MLSD", "LIST -a", "LIST"];
49207
- var Client3 = class {
49212
+ var Client2 = class {
49208
49213
  /**
49209
49214
  * Instantiate an FTP client.
49210
49215
  *
@@ -49875,7 +49880,7 @@ var require_Client = __commonJS2({
49875
49880
  return this.downloadToDir(localDirPath);
49876
49881
  }
49877
49882
  };
49878
- exports2.Client = Client3;
49883
+ exports2.Client = Client2;
49879
49884
  async function ensureLocalDirectory(path11) {
49880
49885
  try {
49881
49886
  await fsStat(path11);
@@ -106027,7 +106032,7 @@ async function disconnectGitProvider(client2, org, projectId) {
106027
106032
  }
106028
106033
  });
106029
106034
  }
106030
- async function connectGitProvider(client2, org, projectId, type, repo) {
106035
+ async function connectGitProvider(client2, projectId, type, repo) {
106031
106036
  const fetchUrl = `/v9/projects/${projectId}/link`;
106032
106037
  try {
106033
106038
  return await client2.fetch(fetchUrl, {
@@ -106335,31 +106340,23 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
106335
106340
  delete selection.newProject;
106336
106341
  if (!selection.rootDirectory)
106337
106342
  delete selection.rootDirectory;
106338
- try {
106339
- const project = selected[i] = await createProject(client2, {
106340
- ...selection,
106341
- framework: selection.framework.slug
106342
- });
106343
- await connectGitProvider(
106344
- client2,
106345
- org,
106346
- project.id,
106347
- parsedRepoUrl.provider,
106348
- `${parsedRepoUrl.org}/${parsedRepoUrl.repo}`
106349
- );
106350
- output_manager_default.log(
106351
- `Created new Project: ${output_manager_default.link(
106352
- orgAndName,
106353
- `https://vercel.com/${orgAndName}`,
106354
- { fallback: false }
106355
- )}`
106356
- );
106357
- } catch (err) {
106358
- if (isAPIError(err) && err.code === "too_many_projects") {
106359
- output_manager_default.prettyError(err);
106360
- return;
106361
- }
106362
- }
106343
+ const project = selected[i] = await createProject(client2, {
106344
+ ...selection,
106345
+ framework: selection.framework.slug
106346
+ });
106347
+ await connectGitProvider(
106348
+ client2,
106349
+ project.id,
106350
+ parsedRepoUrl.provider,
106351
+ `${parsedRepoUrl.org}/${parsedRepoUrl.repo}`
106352
+ );
106353
+ output_manager_default.log(
106354
+ `Created new Project: ${output_manager_default.link(
106355
+ orgAndName,
106356
+ `https://vercel.com/${orgAndName}`,
106357
+ { fallback: false }
106358
+ )}`
106359
+ );
106363
106360
  }
106364
106361
  repoConfig = {
106365
106362
  orgId: org.id,
@@ -106465,7 +106462,6 @@ var init_repo = __esm({
106465
106462
  init_detect_projects();
106466
106463
  init_repo_info_to_url();
106467
106464
  init_connect_git_provider();
106468
- init_errors_ts();
106469
106465
  init_git_helpers();
106470
106466
  init_output_manager();
106471
106467
  home = (0, import_os6.homedir)();
@@ -116738,8 +116734,8 @@ var require_yauzl = __commonJS2({
116738
116734
  exports2.fromRandomAccessReader = fromRandomAccessReader;
116739
116735
  exports2.dosDateTimeToDate = dosDateTimeToDate;
116740
116736
  exports2.validateFileName = validateFileName;
116741
- exports2.ZipFile = ZipFile2;
116742
- exports2.Entry = Entry2;
116737
+ exports2.ZipFile = ZipFile;
116738
+ exports2.Entry = Entry;
116743
116739
  exports2.RandomAccessReader = RandomAccessReader;
116744
116740
  function open5(path11, options, callback) {
116745
116741
  if (typeof options === "function") {
@@ -116866,7 +116862,7 @@ var require_yauzl = __commonJS2({
116866
116862
  }
116867
116863
  var comment = decodeStrings ? decodeBuffer(eocdrBuffer, 22, eocdrBuffer.length, false) : eocdrBuffer.slice(22);
116868
116864
  if (!(entryCount === 65535 || centralDirectoryOffset === 4294967295)) {
116869
- return callback(null, new ZipFile2(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
116865
+ return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
116870
116866
  }
116871
116867
  var zip64EocdlBuffer = newBuffer(20);
116872
116868
  var zip64EocdlOffset = bufferReadStart + i - zip64EocdlBuffer.length;
@@ -116886,7 +116882,7 @@ var require_yauzl = __commonJS2({
116886
116882
  }
116887
116883
  entryCount = readUInt64LE(zip64EocdrBuffer, 32);
116888
116884
  centralDirectoryOffset = readUInt64LE(zip64EocdrBuffer, 48);
116889
- return callback(null, new ZipFile2(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
116885
+ return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
116890
116886
  });
116891
116887
  });
116892
116888
  return;
@@ -116894,8 +116890,8 @@ var require_yauzl = __commonJS2({
116894
116890
  callback(new Error("end of central directory record signature not found"));
116895
116891
  });
116896
116892
  }
116897
- util.inherits(ZipFile2, EventEmitter2);
116898
- function ZipFile2(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
116893
+ util.inherits(ZipFile, EventEmitter2);
116894
+ function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
116899
116895
  var self2 = this;
116900
116896
  EventEmitter2.call(self2);
116901
116897
  self2.reader = reader;
@@ -116920,7 +116916,7 @@ var require_yauzl = __commonJS2({
116920
116916
  if (!self2.lazyEntries)
116921
116917
  self2._readEntry();
116922
116918
  }
116923
- ZipFile2.prototype.close = function() {
116919
+ ZipFile.prototype.close = function() {
116924
116920
  if (!this.isOpen)
116925
116921
  return;
116926
116922
  this.isOpen = false;
@@ -116937,12 +116933,12 @@ var require_yauzl = __commonJS2({
116937
116933
  self2.emittedError = true;
116938
116934
  self2.emit("error", err);
116939
116935
  }
116940
- ZipFile2.prototype.readEntry = function() {
116936
+ ZipFile.prototype.readEntry = function() {
116941
116937
  if (!this.lazyEntries)
116942
116938
  throw new Error("readEntry() called without lazyEntries:true");
116943
116939
  this._readEntry();
116944
116940
  };
116945
- ZipFile2.prototype._readEntry = function() {
116941
+ ZipFile.prototype._readEntry = function() {
116946
116942
  var self2 = this;
116947
116943
  if (self2.entryCount === self2.entriesRead) {
116948
116944
  setImmediate(function() {
@@ -116962,7 +116958,7 @@ var require_yauzl = __commonJS2({
116962
116958
  return emitErrorAndAutoClose(self2, err);
116963
116959
  if (self2.emittedError)
116964
116960
  return;
116965
- var entry = new Entry2();
116961
+ var entry = new Entry();
116966
116962
  var signature = buffer.readUInt32LE(0);
116967
116963
  if (signature !== 33639248)
116968
116964
  return emitErrorAndAutoClose(self2, new Error("invalid central directory file header signature: 0x" + signature.toString(16)));
@@ -117093,7 +117089,7 @@ var require_yauzl = __commonJS2({
117093
117089
  });
117094
117090
  });
117095
117091
  };
117096
- ZipFile2.prototype.openReadStream = function(entry, options, callback) {
117092
+ ZipFile.prototype.openReadStream = function(entry, options, callback) {
117097
117093
  var self2 = this;
117098
117094
  var relativeStart = 0;
117099
117095
  var relativeEnd = entry.compressedSize;
@@ -117220,15 +117216,15 @@ var require_yauzl = __commonJS2({
117220
117216
  }
117221
117217
  });
117222
117218
  };
117223
- function Entry2() {
117219
+ function Entry() {
117224
117220
  }
117225
- Entry2.prototype.getLastModDate = function() {
117221
+ Entry.prototype.getLastModDate = function() {
117226
117222
  return dosDateTimeToDate(this.lastModFileDate, this.lastModFileTime);
117227
117223
  };
117228
- Entry2.prototype.isEncrypted = function() {
117224
+ Entry.prototype.isEncrypted = function() {
117229
117225
  return (this.generalPurposeBitFlag & 1) !== 0;
117230
117226
  };
117231
- Entry2.prototype.isCompressed = function() {
117227
+ Entry.prototype.isCompressed = function() {
117232
117228
  return this.compressionMethod === 8;
117233
117229
  };
117234
117230
  function dosDateTimeToDate(date, time) {
@@ -117627,7 +117623,7 @@ var require_lib14 = __commonJS2({
117627
117623
  yauzl = Object.assign({}, yauzl);
117628
117624
  if (options.subclassZipFile) {
117629
117625
  const original = yauzl.ZipFile;
117630
- yauzl.ZipFile = function ZipFile2() {
117626
+ yauzl.ZipFile = function ZipFile() {
117631
117627
  original.apply(this, arguments);
117632
117628
  };
117633
117629
  util.inherits(yauzl.ZipFile, original);
@@ -117642,7 +117638,7 @@ var require_lib14 = __commonJS2({
117642
117638
  }
117643
117639
  if (options.subclassEntry) {
117644
117640
  const original = yauzl.Entry;
117645
- yauzl.Entry = function Entry2() {
117641
+ yauzl.Entry = function Entry() {
117646
117642
  original.apply(this, arguments);
117647
117643
  };
117648
117644
  util.inherits(yauzl.Entry, original);
@@ -117685,7 +117681,7 @@ var require_lib14 = __commonJS2({
117685
117681
  }
117686
117682
  return yauzl[methodName];
117687
117683
  }
117688
- function zipFilePatcher(original, ZipFile2) {
117684
+ function zipFilePatcher(original, ZipFile) {
117689
117685
  return function(path11, totalSize, options, callback) {
117690
117686
  const { lazyEntries } = options, hasLazyEntries = options.hasOwnProperty("lazyEntries");
117691
117687
  if (!lazyEntries)
@@ -117694,7 +117690,7 @@ var require_lib14 = __commonJS2({
117694
117690
  if (err)
117695
117691
  return callback(err);
117696
117692
  const zipFileInternal = zipFile;
117697
- zipFile = Object.assign(Object.create(ZipFile2.prototype), zipFile);
117693
+ zipFile = Object.assign(Object.create(ZipFile.prototype), zipFile);
117698
117694
  zipFileInternal.emit = zipFile.emit.bind(zipFile);
117699
117695
  if (!lazyEntries) {
117700
117696
  if (hasLazyEntries) {
@@ -117710,13 +117706,13 @@ var require_lib14 = __commonJS2({
117710
117706
  });
117711
117707
  };
117712
117708
  }
117713
- function entryPatcher(original, Entry2) {
117709
+ function entryPatcher(original, Entry) {
117714
117710
  return function(path11, totalSize, options, callback) {
117715
117711
  return original.call(this, path11, totalSize, options, function(err, zipFile) {
117716
117712
  if (err)
117717
117713
  return callback(err);
117718
117714
  zipFile.intercept("entry", function(entry, cb) {
117719
- entry = Object.assign(Object.create(Entry2.prototype), entry);
117715
+ entry = Object.assign(Object.create(Entry.prototype), entry);
117720
117716
  cb(null, entry);
117721
117717
  });
117722
117718
  callback(null, zipFile);
@@ -117747,18 +117743,18 @@ var require_promisify2 = __commonJS2({
117747
117743
  var STATE = Symbol();
117748
117744
  var STORED_ERROR = Symbol();
117749
117745
  module2.exports = (yauzl, Promise2) => {
117750
- const { ZipFile: ZipFile2, Entry: Entry2 } = yauzl;
117746
+ const { ZipFile, Entry } = yauzl;
117751
117747
  promisifyMethod(yauzl, Promise2, "open");
117752
117748
  promisifyMethod(yauzl, Promise2, "fromFd");
117753
117749
  promisifyMethod(yauzl, Promise2, "fromBuffer");
117754
117750
  promisifyMethod(yauzl, Promise2, "fromRandomAccessReader");
117755
- promisifyClose(ZipFile2, Promise2);
117756
- promisifyReadEntry(ZipFile2, Promise2);
117757
- ZipFile2.prototype.readEntries = readEntries;
117758
- addWalkEntriesMethod(ZipFile2, Promise2);
117759
- promisifyOpenReadStream(ZipFile2, Promise2);
117760
- Entry2.prototype.openReadStream = entryOpenReadStream;
117761
- ZipFile2.Entry = Entry2;
117751
+ promisifyClose(ZipFile, Promise2);
117752
+ promisifyReadEntry(ZipFile, Promise2);
117753
+ ZipFile.prototype.readEntries = readEntries;
117754
+ addWalkEntriesMethod(ZipFile, Promise2);
117755
+ promisifyOpenReadStream(ZipFile, Promise2);
117756
+ Entry.prototype.openReadStream = entryOpenReadStream;
117757
+ ZipFile.Entry = Entry;
117762
117758
  };
117763
117759
  function promisifyMethod(yauzl, Promise2, fnName) {
117764
117760
  const fromBuffer = fnName == "fromBuffer";
@@ -117802,9 +117798,9 @@ var require_promisify2 = __commonJS2({
117802
117798
  clearError(zipFile);
117803
117799
  reject(err);
117804
117800
  }
117805
- function promisifyClose(ZipFile2, Promise2) {
117806
- const close2 = ZipFile2.prototype.close;
117807
- ZipFile2.prototype.close = function() {
117801
+ function promisifyClose(ZipFile, Promise2) {
117802
+ const close2 = ZipFile.prototype.close;
117803
+ ZipFile.prototype.close = function() {
117808
117804
  return new Promise2((resolve12, reject) => {
117809
117805
  if (getError(this))
117810
117806
  return rejectWithStoredError(this, reject);
@@ -117824,9 +117820,9 @@ var require_promisify2 = __commonJS2({
117824
117820
  clearState(this);
117825
117821
  state.resolve();
117826
117822
  }
117827
- function promisifyReadEntry(ZipFile2, Promise2) {
117828
- const readEntry = ZipFile2.prototype.readEntry;
117829
- ZipFile2.prototype.readEntry = function() {
117823
+ function promisifyReadEntry(ZipFile, Promise2) {
117824
+ const readEntry = ZipFile.prototype.readEntry;
117825
+ ZipFile.prototype.readEntry = function() {
117830
117826
  return new Promise2((resolve12, reject) => {
117831
117827
  if (getError(this))
117832
117828
  return rejectWithStoredError(this, reject);
@@ -117877,8 +117873,8 @@ var require_promisify2 = __commonJS2({
117877
117873
  return entries;
117878
117874
  });
117879
117875
  }
117880
- function addWalkEntriesMethod(ZipFile2, Promise2) {
117881
- ZipFile2.prototype.walkEntries = function(callback, numEntries) {
117876
+ function addWalkEntriesMethod(ZipFile, Promise2) {
117877
+ ZipFile.prototype.walkEntries = function(callback, numEntries) {
117882
117878
  callback = wrapFunctionToReturnPromise(callback, Promise2);
117883
117879
  return new Promise2((resolve12, reject) => {
117884
117880
  walkNextEntry(this, callback, numEntries, 0, (err) => {
@@ -117902,9 +117898,9 @@ var require_promisify2 = __commonJS2({
117902
117898
  cb(err);
117903
117899
  });
117904
117900
  }
117905
- function promisifyOpenReadStream(ZipFile2, Promise2) {
117906
- const openReadStream = ZipFile2.prototype.openReadStream;
117907
- ZipFile2.prototype.openReadStream = function(entry, options) {
117901
+ function promisifyOpenReadStream(ZipFile, Promise2) {
117902
+ const openReadStream = ZipFile.prototype.openReadStream;
117903
+ ZipFile.prototype.openReadStream = function(entry, options) {
117908
117904
  return new Promise2((resolve12, reject) => {
117909
117905
  if (getError(this))
117910
117906
  return rejectWithStoredError(this, reject);
@@ -124690,7 +124686,6 @@ var init_util = __esm({
124690
124686
  import_chalk56 = __toESM3(require_source());
124691
124687
  init_ua();
124692
124688
  init_process_deployment();
124693
- init_highlight();
124694
124689
  init_error2();
124695
124690
  init_stamp();
124696
124691
  init_errors_ts();
@@ -124845,17 +124840,10 @@ var init_util = __esm({
124845
124840
  }
124846
124841
  if (error3.status >= 400 && error3.status < 500) {
124847
124842
  const err = new Error();
124848
- const { code: code2, unreferencedBuildSpecs } = error3;
124843
+ const { code: code2 } = error3;
124849
124844
  if (code2 === "env_value_invalid_type") {
124850
124845
  const { key } = error3;
124851
124846
  err.message = `The env key ${key} has an invalid type: ${typeof env[key]}. Please supply a String or a Number (https://err.sh/vercel/env-value-invalid-type)`;
124852
- } else if (code2 === "unreferenced_build_specifications") {
124853
- const count = unreferencedBuildSpecs.length;
124854
- const prefix = count === 1 ? "build" : "builds";
124855
- err.message = `You defined ${count} ${prefix} that did not match any source files (please ensure they are NOT defined in ${highlight(
124856
- ".vercelignore"
124857
- )}):
124858
- - ${unreferencedBuildSpecs.map((item) => JSON.stringify(item)).join("\n- ")}`;
124859
124847
  } else {
124860
124848
  Object.assign(err, error3);
124861
124849
  }
@@ -142403,9 +142391,9 @@ Please run \`${await getUpdateCommand()}\` to update to the latest CLI.`
142403
142391
  if (oldAsset && oldAsset.type === "Lambda" && oldAsset.fn) {
142404
142392
  await oldAsset.fn.destroy();
142405
142393
  }
142406
- const ZipFile2 = asset.zipBuffer || await asset.createZip();
142394
+ const ZipFile = asset.zipBuffer || await asset.createZip();
142407
142395
  asset.fn = await (0, import_fun.createFunction)({
142408
- Code: { ZipFile: ZipFile2 },
142396
+ Code: { ZipFile },
142409
142397
  Handler: asset.handler,
142410
142398
  Runtime: asset.runtime,
142411
142399
  MemorySize: asset.memory || 3009,
@@ -149354,7 +149342,6 @@ async function checkExistsAndConnect({
149354
149342
  if (!gitProviderLink) {
149355
149343
  const connect2 = await connectGitProvider(
149356
149344
  client2,
149357
- org,
149358
149345
  project.id,
149359
149346
  provider,
149360
149347
  repoPath
@@ -149386,7 +149373,6 @@ async function checkExistsAndConnect({
149386
149373
  await disconnectGitProvider(client2, org, project.id);
149387
149374
  const connect2 = await connectGitProvider(
149388
149375
  client2,
149389
- org,
149390
149376
  project.id,
149391
149377
  provider,
149392
149378
  repoPath
@@ -152561,7 +152547,12 @@ async function link3(client2) {
152561
152547
  }
152562
152548
  if (parsedArgs.flags["--repo"]) {
152563
152549
  output_manager_default.warn(`The ${cmd("--repo")} flag is in alpha, please report issues`);
152564
- await ensureRepoLink(client2, cwd, { yes, overwrite: true });
152550
+ try {
152551
+ await ensureRepoLink(client2, cwd, { yes, overwrite: true });
152552
+ } catch (err) {
152553
+ output_manager_default.prettyError(err);
152554
+ return 1;
152555
+ }
152565
152556
  } else {
152566
152557
  const link4 = await ensureLink("link", client2, cwd, {
152567
152558
  autoConfirm: yes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "39.1.0",
3
+ "version": "39.1.1",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -21,17 +21,17 @@
21
21
  "node": ">= 16"
22
22
  },
23
23
  "dependencies": {
24
- "@vercel/build-utils": "8.4.12",
24
+ "@vercel/build-utils": "8.5.0",
25
25
  "@vercel/fun": "1.1.0",
26
26
  "@vercel/go": "3.2.1",
27
27
  "@vercel/hydrogen": "1.0.9",
28
28
  "@vercel/next": "4.3.21",
29
- "@vercel/node": "3.2.25",
29
+ "@vercel/node": "3.2.26",
30
30
  "@vercel/python": "4.5.1",
31
31
  "@vercel/redwood": "2.1.8",
32
32
  "@vercel/remix-builder": "2.2.14",
33
33
  "@vercel/ruby": "2.1.0",
34
- "@vercel/static-build": "2.5.34",
34
+ "@vercel/static-build": "2.5.35",
35
35
  "chokidar": "4.0.0"
36
36
  },
37
37
  "devDependencies": {
@@ -80,8 +80,8 @@
80
80
  "@types/yauzl-promise": "2.1.0",
81
81
  "@vercel-internals/constants": "1.0.4",
82
82
  "@vercel-internals/get-package-json": "1.0.0",
83
- "@vercel-internals/types": "2.0.16",
84
- "@vercel/client": "13.4.17",
83
+ "@vercel-internals/types": "2.0.17",
84
+ "@vercel/client": "13.4.18",
85
85
  "@vercel/error-utils": "2.0.3",
86
86
  "@vercel/frameworks": "3.3.1",
87
87
  "@vercel/fs-detectors": "5.2.11",