vercel 23.1.3-canary.73 → 23.1.3-canary.74
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 +715 -434
- package/package.json +13 -12
package/dist/index.js
CHANGED
@@ -123528,11 +123528,7 @@ const pTryEach = async (array, mapper) => {
|
|
123528
123528
|
throw latestError;
|
123529
123529
|
};
|
123530
123530
|
|
123531
|
-
const
|
123532
|
-
if (typeof target !== 'string') {
|
123533
|
-
throw new TypeError('Expected a `target`');
|
123534
|
-
}
|
123535
|
-
|
123531
|
+
const baseOpen = async options => {
|
123536
123532
|
options = {
|
123537
123533
|
wait: false,
|
123538
123534
|
background: false,
|
@@ -123542,16 +123538,17 @@ const open = async (target, options) => {
|
|
123542
123538
|
};
|
123543
123539
|
|
123544
123540
|
if (Array.isArray(options.app)) {
|
123545
|
-
return pTryEach(options.app, singleApp =>
|
123541
|
+
return pTryEach(options.app, singleApp => baseOpen({
|
123546
123542
|
...options,
|
123547
123543
|
app: singleApp
|
123548
123544
|
}));
|
123549
123545
|
}
|
123550
123546
|
|
123551
123547
|
let {name: app, arguments: appArguments = []} = options.app || {};
|
123548
|
+
appArguments = [...appArguments];
|
123552
123549
|
|
123553
123550
|
if (Array.isArray(app)) {
|
123554
|
-
return pTryEach(app, appName =>
|
123551
|
+
return pTryEach(app, appName => baseOpen({
|
123555
123552
|
...options,
|
123556
123553
|
app: {
|
123557
123554
|
name: appName,
|
@@ -123611,9 +123608,11 @@ const open = async (target, options) => {
|
|
123611
123608
|
// Double quote with double quotes to ensure the inner quotes are passed through.
|
123612
123609
|
// Inner quotes are delimited for PowerShell interpretation with backticks.
|
123613
123610
|
encodedArguments.push(`"\`"${app}\`""`, '-ArgumentList');
|
123614
|
-
|
123615
|
-
|
123616
|
-
|
123611
|
+
if (options.target) {
|
123612
|
+
appArguments.unshift(options.target);
|
123613
|
+
}
|
123614
|
+
} else if (options.target) {
|
123615
|
+
encodedArguments.push(`"${options.target}"`);
|
123617
123616
|
}
|
123618
123617
|
|
123619
123618
|
if (appArguments.length > 0) {
|
@@ -123622,7 +123621,7 @@ const open = async (target, options) => {
|
|
123622
123621
|
}
|
123623
123622
|
|
123624
123623
|
// Using Base64-encoded command, accepted by PowerShell, to allow special characters.
|
123625
|
-
target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
|
123624
|
+
options.target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
|
123626
123625
|
} else {
|
123627
123626
|
if (app) {
|
123628
123627
|
command = app;
|
@@ -123654,7 +123653,9 @@ const open = async (target, options) => {
|
|
123654
123653
|
}
|
123655
123654
|
}
|
123656
123655
|
|
123657
|
-
|
123656
|
+
if (options.target) {
|
123657
|
+
cliArguments.push(options.target);
|
123658
|
+
}
|
123658
123659
|
|
123659
123660
|
if (platform === 'darwin' && appArguments.length > 0) {
|
123660
123661
|
cliArguments.push('--args', ...appArguments);
|
@@ -123682,6 +123683,36 @@ const open = async (target, options) => {
|
|
123682
123683
|
return subprocess;
|
123683
123684
|
};
|
123684
123685
|
|
123686
|
+
const open = (target, options) => {
|
123687
|
+
if (typeof target !== 'string') {
|
123688
|
+
throw new TypeError('Expected a `target`');
|
123689
|
+
}
|
123690
|
+
|
123691
|
+
return baseOpen({
|
123692
|
+
...options,
|
123693
|
+
target
|
123694
|
+
});
|
123695
|
+
};
|
123696
|
+
|
123697
|
+
const openApp = (name, options) => {
|
123698
|
+
if (typeof name !== 'string') {
|
123699
|
+
throw new TypeError('Expected a `name`');
|
123700
|
+
}
|
123701
|
+
|
123702
|
+
const {arguments: appArguments = []} = options || {};
|
123703
|
+
if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
|
123704
|
+
throw new TypeError('Expected `appArguments` as Array type');
|
123705
|
+
}
|
123706
|
+
|
123707
|
+
return baseOpen({
|
123708
|
+
...options,
|
123709
|
+
app: {
|
123710
|
+
name,
|
123711
|
+
arguments: appArguments
|
123712
|
+
}
|
123713
|
+
});
|
123714
|
+
};
|
123715
|
+
|
123685
123716
|
function detectArchBinary(binary) {
|
123686
123717
|
if (typeof binary === 'string' || Array.isArray(binary)) {
|
123687
123718
|
return binary;
|
@@ -123713,7 +123744,7 @@ const apps = {};
|
|
123713
123744
|
defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({
|
123714
123745
|
darwin: 'google chrome',
|
123715
123746
|
win32: 'chrome',
|
123716
|
-
linux: ['google-chrome', 'google-chrome-stable']
|
123747
|
+
linux: ['google-chrome', 'google-chrome-stable', 'chromium']
|
123717
123748
|
}, {
|
123718
123749
|
wsl: {
|
123719
123750
|
ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe',
|
@@ -123732,12 +123763,13 @@ defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({
|
|
123732
123763
|
defineLazyProperty(apps, 'edge', () => detectPlatformBinary({
|
123733
123764
|
darwin: 'microsoft edge',
|
123734
123765
|
win32: 'msedge',
|
123735
|
-
linux: 'microsoft-edge'
|
123766
|
+
linux: ['microsoft-edge', 'microsoft-edge-dev']
|
123736
123767
|
}, {
|
123737
123768
|
wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'
|
123738
123769
|
}));
|
123739
123770
|
|
123740
123771
|
open.apps = apps;
|
123772
|
+
open.openApp = openApp;
|
123741
123773
|
|
123742
123774
|
module.exports = open;
|
123743
123775
|
|
@@ -213071,7 +213103,7 @@ exports.frameworks = [
|
|
213071
213103
|
},
|
213072
213104
|
devCommand: {
|
213073
213105
|
placeholder: 'vite',
|
213074
|
-
value: 'vite',
|
213106
|
+
value: 'vite --port $PORT',
|
213075
213107
|
},
|
213076
213108
|
outputDirectory: {
|
213077
213109
|
value: 'dist',
|
@@ -213181,7 +213213,7 @@ exports.default = def;
|
|
213181
213213
|
/***/ }),
|
213182
213214
|
|
213183
213215
|
/***/ 3734:
|
213184
|
-
/***/ (function(__unused_webpack_module, exports,
|
213216
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_805781__) {
|
213185
213217
|
|
213186
213218
|
"use strict";
|
213187
213219
|
|
@@ -213190,9 +213222,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
213190
213222
|
};
|
213191
213223
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
213192
213224
|
exports.readConfigFile = void 0;
|
213193
|
-
const js_yaml_1 = __importDefault(
|
213194
|
-
const toml_1 = __importDefault(
|
213195
|
-
const fs_1 =
|
213225
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_805781__(641));
|
213226
|
+
const toml_1 = __importDefault(__nested_webpack_require_805781__(9434));
|
213227
|
+
const fs_1 = __nested_webpack_require_805781__(5747);
|
213196
213228
|
const { readFile } = fs_1.promises;
|
213197
213229
|
async function readFileOrNull(file) {
|
213198
213230
|
try {
|
@@ -213241,13 +213273,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
213241
213273
|
/***/ }),
|
213242
213274
|
|
213243
213275
|
/***/ 641:
|
213244
|
-
/***/ ((module, __unused_webpack_exports,
|
213276
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_807387__) => {
|
213245
213277
|
|
213246
213278
|
"use strict";
|
213247
213279
|
|
213248
213280
|
|
213249
213281
|
|
213250
|
-
var yaml =
|
213282
|
+
var yaml = __nested_webpack_require_807387__(9633);
|
213251
213283
|
|
213252
213284
|
|
213253
213285
|
module.exports = yaml;
|
@@ -213256,14 +213288,14 @@ module.exports = yaml;
|
|
213256
213288
|
/***/ }),
|
213257
213289
|
|
213258
213290
|
/***/ 9633:
|
213259
|
-
/***/ ((module, __unused_webpack_exports,
|
213291
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_807561__) => {
|
213260
213292
|
|
213261
213293
|
"use strict";
|
213262
213294
|
|
213263
213295
|
|
213264
213296
|
|
213265
|
-
var loader =
|
213266
|
-
var dumper =
|
213297
|
+
var loader = __nested_webpack_require_807561__(4349);
|
213298
|
+
var dumper = __nested_webpack_require_807561__(8047);
|
213267
213299
|
|
213268
213300
|
|
213269
213301
|
function deprecated(name) {
|
@@ -213273,25 +213305,25 @@ function deprecated(name) {
|
|
213273
213305
|
}
|
213274
213306
|
|
213275
213307
|
|
213276
|
-
module.exports.Type =
|
213277
|
-
module.exports.Schema =
|
213278
|
-
module.exports.FAILSAFE_SCHEMA =
|
213279
|
-
module.exports.JSON_SCHEMA =
|
213280
|
-
module.exports.CORE_SCHEMA =
|
213281
|
-
module.exports.DEFAULT_SAFE_SCHEMA =
|
213282
|
-
module.exports.DEFAULT_FULL_SCHEMA =
|
213308
|
+
module.exports.Type = __nested_webpack_require_807561__(6876);
|
213309
|
+
module.exports.Schema = __nested_webpack_require_807561__(6105);
|
213310
|
+
module.exports.FAILSAFE_SCHEMA = __nested_webpack_require_807561__(8441);
|
213311
|
+
module.exports.JSON_SCHEMA = __nested_webpack_require_807561__(1486);
|
213312
|
+
module.exports.CORE_SCHEMA = __nested_webpack_require_807561__(1112);
|
213313
|
+
module.exports.DEFAULT_SAFE_SCHEMA = __nested_webpack_require_807561__(596);
|
213314
|
+
module.exports.DEFAULT_FULL_SCHEMA = __nested_webpack_require_807561__(9647);
|
213283
213315
|
module.exports.load = loader.load;
|
213284
213316
|
module.exports.loadAll = loader.loadAll;
|
213285
213317
|
module.exports.safeLoad = loader.safeLoad;
|
213286
213318
|
module.exports.safeLoadAll = loader.safeLoadAll;
|
213287
213319
|
module.exports.dump = dumper.dump;
|
213288
213320
|
module.exports.safeDump = dumper.safeDump;
|
213289
|
-
module.exports.YAMLException =
|
213321
|
+
module.exports.YAMLException = __nested_webpack_require_807561__(3237);
|
213290
213322
|
|
213291
213323
|
// Deprecated schema names from JS-YAML 2.0.x
|
213292
|
-
module.exports.MINIMAL_SCHEMA =
|
213293
|
-
module.exports.SAFE_SCHEMA =
|
213294
|
-
module.exports.DEFAULT_SCHEMA =
|
213324
|
+
module.exports.MINIMAL_SCHEMA = __nested_webpack_require_807561__(8441);
|
213325
|
+
module.exports.SAFE_SCHEMA = __nested_webpack_require_807561__(596);
|
213326
|
+
module.exports.DEFAULT_SCHEMA = __nested_webpack_require_807561__(9647);
|
213295
213327
|
|
213296
213328
|
// Deprecated functions from JS-YAML 1.x.x
|
213297
213329
|
module.exports.scan = deprecated('scan');
|
@@ -213370,17 +213402,17 @@ module.exports.extend = extend;
|
|
213370
213402
|
/***/ }),
|
213371
213403
|
|
213372
213404
|
/***/ 8047:
|
213373
|
-
/***/ ((module, __unused_webpack_exports,
|
213405
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_810379__) => {
|
213374
213406
|
|
213375
213407
|
"use strict";
|
213376
213408
|
|
213377
213409
|
|
213378
213410
|
/*eslint-disable no-use-before-define*/
|
213379
213411
|
|
213380
|
-
var common =
|
213381
|
-
var YAMLException =
|
213382
|
-
var DEFAULT_FULL_SCHEMA =
|
213383
|
-
var DEFAULT_SAFE_SCHEMA =
|
213412
|
+
var common = __nested_webpack_require_810379__(903);
|
213413
|
+
var YAMLException = __nested_webpack_require_810379__(3237);
|
213414
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_810379__(9647);
|
213415
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_810379__(596);
|
213384
213416
|
|
213385
213417
|
var _toString = Object.prototype.toString;
|
213386
213418
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -214256,18 +214288,18 @@ module.exports = YAMLException;
|
|
214256
214288
|
/***/ }),
|
214257
214289
|
|
214258
214290
|
/***/ 4349:
|
214259
|
-
/***/ ((module, __unused_webpack_exports,
|
214291
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_838083__) => {
|
214260
214292
|
|
214261
214293
|
"use strict";
|
214262
214294
|
|
214263
214295
|
|
214264
214296
|
/*eslint-disable max-len,no-use-before-define*/
|
214265
214297
|
|
214266
|
-
var common =
|
214267
|
-
var YAMLException =
|
214268
|
-
var Mark =
|
214269
|
-
var DEFAULT_SAFE_SCHEMA =
|
214270
|
-
var DEFAULT_FULL_SCHEMA =
|
214298
|
+
var common = __nested_webpack_require_838083__(903);
|
214299
|
+
var YAMLException = __nested_webpack_require_838083__(3237);
|
214300
|
+
var Mark = __nested_webpack_require_838083__(4926);
|
214301
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_838083__(596);
|
214302
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_838083__(9647);
|
214271
214303
|
|
214272
214304
|
|
214273
214305
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -215889,13 +215921,13 @@ module.exports.safeLoad = safeLoad;
|
|
215889
215921
|
/***/ }),
|
215890
215922
|
|
215891
215923
|
/***/ 4926:
|
215892
|
-
/***/ ((module, __unused_webpack_exports,
|
215924
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_881950__) => {
|
215893
215925
|
|
215894
215926
|
"use strict";
|
215895
215927
|
|
215896
215928
|
|
215897
215929
|
|
215898
|
-
var common =
|
215930
|
+
var common = __nested_webpack_require_881950__(903);
|
215899
215931
|
|
215900
215932
|
|
215901
215933
|
function Mark(name, buffer, position, line, column) {
|
@@ -215973,16 +216005,16 @@ module.exports = Mark;
|
|
215973
216005
|
/***/ }),
|
215974
216006
|
|
215975
216007
|
/***/ 6105:
|
215976
|
-
/***/ ((module, __unused_webpack_exports,
|
216008
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_883612__) => {
|
215977
216009
|
|
215978
216010
|
"use strict";
|
215979
216011
|
|
215980
216012
|
|
215981
216013
|
/*eslint-disable max-len*/
|
215982
216014
|
|
215983
|
-
var common =
|
215984
|
-
var YAMLException =
|
215985
|
-
var Type =
|
216015
|
+
var common = __nested_webpack_require_883612__(903);
|
216016
|
+
var YAMLException = __nested_webpack_require_883612__(3237);
|
216017
|
+
var Type = __nested_webpack_require_883612__(6876);
|
215986
216018
|
|
215987
216019
|
|
215988
216020
|
function compileList(schema, name, result) {
|
@@ -216089,7 +216121,7 @@ module.exports = Schema;
|
|
216089
216121
|
/***/ }),
|
216090
216122
|
|
216091
216123
|
/***/ 1112:
|
216092
|
-
/***/ ((module, __unused_webpack_exports,
|
216124
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_886476__) => {
|
216093
216125
|
|
216094
216126
|
"use strict";
|
216095
216127
|
// Standard YAML's Core schema.
|
@@ -216102,12 +216134,12 @@ module.exports = Schema;
|
|
216102
216134
|
|
216103
216135
|
|
216104
216136
|
|
216105
|
-
var Schema =
|
216137
|
+
var Schema = __nested_webpack_require_886476__(6105);
|
216106
216138
|
|
216107
216139
|
|
216108
216140
|
module.exports = new Schema({
|
216109
216141
|
include: [
|
216110
|
-
|
216142
|
+
__nested_webpack_require_886476__(1486)
|
216111
216143
|
]
|
216112
216144
|
});
|
216113
216145
|
|
@@ -216115,7 +216147,7 @@ module.exports = new Schema({
|
|
216115
216147
|
/***/ }),
|
216116
216148
|
|
216117
216149
|
/***/ 9647:
|
216118
|
-
/***/ ((module, __unused_webpack_exports,
|
216150
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_886946__) => {
|
216119
216151
|
|
216120
216152
|
"use strict";
|
216121
216153
|
// JS-YAML's default schema for `load` function.
|
@@ -216130,17 +216162,17 @@ module.exports = new Schema({
|
|
216130
216162
|
|
216131
216163
|
|
216132
216164
|
|
216133
|
-
var Schema =
|
216165
|
+
var Schema = __nested_webpack_require_886946__(6105);
|
216134
216166
|
|
216135
216167
|
|
216136
216168
|
module.exports = Schema.DEFAULT = new Schema({
|
216137
216169
|
include: [
|
216138
|
-
|
216170
|
+
__nested_webpack_require_886946__(596)
|
216139
216171
|
],
|
216140
216172
|
explicit: [
|
216141
|
-
|
216142
|
-
|
216143
|
-
|
216173
|
+
__nested_webpack_require_886946__(5836),
|
216174
|
+
__nested_webpack_require_886946__(6841),
|
216175
|
+
__nested_webpack_require_886946__(8750)
|
216144
216176
|
]
|
216145
216177
|
});
|
216146
216178
|
|
@@ -216148,7 +216180,7 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
216148
216180
|
/***/ }),
|
216149
216181
|
|
216150
216182
|
/***/ 596:
|
216151
|
-
/***/ ((module, __unused_webpack_exports,
|
216183
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_887640__) => {
|
216152
216184
|
|
216153
216185
|
"use strict";
|
216154
216186
|
// JS-YAML's default schema for `safeLoad` function.
|
@@ -216161,22 +216193,22 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
216161
216193
|
|
216162
216194
|
|
216163
216195
|
|
216164
|
-
var Schema =
|
216196
|
+
var Schema = __nested_webpack_require_887640__(6105);
|
216165
216197
|
|
216166
216198
|
|
216167
216199
|
module.exports = new Schema({
|
216168
216200
|
include: [
|
216169
|
-
|
216201
|
+
__nested_webpack_require_887640__(1112)
|
216170
216202
|
],
|
216171
216203
|
implicit: [
|
216172
|
-
|
216173
|
-
|
216204
|
+
__nested_webpack_require_887640__(7028),
|
216205
|
+
__nested_webpack_require_887640__(7841)
|
216174
216206
|
],
|
216175
216207
|
explicit: [
|
216176
|
-
|
216177
|
-
|
216178
|
-
|
216179
|
-
|
216208
|
+
__nested_webpack_require_887640__(8675),
|
216209
|
+
__nested_webpack_require_887640__(3498),
|
216210
|
+
__nested_webpack_require_887640__(679),
|
216211
|
+
__nested_webpack_require_887640__(7205)
|
216180
216212
|
]
|
216181
216213
|
});
|
216182
216214
|
|
@@ -216184,7 +216216,7 @@ module.exports = new Schema({
|
|
216184
216216
|
/***/ }),
|
216185
216217
|
|
216186
216218
|
/***/ 8441:
|
216187
|
-
/***/ ((module, __unused_webpack_exports,
|
216219
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888352__) => {
|
216188
216220
|
|
216189
216221
|
"use strict";
|
216190
216222
|
// Standard YAML's Failsafe schema.
|
@@ -216194,14 +216226,14 @@ module.exports = new Schema({
|
|
216194
216226
|
|
216195
216227
|
|
216196
216228
|
|
216197
|
-
var Schema =
|
216229
|
+
var Schema = __nested_webpack_require_888352__(6105);
|
216198
216230
|
|
216199
216231
|
|
216200
216232
|
module.exports = new Schema({
|
216201
216233
|
explicit: [
|
216202
|
-
|
216203
|
-
|
216204
|
-
|
216234
|
+
__nested_webpack_require_888352__(5348),
|
216235
|
+
__nested_webpack_require_888352__(7330),
|
216236
|
+
__nested_webpack_require_888352__(293)
|
216205
216237
|
]
|
216206
216238
|
});
|
216207
216239
|
|
@@ -216209,7 +216241,7 @@ module.exports = new Schema({
|
|
216209
216241
|
/***/ }),
|
216210
216242
|
|
216211
216243
|
/***/ 1486:
|
216212
|
-
/***/ ((module, __unused_webpack_exports,
|
216244
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888738__) => {
|
216213
216245
|
|
216214
216246
|
"use strict";
|
216215
216247
|
// Standard YAML's JSON schema.
|
@@ -216223,18 +216255,18 @@ module.exports = new Schema({
|
|
216223
216255
|
|
216224
216256
|
|
216225
216257
|
|
216226
|
-
var Schema =
|
216258
|
+
var Schema = __nested_webpack_require_888738__(6105);
|
216227
216259
|
|
216228
216260
|
|
216229
216261
|
module.exports = new Schema({
|
216230
216262
|
include: [
|
216231
|
-
|
216263
|
+
__nested_webpack_require_888738__(8441)
|
216232
216264
|
],
|
216233
216265
|
implicit: [
|
216234
|
-
|
216235
|
-
|
216236
|
-
|
216237
|
-
|
216266
|
+
__nested_webpack_require_888738__(9074),
|
216267
|
+
__nested_webpack_require_888738__(4308),
|
216268
|
+
__nested_webpack_require_888738__(1167),
|
216269
|
+
__nested_webpack_require_888738__(7862)
|
216238
216270
|
]
|
216239
216271
|
});
|
216240
216272
|
|
@@ -216242,12 +216274,12 @@ module.exports = new Schema({
|
|
216242
216274
|
/***/ }),
|
216243
216275
|
|
216244
216276
|
/***/ 6876:
|
216245
|
-
/***/ ((module, __unused_webpack_exports,
|
216277
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_889436__) => {
|
216246
216278
|
|
216247
216279
|
"use strict";
|
216248
216280
|
|
216249
216281
|
|
216250
|
-
var YAMLException =
|
216282
|
+
var YAMLException = __nested_webpack_require_889436__(3237);
|
216251
216283
|
|
216252
216284
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
216253
216285
|
'kind',
|
@@ -216311,7 +216343,7 @@ module.exports = Type;
|
|
216311
216343
|
/***/ }),
|
216312
216344
|
|
216313
216345
|
/***/ 8675:
|
216314
|
-
/***/ ((module, __unused_webpack_exports,
|
216346
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_891120__) => {
|
216315
216347
|
|
216316
216348
|
"use strict";
|
216317
216349
|
|
@@ -216326,7 +216358,7 @@ try {
|
|
216326
216358
|
NodeBuffer = _require('buffer').Buffer;
|
216327
216359
|
} catch (__) {}
|
216328
216360
|
|
216329
|
-
var Type =
|
216361
|
+
var Type = __nested_webpack_require_891120__(6876);
|
216330
216362
|
|
216331
216363
|
|
216332
216364
|
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
@@ -216457,12 +216489,12 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
|
|
216457
216489
|
/***/ }),
|
216458
216490
|
|
216459
216491
|
/***/ 4308:
|
216460
|
-
/***/ ((module, __unused_webpack_exports,
|
216492
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_894512__) => {
|
216461
216493
|
|
216462
216494
|
"use strict";
|
216463
216495
|
|
216464
216496
|
|
216465
|
-
var Type =
|
216497
|
+
var Type = __nested_webpack_require_894512__(6876);
|
216466
216498
|
|
216467
216499
|
function resolveYamlBoolean(data) {
|
216468
216500
|
if (data === null) return false;
|
@@ -216500,13 +216532,13 @@ module.exports = new Type('tag:yaml.org,2002:bool', {
|
|
216500
216532
|
/***/ }),
|
216501
216533
|
|
216502
216534
|
/***/ 7862:
|
216503
|
-
/***/ ((module, __unused_webpack_exports,
|
216535
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_895585__) => {
|
216504
216536
|
|
216505
216537
|
"use strict";
|
216506
216538
|
|
216507
216539
|
|
216508
|
-
var common =
|
216509
|
-
var Type =
|
216540
|
+
var common = __nested_webpack_require_895585__(903);
|
216541
|
+
var Type = __nested_webpack_require_895585__(6876);
|
216510
216542
|
|
216511
216543
|
var YAML_FLOAT_PATTERN = new RegExp(
|
216512
216544
|
// 2.5e4, 2.5 and integers
|
@@ -216624,13 +216656,13 @@ module.exports = new Type('tag:yaml.org,2002:float', {
|
|
216624
216656
|
/***/ }),
|
216625
216657
|
|
216626
216658
|
/***/ 1167:
|
216627
|
-
/***/ ((module, __unused_webpack_exports,
|
216659
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898531__) => {
|
216628
216660
|
|
216629
216661
|
"use strict";
|
216630
216662
|
|
216631
216663
|
|
216632
|
-
var common =
|
216633
|
-
var Type =
|
216664
|
+
var common = __nested_webpack_require_898531__(903);
|
216665
|
+
var Type = __nested_webpack_require_898531__(6876);
|
216634
216666
|
|
216635
216667
|
function isHexCode(c) {
|
216636
216668
|
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
@@ -216805,7 +216837,7 @@ module.exports = new Type('tag:yaml.org,2002:int', {
|
|
216805
216837
|
/***/ }),
|
216806
216838
|
|
216807
216839
|
/***/ 8750:
|
216808
|
-
/***/ ((module, __unused_webpack_exports,
|
216840
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_902703__) => {
|
216809
216841
|
|
216810
216842
|
"use strict";
|
216811
216843
|
|
@@ -216828,7 +216860,7 @@ try {
|
|
216828
216860
|
if (typeof window !== 'undefined') esprima = window.esprima;
|
216829
216861
|
}
|
216830
216862
|
|
216831
|
-
var Type =
|
216863
|
+
var Type = __nested_webpack_require_902703__(6876);
|
216832
216864
|
|
216833
216865
|
function resolveJavascriptFunction(data) {
|
216834
216866
|
if (data === null) return false;
|
@@ -216905,12 +216937,12 @@ module.exports = new Type('tag:yaml.org,2002:js/function', {
|
|
216905
216937
|
/***/ }),
|
216906
216938
|
|
216907
216939
|
/***/ 6841:
|
216908
|
-
/***/ ((module, __unused_webpack_exports,
|
216940
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_905600__) => {
|
216909
216941
|
|
216910
216942
|
"use strict";
|
216911
216943
|
|
216912
216944
|
|
216913
|
-
var Type =
|
216945
|
+
var Type = __nested_webpack_require_905600__(6876);
|
216914
216946
|
|
216915
216947
|
function resolveJavascriptRegExp(data) {
|
216916
216948
|
if (data === null) return false;
|
@@ -216973,12 +217005,12 @@ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
|
216973
217005
|
/***/ }),
|
216974
217006
|
|
216975
217007
|
/***/ 5836:
|
216976
|
-
/***/ ((module, __unused_webpack_exports,
|
217008
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_907271__) => {
|
216977
217009
|
|
216978
217010
|
"use strict";
|
216979
217011
|
|
216980
217012
|
|
216981
|
-
var Type =
|
217013
|
+
var Type = __nested_webpack_require_907271__(6876);
|
216982
217014
|
|
216983
217015
|
function resolveJavascriptUndefined() {
|
216984
217016
|
return true;
|
@@ -217009,12 +217041,12 @@ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
|
217009
217041
|
/***/ }),
|
217010
217042
|
|
217011
217043
|
/***/ 293:
|
217012
|
-
/***/ ((module, __unused_webpack_exports,
|
217044
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_907942__) => {
|
217013
217045
|
|
217014
217046
|
"use strict";
|
217015
217047
|
|
217016
217048
|
|
217017
|
-
var Type =
|
217049
|
+
var Type = __nested_webpack_require_907942__(6876);
|
217018
217050
|
|
217019
217051
|
module.exports = new Type('tag:yaml.org,2002:map', {
|
217020
217052
|
kind: 'mapping',
|
@@ -217025,12 +217057,12 @@ module.exports = new Type('tag:yaml.org,2002:map', {
|
|
217025
217057
|
/***/ }),
|
217026
217058
|
|
217027
217059
|
/***/ 7841:
|
217028
|
-
/***/ ((module, __unused_webpack_exports,
|
217060
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_908234__) => {
|
217029
217061
|
|
217030
217062
|
"use strict";
|
217031
217063
|
|
217032
217064
|
|
217033
|
-
var Type =
|
217065
|
+
var Type = __nested_webpack_require_908234__(6876);
|
217034
217066
|
|
217035
217067
|
function resolveYamlMerge(data) {
|
217036
217068
|
return data === '<<' || data === null;
|
@@ -217045,12 +217077,12 @@ module.exports = new Type('tag:yaml.org,2002:merge', {
|
|
217045
217077
|
/***/ }),
|
217046
217078
|
|
217047
217079
|
/***/ 9074:
|
217048
|
-
/***/ ((module, __unused_webpack_exports,
|
217080
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_908566__) => {
|
217049
217081
|
|
217050
217082
|
"use strict";
|
217051
217083
|
|
217052
217084
|
|
217053
|
-
var Type =
|
217085
|
+
var Type = __nested_webpack_require_908566__(6876);
|
217054
217086
|
|
217055
217087
|
function resolveYamlNull(data) {
|
217056
217088
|
if (data === null) return true;
|
@@ -217087,12 +217119,12 @@ module.exports = new Type('tag:yaml.org,2002:null', {
|
|
217087
217119
|
/***/ }),
|
217088
217120
|
|
217089
217121
|
/***/ 3498:
|
217090
|
-
/***/ ((module, __unused_webpack_exports,
|
217122
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_909429__) => {
|
217091
217123
|
|
217092
217124
|
"use strict";
|
217093
217125
|
|
217094
217126
|
|
217095
|
-
var Type =
|
217127
|
+
var Type = __nested_webpack_require_909429__(6876);
|
217096
217128
|
|
217097
217129
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
217098
217130
|
var _toString = Object.prototype.toString;
|
@@ -217139,12 +217171,12 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
|
|
217139
217171
|
/***/ }),
|
217140
217172
|
|
217141
217173
|
/***/ 679:
|
217142
|
-
/***/ ((module, __unused_webpack_exports,
|
217174
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_910553__) => {
|
217143
217175
|
|
217144
217176
|
"use strict";
|
217145
217177
|
|
217146
217178
|
|
217147
|
-
var Type =
|
217179
|
+
var Type = __nested_webpack_require_910553__(6876);
|
217148
217180
|
|
217149
217181
|
var _toString = Object.prototype.toString;
|
217150
217182
|
|
@@ -217200,12 +217232,12 @@ module.exports = new Type('tag:yaml.org,2002:pairs', {
|
|
217200
217232
|
/***/ }),
|
217201
217233
|
|
217202
217234
|
/***/ 7330:
|
217203
|
-
/***/ ((module, __unused_webpack_exports,
|
217235
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_911739__) => {
|
217204
217236
|
|
217205
217237
|
"use strict";
|
217206
217238
|
|
217207
217239
|
|
217208
|
-
var Type =
|
217240
|
+
var Type = __nested_webpack_require_911739__(6876);
|
217209
217241
|
|
217210
217242
|
module.exports = new Type('tag:yaml.org,2002:seq', {
|
217211
217243
|
kind: 'sequence',
|
@@ -217216,12 +217248,12 @@ module.exports = new Type('tag:yaml.org,2002:seq', {
|
|
217216
217248
|
/***/ }),
|
217217
217249
|
|
217218
217250
|
/***/ 7205:
|
217219
|
-
/***/ ((module, __unused_webpack_exports,
|
217251
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912032__) => {
|
217220
217252
|
|
217221
217253
|
"use strict";
|
217222
217254
|
|
217223
217255
|
|
217224
|
-
var Type =
|
217256
|
+
var Type = __nested_webpack_require_912032__(6876);
|
217225
217257
|
|
217226
217258
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
217227
217259
|
|
@@ -217253,12 +217285,12 @@ module.exports = new Type('tag:yaml.org,2002:set', {
|
|
217253
217285
|
/***/ }),
|
217254
217286
|
|
217255
217287
|
/***/ 5348:
|
217256
|
-
/***/ ((module, __unused_webpack_exports,
|
217288
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912681__) => {
|
217257
217289
|
|
217258
217290
|
"use strict";
|
217259
217291
|
|
217260
217292
|
|
217261
|
-
var Type =
|
217293
|
+
var Type = __nested_webpack_require_912681__(6876);
|
217262
217294
|
|
217263
217295
|
module.exports = new Type('tag:yaml.org,2002:str', {
|
217264
217296
|
kind: 'scalar',
|
@@ -217269,12 +217301,12 @@ module.exports = new Type('tag:yaml.org,2002:str', {
|
|
217269
217301
|
/***/ }),
|
217270
217302
|
|
217271
217303
|
/***/ 7028:
|
217272
|
-
/***/ ((module, __unused_webpack_exports,
|
217304
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912972__) => {
|
217273
217305
|
|
217274
217306
|
"use strict";
|
217275
217307
|
|
217276
217308
|
|
217277
|
-
var Type =
|
217309
|
+
var Type = __nested_webpack_require_912972__(6876);
|
217278
217310
|
|
217279
217311
|
var YAML_DATE_REGEXP = new RegExp(
|
217280
217312
|
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
@@ -217365,7 +217397,7 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
|
217365
217397
|
/***/ }),
|
217366
217398
|
|
217367
217399
|
/***/ 7276:
|
217368
|
-
/***/ (function(__unused_webpack_module, exports,
|
217400
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_915653__) {
|
217369
217401
|
|
217370
217402
|
"use strict";
|
217371
217403
|
|
@@ -217374,12 +217406,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217374
217406
|
};
|
217375
217407
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217376
217408
|
exports._experimental_updateRoutesManifest = exports._experimental_updateFunctionsManifest = exports._experimental_convertRuntimeToPlugin = void 0;
|
217377
|
-
const fs_extra_1 = __importDefault(
|
217378
|
-
const path_1 =
|
217379
|
-
const glob_1 = __importDefault(
|
217380
|
-
const normalize_path_1 =
|
217381
|
-
const
|
217382
|
-
const _1 = __nested_webpack_require_915640__(2855);
|
217409
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_915653__(5392));
|
217410
|
+
const path_1 = __nested_webpack_require_915653__(5622);
|
217411
|
+
const glob_1 = __importDefault(__nested_webpack_require_915653__(4240));
|
217412
|
+
const normalize_path_1 = __nested_webpack_require_915653__(6261);
|
217413
|
+
const _1 = __nested_webpack_require_915653__(2855);
|
217383
217414
|
// `.output` was already created by the Build Command, so we have
|
217384
217415
|
// to ensure its contents don't get bundled into the Lambda. Similarily,
|
217385
217416
|
// we don't want to bundle anything from `.vercel` either. Lastly,
|
@@ -217462,8 +217493,7 @@ function _experimental_convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217462
217493
|
skipDownload: true,
|
217463
217494
|
},
|
217464
217495
|
});
|
217465
|
-
|
217466
|
-
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
217496
|
+
const lambdaFiles = output.files;
|
217467
217497
|
// When deploying, the `files` that are passed to the Legacy Runtimes already
|
217468
217498
|
// have certain files that are ignored stripped, but locally, that list of
|
217469
217499
|
// files isn't used by the Legacy Runtimes, so we need to apply the filters
|
@@ -217671,12 +217701,12 @@ exports._experimental_updateRoutesManifest = _experimental_updateRoutesManifest;
|
|
217671
217701
|
/***/ }),
|
217672
217702
|
|
217673
217703
|
/***/ 1868:
|
217674
|
-
/***/ ((__unused_webpack_module, exports,
|
217704
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_931560__) => {
|
217675
217705
|
|
217676
217706
|
"use strict";
|
217677
217707
|
|
217678
217708
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217679
|
-
const _1 =
|
217709
|
+
const _1 = __nested_webpack_require_931560__(2855);
|
217680
217710
|
function debug(message, ...additional) {
|
217681
217711
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217682
217712
|
console.log(message, ...additional);
|
@@ -217688,7 +217718,7 @@ exports.default = debug;
|
|
217688
217718
|
/***/ }),
|
217689
217719
|
|
217690
217720
|
/***/ 4246:
|
217691
|
-
/***/ (function(__unused_webpack_module, exports,
|
217721
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_931945__) {
|
217692
217722
|
|
217693
217723
|
"use strict";
|
217694
217724
|
|
@@ -217697,11 +217727,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217697
217727
|
};
|
217698
217728
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217699
217729
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217700
|
-
const minimatch_1 = __importDefault(
|
217701
|
-
const semver_1 =
|
217702
|
-
const path_1 =
|
217703
|
-
const frameworks_1 = __importDefault(
|
217704
|
-
const _1 =
|
217730
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_931945__(9566));
|
217731
|
+
const semver_1 = __nested_webpack_require_931945__(2879);
|
217732
|
+
const path_1 = __nested_webpack_require_931945__(5622);
|
217733
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_931945__(8438));
|
217734
|
+
const _1 = __nested_webpack_require_931945__(2855);
|
217705
217735
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217706
217736
|
// We need to sort the file paths by alphabet to make
|
217707
217737
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -218530,7 +218560,7 @@ function sortFilesBySegmentCount(fileA, fileB) {
|
|
218530
218560
|
/***/ }),
|
218531
218561
|
|
218532
218562
|
/***/ 1182:
|
218533
|
-
/***/ (function(__unused_webpack_module, exports,
|
218563
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_963922__) {
|
218534
218564
|
|
218535
218565
|
"use strict";
|
218536
218566
|
|
@@ -218539,8 +218569,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218539
218569
|
};
|
218540
218570
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218541
218571
|
exports.detectFileSystemAPI = void 0;
|
218542
|
-
const semver_1 = __importDefault(
|
218543
|
-
const _1 =
|
218572
|
+
const semver_1 = __importDefault(__nested_webpack_require_963922__(2879));
|
218573
|
+
const _1 = __nested_webpack_require_963922__(2855);
|
218544
218574
|
const enableFileSystemApiFrameworks = new Set(['solidstart']);
|
218545
218575
|
/**
|
218546
218576
|
* If the Deployment can be built with the new File System API,
|
@@ -218941,7 +218971,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218941
218971
|
/***/ }),
|
218942
218972
|
|
218943
218973
|
/***/ 2397:
|
218944
|
-
/***/ (function(__unused_webpack_module, exports,
|
218974
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_979016__) {
|
218945
218975
|
|
218946
218976
|
"use strict";
|
218947
218977
|
|
@@ -218949,8 +218979,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218949
218979
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218950
218980
|
};
|
218951
218981
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218952
|
-
const assert_1 = __importDefault(
|
218953
|
-
const into_stream_1 = __importDefault(
|
218982
|
+
const assert_1 = __importDefault(__nested_webpack_require_979016__(2357));
|
218983
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_979016__(6130));
|
218954
218984
|
class FileBlob {
|
218955
218985
|
constructor({ mode = 0o100644, contentType, data }) {
|
218956
218986
|
assert_1.default(typeof mode === 'number');
|
@@ -218982,7 +219012,7 @@ exports.default = FileBlob;
|
|
218982
219012
|
/***/ }),
|
218983
219013
|
|
218984
219014
|
/***/ 9331:
|
218985
|
-
/***/ (function(__unused_webpack_module, exports,
|
219015
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_980468__) {
|
218986
219016
|
|
218987
219017
|
"use strict";
|
218988
219018
|
|
@@ -218990,11 +219020,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218990
219020
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218991
219021
|
};
|
218992
219022
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218993
|
-
const assert_1 = __importDefault(
|
218994
|
-
const fs_extra_1 = __importDefault(
|
218995
|
-
const multistream_1 = __importDefault(
|
218996
|
-
const path_1 = __importDefault(
|
218997
|
-
const async_sema_1 = __importDefault(
|
219023
|
+
const assert_1 = __importDefault(__nested_webpack_require_980468__(2357));
|
219024
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_980468__(5392));
|
219025
|
+
const multistream_1 = __importDefault(__nested_webpack_require_980468__(8179));
|
219026
|
+
const path_1 = __importDefault(__nested_webpack_require_980468__(5622));
|
219027
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_980468__(5758));
|
218998
219028
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218999
219029
|
class FileFsRef {
|
219000
219030
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -219060,7 +219090,7 @@ exports.default = FileFsRef;
|
|
219060
219090
|
/***/ }),
|
219061
219091
|
|
219062
219092
|
/***/ 5187:
|
219063
|
-
/***/ (function(__unused_webpack_module, exports,
|
219093
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_983272__) {
|
219064
219094
|
|
219065
219095
|
"use strict";
|
219066
219096
|
|
@@ -219068,11 +219098,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219068
219098
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219069
219099
|
};
|
219070
219100
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219071
|
-
const assert_1 = __importDefault(
|
219072
|
-
const node_fetch_1 = __importDefault(
|
219073
|
-
const multistream_1 = __importDefault(
|
219074
|
-
const async_retry_1 = __importDefault(
|
219075
|
-
const async_sema_1 = __importDefault(
|
219101
|
+
const assert_1 = __importDefault(__nested_webpack_require_983272__(2357));
|
219102
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_983272__(2197));
|
219103
|
+
const multistream_1 = __importDefault(__nested_webpack_require_983272__(8179));
|
219104
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_983272__(3691));
|
219105
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_983272__(5758));
|
219076
219106
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
219077
219107
|
class BailableError extends Error {
|
219078
219108
|
constructor(...args) {
|
@@ -219153,7 +219183,7 @@ exports.default = FileRef;
|
|
219153
219183
|
/***/ }),
|
219154
219184
|
|
219155
219185
|
/***/ 1611:
|
219156
|
-
/***/ (function(__unused_webpack_module, exports,
|
219186
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986673__) {
|
219157
219187
|
|
219158
219188
|
"use strict";
|
219159
219189
|
|
@@ -219162,10 +219192,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219162
219192
|
};
|
219163
219193
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219164
219194
|
exports.isSymbolicLink = void 0;
|
219165
|
-
const path_1 = __importDefault(
|
219166
|
-
const debug_1 = __importDefault(
|
219167
|
-
const file_fs_ref_1 = __importDefault(
|
219168
|
-
const fs_extra_1 =
|
219195
|
+
const path_1 = __importDefault(__nested_webpack_require_986673__(5622));
|
219196
|
+
const debug_1 = __importDefault(__nested_webpack_require_986673__(1868));
|
219197
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_986673__(9331));
|
219198
|
+
const fs_extra_1 = __nested_webpack_require_986673__(5392);
|
219169
219199
|
const S_IFMT = 61440; /* 0170000 type of file */
|
219170
219200
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
219171
219201
|
function isSymbolicLink(mode) {
|
@@ -219227,14 +219257,14 @@ exports.default = download;
|
|
219227
219257
|
/***/ }),
|
219228
219258
|
|
219229
219259
|
/***/ 3838:
|
219230
|
-
/***/ ((__unused_webpack_module, exports,
|
219260
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_989498__) => {
|
219231
219261
|
|
219232
219262
|
"use strict";
|
219233
219263
|
|
219234
219264
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219235
|
-
const path_1 =
|
219236
|
-
const os_1 =
|
219237
|
-
const fs_extra_1 =
|
219265
|
+
const path_1 = __nested_webpack_require_989498__(5622);
|
219266
|
+
const os_1 = __nested_webpack_require_989498__(2087);
|
219267
|
+
const fs_extra_1 = __nested_webpack_require_989498__(5392);
|
219238
219268
|
async function getWritableDirectory() {
|
219239
219269
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
219240
219270
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -219247,7 +219277,7 @@ exports.default = getWritableDirectory;
|
|
219247
219277
|
/***/ }),
|
219248
219278
|
|
219249
219279
|
/***/ 4240:
|
219250
|
-
/***/ (function(__unused_webpack_module, exports,
|
219280
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_990078__) {
|
219251
219281
|
|
219252
219282
|
"use strict";
|
219253
219283
|
|
@@ -219255,13 +219285,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219255
219285
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219256
219286
|
};
|
219257
219287
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219258
|
-
const path_1 = __importDefault(
|
219259
|
-
const assert_1 = __importDefault(
|
219260
|
-
const glob_1 = __importDefault(
|
219261
|
-
const util_1 =
|
219262
|
-
const fs_extra_1 =
|
219263
|
-
const normalize_path_1 =
|
219264
|
-
const file_fs_ref_1 = __importDefault(
|
219288
|
+
const path_1 = __importDefault(__nested_webpack_require_990078__(5622));
|
219289
|
+
const assert_1 = __importDefault(__nested_webpack_require_990078__(2357));
|
219290
|
+
const glob_1 = __importDefault(__nested_webpack_require_990078__(1104));
|
219291
|
+
const util_1 = __nested_webpack_require_990078__(1669);
|
219292
|
+
const fs_extra_1 = __nested_webpack_require_990078__(5392);
|
219293
|
+
const normalize_path_1 = __nested_webpack_require_990078__(6261);
|
219294
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_990078__(9331));
|
219265
219295
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
219266
219296
|
async function glob(pattern, opts, mountpoint) {
|
219267
219297
|
let options;
|
@@ -219307,7 +219337,7 @@ exports.default = glob;
|
|
219307
219337
|
/***/ }),
|
219308
219338
|
|
219309
219339
|
/***/ 7903:
|
219310
|
-
/***/ (function(__unused_webpack_module, exports,
|
219340
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_992274__) {
|
219311
219341
|
|
219312
219342
|
"use strict";
|
219313
219343
|
|
@@ -219316,9 +219346,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219316
219346
|
};
|
219317
219347
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219318
219348
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
219319
|
-
const semver_1 =
|
219320
|
-
const errors_1 =
|
219321
|
-
const debug_1 = __importDefault(
|
219349
|
+
const semver_1 = __nested_webpack_require_992274__(2879);
|
219350
|
+
const errors_1 = __nested_webpack_require_992274__(3983);
|
219351
|
+
const debug_1 = __importDefault(__nested_webpack_require_992274__(1868));
|
219322
219352
|
const allOptions = [
|
219323
219353
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
219324
219354
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -219412,7 +219442,7 @@ exports.normalizePath = normalizePath;
|
|
219412
219442
|
/***/ }),
|
219413
219443
|
|
219414
219444
|
/***/ 7792:
|
219415
|
-
/***/ (function(__unused_webpack_module, exports,
|
219445
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_996142__) {
|
219416
219446
|
|
219417
219447
|
"use strict";
|
219418
219448
|
|
@@ -219421,9 +219451,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219421
219451
|
};
|
219422
219452
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219423
219453
|
exports.readConfigFile = void 0;
|
219424
|
-
const js_yaml_1 = __importDefault(
|
219425
|
-
const toml_1 = __importDefault(
|
219426
|
-
const fs_extra_1 =
|
219454
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_996142__(6540));
|
219455
|
+
const toml_1 = __importDefault(__nested_webpack_require_996142__(9434));
|
219456
|
+
const fs_extra_1 = __nested_webpack_require_996142__(5392);
|
219427
219457
|
async function readFileOrNull(file) {
|
219428
219458
|
try {
|
219429
219459
|
const data = await fs_extra_1.readFile(file);
|
@@ -219478,7 +219508,7 @@ exports.default = rename;
|
|
219478
219508
|
/***/ }),
|
219479
219509
|
|
219480
219510
|
/***/ 1442:
|
219481
|
-
/***/ (function(__unused_webpack_module, exports,
|
219511
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997935__) {
|
219482
219512
|
|
219483
219513
|
"use strict";
|
219484
219514
|
|
@@ -219486,15 +219516,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219486
219516
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219487
219517
|
};
|
219488
219518
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219489
|
-
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
219490
|
-
const assert_1 = __importDefault(
|
219491
|
-
const fs_extra_1 = __importDefault(
|
219492
|
-
const path_1 = __importDefault(
|
219493
|
-
const debug_1 = __importDefault(
|
219494
|
-
const cross_spawn_1 = __importDefault(
|
219495
|
-
const util_1 =
|
219496
|
-
const errors_1 =
|
219497
|
-
const node_version_1 =
|
219519
|
+
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runCustomInstallCommand = exports.getEnvForPackageManager = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
219520
|
+
const assert_1 = __importDefault(__nested_webpack_require_997935__(2357));
|
219521
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_997935__(5392));
|
219522
|
+
const path_1 = __importDefault(__nested_webpack_require_997935__(5622));
|
219523
|
+
const debug_1 = __importDefault(__nested_webpack_require_997935__(1868));
|
219524
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_997935__(7618));
|
219525
|
+
const util_1 = __nested_webpack_require_997935__(1669);
|
219526
|
+
const errors_1 = __nested_webpack_require_997935__(3983);
|
219527
|
+
const node_version_1 = __nested_webpack_require_997935__(7903);
|
219498
219528
|
function spawnAsync(command, args, opts = {}) {
|
219499
219529
|
return new Promise((resolve, reject) => {
|
219500
219530
|
const stderrLogs = [];
|
@@ -219704,36 +219734,66 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
219704
219734
|
const opts = { cwd: destPath, ...spawnOpts };
|
219705
219735
|
const env = opts.env ? { ...opts.env } : { ...process.env };
|
219706
219736
|
delete env.NODE_ENV;
|
219707
|
-
opts.env =
|
219737
|
+
opts.env = getEnvForPackageManager({
|
219738
|
+
cliType,
|
219739
|
+
lockfileVersion,
|
219740
|
+
nodeVersion,
|
219741
|
+
env,
|
219742
|
+
});
|
219708
219743
|
let commandArgs;
|
219709
219744
|
if (cliType === 'npm') {
|
219710
219745
|
opts.prettyCommand = 'npm install';
|
219711
219746
|
commandArgs = args
|
219712
219747
|
.filter(a => a !== '--prefer-offline')
|
219713
219748
|
.concat(['install', '--no-audit', '--unsafe-perm']);
|
219714
|
-
|
219749
|
+
}
|
219750
|
+
else {
|
219751
|
+
opts.prettyCommand = 'yarn install';
|
219752
|
+
commandArgs = ['install', ...args];
|
219753
|
+
}
|
219754
|
+
if (process.env.NPM_ONLY_PRODUCTION) {
|
219755
|
+
commandArgs.push('--production');
|
219756
|
+
}
|
219757
|
+
return spawnAsync(cliType, commandArgs, opts);
|
219758
|
+
}
|
219759
|
+
exports.runNpmInstall = runNpmInstall;
|
219760
|
+
function getEnvForPackageManager({ cliType, lockfileVersion, nodeVersion, env, }) {
|
219761
|
+
const newEnv = { ...env };
|
219762
|
+
if (cliType === 'npm') {
|
219715
219763
|
if (typeof lockfileVersion === 'number' &&
|
219716
219764
|
lockfileVersion >= 2 &&
|
219717
219765
|
((nodeVersion === null || nodeVersion === void 0 ? void 0 : nodeVersion.major) || 0) < 16) {
|
219718
219766
|
// Ensure that npm 7 is at the beginning of the `$PATH`
|
219719
|
-
|
219767
|
+
newEnv.PATH = `/node16/bin-npm7:${env.PATH}`;
|
219720
219768
|
console.log('Detected `package-lock.json` generated by npm 7...');
|
219721
219769
|
}
|
219722
219770
|
}
|
219723
219771
|
else {
|
219724
|
-
opts.prettyCommand = 'yarn install';
|
219725
|
-
commandArgs = ['install', ...args];
|
219726
219772
|
// Yarn v2 PnP mode may be activated, so force "node-modules" linker style
|
219727
219773
|
if (!env.YARN_NODE_LINKER) {
|
219728
|
-
|
219774
|
+
newEnv.YARN_NODE_LINKER = 'node-modules';
|
219729
219775
|
}
|
219730
219776
|
}
|
219731
|
-
|
219732
|
-
commandArgs.push('--production');
|
219733
|
-
}
|
219734
|
-
return spawnAsync(cliType, commandArgs, opts);
|
219777
|
+
return newEnv;
|
219735
219778
|
}
|
219736
|
-
exports.
|
219779
|
+
exports.getEnvForPackageManager = getEnvForPackageManager;
|
219780
|
+
async function runCustomInstallCommand({ destPath, installCommand, nodeVersion, spawnOpts, }) {
|
219781
|
+
console.log(`Running "install" command: \`${installCommand}\`...`);
|
219782
|
+
const { cliType, lockfileVersion } = await scanParentDirs(destPath);
|
219783
|
+
const env = getEnvForPackageManager({
|
219784
|
+
cliType,
|
219785
|
+
lockfileVersion,
|
219786
|
+
nodeVersion,
|
219787
|
+
env: (spawnOpts === null || spawnOpts === void 0 ? void 0 : spawnOpts.env) || {},
|
219788
|
+
});
|
219789
|
+
debug_1.default(`Running with $PATH:`, (env === null || env === void 0 ? void 0 : env.PATH) || '');
|
219790
|
+
await execCommand(installCommand, {
|
219791
|
+
...spawnOpts,
|
219792
|
+
env,
|
219793
|
+
cwd: destPath,
|
219794
|
+
});
|
219795
|
+
}
|
219796
|
+
exports.runCustomInstallCommand = runCustomInstallCommand;
|
219737
219797
|
async function runPackageJsonScript(destPath, scriptNames, spawnOpts) {
|
219738
219798
|
assert_1.default(path_1.default.isAbsolute(destPath));
|
219739
219799
|
const { packageJson, cliType, lockfileVersion } = await scanParentDirs(destPath, true);
|
@@ -219742,21 +219802,24 @@ async function runPackageJsonScript(destPath, scriptNames, spawnOpts) {
|
|
219742
219802
|
return false;
|
219743
219803
|
debug_1.default('Running user script...');
|
219744
219804
|
const runScriptTime = Date.now();
|
219745
|
-
const opts = {
|
219746
|
-
|
219805
|
+
const opts = {
|
219806
|
+
cwd: destPath,
|
219807
|
+
...spawnOpts,
|
219808
|
+
env: getEnvForPackageManager({
|
219809
|
+
cliType,
|
219810
|
+
lockfileVersion,
|
219811
|
+
nodeVersion: undefined,
|
219812
|
+
env: {
|
219813
|
+
...process.env,
|
219814
|
+
...spawnOpts === null || spawnOpts === void 0 ? void 0 : spawnOpts.env,
|
219815
|
+
},
|
219816
|
+
}),
|
219817
|
+
};
|
219747
219818
|
if (cliType === 'npm') {
|
219748
219819
|
opts.prettyCommand = `npm run ${scriptName}`;
|
219749
|
-
if (typeof lockfileVersion === 'number' && lockfileVersion >= 2) {
|
219750
|
-
// Ensure that npm 7 is at the beginning of the `$PATH`
|
219751
|
-
env.PATH = `/node16/bin-npm7:${env.PATH}`;
|
219752
|
-
}
|
219753
219820
|
}
|
219754
219821
|
else {
|
219755
219822
|
opts.prettyCommand = `yarn run ${scriptName}`;
|
219756
|
-
// Yarn v2 PnP mode may be activated, so force "node-modules" linker style
|
219757
|
-
if (!env.YARN_NODE_LINKER) {
|
219758
|
-
env.YARN_NODE_LINKER = 'node-modules';
|
219759
|
-
}
|
219760
219823
|
}
|
219761
219824
|
console.log(`Running "${opts.prettyCommand}"`);
|
219762
219825
|
await spawnAsync(cliType, ['run', scriptName], opts);
|
@@ -219805,7 +219868,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
219805
219868
|
/***/ }),
|
219806
219869
|
|
219807
219870
|
/***/ 2560:
|
219808
|
-
/***/ (function(__unused_webpack_module, exports,
|
219871
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1012804__) {
|
219809
219872
|
|
219810
219873
|
"use strict";
|
219811
219874
|
|
@@ -219813,7 +219876,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219813
219876
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219814
219877
|
};
|
219815
219878
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219816
|
-
const end_of_stream_1 = __importDefault(
|
219879
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1012804__(687));
|
219817
219880
|
function streamToBuffer(stream) {
|
219818
219881
|
return new Promise((resolve, reject) => {
|
219819
219882
|
const buffers = [];
|
@@ -219842,7 +219905,7 @@ exports.default = streamToBuffer;
|
|
219842
219905
|
/***/ }),
|
219843
219906
|
|
219844
219907
|
/***/ 1148:
|
219845
|
-
/***/ (function(__unused_webpack_module, exports,
|
219908
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1013872__) {
|
219846
219909
|
|
219847
219910
|
"use strict";
|
219848
219911
|
|
@@ -219850,9 +219913,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219850
219913
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219851
219914
|
};
|
219852
219915
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219853
|
-
const path_1 = __importDefault(
|
219854
|
-
const fs_extra_1 = __importDefault(
|
219855
|
-
const ignore_1 = __importDefault(
|
219916
|
+
const path_1 = __importDefault(__nested_webpack_require_1013872__(5622));
|
219917
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1013872__(5392));
|
219918
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1013872__(3556));
|
219856
219919
|
function isCodedError(error) {
|
219857
219920
|
return (error !== null &&
|
219858
219921
|
error !== undefined &&
|
@@ -219909,7 +219972,7 @@ exports.default = default_1;
|
|
219909
219972
|
/***/ }),
|
219910
219973
|
|
219911
219974
|
/***/ 2855:
|
219912
|
-
/***/ (function(__unused_webpack_module, exports,
|
219975
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1016254__) {
|
219913
219976
|
|
219914
219977
|
"use strict";
|
219915
219978
|
|
@@ -219939,29 +220002,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219939
220002
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219940
220003
|
};
|
219941
220004
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219942
|
-
exports.
|
219943
|
-
|
220005
|
+
exports.isStaticRuntime = exports.isOfficialRuntime = exports._experimental_updateRoutesManifest = exports._experimental_updateFunctionsManifest = exports._experimental_convertRuntimeToPlugin = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectFileSystemAPI = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
220006
|
+
exports.getPlatformEnv = void 0;
|
220007
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1016254__(2397));
|
219944
220008
|
exports.FileBlob = file_blob_1.default;
|
219945
|
-
const file_fs_ref_1 = __importDefault(
|
220009
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1016254__(9331));
|
219946
220010
|
exports.FileFsRef = file_fs_ref_1.default;
|
219947
|
-
const file_ref_1 = __importDefault(
|
220011
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1016254__(5187));
|
219948
220012
|
exports.FileRef = file_ref_1.default;
|
219949
|
-
const lambda_1 =
|
220013
|
+
const lambda_1 = __nested_webpack_require_1016254__(6721);
|
219950
220014
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
219951
220015
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
219952
220016
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219953
|
-
const prerender_1 =
|
220017
|
+
const prerender_1 = __nested_webpack_require_1016254__(2850);
|
219954
220018
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219955
|
-
const download_1 = __importStar(
|
220019
|
+
const download_1 = __importStar(__nested_webpack_require_1016254__(1611));
|
219956
220020
|
exports.download = download_1.default;
|
219957
220021
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219958
|
-
const get_writable_directory_1 = __importDefault(
|
220022
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1016254__(3838));
|
219959
220023
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219960
|
-
const glob_1 = __importDefault(
|
220024
|
+
const glob_1 = __importDefault(__nested_webpack_require_1016254__(4240));
|
219961
220025
|
exports.glob = glob_1.default;
|
219962
|
-
const rename_1 = __importDefault(
|
220026
|
+
const rename_1 = __importDefault(__nested_webpack_require_1016254__(6718));
|
219963
220027
|
exports.rename = rename_1.default;
|
219964
|
-
const run_user_scripts_1 =
|
220028
|
+
const run_user_scripts_1 = __nested_webpack_require_1016254__(1442);
|
219965
220029
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219966
220030
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219967
220031
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219974,44 +220038,46 @@ Object.defineProperty(exports, "runNpmInstall", ({ enumerable: true, get: functi
|
|
219974
220038
|
Object.defineProperty(exports, "runBundleInstall", ({ enumerable: true, get: function () { return run_user_scripts_1.runBundleInstall; } }));
|
219975
220039
|
Object.defineProperty(exports, "runPipInstall", ({ enumerable: true, get: function () { return run_user_scripts_1.runPipInstall; } }));
|
219976
220040
|
Object.defineProperty(exports, "runShellScript", ({ enumerable: true, get: function () { return run_user_scripts_1.runShellScript; } }));
|
220041
|
+
Object.defineProperty(exports, "runCustomInstallCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.runCustomInstallCommand; } }));
|
220042
|
+
Object.defineProperty(exports, "getEnvForPackageManager", ({ enumerable: true, get: function () { return run_user_scripts_1.getEnvForPackageManager; } }));
|
219977
220043
|
Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeVersion; } }));
|
219978
220044
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219979
220045
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219980
220046
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219981
|
-
const node_version_1 =
|
220047
|
+
const node_version_1 = __nested_webpack_require_1016254__(7903);
|
219982
220048
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219983
220049
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219984
|
-
const errors_1 =
|
219985
|
-
const stream_to_buffer_1 = __importDefault(
|
220050
|
+
const errors_1 = __nested_webpack_require_1016254__(3983);
|
220051
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1016254__(2560));
|
219986
220052
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219987
|
-
const should_serve_1 = __importDefault(
|
220053
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_1016254__(2564));
|
219988
220054
|
exports.shouldServe = should_serve_1.default;
|
219989
|
-
const debug_1 = __importDefault(
|
220055
|
+
const debug_1 = __importDefault(__nested_webpack_require_1016254__(1868));
|
219990
220056
|
exports.debug = debug_1.default;
|
219991
|
-
const get_ignore_filter_1 = __importDefault(
|
220057
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1016254__(1148));
|
219992
220058
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
219993
|
-
var detect_builders_1 =
|
220059
|
+
var detect_builders_1 = __nested_webpack_require_1016254__(4246);
|
219994
220060
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219995
220061
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219996
220062
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219997
220063
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219998
|
-
var detect_file_system_api_1 =
|
220064
|
+
var detect_file_system_api_1 = __nested_webpack_require_1016254__(1182);
|
219999
220065
|
Object.defineProperty(exports, "detectFileSystemAPI", ({ enumerable: true, get: function () { return detect_file_system_api_1.detectFileSystemAPI; } }));
|
220000
|
-
var detect_framework_1 =
|
220066
|
+
var detect_framework_1 = __nested_webpack_require_1016254__(5224);
|
220001
220067
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
220002
|
-
var filesystem_1 =
|
220068
|
+
var filesystem_1 = __nested_webpack_require_1016254__(461);
|
220003
220069
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
220004
|
-
var read_config_file_1 =
|
220070
|
+
var read_config_file_1 = __nested_webpack_require_1016254__(7792);
|
220005
220071
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
220006
|
-
var normalize_path_1 =
|
220072
|
+
var normalize_path_1 = __nested_webpack_require_1016254__(6261);
|
220007
220073
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
220008
|
-
var convert_runtime_to_plugin_1 =
|
220074
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_1016254__(7276);
|
220009
220075
|
Object.defineProperty(exports, "_experimental_convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1._experimental_convertRuntimeToPlugin; } }));
|
220010
220076
|
Object.defineProperty(exports, "_experimental_updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1._experimental_updateFunctionsManifest; } }));
|
220011
220077
|
Object.defineProperty(exports, "_experimental_updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1._experimental_updateRoutesManifest; } }));
|
220012
|
-
__exportStar(
|
220013
|
-
__exportStar(
|
220014
|
-
__exportStar(
|
220078
|
+
__exportStar(__nested_webpack_require_1016254__(2416), exports);
|
220079
|
+
__exportStar(__nested_webpack_require_1016254__(5748), exports);
|
220080
|
+
__exportStar(__nested_webpack_require_1016254__(3983), exports);
|
220015
220081
|
/**
|
220016
220082
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
220017
220083
|
*/
|
@@ -220056,7 +220122,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
220056
220122
|
/***/ }),
|
220057
220123
|
|
220058
220124
|
/***/ 6721:
|
220059
|
-
/***/ (function(__unused_webpack_module, exports,
|
220125
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1027627__) {
|
220060
220126
|
|
220061
220127
|
"use strict";
|
220062
220128
|
|
@@ -220064,19 +220130,36 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
220064
220130
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
220065
220131
|
};
|
220066
220132
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220067
|
-
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda =
|
220068
|
-
const assert_1 = __importDefault(
|
220069
|
-
const async_sema_1 = __importDefault(
|
220070
|
-
const yazl_1 =
|
220071
|
-
const minimatch_1 = __importDefault(
|
220072
|
-
const fs_extra_1 =
|
220073
|
-
const download_1 =
|
220074
|
-
const stream_to_buffer_1 = __importDefault(
|
220075
|
-
exports.FILES_SYMBOL = Symbol('files');
|
220133
|
+
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
220134
|
+
const assert_1 = __importDefault(__nested_webpack_require_1027627__(2357));
|
220135
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1027627__(5758));
|
220136
|
+
const yazl_1 = __nested_webpack_require_1027627__(1223);
|
220137
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1027627__(9566));
|
220138
|
+
const fs_extra_1 = __nested_webpack_require_1027627__(5392);
|
220139
|
+
const download_1 = __nested_webpack_require_1027627__(1611);
|
220140
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1027627__(2560));
|
220076
220141
|
class Lambda {
|
220077
|
-
constructor({
|
220142
|
+
constructor({ files, handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, }) {
|
220143
|
+
assert_1.default(typeof files === 'object', '"files" must be an object');
|
220144
|
+
assert_1.default(typeof handler === 'string', '"handler" is not a string');
|
220145
|
+
assert_1.default(typeof runtime === 'string', '"runtime" is not a string');
|
220146
|
+
assert_1.default(typeof environment === 'object', '"environment" is not an object');
|
220147
|
+
if (memory !== undefined) {
|
220148
|
+
assert_1.default(typeof memory === 'number', '"memory" is not a number');
|
220149
|
+
}
|
220150
|
+
if (maxDuration !== undefined) {
|
220151
|
+
assert_1.default(typeof maxDuration === 'number', '"maxDuration" is not a number');
|
220152
|
+
}
|
220153
|
+
if (allowQuery !== undefined) {
|
220154
|
+
assert_1.default(Array.isArray(allowQuery), '"allowQuery" is not an Array');
|
220155
|
+
assert_1.default(allowQuery.every(q => typeof q === 'string'), '"allowQuery" is not a string Array');
|
220156
|
+
}
|
220157
|
+
if (regions !== undefined) {
|
220158
|
+
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
220159
|
+
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
220160
|
+
}
|
220078
220161
|
this.type = 'Lambda';
|
220079
|
-
this.
|
220162
|
+
this.files = files;
|
220080
220163
|
this.handler = handler;
|
220081
220164
|
this.runtime = runtime;
|
220082
220165
|
this.memory = memory;
|
@@ -220085,48 +220168,31 @@ class Lambda {
|
|
220085
220168
|
this.allowQuery = allowQuery;
|
220086
220169
|
this.regions = regions;
|
220087
220170
|
}
|
220171
|
+
async createZip() {
|
220172
|
+
let { zipBuffer } = this;
|
220173
|
+
if (!zipBuffer) {
|
220174
|
+
await sema.acquire();
|
220175
|
+
try {
|
220176
|
+
zipBuffer = await createZip(this.files);
|
220177
|
+
}
|
220178
|
+
finally {
|
220179
|
+
sema.release();
|
220180
|
+
}
|
220181
|
+
}
|
220182
|
+
return zipBuffer;
|
220183
|
+
}
|
220088
220184
|
}
|
220089
220185
|
exports.Lambda = Lambda;
|
220090
220186
|
const sema = new async_sema_1.default(10);
|
220091
220187
|
const mtime = new Date(1540000000000);
|
220092
|
-
|
220093
|
-
|
220094
|
-
|
220095
|
-
|
220096
|
-
|
220097
|
-
|
220098
|
-
|
220099
|
-
|
220100
|
-
if (maxDuration !== undefined) {
|
220101
|
-
assert_1.default(typeof maxDuration === 'number', '"maxDuration" is not a number');
|
220102
|
-
}
|
220103
|
-
if (allowQuery !== undefined) {
|
220104
|
-
assert_1.default(Array.isArray(allowQuery), '"allowQuery" is not an Array');
|
220105
|
-
assert_1.default(allowQuery.every(q => typeof q === 'string'), '"allowQuery" is not a string Array');
|
220106
|
-
}
|
220107
|
-
if (regions !== undefined) {
|
220108
|
-
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
220109
|
-
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
220110
|
-
}
|
220111
|
-
await sema.acquire();
|
220112
|
-
try {
|
220113
|
-
const zipBuffer = await createZip(files);
|
220114
|
-
const lambda = new Lambda({
|
220115
|
-
zipBuffer,
|
220116
|
-
handler,
|
220117
|
-
runtime,
|
220118
|
-
memory,
|
220119
|
-
maxDuration,
|
220120
|
-
environment,
|
220121
|
-
regions,
|
220122
|
-
});
|
220123
|
-
// @ts-ignore This symbol is a private API
|
220124
|
-
lambda[exports.FILES_SYMBOL] = files;
|
220125
|
-
return lambda;
|
220126
|
-
}
|
220127
|
-
finally {
|
220128
|
-
sema.release();
|
220129
|
-
}
|
220188
|
+
/**
|
220189
|
+
* @deprecated Use `new Lambda()` instead.
|
220190
|
+
*/
|
220191
|
+
async function createLambda(opts) {
|
220192
|
+
const lambda = new Lambda(opts);
|
220193
|
+
// backwards compat
|
220194
|
+
lambda.zipBuffer = await lambda.createZip();
|
220195
|
+
return lambda;
|
220130
220196
|
}
|
220131
220197
|
exports.createLambda = createLambda;
|
220132
220198
|
async function createZip(files) {
|
@@ -220161,7 +220227,7 @@ async function createZip(files) {
|
|
220161
220227
|
}
|
220162
220228
|
exports.createZip = createZip;
|
220163
220229
|
async function getLambdaOptionsFromFunction({ sourceFile, config, }) {
|
220164
|
-
if (config
|
220230
|
+
if (config === null || config === void 0 ? void 0 : config.functions) {
|
220165
220231
|
for (const [pattern, fn] of Object.entries(config.functions)) {
|
220166
220232
|
if (sourceFile === pattern || minimatch_1.default(sourceFile, pattern)) {
|
220167
220233
|
return {
|
@@ -220300,12 +220366,12 @@ exports.buildsSchema = {
|
|
220300
220366
|
/***/ }),
|
220301
220367
|
|
220302
220368
|
/***/ 2564:
|
220303
|
-
/***/ ((__unused_webpack_module, exports,
|
220369
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1036130__) => {
|
220304
220370
|
|
220305
220371
|
"use strict";
|
220306
220372
|
|
220307
220373
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220308
|
-
const path_1 =
|
220374
|
+
const path_1 = __nested_webpack_require_1036130__(5622);
|
220309
220375
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
220310
220376
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
220311
220377
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -220534,7 +220600,7 @@ module.exports = __webpack_require__(78761);
|
|
220534
220600
|
/******/ var __webpack_module_cache__ = {};
|
220535
220601
|
/******/
|
220536
220602
|
/******/ // The require function
|
220537
|
-
/******/ function
|
220603
|
+
/******/ function __nested_webpack_require_1135769__(moduleId) {
|
220538
220604
|
/******/ // Check if module is in cache
|
220539
220605
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
220540
220606
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -220549,7 +220615,7 @@ module.exports = __webpack_require__(78761);
|
|
220549
220615
|
/******/ // Execute the module function
|
220550
220616
|
/******/ var threw = true;
|
220551
220617
|
/******/ try {
|
220552
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
220618
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1135769__);
|
220553
220619
|
/******/ threw = false;
|
220554
220620
|
/******/ } finally {
|
220555
220621
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -220562,11 +220628,11 @@ module.exports = __webpack_require__(78761);
|
|
220562
220628
|
/************************************************************************/
|
220563
220629
|
/******/ /* webpack/runtime/compat */
|
220564
220630
|
/******/
|
220565
|
-
/******/
|
220631
|
+
/******/ __nested_webpack_require_1135769__.ab = __dirname + "/";/************************************************************************/
|
220566
220632
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
220567
220633
|
/******/ // startup
|
220568
220634
|
/******/ // Load entry module and return exports
|
220569
|
-
/******/ return
|
220635
|
+
/******/ return __nested_webpack_require_1135769__(2855);
|
220570
220636
|
/******/ })()
|
220571
220637
|
;
|
220572
220638
|
|
@@ -244615,7 +244681,7 @@ exports.frameworks = [
|
|
244615
244681
|
},
|
244616
244682
|
devCommand: {
|
244617
244683
|
placeholder: 'vite',
|
244618
|
-
value: 'vite',
|
244684
|
+
value: 'vite --port $PORT',
|
244619
244685
|
},
|
244620
244686
|
outputDirectory: {
|
244621
244687
|
value: 'dist',
|
@@ -250290,7 +250356,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
250290
250356
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
250291
250357
|
const ERRORS = __importStar(__webpack_require__(60156));
|
250292
250358
|
const assign_alias_1 = __importDefault(__webpack_require__(30791));
|
250293
|
-
const format_ns_table_1 = __importDefault(__webpack_require__(91498));
|
250294
250359
|
const get_deployment_by_id_or_host_1 = __importDefault(__webpack_require__(71698));
|
250295
250360
|
const get_deployment_by_alias_1 = __webpack_require__(44333);
|
250296
250361
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
@@ -250398,15 +250463,6 @@ async function set(client, opts, args) {
|
|
250398
250463
|
}
|
250399
250464
|
exports.default = set;
|
250400
250465
|
function handleSetupDomainError(output, error) {
|
250401
|
-
if (error instanceof ERRORS.DomainVerificationFailed ||
|
250402
|
-
error instanceof ERRORS.DomainNsNotVerifiedForWildcard) {
|
250403
|
-
const { nsVerification, domain } = error.meta;
|
250404
|
-
output.error(`We could not alias since the domain ${domain} could not be verified due to the following reasons:\n`);
|
250405
|
-
output.print(`Nameservers verification failed since we see a different set than the intended set:`);
|
250406
|
-
output.print(`\n${format_ns_table_1.default(nsVerification.intendedNameservers, nsVerification.nameservers, { extraSpace: ' ' })}\n\n`);
|
250407
|
-
output.print(' Read more: https://err.sh/vercel/domain-verification\n');
|
250408
|
-
return 1;
|
250409
|
-
}
|
250410
250466
|
if (error instanceof ERRORS.DomainPermissionDenied) {
|
250411
250467
|
output.error(`You don't have permissions over domain ${chalk_1.default.underline(error.meta.domain)} under ${chalk_1.default.bold(error.meta.context)}.`);
|
250412
250468
|
return 1;
|
@@ -250519,6 +250575,344 @@ function getTargetsForAlias(args, { alias } = {}) {
|
|
250519
250575
|
}
|
250520
250576
|
|
250521
250577
|
|
250578
|
+
/***/ }),
|
250579
|
+
|
250580
|
+
/***/ 76792:
|
250581
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
250582
|
+
|
250583
|
+
"use strict";
|
250584
|
+
|
250585
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
250586
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
250587
|
+
};
|
250588
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
250589
|
+
const open_1 = __importDefault(__webpack_require__(28884));
|
250590
|
+
const boxen_1 = __importDefault(__webpack_require__(30396));
|
250591
|
+
const execa_1 = __importDefault(__webpack_require__(94237));
|
250592
|
+
const pluralize_1 = __importDefault(__webpack_require__(31974));
|
250593
|
+
const inquirer_1 = __importDefault(__webpack_require__(64016));
|
250594
|
+
const path_1 = __webpack_require__(85622);
|
250595
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
250596
|
+
const url_1 = __webpack_require__(78835);
|
250597
|
+
const sleep_1 = __importDefault(__webpack_require__(35873));
|
250598
|
+
const format_date_1 = __importDefault(__webpack_require__(17215));
|
250599
|
+
const link_1 = __importDefault(__webpack_require__(98472));
|
250600
|
+
const logo_1 = __importDefault(__webpack_require__(9829));
|
250601
|
+
const get_args_1 = __importDefault(__webpack_require__(87612));
|
250602
|
+
const pkg_name_1 = __webpack_require__(98106);
|
250603
|
+
const pkgName = pkg_name_1.getPkgName();
|
250604
|
+
const help = () => {
|
250605
|
+
console.log(`
|
250606
|
+
${chalk_1.default.bold(`${logo_1.default} ${pkgName} bisect`)} [options]
|
250607
|
+
|
250608
|
+
${chalk_1.default.dim('Options:')}
|
250609
|
+
|
250610
|
+
-h, --help Output usage information
|
250611
|
+
-d, --debug Debug mode [off]
|
250612
|
+
-b, --bad Known bad URL
|
250613
|
+
-g, --good Known good URL
|
250614
|
+
-o, --open Automatically open each URL in the browser
|
250615
|
+
-p, --path Subpath of the deployment URL to test
|
250616
|
+
-r, --run Test script to run for each deployment
|
250617
|
+
|
250618
|
+
${chalk_1.default.dim('Examples:')}
|
250619
|
+
|
250620
|
+
${chalk_1.default.gray('–')} Bisect the current project interactively
|
250621
|
+
|
250622
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect`)}
|
250623
|
+
|
250624
|
+
${chalk_1.default.gray('–')} Bisect with a known bad deployment
|
250625
|
+
|
250626
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect --bad example-310pce9i0.vercel.app`)}
|
250627
|
+
|
250628
|
+
${chalk_1.default.gray('–')} Bisect specifying a deployment that was working 3 days ago
|
250629
|
+
|
250630
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect --good 3d`)}
|
250631
|
+
|
250632
|
+
${chalk_1.default.gray('–')} Automated bisect with a run script
|
250633
|
+
|
250634
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect --run ./test.sh`)}
|
250635
|
+
`);
|
250636
|
+
};
|
250637
|
+
async function main(client) {
|
250638
|
+
const { output } = client;
|
250639
|
+
const argv = get_args_1.default(client.argv.slice(2), {
|
250640
|
+
'--bad': String,
|
250641
|
+
'-b': '--bad',
|
250642
|
+
'--good': String,
|
250643
|
+
'-g': '--good',
|
250644
|
+
'--open': Boolean,
|
250645
|
+
'-o': '--open',
|
250646
|
+
'--path': String,
|
250647
|
+
'-p': '--path',
|
250648
|
+
'--run': String,
|
250649
|
+
'-r': '--run',
|
250650
|
+
});
|
250651
|
+
if (argv['--help']) {
|
250652
|
+
help();
|
250653
|
+
return 2;
|
250654
|
+
}
|
250655
|
+
let bad = argv['--bad'] ||
|
250656
|
+
(await prompt(output, `Specify a URL where the bug occurs:`));
|
250657
|
+
let good = argv['--good'] ||
|
250658
|
+
(await prompt(output, `Specify a URL where the bug does not occur:`));
|
250659
|
+
let subpath = argv['--path'] || '';
|
250660
|
+
let run = argv['--run'] || '';
|
250661
|
+
const openEnabled = argv['--open'] || false;
|
250662
|
+
if (run) {
|
250663
|
+
run = path_1.resolve(run);
|
250664
|
+
}
|
250665
|
+
if (!bad.startsWith('https://')) {
|
250666
|
+
bad = `https://${bad}`;
|
250667
|
+
}
|
250668
|
+
let parsed = url_1.parse(bad);
|
250669
|
+
if (!parsed.hostname) {
|
250670
|
+
output.error('Invalid input: no hostname provided');
|
250671
|
+
return 1;
|
250672
|
+
}
|
250673
|
+
bad = parsed.hostname;
|
250674
|
+
if (typeof parsed.path === 'string' && parsed.path !== '/') {
|
250675
|
+
if (subpath && subpath !== parsed.path) {
|
250676
|
+
output.note(`Ignoring subpath ${chalk_1.default.bold(parsed.path)} in favor of \`--path\` argument ${chalk_1.default.bold(subpath)}`);
|
250677
|
+
}
|
250678
|
+
else {
|
250679
|
+
subpath = parsed.path;
|
250680
|
+
}
|
250681
|
+
}
|
250682
|
+
const badDeploymentPromise = getDeployment(client, bad).catch(err => err);
|
250683
|
+
if (!good.startsWith('https://')) {
|
250684
|
+
good = `https://${good}`;
|
250685
|
+
}
|
250686
|
+
parsed = url_1.parse(good);
|
250687
|
+
if (!parsed.hostname) {
|
250688
|
+
output.error('Invalid input: no hostname provided');
|
250689
|
+
return 1;
|
250690
|
+
}
|
250691
|
+
good = parsed.hostname;
|
250692
|
+
if (typeof parsed.path === 'string' &&
|
250693
|
+
parsed.path !== '/' &&
|
250694
|
+
subpath &&
|
250695
|
+
subpath !== parsed.path) {
|
250696
|
+
output.note(`Ignoring subpath ${chalk_1.default.bold(parsed.path)} which does not match ${chalk_1.default.bold(subpath)}`);
|
250697
|
+
}
|
250698
|
+
const goodDeploymentPromise = getDeployment(client, good).catch(err => err);
|
250699
|
+
if (!subpath) {
|
250700
|
+
subpath = await prompt(output, `Specify the URL subpath where the bug occurs:`);
|
250701
|
+
}
|
250702
|
+
output.spinner('Retrieving deployments…');
|
250703
|
+
const [badDeployment, goodDeployment] = await Promise.all([
|
250704
|
+
badDeploymentPromise,
|
250705
|
+
goodDeploymentPromise,
|
250706
|
+
]);
|
250707
|
+
if (badDeployment) {
|
250708
|
+
if (badDeployment instanceof Error) {
|
250709
|
+
badDeployment.message += ` "${bad}"`;
|
250710
|
+
output.prettyError(badDeployment);
|
250711
|
+
return 1;
|
250712
|
+
}
|
250713
|
+
bad = badDeployment.url;
|
250714
|
+
}
|
250715
|
+
else {
|
250716
|
+
output.error(`Failed to retrieve ${chalk_1.default.bold('bad')} Deployment: ${bad}`);
|
250717
|
+
return 1;
|
250718
|
+
}
|
250719
|
+
const { projectId } = badDeployment;
|
250720
|
+
if (goodDeployment) {
|
250721
|
+
if (goodDeployment instanceof Error) {
|
250722
|
+
goodDeployment.message += ` "${good}"`;
|
250723
|
+
output.prettyError(goodDeployment);
|
250724
|
+
return 1;
|
250725
|
+
}
|
250726
|
+
good = goodDeployment.url;
|
250727
|
+
}
|
250728
|
+
else {
|
250729
|
+
output.error(`Failed to retrieve ${chalk_1.default.bold('good')} Deployment: ${good}`);
|
250730
|
+
return 1;
|
250731
|
+
}
|
250732
|
+
if (projectId !== goodDeployment.projectId) {
|
250733
|
+
output.error(`Good and Bad deployments must be from the same Project`);
|
250734
|
+
return 1;
|
250735
|
+
}
|
250736
|
+
if (badDeployment.createdAt < goodDeployment.createdAt) {
|
250737
|
+
output.error(`Good deployment must be older than the Bad deployment`);
|
250738
|
+
return 1;
|
250739
|
+
}
|
250740
|
+
if (badDeployment.target !== goodDeployment.target) {
|
250741
|
+
output.error(`Bad deployment target "${badDeployment.target || 'preview'}" does not match good deployment target "${goodDeployment.target || 'preview'}"`);
|
250742
|
+
return 1;
|
250743
|
+
}
|
250744
|
+
// Fetch all the project's "READY" deployments with the pagination API
|
250745
|
+
let deployments = [];
|
250746
|
+
let next = badDeployment.createdAt + 1;
|
250747
|
+
do {
|
250748
|
+
const query = new url_1.URLSearchParams();
|
250749
|
+
query.set('projectId', projectId);
|
250750
|
+
if (badDeployment.target) {
|
250751
|
+
query.set('target', badDeployment.target);
|
250752
|
+
}
|
250753
|
+
query.set('limit', '100');
|
250754
|
+
query.set('state', 'READY');
|
250755
|
+
if (next) {
|
250756
|
+
query.set('until', String(next));
|
250757
|
+
}
|
250758
|
+
const res = await client.fetch(`/v6/deployments?${query}`, {
|
250759
|
+
accountId: badDeployment.ownerId,
|
250760
|
+
});
|
250761
|
+
next = res.pagination.next;
|
250762
|
+
let newDeployments = res.deployments;
|
250763
|
+
// If we have the "good" deployment in this chunk, then we're done
|
250764
|
+
for (let i = 0; i < newDeployments.length; i++) {
|
250765
|
+
if (newDeployments[i].url === good) {
|
250766
|
+
newDeployments = newDeployments.slice(0, i + 1);
|
250767
|
+
next = undefined;
|
250768
|
+
break;
|
250769
|
+
}
|
250770
|
+
}
|
250771
|
+
deployments = deployments.concat(newDeployments);
|
250772
|
+
if (next) {
|
250773
|
+
// Small sleep to avoid rate limiting
|
250774
|
+
await sleep_1.default(100);
|
250775
|
+
}
|
250776
|
+
} while (next);
|
250777
|
+
if (!deployments.length) {
|
250778
|
+
output.error('Cannot bisect because this project does not have any deployments');
|
250779
|
+
return 1;
|
250780
|
+
}
|
250781
|
+
// The first deployment is the one that was marked
|
250782
|
+
// as "bad", so that one does not need to be tested
|
250783
|
+
let lastBad = deployments.shift();
|
250784
|
+
while (deployments.length > 0) {
|
250785
|
+
// Add a blank space before the next step
|
250786
|
+
output.print('\n');
|
250787
|
+
const middleIndex = Math.floor(deployments.length / 2);
|
250788
|
+
const deployment = deployments[middleIndex];
|
250789
|
+
const rem = pluralize_1.default('deployment', deployments.length, true);
|
250790
|
+
const steps = Math.floor(Math.log2(deployments.length));
|
250791
|
+
const pSteps = pluralize_1.default('step', steps, true);
|
250792
|
+
output.log(chalk_1.default.magenta(`${chalk_1.default.bold('Bisecting:')} ${rem} left to test after this (roughly ${pSteps})`), chalk_1.default.magenta);
|
250793
|
+
const testUrl = `https://${deployment.url}${subpath}`;
|
250794
|
+
output.log(`${chalk_1.default.bold('Deployment URL:')} ${link_1.default(testUrl)}`);
|
250795
|
+
output.log(`${chalk_1.default.bold('Date:')} ${format_date_1.default(deployment.createdAt)}`);
|
250796
|
+
const commit = getCommit(deployment);
|
250797
|
+
if (commit) {
|
250798
|
+
const shortSha = commit.sha.substring(0, 7);
|
250799
|
+
const firstLine = commit.message.split('\n')[0];
|
250800
|
+
output.log(`${chalk_1.default.bold('Commit:')} [${shortSha}] ${firstLine}`);
|
250801
|
+
}
|
250802
|
+
let action;
|
250803
|
+
if (run) {
|
250804
|
+
const proc = await execa_1.default(run, [testUrl], {
|
250805
|
+
stdio: 'inherit',
|
250806
|
+
reject: false,
|
250807
|
+
env: {
|
250808
|
+
...process.env,
|
250809
|
+
HOST: deployment.url,
|
250810
|
+
URL: testUrl,
|
250811
|
+
},
|
250812
|
+
});
|
250813
|
+
if (proc instanceof Error && typeof proc.exitCode !== 'number') {
|
250814
|
+
// Script does not exist or is not executable, so exit
|
250815
|
+
output.prettyError(proc);
|
250816
|
+
return 1;
|
250817
|
+
}
|
250818
|
+
const { exitCode } = proc;
|
250819
|
+
let color;
|
250820
|
+
if (exitCode === 0) {
|
250821
|
+
color = chalk_1.default.green;
|
250822
|
+
action = 'good';
|
250823
|
+
}
|
250824
|
+
else if (exitCode === 125) {
|
250825
|
+
action = 'skip';
|
250826
|
+
color = chalk_1.default.grey;
|
250827
|
+
}
|
250828
|
+
else {
|
250829
|
+
action = 'bad';
|
250830
|
+
color = chalk_1.default.red;
|
250831
|
+
}
|
250832
|
+
output.log(`Run script returned exit code ${chalk_1.default.bold(String(exitCode))}: ${color(action)}`);
|
250833
|
+
}
|
250834
|
+
else {
|
250835
|
+
if (openEnabled) {
|
250836
|
+
await open_1.default(testUrl);
|
250837
|
+
}
|
250838
|
+
const answer = await inquirer_1.default.prompt({
|
250839
|
+
type: 'expand',
|
250840
|
+
name: 'action',
|
250841
|
+
message: 'Select an action:',
|
250842
|
+
choices: [
|
250843
|
+
{ key: 'g', name: 'Good', value: 'good' },
|
250844
|
+
{ key: 'b', name: 'Bad', value: 'bad' },
|
250845
|
+
{ key: 's', name: 'Skip', value: 'skip' },
|
250846
|
+
],
|
250847
|
+
});
|
250848
|
+
action = answer.action;
|
250849
|
+
}
|
250850
|
+
if (action === 'good') {
|
250851
|
+
deployments = deployments.slice(0, middleIndex);
|
250852
|
+
}
|
250853
|
+
else if (action === 'bad') {
|
250854
|
+
lastBad = deployment;
|
250855
|
+
deployments = deployments.slice(middleIndex + 1);
|
250856
|
+
}
|
250857
|
+
else if (action === 'skip') {
|
250858
|
+
deployments.splice(middleIndex, 1);
|
250859
|
+
}
|
250860
|
+
}
|
250861
|
+
output.print('\n');
|
250862
|
+
let result = [
|
250863
|
+
chalk_1.default.bold(`The first bad deployment is: ${link_1.default(`https://${lastBad.url}`)}`),
|
250864
|
+
'',
|
250865
|
+
` ${chalk_1.default.bold('Date:')} ${format_date_1.default(lastBad.createdAt)}`,
|
250866
|
+
];
|
250867
|
+
const commit = getCommit(lastBad);
|
250868
|
+
if (commit) {
|
250869
|
+
const shortSha = commit.sha.substring(0, 7);
|
250870
|
+
const firstLine = commit.message.split('\n')[0];
|
250871
|
+
result.push(` ${chalk_1.default.bold('Commit:')} [${shortSha}] ${firstLine}`);
|
250872
|
+
}
|
250873
|
+
result.push(`${chalk_1.default.bold('Inspect:')} ${link_1.default(lastBad.inspectorUrl)}`);
|
250874
|
+
output.print(boxen_1.default(result.join('\n'), { padding: 1 }));
|
250875
|
+
output.print('\n');
|
250876
|
+
return 0;
|
250877
|
+
}
|
250878
|
+
exports.default = main;
|
250879
|
+
function getDeployment(client, hostname) {
|
250880
|
+
const query = new url_1.URLSearchParams();
|
250881
|
+
query.set('url', hostname);
|
250882
|
+
query.set('resolve', '1');
|
250883
|
+
query.set('noState', '1');
|
250884
|
+
return client.fetch(`/v10/deployments/get?${query}`);
|
250885
|
+
}
|
250886
|
+
function getCommit(deployment) {
|
250887
|
+
var _a, _b, _c, _d, _e, _f;
|
250888
|
+
const sha = ((_a = deployment.meta) === null || _a === void 0 ? void 0 : _a.githubCommitSha) ||
|
250889
|
+
((_b = deployment.meta) === null || _b === void 0 ? void 0 : _b.gitlabCommitSha) ||
|
250890
|
+
((_c = deployment.meta) === null || _c === void 0 ? void 0 : _c.bitbucketCommitSha);
|
250891
|
+
if (!sha)
|
250892
|
+
return null;
|
250893
|
+
const message = ((_d = deployment.meta) === null || _d === void 0 ? void 0 : _d.githubCommitMessage) ||
|
250894
|
+
((_e = deployment.meta) === null || _e === void 0 ? void 0 : _e.gitlabCommitMessage) ||
|
250895
|
+
((_f = deployment.meta) === null || _f === void 0 ? void 0 : _f.bitbucketCommitMessage);
|
250896
|
+
return { sha, message };
|
250897
|
+
}
|
250898
|
+
async function prompt(output, message) {
|
250899
|
+
// eslint-disable-next-line no-constant-condition
|
250900
|
+
while (true) {
|
250901
|
+
const { val } = await inquirer_1.default.prompt({
|
250902
|
+
type: 'input',
|
250903
|
+
name: 'val',
|
250904
|
+
message,
|
250905
|
+
});
|
250906
|
+
if (val) {
|
250907
|
+
return val;
|
250908
|
+
}
|
250909
|
+
else {
|
250910
|
+
output.error('A value must be specified');
|
250911
|
+
}
|
250912
|
+
}
|
250913
|
+
}
|
250914
|
+
|
250915
|
+
|
250522
250916
|
/***/ }),
|
250523
250917
|
|
250524
250918
|
/***/ 11004:
|
@@ -251781,6 +252175,7 @@ const help = () => `
|
|
251781
252175
|
${chalk_1.default.dim('Advanced')}
|
251782
252176
|
|
251783
252177
|
rm | remove [id] Removes a deployment
|
252178
|
+
bisect Use binary search to find the deployment that introduced a bug
|
251784
252179
|
domains [name] Manages your domain names
|
251785
252180
|
projects Manages your Projects
|
251786
252181
|
dns [name] Manages your DNS records
|
@@ -254692,6 +255087,7 @@ exports.default = new Map([
|
|
254692
255087
|
['alias', 'alias'],
|
254693
255088
|
['aliases', 'alias'],
|
254694
255089
|
['billing', 'billing'],
|
255090
|
+
['bisect', 'bisect'],
|
254695
255091
|
['build', 'build'],
|
254696
255092
|
['cc', 'billing'],
|
254697
255093
|
['cert', 'certs'],
|
@@ -257746,6 +258142,9 @@ const main = async () => {
|
|
257746
258142
|
case 'billing':
|
257747
258143
|
func = await Promise.resolve().then(() => __importStar(__webpack_require__(94344)));
|
257748
258144
|
break;
|
258145
|
+
case 'bisect':
|
258146
|
+
func = await Promise.resolve().then(() => __importStar(__webpack_require__(76792)));
|
258147
|
+
break;
|
257749
258148
|
case 'build':
|
257750
258149
|
func = await Promise.resolve().then(() => __importStar(__webpack_require__(11004)));
|
257751
258150
|
break;
|
@@ -263648,7 +264047,7 @@ const chalk_1 = __importDefault(__webpack_require__(961));
|
|
263648
264047
|
async function getDomain(client, contextName, domainName) {
|
263649
264048
|
client.output.spinner(`Fetching domain ${domainName} under ${chalk_1.default.bold(contextName)}`);
|
263650
264049
|
try {
|
263651
|
-
const { domain } = await client.fetch(`/
|
264050
|
+
const { domain } = await client.fetch(`/v5/domains/${domainName}`);
|
263652
264051
|
return domain;
|
263653
264052
|
}
|
263654
264053
|
catch (error) {
|
@@ -264091,9 +264490,7 @@ const ERRORS = __importStar(__webpack_require__(60156));
|
|
264091
264490
|
const add_domain_1 = __importDefault(__webpack_require__(41377));
|
264092
264491
|
const maybe_get_domain_by_name_1 = __importDefault(__webpack_require__(38977));
|
264093
264492
|
const purchase_domain_if_available_1 = __importDefault(__webpack_require__(29211));
|
264094
|
-
const verify_domain_1 = __importDefault(__webpack_require__(9603));
|
264095
264493
|
const extract_domain_1 = __importDefault(__webpack_require__(4318));
|
264096
|
-
const is_wildcard_alias_1 = __importDefault(__webpack_require__(72249));
|
264097
264494
|
async function setupDomain(output, client, alias, contextName) {
|
264098
264495
|
const aliasDomain = extract_domain_1.default(alias);
|
264099
264496
|
output.debug(`Trying to fetch domain ${aliasDomain} by name`);
|
@@ -264104,26 +264501,6 @@ async function setupDomain(output, client, alias, contextName) {
|
|
264104
264501
|
if (info) {
|
264105
264502
|
const { name: domain } = info;
|
264106
264503
|
output.debug(`Domain ${domain} found for the given context`);
|
264107
|
-
if (!info.verified || (!info.nsVerifiedAt && is_wildcard_alias_1.default(alias))) {
|
264108
|
-
output.debug(`Domain ${domain} is not verified, trying to perform a verification`);
|
264109
|
-
const verificationResult = await verify_domain_1.default(client, domain, contextName);
|
264110
|
-
if (verificationResult instanceof ERRORS.DomainVerificationFailed) {
|
264111
|
-
output.debug(`Domain ${domain} verification failed`);
|
264112
|
-
return verificationResult;
|
264113
|
-
}
|
264114
|
-
if (!verificationResult.nsVerifiedAt && is_wildcard_alias_1.default(alias)) {
|
264115
|
-
return new ERRORS.DomainNsNotVerifiedForWildcard({
|
264116
|
-
domain,
|
264117
|
-
nsVerification: {
|
264118
|
-
intendedNameservers: verificationResult.intendedNameservers,
|
264119
|
-
nameservers: verificationResult.nameservers,
|
264120
|
-
},
|
264121
|
-
});
|
264122
|
-
}
|
264123
|
-
output.debug(`Domain ${domain} successfuly verified`);
|
264124
|
-
return maybe_get_domain_by_name_1.default(client, contextName, domain);
|
264125
|
-
}
|
264126
|
-
output.debug(`Domain ${domain} is already verified`);
|
264127
264504
|
return info;
|
264128
264505
|
}
|
264129
264506
|
output.debug(`The domain ${aliasDomain} was not found, trying to purchase it`);
|
@@ -264146,35 +264523,12 @@ async function setupDomain(output, client, alias, contextName) {
|
|
264146
264523
|
if (addResult instanceof now_error_1.NowError) {
|
264147
264524
|
return addResult;
|
264148
264525
|
}
|
264149
|
-
if (!addResult.verified) {
|
264150
|
-
const verificationResult = await verify_domain_1.default(client, domain, contextName);
|
264151
|
-
if (verificationResult instanceof ERRORS.DomainVerificationFailed) {
|
264152
|
-
output.debug(`Domain ${domain} was added but it couldn't be verified`);
|
264153
|
-
return verificationResult;
|
264154
|
-
}
|
264155
|
-
output.debug(`Domain ${domain} successfuly added and manually verified`);
|
264156
|
-
return verificationResult;
|
264157
|
-
}
|
264158
264526
|
output.debug(`Domain ${domain} successfuly added and automatically verified`);
|
264159
264527
|
return addResult;
|
264160
264528
|
}
|
264161
264529
|
output.debug(`The domain ${aliasDomain} was successfuly purchased`);
|
264162
264530
|
const purchasedDomain = (await maybe_get_domain_by_name_1.default(client, contextName, aliasDomain));
|
264163
264531
|
const { name: domain } = purchasedDomain;
|
264164
|
-
if (!purchasedDomain.verified) {
|
264165
|
-
const verificationResult = await verify_domain_1.default(client, domain, contextName);
|
264166
|
-
if (verificationResult instanceof ERRORS.DomainVerificationFailed) {
|
264167
|
-
output.debug(`Domain ${domain} was purchased but verification is still pending`);
|
264168
|
-
return new ERRORS.DomainVerificationFailed({
|
264169
|
-
domain: verificationResult.meta.domain,
|
264170
|
-
nsVerification: verificationResult.meta.nsVerification,
|
264171
|
-
txtVerification: verificationResult.meta.txtVerification,
|
264172
|
-
purchased: true,
|
264173
|
-
});
|
264174
|
-
}
|
264175
|
-
output.debug(`Domain ${domain} was purchased and it was manually verified`);
|
264176
|
-
return maybe_get_domain_by_name_1.default(client, contextName, domain);
|
264177
|
-
}
|
264178
264532
|
output.debug(`Domain ${domain} was purchased and it is automatically verified`);
|
264179
264533
|
return maybe_get_domain_by_name_1.default(client, contextName, domain);
|
264180
264534
|
}
|
@@ -264241,66 +264595,6 @@ async function transferInDomain(client, name, authCode, expectedPrice) {
|
|
264241
264595
|
exports.default = transferInDomain;
|
264242
264596
|
|
264243
264597
|
|
264244
|
-
/***/ }),
|
264245
|
-
|
264246
|
-
/***/ 9603:
|
264247
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
264248
|
-
|
264249
|
-
"use strict";
|
264250
|
-
|
264251
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
264252
|
-
if (k2 === undefined) k2 = k;
|
264253
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
264254
|
-
}) : (function(o, m, k, k2) {
|
264255
|
-
if (k2 === undefined) k2 = k;
|
264256
|
-
o[k2] = m[k];
|
264257
|
-
}));
|
264258
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
264259
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
264260
|
-
}) : function(o, v) {
|
264261
|
-
o["default"] = v;
|
264262
|
-
});
|
264263
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
264264
|
-
if (mod && mod.__esModule) return mod;
|
264265
|
-
var result = {};
|
264266
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
264267
|
-
__setModuleDefault(result, mod);
|
264268
|
-
return result;
|
264269
|
-
};
|
264270
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
264271
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
264272
|
-
};
|
264273
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
264274
|
-
const chalk_1 = __importDefault(__webpack_require__(961));
|
264275
|
-
const async_retry_1 = __importDefault(__webpack_require__(15596));
|
264276
|
-
const ERRORS = __importStar(__webpack_require__(60156));
|
264277
|
-
async function verifyDomain(client, domainName, contextName) {
|
264278
|
-
client.output.spinner(`Verifying domain ${domainName} under ${chalk_1.default.bold(contextName)}`);
|
264279
|
-
try {
|
264280
|
-
const { domain } = await performVerifyDomain(client, domainName);
|
264281
|
-
return domain;
|
264282
|
-
}
|
264283
|
-
catch (error) {
|
264284
|
-
if (error.code === 'verification_failed') {
|
264285
|
-
return new ERRORS.DomainVerificationFailed({
|
264286
|
-
purchased: false,
|
264287
|
-
domain: error.name,
|
264288
|
-
nsVerification: error.nsVerification,
|
264289
|
-
txtVerification: error.txtVerification,
|
264290
|
-
});
|
264291
|
-
}
|
264292
|
-
throw error;
|
264293
|
-
}
|
264294
|
-
}
|
264295
|
-
exports.default = verifyDomain;
|
264296
|
-
async function performVerifyDomain(client, domain) {
|
264297
|
-
return async_retry_1.default(async () => client.fetch(`/v4/domains/${encodeURIComponent(domain)}/verify`, {
|
264298
|
-
body: {},
|
264299
|
-
method: 'POST',
|
264300
|
-
}), { retries: 5, maxTimeout: 8000 });
|
264301
|
-
}
|
264302
|
-
|
264303
|
-
|
264304
264598
|
/***/ }),
|
264305
264599
|
|
264306
264600
|
/***/ 41806:
|
@@ -264580,8 +264874,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
264580
264874
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
264581
264875
|
};
|
264582
264876
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
264583
|
-
exports.DNSConflictingRecord = exports.DNSInvalidType = exports.DNSInvalidPort = exports.DNSPermissionDenied = exports.InvalidCert = exports.InvalidAliasInConfig = exports.NoAliasInConfig = exports.FileNotFound = exports.WorkingDirectoryDoesNotExist = exports.CantFindConfig = exports.ConflictingConfigFiles = exports.CantParseJSONFile = exports.CertMissing = exports.AliasInUse = exports.InvalidAlias = exports.DeploymentPermissionDenied = exports.DeploymentFailedAliasImpossible = exports.DeploymentNotReady = exports.DeploymentNotFound = exports.CertConfigurationError = exports.CertError = exports.TooManyRequests = exports.CertOrderNotFound = exports.CertsPermissionDenied = exports.CertNotFound = exports.UserAborted = exports.DomainPurchasePending = exports.DomainPaymentError = exports.UnexpectedDomainPurchaseError = exports.DomainNotTransferable = exports.DomainServiceNotAvailable = exports.DomainNotAvailable = exports.UnsupportedTLD = exports.InvalidDeploymentId = exports.NotDomainOwner = exports.InvalidDomain = exports.
|
264584
|
-
exports.BuildError = exports.ConflictingPathSegment = exports.ConflictingFilePath = exports.MissingBuildScript = exports.AliasDomainConfigured = exports.ProjectNotFound = exports.BuildsRateLimited = exports.DeploymentsRateLimited = exports.MissingDotenvVarsError = exports.LambdaSizeExceededError = exports.NoBuilderCacheError = exports.InvalidMoveToken = exports.InvalidMoveDestination = exports.AccountNotFound = exports.InvalidEmail = exports.DomainMoveConflict =
|
264877
|
+
exports.DomainRemovalConflict = exports.DNSConflictingRecord = exports.DNSInvalidType = exports.DNSInvalidPort = exports.DNSPermissionDenied = exports.InvalidCert = exports.InvalidAliasInConfig = exports.NoAliasInConfig = exports.FileNotFound = exports.WorkingDirectoryDoesNotExist = exports.CantFindConfig = exports.ConflictingConfigFiles = exports.CantParseJSONFile = exports.CertMissing = exports.AliasInUse = exports.InvalidAlias = exports.DeploymentPermissionDenied = exports.DeploymentFailedAliasImpossible = exports.DeploymentNotReady = exports.DeploymentNotFound = exports.CertConfigurationError = exports.CertError = exports.TooManyRequests = exports.CertOrderNotFound = exports.CertsPermissionDenied = exports.CertNotFound = exports.UserAborted = exports.DomainPurchasePending = exports.DomainPaymentError = exports.UnexpectedDomainPurchaseError = exports.DomainNotTransferable = exports.DomainServiceNotAvailable = exports.DomainNotAvailable = exports.UnsupportedTLD = exports.InvalidDeploymentId = exports.NotDomainOwner = exports.InvalidDomain = exports.DomainVerificationFailed = exports.DomainNotVerified = exports.DomainNotFound = exports.DomainRegistrationFailed = exports.InvalidTransferAuthCode = exports.SourceNotFound = exports.DomainExternal = exports.DomainPermissionDenied = exports.DomainAlreadyExists = exports.MissingUser = exports.InvalidToken = exports.TeamDeleted = exports.APIError = void 0;
|
264878
|
+
exports.BuildError = exports.ConflictingPathSegment = exports.ConflictingFilePath = exports.MissingBuildScript = exports.AliasDomainConfigured = exports.ProjectNotFound = exports.BuildsRateLimited = exports.DeploymentsRateLimited = exports.MissingDotenvVarsError = exports.LambdaSizeExceededError = exports.NoBuilderCacheError = exports.InvalidMoveToken = exports.InvalidMoveDestination = exports.AccountNotFound = exports.InvalidEmail = exports.DomainMoveConflict = void 0;
|
264585
264879
|
const bytes_1 = __importDefault(__webpack_require__(1446));
|
264586
264880
|
const build_utils_1 = __webpack_require__(3131);
|
264587
264881
|
const now_error_1 = __webpack_require__(43043);
|
@@ -264769,19 +265063,6 @@ class DomainVerificationFailed extends now_error_1.NowError {
|
|
264769
265063
|
}
|
264770
265064
|
}
|
264771
265065
|
exports.DomainVerificationFailed = DomainVerificationFailed;
|
264772
|
-
/**
|
264773
|
-
* This error is returned when the domain is not verified by nameservers for wildcard alias.
|
264774
|
-
*/
|
264775
|
-
class DomainNsNotVerifiedForWildcard extends now_error_1.NowError {
|
264776
|
-
constructor({ domain, nsVerification, }) {
|
264777
|
-
super({
|
264778
|
-
code: 'DOMAIN_NS_NOT_VERIFIED_FOR_WILDCARD',
|
264779
|
-
meta: { domain, nsVerification },
|
264780
|
-
message: `The domain ${domain} is not verified by nameservers for wildcard alias.`,
|
264781
|
-
});
|
264782
|
-
}
|
264783
|
-
}
|
264784
|
-
exports.DomainNsNotVerifiedForWildcard = DomainNsNotVerifiedForWildcard;
|
264785
265066
|
/**
|
264786
265067
|
* Used when a domain is validated because we tried to add it to an account
|
264787
265068
|
* via API or for any other reason.
|
@@ -271316,7 +271597,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
271316
271597
|
/***/ ((module) => {
|
271317
271598
|
|
271318
271599
|
"use strict";
|
271319
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
271600
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.74\",\"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\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.13.1-canary.1\",\"@vercel/go\":\"1.2.4-canary.6\",\"@vercel/node\":\"1.12.2-canary.9\",\"@vercel/python\":\"2.1.2-canary.4\",\"@vercel/ruby\":\"1.2.10-canary.2\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.26\",\"vercel-plugin-node\":\"1.12.2-canary.41\"},\"devDependencies\":{\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@tootallnate/once\":\"1.1.2\",\"@types/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@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/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@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\":\"11.11.0\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/progress\":\"2.0.3\",\"@types/psl\":\"1.1.0\",\"@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\",\"@vercel/client\":\"10.2.3-canary.52\",\"@vercel/fetch-retry\":\"5.0.3\",\"@vercel/frameworks\":\"0.5.1-canary.21\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.0\",\"@zeit/fun\":\"0.11.2\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"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\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"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\":\"5.2.0\",\"stripe\":\"5.1.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-eager\":\"2.0.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"ab1decf79da76e85f7f562d1c4ee5e5dcf4c2a17\"}");
|
271320
271601
|
|
271321
271602
|
/***/ }),
|
271322
271603
|
|
@@ -271332,7 +271613,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
271332
271613
|
/***/ ((module) => {
|
271333
271614
|
|
271334
271615
|
"use strict";
|
271335
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
271616
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.52\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"12.0.4\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"2.13.1-canary.1\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"ab1decf79da76e85f7f562d1c4ee5e5dcf4c2a17\"}");
|
271336
271617
|
|
271337
271618
|
/***/ }),
|
271338
271619
|
|