vercel 28.18.5 → 28.20.0
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.
- package/dist/index.js +209 -1009
- package/package.json +13 -29
package/dist/index.js
CHANGED
@@ -3,6 +3,22 @@ module.exports =
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
4
4
|
/******/ var __webpack_modules__ = ({
|
5
5
|
|
6
|
+
/***/ 98551:
|
7
|
+
/***/ ((__unused_webpack_module, exports) => {
|
8
|
+
|
9
|
+
"use strict";
|
10
|
+
|
11
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
12
|
+
exports.PROJECT_ENV_TARGET = void 0;
|
13
|
+
exports.PROJECT_ENV_TARGET = [
|
14
|
+
'production',
|
15
|
+
'preview',
|
16
|
+
'development',
|
17
|
+
];
|
18
|
+
//# sourceMappingURL=index.js.map
|
19
|
+
|
20
|
+
/***/ }),
|
21
|
+
|
6
22
|
/***/ 20077:
|
7
23
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
8
24
|
|
@@ -64,31 +80,6 @@ exports.getPackageJSON = getPackageJSON;
|
|
64
80
|
|
65
81
|
/***/ }),
|
66
82
|
|
67
|
-
/***/ 76210:
|
68
|
-
/***/ ((__unused_webpack_module, exports) => {
|
69
|
-
|
70
|
-
"use strict";
|
71
|
-
|
72
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
73
|
-
exports.ProjectEnvType = exports.ProjectEnvTarget = void 0;
|
74
|
-
// TODO (Ethan-Arrowood) - Replace enums
|
75
|
-
var ProjectEnvTarget;
|
76
|
-
(function (ProjectEnvTarget) {
|
77
|
-
ProjectEnvTarget["Production"] = "production";
|
78
|
-
ProjectEnvTarget["Preview"] = "preview";
|
79
|
-
ProjectEnvTarget["Development"] = "development";
|
80
|
-
})(ProjectEnvTarget = exports.ProjectEnvTarget || (exports.ProjectEnvTarget = {}));
|
81
|
-
var ProjectEnvType;
|
82
|
-
(function (ProjectEnvType) {
|
83
|
-
ProjectEnvType["Plaintext"] = "plain";
|
84
|
-
ProjectEnvType["Secret"] = "secret";
|
85
|
-
ProjectEnvType["Encrypted"] = "encrypted";
|
86
|
-
ProjectEnvType["System"] = "system";
|
87
|
-
})(ProjectEnvType = exports.ProjectEnvType || (exports.ProjectEnvType = {}));
|
88
|
-
//# sourceMappingURL=index.js.map
|
89
|
-
|
90
|
-
/***/ }),
|
91
|
-
|
92
83
|
/***/ 33105:
|
93
84
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
94
85
|
|
@@ -10347,7 +10338,7 @@ function setup(fetch) {
|
|
10347
10338
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
10348
10339
|
|
10349
10340
|
const retry = __webpack_require__(69420);
|
10350
|
-
const debug = __webpack_require__(
|
10341
|
+
const debug = __webpack_require__(94219)('fetch-retry');
|
10351
10342
|
|
10352
10343
|
// retry settings
|
10353
10344
|
const MIN_TIMEOUT = 10;
|
@@ -41203,656 +41194,6 @@ function init (debug) {
|
|
41203
41194
|
exports.enable(load());
|
41204
41195
|
|
41205
41196
|
|
41206
|
-
/***/ }),
|
41207
|
-
|
41208
|
-
/***/ 12308:
|
41209
|
-
/***/ ((module, exports, __webpack_require__) => {
|
41210
|
-
|
41211
|
-
"use strict";
|
41212
|
-
|
41213
|
-
|
41214
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
41215
|
-
|
41216
|
-
/* eslint-env browser */
|
41217
|
-
|
41218
|
-
/**
|
41219
|
-
* This is the web browser implementation of `debug()`.
|
41220
|
-
*/
|
41221
|
-
exports.log = log;
|
41222
|
-
exports.formatArgs = formatArgs;
|
41223
|
-
exports.save = save;
|
41224
|
-
exports.load = load;
|
41225
|
-
exports.useColors = useColors;
|
41226
|
-
exports.storage = localstorage();
|
41227
|
-
/**
|
41228
|
-
* Colors.
|
41229
|
-
*/
|
41230
|
-
|
41231
|
-
exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
|
41232
|
-
/**
|
41233
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
41234
|
-
* and the Firebug extension (any Firefox version) are known
|
41235
|
-
* to support "%c" CSS customizations.
|
41236
|
-
*
|
41237
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
41238
|
-
*/
|
41239
|
-
// eslint-disable-next-line complexity
|
41240
|
-
|
41241
|
-
function useColors() {
|
41242
|
-
// NB: In an Electron preload script, document will be defined but not fully
|
41243
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
41244
|
-
// explicitly
|
41245
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
41246
|
-
return true;
|
41247
|
-
} // Internet Explorer and Edge do not support colors.
|
41248
|
-
|
41249
|
-
|
41250
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
41251
|
-
return false;
|
41252
|
-
} // Is webkit? http://stackoverflow.com/a/16459606/376773
|
41253
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
41254
|
-
|
41255
|
-
|
41256
|
-
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
41257
|
-
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
41258
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
41259
|
-
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
41260
|
-
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
41261
|
-
}
|
41262
|
-
/**
|
41263
|
-
* Colorize log arguments if enabled.
|
41264
|
-
*
|
41265
|
-
* @api public
|
41266
|
-
*/
|
41267
|
-
|
41268
|
-
|
41269
|
-
function formatArgs(args) {
|
41270
|
-
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
|
41271
|
-
|
41272
|
-
if (!this.useColors) {
|
41273
|
-
return;
|
41274
|
-
}
|
41275
|
-
|
41276
|
-
var c = 'color: ' + this.color;
|
41277
|
-
args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other
|
41278
|
-
// arguments passed either before or after the %c, so we need to
|
41279
|
-
// figure out the correct index to insert the CSS into
|
41280
|
-
|
41281
|
-
var index = 0;
|
41282
|
-
var lastC = 0;
|
41283
|
-
args[0].replace(/%[a-zA-Z%]/g, function (match) {
|
41284
|
-
if (match === '%%') {
|
41285
|
-
return;
|
41286
|
-
}
|
41287
|
-
|
41288
|
-
index++;
|
41289
|
-
|
41290
|
-
if (match === '%c') {
|
41291
|
-
// We only are interested in the *last* %c
|
41292
|
-
// (the user may have provided their own)
|
41293
|
-
lastC = index;
|
41294
|
-
}
|
41295
|
-
});
|
41296
|
-
args.splice(lastC, 0, c);
|
41297
|
-
}
|
41298
|
-
/**
|
41299
|
-
* Invokes `console.log()` when available.
|
41300
|
-
* No-op when `console.log` is not a "function".
|
41301
|
-
*
|
41302
|
-
* @api public
|
41303
|
-
*/
|
41304
|
-
|
41305
|
-
|
41306
|
-
function log() {
|
41307
|
-
var _console;
|
41308
|
-
|
41309
|
-
// This hackery is required for IE8/9, where
|
41310
|
-
// the `console.log` function doesn't have 'apply'
|
41311
|
-
return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);
|
41312
|
-
}
|
41313
|
-
/**
|
41314
|
-
* Save `namespaces`.
|
41315
|
-
*
|
41316
|
-
* @param {String} namespaces
|
41317
|
-
* @api private
|
41318
|
-
*/
|
41319
|
-
|
41320
|
-
|
41321
|
-
function save(namespaces) {
|
41322
|
-
try {
|
41323
|
-
if (namespaces) {
|
41324
|
-
exports.storage.setItem('debug', namespaces);
|
41325
|
-
} else {
|
41326
|
-
exports.storage.removeItem('debug');
|
41327
|
-
}
|
41328
|
-
} catch (error) {// Swallow
|
41329
|
-
// XXX (@Qix-) should we be logging these?
|
41330
|
-
}
|
41331
|
-
}
|
41332
|
-
/**
|
41333
|
-
* Load `namespaces`.
|
41334
|
-
*
|
41335
|
-
* @return {String} returns the previously persisted debug modes
|
41336
|
-
* @api private
|
41337
|
-
*/
|
41338
|
-
|
41339
|
-
|
41340
|
-
function load() {
|
41341
|
-
var r;
|
41342
|
-
|
41343
|
-
try {
|
41344
|
-
r = exports.storage.getItem('debug');
|
41345
|
-
} catch (error) {} // Swallow
|
41346
|
-
// XXX (@Qix-) should we be logging these?
|
41347
|
-
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
41348
|
-
|
41349
|
-
|
41350
|
-
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
41351
|
-
r = process.env.DEBUG;
|
41352
|
-
}
|
41353
|
-
|
41354
|
-
return r;
|
41355
|
-
}
|
41356
|
-
/**
|
41357
|
-
* Localstorage attempts to return the localstorage.
|
41358
|
-
*
|
41359
|
-
* This is necessary because safari throws
|
41360
|
-
* when a user disables cookies/localstorage
|
41361
|
-
* and you attempt to access it.
|
41362
|
-
*
|
41363
|
-
* @return {LocalStorage}
|
41364
|
-
* @api private
|
41365
|
-
*/
|
41366
|
-
|
41367
|
-
|
41368
|
-
function localstorage() {
|
41369
|
-
try {
|
41370
|
-
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
41371
|
-
// The Browser also has localStorage in the global context.
|
41372
|
-
return localStorage;
|
41373
|
-
} catch (error) {// Swallow
|
41374
|
-
// XXX (@Qix-) should we be logging these?
|
41375
|
-
}
|
41376
|
-
}
|
41377
|
-
|
41378
|
-
module.exports = __webpack_require__(14878)(exports);
|
41379
|
-
var formatters = module.exports.formatters;
|
41380
|
-
/**
|
41381
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
41382
|
-
*/
|
41383
|
-
|
41384
|
-
formatters.j = function (v) {
|
41385
|
-
try {
|
41386
|
-
return JSON.stringify(v);
|
41387
|
-
} catch (error) {
|
41388
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
41389
|
-
}
|
41390
|
-
};
|
41391
|
-
|
41392
|
-
|
41393
|
-
|
41394
|
-
/***/ }),
|
41395
|
-
|
41396
|
-
/***/ 14878:
|
41397
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
41398
|
-
|
41399
|
-
"use strict";
|
41400
|
-
|
41401
|
-
|
41402
|
-
/**
|
41403
|
-
* This is the common logic for both the Node.js and web browser
|
41404
|
-
* implementations of `debug()`.
|
41405
|
-
*/
|
41406
|
-
function setup(env) {
|
41407
|
-
createDebug.debug = createDebug;
|
41408
|
-
createDebug.default = createDebug;
|
41409
|
-
createDebug.coerce = coerce;
|
41410
|
-
createDebug.disable = disable;
|
41411
|
-
createDebug.enable = enable;
|
41412
|
-
createDebug.enabled = enabled;
|
41413
|
-
createDebug.humanize = __webpack_require__(82801);
|
41414
|
-
Object.keys(env).forEach(function (key) {
|
41415
|
-
createDebug[key] = env[key];
|
41416
|
-
});
|
41417
|
-
/**
|
41418
|
-
* Active `debug` instances.
|
41419
|
-
*/
|
41420
|
-
|
41421
|
-
createDebug.instances = [];
|
41422
|
-
/**
|
41423
|
-
* The currently active debug mode names, and names to skip.
|
41424
|
-
*/
|
41425
|
-
|
41426
|
-
createDebug.names = [];
|
41427
|
-
createDebug.skips = [];
|
41428
|
-
/**
|
41429
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
41430
|
-
*
|
41431
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
41432
|
-
*/
|
41433
|
-
|
41434
|
-
createDebug.formatters = {};
|
41435
|
-
/**
|
41436
|
-
* Selects a color for a debug namespace
|
41437
|
-
* @param {String} namespace The namespace string for the for the debug instance to be colored
|
41438
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
41439
|
-
* @api private
|
41440
|
-
*/
|
41441
|
-
|
41442
|
-
function selectColor(namespace) {
|
41443
|
-
var hash = 0;
|
41444
|
-
|
41445
|
-
for (var i = 0; i < namespace.length; i++) {
|
41446
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
41447
|
-
hash |= 0; // Convert to 32bit integer
|
41448
|
-
}
|
41449
|
-
|
41450
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
41451
|
-
}
|
41452
|
-
|
41453
|
-
createDebug.selectColor = selectColor;
|
41454
|
-
/**
|
41455
|
-
* Create a debugger with the given `namespace`.
|
41456
|
-
*
|
41457
|
-
* @param {String} namespace
|
41458
|
-
* @return {Function}
|
41459
|
-
* @api public
|
41460
|
-
*/
|
41461
|
-
|
41462
|
-
function createDebug(namespace) {
|
41463
|
-
var prevTime;
|
41464
|
-
|
41465
|
-
function debug() {
|
41466
|
-
// Disabled?
|
41467
|
-
if (!debug.enabled) {
|
41468
|
-
return;
|
41469
|
-
}
|
41470
|
-
|
41471
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
41472
|
-
args[_key] = arguments[_key];
|
41473
|
-
}
|
41474
|
-
|
41475
|
-
var self = debug; // Set `diff` timestamp
|
41476
|
-
|
41477
|
-
var curr = Number(new Date());
|
41478
|
-
var ms = curr - (prevTime || curr);
|
41479
|
-
self.diff = ms;
|
41480
|
-
self.prev = prevTime;
|
41481
|
-
self.curr = curr;
|
41482
|
-
prevTime = curr;
|
41483
|
-
args[0] = createDebug.coerce(args[0]);
|
41484
|
-
|
41485
|
-
if (typeof args[0] !== 'string') {
|
41486
|
-
// Anything else let's inspect with %O
|
41487
|
-
args.unshift('%O');
|
41488
|
-
} // Apply any `formatters` transformations
|
41489
|
-
|
41490
|
-
|
41491
|
-
var index = 0;
|
41492
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {
|
41493
|
-
// If we encounter an escaped % then don't increase the array index
|
41494
|
-
if (match === '%%') {
|
41495
|
-
return match;
|
41496
|
-
}
|
41497
|
-
|
41498
|
-
index++;
|
41499
|
-
var formatter = createDebug.formatters[format];
|
41500
|
-
|
41501
|
-
if (typeof formatter === 'function') {
|
41502
|
-
var val = args[index];
|
41503
|
-
match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`
|
41504
|
-
|
41505
|
-
args.splice(index, 1);
|
41506
|
-
index--;
|
41507
|
-
}
|
41508
|
-
|
41509
|
-
return match;
|
41510
|
-
}); // Apply env-specific formatting (colors, etc.)
|
41511
|
-
|
41512
|
-
createDebug.formatArgs.call(self, args);
|
41513
|
-
var logFn = self.log || createDebug.log;
|
41514
|
-
logFn.apply(self, args);
|
41515
|
-
}
|
41516
|
-
|
41517
|
-
debug.namespace = namespace;
|
41518
|
-
debug.enabled = createDebug.enabled(namespace);
|
41519
|
-
debug.useColors = createDebug.useColors();
|
41520
|
-
debug.color = selectColor(namespace);
|
41521
|
-
debug.destroy = destroy;
|
41522
|
-
debug.extend = extend; // Debug.formatArgs = formatArgs;
|
41523
|
-
// debug.rawLog = rawLog;
|
41524
|
-
// env-specific initialization logic for debug instances
|
41525
|
-
|
41526
|
-
if (typeof createDebug.init === 'function') {
|
41527
|
-
createDebug.init(debug);
|
41528
|
-
}
|
41529
|
-
|
41530
|
-
createDebug.instances.push(debug);
|
41531
|
-
return debug;
|
41532
|
-
}
|
41533
|
-
|
41534
|
-
function destroy() {
|
41535
|
-
var index = createDebug.instances.indexOf(this);
|
41536
|
-
|
41537
|
-
if (index !== -1) {
|
41538
|
-
createDebug.instances.splice(index, 1);
|
41539
|
-
return true;
|
41540
|
-
}
|
41541
|
-
|
41542
|
-
return false;
|
41543
|
-
}
|
41544
|
-
|
41545
|
-
function extend(namespace, delimiter) {
|
41546
|
-
return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
41547
|
-
}
|
41548
|
-
/**
|
41549
|
-
* Enables a debug mode by namespaces. This can include modes
|
41550
|
-
* separated by a colon and wildcards.
|
41551
|
-
*
|
41552
|
-
* @param {String} namespaces
|
41553
|
-
* @api public
|
41554
|
-
*/
|
41555
|
-
|
41556
|
-
|
41557
|
-
function enable(namespaces) {
|
41558
|
-
createDebug.save(namespaces);
|
41559
|
-
createDebug.names = [];
|
41560
|
-
createDebug.skips = [];
|
41561
|
-
var i;
|
41562
|
-
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
41563
|
-
var len = split.length;
|
41564
|
-
|
41565
|
-
for (i = 0; i < len; i++) {
|
41566
|
-
if (!split[i]) {
|
41567
|
-
// ignore empty strings
|
41568
|
-
continue;
|
41569
|
-
}
|
41570
|
-
|
41571
|
-
namespaces = split[i].replace(/\*/g, '.*?');
|
41572
|
-
|
41573
|
-
if (namespaces[0] === '-') {
|
41574
|
-
createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
41575
|
-
} else {
|
41576
|
-
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
41577
|
-
}
|
41578
|
-
}
|
41579
|
-
|
41580
|
-
for (i = 0; i < createDebug.instances.length; i++) {
|
41581
|
-
var instance = createDebug.instances[i];
|
41582
|
-
instance.enabled = createDebug.enabled(instance.namespace);
|
41583
|
-
}
|
41584
|
-
}
|
41585
|
-
/**
|
41586
|
-
* Disable debug output.
|
41587
|
-
*
|
41588
|
-
* @api public
|
41589
|
-
*/
|
41590
|
-
|
41591
|
-
|
41592
|
-
function disable() {
|
41593
|
-
createDebug.enable('');
|
41594
|
-
}
|
41595
|
-
/**
|
41596
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
41597
|
-
*
|
41598
|
-
* @param {String} name
|
41599
|
-
* @return {Boolean}
|
41600
|
-
* @api public
|
41601
|
-
*/
|
41602
|
-
|
41603
|
-
|
41604
|
-
function enabled(name) {
|
41605
|
-
if (name[name.length - 1] === '*') {
|
41606
|
-
return true;
|
41607
|
-
}
|
41608
|
-
|
41609
|
-
var i;
|
41610
|
-
var len;
|
41611
|
-
|
41612
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
41613
|
-
if (createDebug.skips[i].test(name)) {
|
41614
|
-
return false;
|
41615
|
-
}
|
41616
|
-
}
|
41617
|
-
|
41618
|
-
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
41619
|
-
if (createDebug.names[i].test(name)) {
|
41620
|
-
return true;
|
41621
|
-
}
|
41622
|
-
}
|
41623
|
-
|
41624
|
-
return false;
|
41625
|
-
}
|
41626
|
-
/**
|
41627
|
-
* Coerce `val`.
|
41628
|
-
*
|
41629
|
-
* @param {Mixed} val
|
41630
|
-
* @return {Mixed}
|
41631
|
-
* @api private
|
41632
|
-
*/
|
41633
|
-
|
41634
|
-
|
41635
|
-
function coerce(val) {
|
41636
|
-
if (val instanceof Error) {
|
41637
|
-
return val.stack || val.message;
|
41638
|
-
}
|
41639
|
-
|
41640
|
-
return val;
|
41641
|
-
}
|
41642
|
-
|
41643
|
-
createDebug.enable(createDebug.load());
|
41644
|
-
return createDebug;
|
41645
|
-
}
|
41646
|
-
|
41647
|
-
module.exports = setup;
|
41648
|
-
|
41649
|
-
|
41650
|
-
|
41651
|
-
/***/ }),
|
41652
|
-
|
41653
|
-
/***/ 49064:
|
41654
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
41655
|
-
|
41656
|
-
"use strict";
|
41657
|
-
|
41658
|
-
|
41659
|
-
/**
|
41660
|
-
* Detect Electron renderer / nwjs process, which is node, but we should
|
41661
|
-
* treat as a browser.
|
41662
|
-
*/
|
41663
|
-
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
41664
|
-
module.exports = __webpack_require__(12308);
|
41665
|
-
} else {
|
41666
|
-
module.exports = __webpack_require__(39227);
|
41667
|
-
}
|
41668
|
-
|
41669
|
-
|
41670
|
-
|
41671
|
-
/***/ }),
|
41672
|
-
|
41673
|
-
/***/ 39227:
|
41674
|
-
/***/ ((module, exports, __webpack_require__) => {
|
41675
|
-
|
41676
|
-
"use strict";
|
41677
|
-
|
41678
|
-
|
41679
|
-
/**
|
41680
|
-
* Module dependencies.
|
41681
|
-
*/
|
41682
|
-
var tty = __webpack_require__(33867);
|
41683
|
-
|
41684
|
-
var util = __webpack_require__(31669);
|
41685
|
-
/**
|
41686
|
-
* This is the Node.js implementation of `debug()`.
|
41687
|
-
*/
|
41688
|
-
|
41689
|
-
|
41690
|
-
exports.init = init;
|
41691
|
-
exports.log = log;
|
41692
|
-
exports.formatArgs = formatArgs;
|
41693
|
-
exports.save = save;
|
41694
|
-
exports.load = load;
|
41695
|
-
exports.useColors = useColors;
|
41696
|
-
/**
|
41697
|
-
* Colors.
|
41698
|
-
*/
|
41699
|
-
|
41700
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
41701
|
-
|
41702
|
-
try {
|
41703
|
-
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
41704
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
41705
|
-
var supportsColor = __webpack_require__(96328);
|
41706
|
-
|
41707
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
41708
|
-
exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
41709
|
-
}
|
41710
|
-
} catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
41711
|
-
|
41712
|
-
/**
|
41713
|
-
* Build up the default `inspectOpts` object from the environment variables.
|
41714
|
-
*
|
41715
|
-
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
41716
|
-
*/
|
41717
|
-
|
41718
|
-
|
41719
|
-
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
41720
|
-
return /^debug_/i.test(key);
|
41721
|
-
}).reduce(function (obj, key) {
|
41722
|
-
// Camel-case
|
41723
|
-
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {
|
41724
|
-
return k.toUpperCase();
|
41725
|
-
}); // Coerce string value into JS value
|
41726
|
-
|
41727
|
-
var val = process.env[key];
|
41728
|
-
|
41729
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
41730
|
-
val = true;
|
41731
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
41732
|
-
val = false;
|
41733
|
-
} else if (val === 'null') {
|
41734
|
-
val = null;
|
41735
|
-
} else {
|
41736
|
-
val = Number(val);
|
41737
|
-
}
|
41738
|
-
|
41739
|
-
obj[prop] = val;
|
41740
|
-
return obj;
|
41741
|
-
}, {});
|
41742
|
-
/**
|
41743
|
-
* Is stdout a TTY? Colored output is enabled when `true`.
|
41744
|
-
*/
|
41745
|
-
|
41746
|
-
function useColors() {
|
41747
|
-
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
41748
|
-
}
|
41749
|
-
/**
|
41750
|
-
* Adds ANSI color escape codes if enabled.
|
41751
|
-
*
|
41752
|
-
* @api public
|
41753
|
-
*/
|
41754
|
-
|
41755
|
-
|
41756
|
-
function formatArgs(args) {
|
41757
|
-
var name = this.namespace,
|
41758
|
-
useColors = this.useColors;
|
41759
|
-
|
41760
|
-
if (useColors) {
|
41761
|
-
var c = this.color;
|
41762
|
-
var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
|
41763
|
-
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
|
41764
|
-
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
41765
|
-
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
|
41766
|
-
} else {
|
41767
|
-
args[0] = getDate() + name + ' ' + args[0];
|
41768
|
-
}
|
41769
|
-
}
|
41770
|
-
|
41771
|
-
function getDate() {
|
41772
|
-
if (exports.inspectOpts.hideDate) {
|
41773
|
-
return '';
|
41774
|
-
}
|
41775
|
-
|
41776
|
-
return new Date().toISOString() + ' ';
|
41777
|
-
}
|
41778
|
-
/**
|
41779
|
-
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
41780
|
-
*/
|
41781
|
-
|
41782
|
-
|
41783
|
-
function log() {
|
41784
|
-
return process.stderr.write(util.format.apply(util, arguments) + '\n');
|
41785
|
-
}
|
41786
|
-
/**
|
41787
|
-
* Save `namespaces`.
|
41788
|
-
*
|
41789
|
-
* @param {String} namespaces
|
41790
|
-
* @api private
|
41791
|
-
*/
|
41792
|
-
|
41793
|
-
|
41794
|
-
function save(namespaces) {
|
41795
|
-
if (namespaces) {
|
41796
|
-
process.env.DEBUG = namespaces;
|
41797
|
-
} else {
|
41798
|
-
// If you set a process.env field to null or undefined, it gets cast to the
|
41799
|
-
// string 'null' or 'undefined'. Just delete instead.
|
41800
|
-
delete process.env.DEBUG;
|
41801
|
-
}
|
41802
|
-
}
|
41803
|
-
/**
|
41804
|
-
* Load `namespaces`.
|
41805
|
-
*
|
41806
|
-
* @return {String} returns the previously persisted debug modes
|
41807
|
-
* @api private
|
41808
|
-
*/
|
41809
|
-
|
41810
|
-
|
41811
|
-
function load() {
|
41812
|
-
return process.env.DEBUG;
|
41813
|
-
}
|
41814
|
-
/**
|
41815
|
-
* Init logic for `debug` instances.
|
41816
|
-
*
|
41817
|
-
* Create a new `inspectOpts` object in case `useColors` is set
|
41818
|
-
* differently for a particular `debug` instance.
|
41819
|
-
*/
|
41820
|
-
|
41821
|
-
|
41822
|
-
function init(debug) {
|
41823
|
-
debug.inspectOpts = {};
|
41824
|
-
var keys = Object.keys(exports.inspectOpts);
|
41825
|
-
|
41826
|
-
for (var i = 0; i < keys.length; i++) {
|
41827
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
41828
|
-
}
|
41829
|
-
}
|
41830
|
-
|
41831
|
-
module.exports = __webpack_require__(14878)(exports);
|
41832
|
-
var formatters = module.exports.formatters;
|
41833
|
-
/**
|
41834
|
-
* Map %o to `util.inspect()`, all on a single line.
|
41835
|
-
*/
|
41836
|
-
|
41837
|
-
formatters.o = function (v) {
|
41838
|
-
this.inspectOpts.colors = this.useColors;
|
41839
|
-
return util.inspect(v, this.inspectOpts)
|
41840
|
-
.split('\n')
|
41841
|
-
.map(function (str) { return str.trim(); })
|
41842
|
-
.join(' ');
|
41843
|
-
};
|
41844
|
-
/**
|
41845
|
-
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
41846
|
-
*/
|
41847
|
-
|
41848
|
-
|
41849
|
-
formatters.O = function (v) {
|
41850
|
-
this.inspectOpts.colors = this.useColors;
|
41851
|
-
return util.inspect(v, this.inspectOpts);
|
41852
|
-
};
|
41853
|
-
|
41854
|
-
|
41855
|
-
|
41856
41197
|
/***/ }),
|
41857
41198
|
|
41858
41199
|
/***/ 80279:
|
@@ -42142,7 +41483,7 @@ function setup(env) {
|
|
42142
41483
|
createDebug.disable = disable;
|
42143
41484
|
createDebug.enable = enable;
|
42144
41485
|
createDebug.enabled = enabled;
|
42145
|
-
createDebug.humanize = __webpack_require__(
|
41486
|
+
createDebug.humanize = __webpack_require__(21378);
|
42146
41487
|
|
42147
41488
|
Object.keys(env).forEach(key => {
|
42148
41489
|
createDebug[key] = env[key];
|
@@ -68296,7 +67637,7 @@ return{name,number,description,supported,action,forced,standard};
|
|
68296
67637
|
*/
|
68297
67638
|
|
68298
67639
|
var util = __webpack_require__(31669);
|
68299
|
-
var ms = __webpack_require__(
|
67640
|
+
var ms = __webpack_require__(21378);
|
68300
67641
|
|
68301
67642
|
module.exports = function (t) {
|
68302
67643
|
if (typeof t === 'number') return t;
|
@@ -115784,175 +115125,6 @@ function plural(ms, msAbs, n, name) {
|
|
115784
115125
|
}
|
115785
115126
|
|
115786
115127
|
|
115787
|
-
/***/ }),
|
115788
|
-
|
115789
|
-
/***/ 82801:
|
115790
|
-
/***/ ((module) => {
|
115791
|
-
|
115792
|
-
/**
|
115793
|
-
* Helpers.
|
115794
|
-
*/
|
115795
|
-
|
115796
|
-
var s = 1000;
|
115797
|
-
var m = s * 60;
|
115798
|
-
var h = m * 60;
|
115799
|
-
var d = h * 24;
|
115800
|
-
var w = d * 7;
|
115801
|
-
var y = d * 365.25;
|
115802
|
-
|
115803
|
-
/**
|
115804
|
-
* Parse or format the given `val`.
|
115805
|
-
*
|
115806
|
-
* Options:
|
115807
|
-
*
|
115808
|
-
* - `long` verbose formatting [false]
|
115809
|
-
*
|
115810
|
-
* @param {String|Number} val
|
115811
|
-
* @param {Object} [options]
|
115812
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
115813
|
-
* @return {String|Number}
|
115814
|
-
* @api public
|
115815
|
-
*/
|
115816
|
-
|
115817
|
-
module.exports = function (val, options) {
|
115818
|
-
options = options || {};
|
115819
|
-
var type = typeof val;
|
115820
|
-
if (type === 'string' && val.length > 0) {
|
115821
|
-
return parse(val);
|
115822
|
-
} else if (type === 'number' && isFinite(val)) {
|
115823
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
115824
|
-
}
|
115825
|
-
throw new Error(
|
115826
|
-
'val is not a non-empty string or a valid number. val=' +
|
115827
|
-
JSON.stringify(val)
|
115828
|
-
);
|
115829
|
-
};
|
115830
|
-
|
115831
|
-
/**
|
115832
|
-
* Parse the given `str` and return milliseconds.
|
115833
|
-
*
|
115834
|
-
* @param {String} str
|
115835
|
-
* @return {Number}
|
115836
|
-
* @api private
|
115837
|
-
*/
|
115838
|
-
|
115839
|
-
function parse(str) {
|
115840
|
-
str = String(str);
|
115841
|
-
if (str.length > 100) {
|
115842
|
-
return;
|
115843
|
-
}
|
115844
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
115845
|
-
str
|
115846
|
-
);
|
115847
|
-
if (!match) {
|
115848
|
-
return;
|
115849
|
-
}
|
115850
|
-
var n = parseFloat(match[1]);
|
115851
|
-
var type = (match[2] || 'ms').toLowerCase();
|
115852
|
-
switch (type) {
|
115853
|
-
case 'years':
|
115854
|
-
case 'year':
|
115855
|
-
case 'yrs':
|
115856
|
-
case 'yr':
|
115857
|
-
case 'y':
|
115858
|
-
return n * y;
|
115859
|
-
case 'weeks':
|
115860
|
-
case 'week':
|
115861
|
-
case 'w':
|
115862
|
-
return n * w;
|
115863
|
-
case 'days':
|
115864
|
-
case 'day':
|
115865
|
-
case 'd':
|
115866
|
-
return n * d;
|
115867
|
-
case 'hours':
|
115868
|
-
case 'hour':
|
115869
|
-
case 'hrs':
|
115870
|
-
case 'hr':
|
115871
|
-
case 'h':
|
115872
|
-
return n * h;
|
115873
|
-
case 'minutes':
|
115874
|
-
case 'minute':
|
115875
|
-
case 'mins':
|
115876
|
-
case 'min':
|
115877
|
-
case 'm':
|
115878
|
-
return n * m;
|
115879
|
-
case 'seconds':
|
115880
|
-
case 'second':
|
115881
|
-
case 'secs':
|
115882
|
-
case 'sec':
|
115883
|
-
case 's':
|
115884
|
-
return n * s;
|
115885
|
-
case 'milliseconds':
|
115886
|
-
case 'millisecond':
|
115887
|
-
case 'msecs':
|
115888
|
-
case 'msec':
|
115889
|
-
case 'ms':
|
115890
|
-
return n;
|
115891
|
-
default:
|
115892
|
-
return undefined;
|
115893
|
-
}
|
115894
|
-
}
|
115895
|
-
|
115896
|
-
/**
|
115897
|
-
* Short format for `ms`.
|
115898
|
-
*
|
115899
|
-
* @param {Number} ms
|
115900
|
-
* @return {String}
|
115901
|
-
* @api private
|
115902
|
-
*/
|
115903
|
-
|
115904
|
-
function fmtShort(ms) {
|
115905
|
-
var msAbs = Math.abs(ms);
|
115906
|
-
if (msAbs >= d) {
|
115907
|
-
return Math.round(ms / d) + 'd';
|
115908
|
-
}
|
115909
|
-
if (msAbs >= h) {
|
115910
|
-
return Math.round(ms / h) + 'h';
|
115911
|
-
}
|
115912
|
-
if (msAbs >= m) {
|
115913
|
-
return Math.round(ms / m) + 'm';
|
115914
|
-
}
|
115915
|
-
if (msAbs >= s) {
|
115916
|
-
return Math.round(ms / s) + 's';
|
115917
|
-
}
|
115918
|
-
return ms + 'ms';
|
115919
|
-
}
|
115920
|
-
|
115921
|
-
/**
|
115922
|
-
* Long format for `ms`.
|
115923
|
-
*
|
115924
|
-
* @param {Number} ms
|
115925
|
-
* @return {String}
|
115926
|
-
* @api private
|
115927
|
-
*/
|
115928
|
-
|
115929
|
-
function fmtLong(ms) {
|
115930
|
-
var msAbs = Math.abs(ms);
|
115931
|
-
if (msAbs >= d) {
|
115932
|
-
return plural(ms, msAbs, d, 'day');
|
115933
|
-
}
|
115934
|
-
if (msAbs >= h) {
|
115935
|
-
return plural(ms, msAbs, h, 'hour');
|
115936
|
-
}
|
115937
|
-
if (msAbs >= m) {
|
115938
|
-
return plural(ms, msAbs, m, 'minute');
|
115939
|
-
}
|
115940
|
-
if (msAbs >= s) {
|
115941
|
-
return plural(ms, msAbs, s, 'second');
|
115942
|
-
}
|
115943
|
-
return ms + ' ms';
|
115944
|
-
}
|
115945
|
-
|
115946
|
-
/**
|
115947
|
-
* Pluralization helper.
|
115948
|
-
*/
|
115949
|
-
|
115950
|
-
function plural(ms, msAbs, n, name) {
|
115951
|
-
var isPlural = msAbs >= n * 1.5;
|
115952
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
115953
|
-
}
|
115954
|
-
|
115955
|
-
|
115956
115128
|
/***/ }),
|
115957
115129
|
|
115958
115130
|
/***/ 14666:
|
@@ -181942,7 +181114,7 @@ module.exports.sync = writeFileSync
|
|
181942
181114
|
module.exports._getTmpname = getTmpname // for testing
|
181943
181115
|
module.exports._cleanupOnExit = cleanupOnExit
|
181944
181116
|
|
181945
|
-
var fs = __webpack_require__(
|
181117
|
+
var fs = __webpack_require__(57156)
|
181946
181118
|
var MurmurHash3 = __webpack_require__(3502)
|
181947
181119
|
var onExit = __webpack_require__(7277)
|
181948
181120
|
var path = __webpack_require__(85622)
|
@@ -193027,7 +192199,7 @@ async function main(client) {
|
|
193027
192199
|
}
|
193028
192200
|
output.debug(`Loaded environment variables from "${envPath}"`);
|
193029
192201
|
}
|
193030
|
-
// For Vercel
|
192202
|
+
// For Vercel Speed Insights support
|
193031
192203
|
if (project.settings.analyticsId) {
|
193032
192204
|
envToUnset.add('VERCEL_ANALYTICS_ID');
|
193033
192205
|
process.env.VERCEL_ANALYTICS_ID = project.settings.analyticsId;
|
@@ -194052,6 +193224,7 @@ const help = () => `
|
|
194052
193224
|
-e, --env Include an env var during run time (e.g.: ${chalk_1.default.dim('`-e KEY=value`')}). Can appear many times.
|
194053
193225
|
-b, --build-env Similar to ${chalk_1.default.dim('`--env`')} but for build time only.
|
194054
193226
|
-m, --meta Add metadata for the deployment (e.g.: ${chalk_1.default.dim('`-m KEY=value`')}). Can appear many times.
|
193227
|
+
--no-wait Don't wait for the deployment to finish
|
194055
193228
|
-S, --scope Set a custom scope
|
194056
193229
|
--regions Set default regions to enable the deployment on
|
194057
193230
|
--prod Create a production deployment
|
@@ -194156,6 +193329,7 @@ const validate_archive_format_1 = __webpack_require__(86974);
|
|
194156
193329
|
const parse_env_1 = __webpack_require__(59818);
|
194157
193330
|
const error_utils_1 = __webpack_require__(39799);
|
194158
193331
|
const project_settings_1 = __webpack_require__(61440);
|
193332
|
+
const is_deploying_1 = __webpack_require__(25307);
|
194159
193333
|
exports.default = async (client) => {
|
194160
193334
|
const { output } = client;
|
194161
193335
|
let argv = null;
|
@@ -194173,6 +193347,7 @@ exports.default = async (client) => {
|
|
194173
193347
|
'--prebuilt': Boolean,
|
194174
193348
|
'--prod': Boolean,
|
194175
193349
|
'--archive': String,
|
193350
|
+
'--no-wait': Boolean,
|
194176
193351
|
'--yes': Boolean,
|
194177
193352
|
'-f': '--force',
|
194178
193353
|
'-p': '--public',
|
@@ -194435,10 +193610,15 @@ exports.default = async (client) => {
|
|
194435
193610
|
});
|
194436
193611
|
let deployStamp = (0, stamp_1.default)();
|
194437
193612
|
let deployment = null;
|
193613
|
+
const noWait = !!argv['--no-wait'];
|
194438
193614
|
const localConfigurationOverrides = (0, project_settings_1.pickOverrides)(localConfig);
|
193615
|
+
const name = project ? project.name : newProjectName;
|
193616
|
+
if (!name) {
|
193617
|
+
throw new Error('`name` not found on project or provided by existing project');
|
193618
|
+
}
|
194439
193619
|
try {
|
194440
193620
|
const createArgs = {
|
194441
|
-
name
|
193621
|
+
name,
|
194442
193622
|
env: deploymentEnv,
|
194443
193623
|
build: { env: deploymentBuildEnv },
|
194444
193624
|
forceNew: argv['--force'],
|
@@ -194446,8 +193626,7 @@ exports.default = async (client) => {
|
|
194446
193626
|
prebuilt: argv['--prebuilt'],
|
194447
193627
|
rootDirectory,
|
194448
193628
|
quiet,
|
194449
|
-
wantsPublic: argv['--public'] || localConfig.public,
|
194450
|
-
type: null,
|
193629
|
+
wantsPublic: Boolean(argv['--public'] || localConfig.public),
|
194451
193630
|
nowConfig: {
|
194452
193631
|
...localConfig,
|
194453
193632
|
// `images` is allowed in "vercel.json" and processed
|
@@ -194460,6 +193639,7 @@ exports.default = async (client) => {
|
|
194460
193639
|
deployStamp,
|
194461
193640
|
target,
|
194462
193641
|
skipAutoDetectionConfirmation: autoConfirm,
|
193642
|
+
noWait,
|
194463
193643
|
};
|
194464
193644
|
if (!localConfig.builds || localConfig.builds.length === 0) {
|
194465
193645
|
// Only add projectSettings for zero config deployments
|
@@ -194512,8 +193692,10 @@ exports.default = async (client) => {
|
|
194512
193692
|
output.error(`Running Checks: ${counterList}`);
|
194513
193693
|
return 1;
|
194514
193694
|
}
|
194515
|
-
|
194516
|
-
|
193695
|
+
if (!noWait) {
|
193696
|
+
// get the deployment just to double check that it actually deployed
|
193697
|
+
await (0, get_deployment_1.default)(client, contextName, deployment.id);
|
193698
|
+
}
|
194517
193699
|
if (deployment === null) {
|
194518
193700
|
error('Uploading failed. Please try again.');
|
194519
193701
|
return 1;
|
@@ -194574,7 +193756,7 @@ exports.default = async (client) => {
|
|
194574
193756
|
(0, error_1.handleError)(err);
|
194575
193757
|
return 1;
|
194576
193758
|
}
|
194577
|
-
return printDeploymentStatus(output, client, deployment, deployStamp);
|
193759
|
+
return printDeploymentStatus(output, client, deployment, deployStamp, noWait);
|
194578
193760
|
};
|
194579
193761
|
function handleCreateDeployError(output, error, localConfig) {
|
194580
193762
|
if (error instanceof errors_ts_1.InvalidDomain) {
|
@@ -194640,10 +193822,17 @@ const addProcessEnv = async (log, env) => {
|
|
194640
193822
|
}
|
194641
193823
|
}
|
194642
193824
|
};
|
194643
|
-
const printDeploymentStatus = async (output, client, { readyState, alias: aliasList, aliasError, target, indications, url: deploymentUrl, aliasWarning, }, deployStamp) => {
|
193825
|
+
const printDeploymentStatus = async (output, client, { readyState, alias: aliasList, aliasError, target, indications, url: deploymentUrl, aliasWarning, }, deployStamp, noWait) => {
|
194644
193826
|
indications = indications || [];
|
194645
193827
|
const isProdDeployment = target === 'production';
|
194646
|
-
|
193828
|
+
let isStillBuilding = false;
|
193829
|
+
if (noWait) {
|
193830
|
+
if ((0, is_deploying_1.isDeploying)(readyState)) {
|
193831
|
+
isStillBuilding = true;
|
193832
|
+
output.print((0, emoji_1.prependEmoji)('Note: Deployment is still processing...', (0, emoji_1.emoji)('notice')) + '\n');
|
193833
|
+
}
|
193834
|
+
}
|
193835
|
+
if (!isStillBuilding && readyState !== 'READY') {
|
194647
193836
|
output.error(`Your deployment failed. Please retry later. More: https://err.sh/vercel/deployment-error`);
|
194648
193837
|
return 1;
|
194649
193838
|
}
|
@@ -194653,7 +193842,8 @@ const printDeploymentStatus = async (output, client, { readyState, alias: aliasL
|
|
194653
193842
|
else {
|
194654
193843
|
// print preview/production url
|
194655
193844
|
let previewUrl;
|
194656
|
-
if
|
193845
|
+
// if `noWait` is true, then use the deployment url, not an alias
|
193846
|
+
if (!noWait && Array.isArray(aliasList) && aliasList.length > 0) {
|
194657
193847
|
const previewUrlInfo = await (0, get_preferred_preview_url_1.getPreferredPreviewURL)(client, aliasList);
|
194658
193848
|
if (previewUrlInfo) {
|
194659
193849
|
previewUrl = previewUrlInfo.previewUrl;
|
@@ -196344,7 +195534,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196344
195534
|
};
|
196345
195535
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196346
195536
|
const chalk_1 = __importDefault(__webpack_require__(90877));
|
196347
|
-
const types_1 = __webpack_require__(76210);
|
196348
195537
|
const stamp_1 = __importDefault(__webpack_require__(49079));
|
196349
195538
|
const add_env_record_1 = __importDefault(__webpack_require__(49196));
|
196350
195539
|
const get_env_records_1 = __importDefault(__webpack_require__(72913));
|
@@ -196389,7 +195578,7 @@ async function add(client, project, opts, args, output) {
|
|
196389
195578
|
}
|
196390
195579
|
const { envs } = await (0, get_env_records_1.default)(output, client, project.id, 'vercel-cli:env:add');
|
196391
195580
|
const existing = new Set(envs.filter(r => r.key === envName).map(r => r.target));
|
196392
|
-
const choices =
|
195581
|
+
const choices = env_target_1.envTargetChoices.filter(c => !existing.has(c.value));
|
196393
195582
|
if (choices.length === 0) {
|
196394
195583
|
output.error(`The variable ${(0, param_1.default)(envName)} has already been added to all Environments. To remove, run ${(0, pkg_name_1.getCommandName)(`env rm ${envName}`)}.`);
|
196395
195584
|
return 1;
|
@@ -196421,7 +195610,7 @@ async function add(client, project, opts, args, output) {
|
|
196421
195610
|
if (!stdInput &&
|
196422
195611
|
!envGitBranch &&
|
196423
195612
|
envTargets.length === 1 &&
|
196424
|
-
envTargets[0] ===
|
195613
|
+
envTargets[0] === 'preview') {
|
196425
195614
|
const { inputValue } = await client.prompt({
|
196426
195615
|
type: 'input',
|
196427
195616
|
name: 'inputValue',
|
@@ -196432,7 +195621,7 @@ async function add(client, project, opts, args, output) {
|
|
196432
195621
|
const addStamp = (0, stamp_1.default)();
|
196433
195622
|
try {
|
196434
195623
|
output.spinner('Saving');
|
196435
|
-
await (0, add_env_record_1.default)(output, client, project.id,
|
195624
|
+
await (0, add_env_record_1.default)(output, client, project.id, 'encrypted', envName, envValue, envTargets, envGitBranch);
|
196436
195625
|
}
|
196437
195626
|
catch (err) {
|
196438
195627
|
if ((0, errors_ts_1.isAPIError)(err) && (0, known_error_1.isKnownError)(err)) {
|
@@ -196615,7 +195804,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196615
195804
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196616
195805
|
const chalk_1 = __importDefault(__webpack_require__(90877));
|
196617
195806
|
const ms_1 = __importDefault(__webpack_require__(21378));
|
196618
|
-
const types_1 = __webpack_require__(76210);
|
196619
195807
|
const format_table_1 = __importDefault(__webpack_require__(11759));
|
196620
195808
|
const get_env_records_1 = __importDefault(__webpack_require__(72913));
|
196621
195809
|
const format_env_target_1 = __importDefault(__webpack_require__(17135));
|
@@ -196662,13 +195850,13 @@ function getTable(records) {
|
|
196662
195850
|
}
|
196663
195851
|
function getRow(env) {
|
196664
195852
|
let value;
|
196665
|
-
if (env.type ===
|
195853
|
+
if (env.type === 'plain') {
|
196666
195854
|
// replace space characters (line-break, etc.) with simple spaces
|
196667
195855
|
// to make sure the displayed value is a single line
|
196668
195856
|
const singleLineValue = env.value.replace(/\s/g, ' ');
|
196669
195857
|
value = chalk_1.default.gray((0, ellipsis_1.default)(singleLineValue, 19));
|
196670
195858
|
}
|
196671
|
-
else if (env.type ===
|
195859
|
+
else if (env.type === 'system') {
|
196672
195860
|
value = chalk_1.default.gray.italic(env.value);
|
196673
195861
|
}
|
196674
195862
|
else {
|
@@ -196699,7 +195887,6 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
|
|
196699
195887
|
const fs_extra_1 = __webpack_require__(36365);
|
196700
195888
|
const fs_1 = __webpack_require__(35747);
|
196701
195889
|
const path_1 = __webpack_require__(85622);
|
196702
|
-
const types_1 = __webpack_require__(76210);
|
196703
195890
|
const emoji_1 = __webpack_require__(35172);
|
196704
195891
|
const confirm_1 = __importDefault(__webpack_require__(59320));
|
196705
195892
|
const param_1 = __importDefault(__webpack_require__(20668));
|
@@ -196755,7 +195942,7 @@ async function pull(client, project, environment, opts, args, output, cwd, sourc
|
|
196755
195942
|
const pullStamp = (0, stamp_1.default)();
|
196756
195943
|
output.spinner('Downloading');
|
196757
195944
|
const records = (await (0, get_env_records_1.pullEnvRecords)(output, client, project.id, source, {
|
196758
|
-
target: environment ||
|
195945
|
+
target: environment || 'development',
|
196759
195946
|
gitBranch,
|
196760
195947
|
})).env;
|
196761
195948
|
let deltaString = '';
|
@@ -197625,6 +196812,10 @@ const get_deployment_1 = __importDefault(__webpack_require__(84249));
|
|
197625
196812
|
const title_1 = __importDefault(__webpack_require__(16650));
|
197626
196813
|
const error_utils_1 = __webpack_require__(39799);
|
197627
196814
|
const url_1 = __webpack_require__(78835);
|
196815
|
+
const read_standard_input_1 = __importDefault(__webpack_require__(57317));
|
196816
|
+
const sleep_1 = __importDefault(__webpack_require__(89507));
|
196817
|
+
const ms_1 = __importDefault(__webpack_require__(21378));
|
196818
|
+
const is_deploying_1 = __webpack_require__(25307);
|
197628
196819
|
const help = () => {
|
197629
196820
|
console.log(`
|
197630
196821
|
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} inspect`)} <url>
|
@@ -197638,6 +196829,8 @@ const help = () => {
|
|
197638
196829
|
-d, --debug Debug mode [off]
|
197639
196830
|
--no-color No color mode [off]
|
197640
196831
|
-S, --scope Set a custom scope
|
196832
|
+
--timeout=${chalk_1.default.bold.underline('TIME')} Time to wait for deployment completion [3m]
|
196833
|
+
--wait Blocks until deployment completes
|
197641
196834
|
|
197642
196835
|
${chalk_1.default.dim('Examples:')}
|
197643
196836
|
|
@@ -197648,12 +196841,23 @@ const help = () => {
|
|
197648
196841
|
${chalk_1.default.gray('-')} Get information about the deployment an alias points to
|
197649
196842
|
|
197650
196843
|
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app`)}
|
196844
|
+
|
196845
|
+
${chalk_1.default.gray('-')} Get information about a deployment by piping in the URL
|
196846
|
+
|
196847
|
+
${chalk_1.default.cyan(`$ echo my-deployment.vercel.app | ${(0, pkg_name_1.getPkgName)()} inspect`)}
|
196848
|
+
|
196849
|
+
${chalk_1.default.gray('-')} Wait up to 90 seconds for deployment to complete
|
196850
|
+
|
196851
|
+
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app --wait --timeout 90s`)}
|
197651
196852
|
`);
|
197652
196853
|
};
|
197653
196854
|
async function main(client) {
|
197654
196855
|
let argv;
|
197655
196856
|
try {
|
197656
|
-
argv = (0, get_args_1.default)(client.argv.slice(2)
|
196857
|
+
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
196858
|
+
'--timeout': String,
|
196859
|
+
'--wait': Boolean,
|
196860
|
+
});
|
197657
196861
|
}
|
197658
196862
|
catch (err) {
|
197659
196863
|
(0, error_1.handleError)(err);
|
@@ -197666,11 +196870,25 @@ async function main(client) {
|
|
197666
196870
|
const { print, log, error } = client.output;
|
197667
196871
|
// extract the first parameter
|
197668
196872
|
let [, deploymentIdOrHost] = argv._;
|
197669
|
-
if (
|
196873
|
+
if (!deploymentIdOrHost) {
|
196874
|
+
// if the URL is not passed in, check stdin
|
196875
|
+
// allows cool stuff like `echo my-deployment.vercel.app | vc inspect --wait`
|
196876
|
+
const stdInput = await (0, read_standard_input_1.default)(client.stdin);
|
196877
|
+
if (stdInput) {
|
196878
|
+
deploymentIdOrHost = stdInput;
|
196879
|
+
}
|
196880
|
+
}
|
196881
|
+
if (!deploymentIdOrHost) {
|
197670
196882
|
error(`${(0, pkg_name_1.getCommandName)('inspect <url>')} expects exactly one argument`);
|
197671
196883
|
help();
|
197672
196884
|
return 1;
|
197673
196885
|
}
|
196886
|
+
// validate the timeout
|
196887
|
+
const timeout = (0, ms_1.default)(argv['--timeout'] ?? '3m');
|
196888
|
+
if (timeout === undefined) {
|
196889
|
+
error(`Invalid timeout "${argv['--timeout']}"`);
|
196890
|
+
return 1;
|
196891
|
+
}
|
197674
196892
|
let contextName = null;
|
197675
196893
|
try {
|
197676
196894
|
({ contextName } = await (0, get_scope_1.default)(client));
|
@@ -197689,8 +196907,18 @@ async function main(client) {
|
|
197689
196907
|
}
|
197690
196908
|
catch { }
|
197691
196909
|
client.output.spinner(`Fetching deployment "${deploymentIdOrHost}" in ${chalk_1.default.bold(contextName)}`);
|
196910
|
+
const until = Date.now() + timeout;
|
196911
|
+
const wait = argv['--wait'];
|
197692
196912
|
// resolve the deployment, since we might have been given an alias
|
197693
|
-
|
196913
|
+
let deployment = await (0, get_deployment_1.default)(client, contextName, deploymentIdOrHost);
|
196914
|
+
while (Date.now() < until) {
|
196915
|
+
if (!wait || !(0, is_deploying_1.isDeploying)(deployment.readyState)) {
|
196916
|
+
break;
|
196917
|
+
}
|
196918
|
+
await (0, sleep_1.default)(250);
|
196919
|
+
// check the deployment state again
|
196920
|
+
deployment = await (0, get_deployment_1.default)(client, contextName, deploymentIdOrHost);
|
196921
|
+
}
|
197694
196922
|
const { id, name, url, createdAt, routes, readyState, alias: aliases, } = deployment;
|
197695
196923
|
const { builds } = deployment.version === 2
|
197696
196924
|
? await client.fetch(`/v11/deployments/${id}/builds`)
|
@@ -200142,7 +199370,6 @@ const metrics_1 = __webpack_require__(31113);
|
|
200142
199370
|
const pkg_name_1 = __webpack_require__(79000);
|
200143
199371
|
const prompt_1 = __importDefault(__webpack_require__(75964));
|
200144
199372
|
const box_1 = __importDefault(__webpack_require__(58587));
|
200145
|
-
const isCanary = pkg_1.default.version.includes('canary');
|
200146
199373
|
const VERCEL_DIR = (0, global_path_1.default)();
|
200147
199374
|
const VERCEL_CONFIG_PATH = configFiles.getConfigFilePath();
|
200148
199375
|
const VERCEL_AUTH_CONFIG_PATH = configFiles.getAuthConfigFilePath();
|
@@ -200153,7 +199380,7 @@ source_map_support_1.default.install();
|
|
200153
199380
|
Sentry.init({
|
200154
199381
|
dsn: constants_1.SENTRY_DSN,
|
200155
199382
|
release: `vercel-cli@${pkg_1.default.version}`,
|
200156
|
-
environment:
|
199383
|
+
environment: 'stable',
|
200157
199384
|
});
|
200158
199385
|
let client;
|
200159
199386
|
let output;
|
@@ -200220,7 +199447,7 @@ const main = async () => {
|
|
200220
199447
|
console.log(`${chalk_1.default.grey(`${(0, pkg_name_1.getTitleName)()} CLI ${pkg_1.default.version} ${targetOrSubcommand} (beta) — https://vercel.com/feedback`)}`);
|
200221
199448
|
}
|
200222
199449
|
else {
|
200223
|
-
output.print(`${chalk_1.default.grey(`${(0, pkg_name_1.getTitleName)()} CLI ${pkg_1.default.version}
|
199450
|
+
output.print(`${chalk_1.default.grey(`${(0, pkg_name_1.getTitleName)()} CLI ${pkg_1.default.version}`)}\n`);
|
200224
199451
|
}
|
200225
199452
|
// Handle `--version` directly
|
200226
199453
|
if (!targetOrSubcommand && argv['--version']) {
|
@@ -200663,7 +199890,6 @@ main()
|
|
200663
199890
|
// Check if an update is available. If so, `latest` will contain a string
|
200664
199891
|
// of the latest version, otherwise `undefined`.
|
200665
199892
|
const latest = (0, get_latest_version_1.default)({
|
200666
|
-
distTag: isCanary ? 'canary' : 'latest',
|
200667
199893
|
output,
|
200668
199894
|
pkg: pkg_1.default,
|
200669
199895
|
});
|
@@ -203173,10 +202399,6 @@ async function createGitMeta(directory, output, project) {
|
|
203173
202399
|
if (!remoteUrl) {
|
203174
202400
|
remoteUrl = await getOriginUrl((0, path_1.join)(directory, '.git/config'), output);
|
203175
202401
|
}
|
203176
|
-
// If we can't get the repo URL, then don't return any metadata
|
203177
|
-
if (!remoteUrl) {
|
203178
|
-
return;
|
203179
|
-
}
|
203180
202402
|
const [commitResult, dirtyResult] = await Promise.allSettled([
|
203181
202403
|
getLastCommit(directory),
|
203182
202404
|
isDirty(directory),
|
@@ -203192,7 +202414,7 @@ async function createGitMeta(directory, output, project) {
|
|
203192
202414
|
const dirty = dirtyResult.value;
|
203193
202415
|
const commit = commitResult.value;
|
203194
202416
|
return {
|
203195
|
-
remoteUrl,
|
202417
|
+
remoteUrl: remoteUrl || undefined,
|
203196
202418
|
commitAuthorName: commit.author.name,
|
203197
202419
|
commitMessage: commit.subject,
|
203198
202420
|
commitRef: commit.branch,
|
@@ -203609,6 +202831,37 @@ async function getPreferredPreviewURL(client, aliasList) {
|
|
203609
202831
|
exports.getPreferredPreviewURL = getPreferredPreviewURL;
|
203610
202832
|
|
203611
202833
|
|
202834
|
+
/***/ }),
|
202835
|
+
|
202836
|
+
/***/ 25307:
|
202837
|
+
/***/ ((__unused_webpack_module, exports) => {
|
202838
|
+
|
202839
|
+
"use strict";
|
202840
|
+
|
202841
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202842
|
+
exports.isDeploying = exports.deploymentCompletedStates = exports.deploymentInProgressStates = void 0;
|
202843
|
+
exports.deploymentInProgressStates = [
|
202844
|
+
'QUEUED',
|
202845
|
+
'BUILDING',
|
202846
|
+
'INITIALIZING',
|
202847
|
+
];
|
202848
|
+
exports.deploymentCompletedStates = [
|
202849
|
+
'READY',
|
202850
|
+
'CANCELED',
|
202851
|
+
'ERROR',
|
202852
|
+
];
|
202853
|
+
/**
|
202854
|
+
* Checks if the deployments readyState is considered to be in progress.
|
202855
|
+
* @param readyState The deployment's readyState
|
202856
|
+
* @returns `true` if in a pending deployment state, otherwise `false` if it's
|
202857
|
+
* ready/canceled/errored
|
202858
|
+
*/
|
202859
|
+
function isDeploying(readyState) {
|
202860
|
+
return exports.deploymentInProgressStates.includes(readyState);
|
202861
|
+
}
|
202862
|
+
exports.isDeploying = isDeploying;
|
202863
|
+
|
202864
|
+
|
203612
202865
|
/***/ }),
|
203613
202866
|
|
203614
202867
|
/***/ 43667:
|
@@ -203668,7 +202921,7 @@ const emoji_1 = __webpack_require__(35172);
|
|
203668
202921
|
function printInspectUrl(output, inspectorUrl, deployStamp) {
|
203669
202922
|
output.print((0, emoji_1.prependEmoji)(`Inspect: ${chalk_1.default.bold(inspectorUrl)} ${deployStamp()}`, (0, emoji_1.emoji)('inspect')) + `\n`);
|
203670
202923
|
}
|
203671
|
-
async function processDeployment({ org, cwd, projectName, isSettingUpProject, archive, skipAutoDetectionConfirmation, ...args }) {
|
202924
|
+
async function processDeployment({ org, cwd, projectName, isSettingUpProject, archive, skipAutoDetectionConfirmation, noWait, ...args }) {
|
203672
202925
|
let { now, output, paths, requestBody, deployStamp, force, withCache, quiet, prebuilt, rootDirectory, } = args;
|
203673
202926
|
const { debug } = output;
|
203674
202927
|
const { env = {} } = requestBody;
|
@@ -203750,6 +203003,9 @@ async function processDeployment({ org, cwd, projectName, isSettingUpProject, ar
|
|
203750
203003
|
if (quiet) {
|
203751
203004
|
process.stdout.write(`https://${event.payload.url}`);
|
203752
203005
|
}
|
203006
|
+
if (noWait) {
|
203007
|
+
return event.payload;
|
203008
|
+
}
|
203753
203009
|
output.spinner(event.payload.readyState === 'QUEUED' ? 'Queued' : 'Building', 0);
|
203754
203010
|
}
|
203755
203011
|
if (event.type === 'building') {
|
@@ -204794,10 +204050,8 @@ const cmd_1 = __importDefault(__webpack_require__(62422));
|
|
204794
204050
|
const link_1 = __importDefault(__webpack_require__(39302));
|
204795
204051
|
const sleep_1 = __importDefault(__webpack_require__(89507));
|
204796
204052
|
const path_helpers_1 = __webpack_require__(5410);
|
204797
|
-
const get_dist_tag_1 = __webpack_require__(57112);
|
204798
204053
|
const local_path_1 = __importDefault(__webpack_require__(25723));
|
204799
204054
|
const errors_ts_1 = __webpack_require__(39240);
|
204800
|
-
const pkg_1 = __importDefault(__webpack_require__(42246));
|
204801
204055
|
const link_2 = __webpack_require__(49347);
|
204802
204056
|
const get_files_1 = __webpack_require__(20802);
|
204803
204057
|
const validate_config_1 = __webpack_require__(21144);
|
@@ -205726,7 +204980,7 @@ class DevServer {
|
|
205726
204980
|
const opts = { output: this.output };
|
205727
204981
|
const files = (await (0, get_files_1.staticFiles)(this.cwd, opts)).map(f => (0, path_helpers_1.relative)(this.cwd, f));
|
205728
204982
|
let { builders, warnings, errors, defaultRoutes, redirectRoutes, rewriteRoutes, errorRoutes, } = await (0, fs_detectors_1.detectBuilders)(files, pkg, {
|
205729
|
-
tag:
|
204983
|
+
tag: 'latest',
|
205730
204984
|
functions: vercelConfig.functions,
|
205731
204985
|
projectSettings: projectSettings || this.projectSettings,
|
205732
204986
|
featHandleMiss,
|
@@ -208117,29 +207371,29 @@ function addDeltaSection(prefix, arr, changed = false) {
|
|
208117
207371
|
/***/ }),
|
208118
207372
|
|
208119
207373
|
/***/ 20229:
|
208120
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
207374
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
208121
207375
|
|
208122
207376
|
"use strict";
|
208123
207377
|
|
207378
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
207379
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
207380
|
+
};
|
208124
207381
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
208125
|
-
exports.getEnvTargetPlaceholder = exports.isValidEnvTarget = exports.
|
208126
|
-
const
|
208127
|
-
|
208128
|
-
|
208129
|
-
|
208130
|
-
|
208131
|
-
|
208132
|
-
name: key,
|
208133
|
-
value: value,
|
208134
|
-
}));
|
208135
|
-
}
|
208136
|
-
exports.getEnvTargetChoices = getEnvTargetChoices;
|
207382
|
+
exports.getEnvTargetPlaceholder = exports.isValidEnvTarget = exports.envTargetChoices = void 0;
|
207383
|
+
const constants_1 = __webpack_require__(98551);
|
207384
|
+
const title_1 = __importDefault(__webpack_require__(16650));
|
207385
|
+
exports.envTargetChoices = constants_1.PROJECT_ENV_TARGET.map(t => ({
|
207386
|
+
name: (0, title_1.default)(t),
|
207387
|
+
value: t,
|
207388
|
+
}));
|
208137
207389
|
function isValidEnvTarget(target) {
|
208138
|
-
|
207390
|
+
// Specify `map` returns strings, instead of string constants so `.includes` works
|
207391
|
+
return (typeof target === 'undefined' ||
|
207392
|
+
exports.envTargetChoices.map(c => c.value).includes(target));
|
208139
207393
|
}
|
208140
207394
|
exports.isValidEnvTarget = isValidEnvTarget;
|
208141
207395
|
function getEnvTargetPlaceholder() {
|
208142
|
-
return `<${
|
207396
|
+
return `<${exports.envTargetChoices.map(c => c.value).join(' | ')}>`;
|
208143
207397
|
}
|
208144
207398
|
exports.getEnvTargetPlaceholder = getEnvTargetPlaceholder;
|
208145
207399
|
|
@@ -209731,29 +208985,6 @@ async function getDeployment(client, contextName, hostOrId) {
|
|
209731
208985
|
exports.default = getDeployment;
|
209732
208986
|
|
209733
208987
|
|
209734
|
-
/***/ }),
|
209735
|
-
|
209736
|
-
/***/ 57112:
|
209737
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
209738
|
-
|
209739
|
-
"use strict";
|
209740
|
-
|
209741
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
209742
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
209743
|
-
};
|
209744
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
209745
|
-
exports.getDistTag = void 0;
|
209746
|
-
const semver_1 = __importDefault(__webpack_require__(54373));
|
209747
|
-
function getDistTag(version) {
|
209748
|
-
const parsed = semver_1.default.parse(version);
|
209749
|
-
if (parsed && typeof parsed.prerelease[0] === 'string') {
|
209750
|
-
return parsed.prerelease[0];
|
209751
|
-
}
|
209752
|
-
return 'latest';
|
209753
|
-
}
|
209754
|
-
exports.getDistTag = getDistTag;
|
209755
|
-
|
209756
|
-
|
209757
208988
|
/***/ }),
|
209758
208989
|
|
209759
208990
|
/***/ 20802:
|
@@ -210171,31 +209402,10 @@ exports.default = getSubcommand;
|
|
210171
209402
|
"use strict";
|
210172
209403
|
|
210173
209404
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
210174
|
-
const path_1 = __webpack_require__(85622);
|
210175
209405
|
const fs_extra_1 = __webpack_require__(36365);
|
210176
|
-
const
|
209406
|
+
const path_1 = __webpack_require__(85622);
|
209407
|
+
const build_utils_1 = __webpack_require__(63445);
|
210177
209408
|
const pkg_name_1 = __webpack_require__(79000);
|
210178
|
-
async function isYarn() {
|
210179
|
-
let s;
|
210180
|
-
let binPath = process.argv[1];
|
210181
|
-
// eslint-disable-next-line no-constant-condition
|
210182
|
-
while (true) {
|
210183
|
-
s = await (0, fs_extra_1.lstat)(binPath);
|
210184
|
-
if (s.isSymbolicLink()) {
|
210185
|
-
binPath = (0, path_1.resolve)((0, path_1.dirname)(binPath), await (0, fs_extra_1.readlink)(binPath));
|
210186
|
-
}
|
210187
|
-
else {
|
210188
|
-
break;
|
210189
|
-
}
|
210190
|
-
}
|
210191
|
-
const pkgPath = (0, path_1.join)((0, path_1.dirname)(binPath), '..', 'package.json');
|
210192
|
-
/*
|
210193
|
-
* Generally, pkgPath looks like:
|
210194
|
-
* "/Users/username/.config/yarn/global/node_modules/vercel/package.json"
|
210195
|
-
* "/usr/local/share/.config/yarn/global/node_modules/vercel/package.json"
|
210196
|
-
*/
|
210197
|
-
return pkgPath.includes((0, path_1.join)('yarn', 'global'));
|
210198
|
-
}
|
210199
209409
|
async function getConfigPrefix() {
|
210200
209410
|
const paths = [
|
210201
209411
|
process.env.npm_config_userconfig || process.env.NPM_CONFIG_USERCONFIG,
|
@@ -210234,6 +209444,9 @@ async function isGlobal() {
|
|
210234
209444
|
if (installPath.includes(['', 'yarn', 'global', 'node_modules', ''].join(path_1.sep))) {
|
210235
209445
|
return true;
|
210236
209446
|
}
|
209447
|
+
if (installPath.includes(['', 'pnpm', 'global', ''].join(path_1.sep))) {
|
209448
|
+
return true;
|
209449
|
+
}
|
210237
209450
|
if (installPath.includes(['', 'fnm', 'node-versions', ''].join(path_1.sep))) {
|
210238
209451
|
return true;
|
210239
209452
|
}
|
@@ -210253,16 +209466,24 @@ async function isGlobal() {
|
|
210253
209466
|
}
|
210254
209467
|
}
|
210255
209468
|
async function getUpdateCommand() {
|
210256
|
-
const
|
210257
|
-
const
|
209469
|
+
const pkgAndVersion = `${(0, pkg_name_1.getPkgName)()}@latest`;
|
209470
|
+
const entrypoint = await (0, fs_extra_1.realpath)(process.argv[1]);
|
209471
|
+
let { cliType, lockfilePath } = await (0, build_utils_1.scanParentDirs)((0, path_1.dirname)((0, path_1.dirname)(entrypoint)));
|
209472
|
+
if (!lockfilePath) {
|
209473
|
+
// Global installs for npm do not have a lockfile
|
209474
|
+
cliType = 'npm';
|
209475
|
+
}
|
209476
|
+
const yarn = cliType === 'yarn';
|
209477
|
+
let install = yarn ? 'add' : 'i';
|
210258
209478
|
if (await isGlobal()) {
|
210259
|
-
|
210260
|
-
|
210261
|
-
|
209479
|
+
if (yarn) {
|
209480
|
+
install = 'global add';
|
209481
|
+
}
|
209482
|
+
else {
|
209483
|
+
install = 'i -g';
|
209484
|
+
}
|
210262
209485
|
}
|
210263
|
-
return
|
210264
|
-
? `yarn add ${pkgAndVersion}`
|
210265
|
-
: `npm i ${pkgAndVersion}`;
|
209486
|
+
return `${cliType} ${install} ${pkgAndVersion}`;
|
210266
209487
|
}
|
210267
209488
|
exports.default = getUpdateCommand;
|
210268
209489
|
|
@@ -210308,6 +209529,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
210308
209529
|
};
|
210309
209530
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
210310
209531
|
exports.printRemoteUrls = exports.parseRepoUrl = exports.formatProvider = exports.connectGitProvider = exports.disconnectGitProvider = void 0;
|
209532
|
+
const url_1 = __webpack_require__(78835);
|
210311
209533
|
const chalk_1 = __importDefault(__webpack_require__(90877));
|
210312
209534
|
const link_1 = __importDefault(__webpack_require__(39302));
|
210313
209535
|
const errors_ts_1 = __webpack_require__(39240);
|
@@ -210365,35 +209587,36 @@ function formatProvider(type) {
|
|
210365
209587
|
}
|
210366
209588
|
}
|
210367
209589
|
exports.formatProvider = formatProvider;
|
210368
|
-
function
|
210369
|
-
|
210370
|
-
|
210371
|
-
|
210372
|
-
const provider = /(?<=(\/\/|@)).*(?=(\.com|\.org))/.exec(originUrl)?.[0] ||
|
210373
|
-
originUrl.replace('www.', '').split('.')[0];
|
210374
|
-
if (!provider) {
|
210375
|
-
return null;
|
210376
|
-
}
|
210377
|
-
let org;
|
210378
|
-
let repo;
|
210379
|
-
if (isSSH) {
|
210380
|
-
org = originUrl.split(':')[1].split('/')[0];
|
210381
|
-
repo = originUrl.split('/')[1]?.replace('.git', '');
|
209590
|
+
function getURL(input) {
|
209591
|
+
let url = null;
|
209592
|
+
try {
|
209593
|
+
url = new url_1.URL(input);
|
210382
209594
|
}
|
210383
|
-
|
210384
|
-
|
210385
|
-
|
210386
|
-
|
209595
|
+
catch { }
|
209596
|
+
if (!url) {
|
209597
|
+
// Probably an SSH url, so mangle it into a
|
209598
|
+
// format that the URL constructor works with.
|
209599
|
+
try {
|
209600
|
+
url = new url_1.URL(`ssh://${input.replace(':', '/')}`);
|
209601
|
+
}
|
209602
|
+
catch { }
|
210387
209603
|
}
|
210388
|
-
|
209604
|
+
return url;
|
209605
|
+
}
|
209606
|
+
function parseRepoUrl(originUrl) {
|
209607
|
+
const url = getURL(originUrl);
|
209608
|
+
if (!url)
|
210389
209609
|
return null;
|
210390
|
-
|
210391
|
-
|
210392
|
-
|
210393
|
-
|
210394
|
-
|
210395
|
-
|
210396
|
-
|
209610
|
+
const hostParts = url.hostname.split('.');
|
209611
|
+
if (hostParts.length < 2)
|
209612
|
+
return null;
|
209613
|
+
const provider = hostParts[hostParts.length - 2];
|
209614
|
+
const pathParts = url.pathname.split('/').filter(Boolean);
|
209615
|
+
if (pathParts.length !== 2)
|
209616
|
+
return null;
|
209617
|
+
const org = pathParts[0];
|
209618
|
+
const repo = pathParts[1].replace(/\.git$/, '');
|
209619
|
+
return { url: originUrl, provider, org, repo };
|
210397
209620
|
}
|
210398
209621
|
exports.parseRepoUrl = parseRepoUrl;
|
210399
209622
|
function printRemoteUrls(output, remoteUrls) {
|
@@ -210554,7 +209777,7 @@ class Now extends events_1.default {
|
|
210554
209777
|
// Legacy
|
210555
209778
|
nowConfig: nowConfig = {},
|
210556
209779
|
// Latest
|
210557
|
-
name, project, prebuilt = false, rootDirectory, wantsPublic, meta, gitMetadata, regions, quiet = false, env, build, forceNew = false, withCache = false, target = null, deployStamp, projectSettings, skipAutoDetectionConfirmation, }, org, isSettingUpProject, archive, cwd) {
|
209780
|
+
name, project, prebuilt = false, rootDirectory, wantsPublic, meta, gitMetadata, regions, quiet = false, env, build, forceNew = false, withCache = false, target = null, deployStamp, projectSettings, skipAutoDetectionConfirmation, noWait, }, org, isSettingUpProject, archive, cwd) {
|
210558
209781
|
let hashes = {};
|
210559
209782
|
const uploadStamp = (0, stamp_1.default)();
|
210560
209783
|
let requestBody = {
|
@@ -210592,6 +209815,7 @@ class Now extends events_1.default {
|
|
210592
209815
|
cwd,
|
210593
209816
|
prebuilt,
|
210594
209817
|
rootDirectory,
|
209818
|
+
noWait,
|
210595
209819
|
});
|
210596
209820
|
if (deployment && deployment.warnings) {
|
210597
209821
|
let sizeExceeded = 0;
|
@@ -211949,25 +211173,6 @@ forceLowerCase = false, } = {}) {
|
|
211949
211173
|
exports.default = text;
|
211950
211174
|
|
211951
211175
|
|
211952
|
-
/***/ }),
|
211953
|
-
|
211954
|
-
/***/ 43617:
|
211955
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
211956
|
-
|
211957
|
-
"use strict";
|
211958
|
-
|
211959
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
211960
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
211961
|
-
};
|
211962
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
211963
|
-
exports.isCanary = void 0;
|
211964
|
-
const package_json_1 = __importDefault(__webpack_require__(60306));
|
211965
|
-
function isCanary() {
|
211966
|
-
return package_json_1.default.version.includes('canary');
|
211967
|
-
}
|
211968
|
-
exports.isCanary = isCanary;
|
211969
|
-
|
211970
|
-
|
211971
211176
|
/***/ }),
|
211972
211177
|
|
211973
211178
|
/***/ 82220:
|
@@ -213890,6 +213095,7 @@ const parseEnv = (env) => {
|
|
213890
213095
|
env = [env];
|
213891
213096
|
}
|
213892
213097
|
if (Array.isArray(env)) {
|
213098
|
+
const startingDict = {};
|
213893
213099
|
return env.reduce((o, e) => {
|
213894
213100
|
let key;
|
213895
213101
|
let value;
|
@@ -213901,9 +213107,11 @@ const parseEnv = (env) => {
|
|
213901
213107
|
key = e.slice(0, equalsSign);
|
213902
213108
|
value = e.slice(equalsSign + 1);
|
213903
213109
|
}
|
213904
|
-
|
213110
|
+
if (typeof value !== 'undefined') {
|
213111
|
+
o[key] = value;
|
213112
|
+
}
|
213905
213113
|
return o;
|
213906
|
-
},
|
213114
|
+
}, startingDict);
|
213907
213115
|
}
|
213908
213116
|
// assume it's already an Object
|
213909
213117
|
return env;
|
@@ -215928,19 +215136,11 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
215928
215136
|
|
215929
215137
|
/***/ }),
|
215930
215138
|
|
215931
|
-
/***/ 60306:
|
215932
|
-
/***/ ((module) => {
|
215933
|
-
|
215934
|
-
"use strict";
|
215935
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.18.5\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --bail\",\"test-unit\":\"pnpm test test/unit/\",\"test-e2e\":\"rimraf test/fixtures/integration && pnpm test test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts\",\"test-dev\":\"pnpm test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"6.7.1\",\"@vercel/go\":\"2.4.4\",\"@vercel/hydrogen\":\"0.0.62\",\"@vercel/next\":\"3.7.4\",\"@vercel/node\":\"2.10.3\",\"@vercel/python\":\"3.1.58\",\"@vercel/redwood\":\"1.1.14\",\"@vercel/remix-builder\":\"1.8.4\",\"@vercel/ruby\":\"1.3.75\",\"@vercel/static-build\":\"1.3.23\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/qs\":\"6.9.7\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel-internals/get-package-json\":\"*\",\"@vercel-internals/types\":\"*\",\"@vercel/client\":\"12.4.9\",\"@vercel/error-utils\":\"1.0.9\",\"@vercel/frameworks\":\"1.3.4\",\"@vercel/fs-detectors\":\"3.8.10\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.2.0\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"find-up\":\"4.1.0\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jest-matcher-utils\":\"29.3.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.1.2\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"10.9.1\",\"typescript\":\"4.9.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]}}");
|
215936
|
-
|
215937
|
-
/***/ }),
|
215938
|
-
|
215939
215139
|
/***/ 10391:
|
215940
215140
|
/***/ ((module) => {
|
215941
215141
|
|
215942
215142
|
"use strict";
|
215943
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.4.
|
215143
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.4.11\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"Apache-2.0\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-e2e\":\"pnpm test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"dependencies\":{\"@vercel/build-utils\":\"6.7.1\",\"@vercel/routing-utils\":\"2.2.0\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
|
215944
215144
|
|
215945
215145
|
/***/ }),
|
215946
215146
|
|