vercel 27.0.0 → 27.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +773 -368
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -194021,6 +194021,7 @@ class EdgeFunction {
|
|
194021
194021
|
this.entrypoint = params.entrypoint;
|
194022
194022
|
this.files = params.files;
|
194023
194023
|
this.envVarsInUse = params.envVarsInUse;
|
194024
|
+
this.assets = params.assets;
|
194024
194025
|
}
|
194025
194026
|
}
|
194026
194027
|
exports.EdgeFunction = EdgeFunction;
|
@@ -194123,7 +194124,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
194123
194124
|
/***/ }),
|
194124
194125
|
|
194125
194126
|
/***/ 2397:
|
194126
|
-
/***/ (function(__unused_webpack_module, exports,
|
194127
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_780057__) {
|
194127
194128
|
|
194128
194129
|
"use strict";
|
194129
194130
|
|
@@ -194131,8 +194132,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194131
194132
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
194132
194133
|
};
|
194133
194134
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194134
|
-
const assert_1 = __importDefault(
|
194135
|
-
const into_stream_1 = __importDefault(
|
194135
|
+
const assert_1 = __importDefault(__nested_webpack_require_780057__(2357));
|
194136
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_780057__(6130));
|
194136
194137
|
class FileBlob {
|
194137
194138
|
constructor({ mode = 0o100644, contentType, data }) {
|
194138
194139
|
assert_1.default(typeof mode === 'number');
|
@@ -194167,7 +194168,7 @@ exports.default = FileBlob;
|
|
194167
194168
|
/***/ }),
|
194168
194169
|
|
194169
194170
|
/***/ 9331:
|
194170
|
-
/***/ (function(__unused_webpack_module, exports,
|
194171
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_781575__) {
|
194171
194172
|
|
194172
194173
|
"use strict";
|
194173
194174
|
|
@@ -194175,11 +194176,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194175
194176
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
194176
194177
|
};
|
194177
194178
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194178
|
-
const assert_1 = __importDefault(
|
194179
|
-
const fs_extra_1 = __importDefault(
|
194180
|
-
const multistream_1 = __importDefault(
|
194181
|
-
const path_1 = __importDefault(
|
194182
|
-
const async_sema_1 = __importDefault(
|
194179
|
+
const assert_1 = __importDefault(__nested_webpack_require_781575__(2357));
|
194180
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_781575__(5392));
|
194181
|
+
const multistream_1 = __importDefault(__nested_webpack_require_781575__(8179));
|
194182
|
+
const path_1 = __importDefault(__nested_webpack_require_781575__(5622));
|
194183
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_781575__(5758));
|
194183
194184
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
194184
194185
|
class FileFsRef {
|
194185
194186
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -194245,7 +194246,7 @@ exports.default = FileFsRef;
|
|
194245
194246
|
/***/ }),
|
194246
194247
|
|
194247
194248
|
/***/ 5187:
|
194248
|
-
/***/ (function(__unused_webpack_module, exports,
|
194249
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_784379__) {
|
194249
194250
|
|
194250
194251
|
"use strict";
|
194251
194252
|
|
@@ -194253,11 +194254,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194253
194254
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
194254
194255
|
};
|
194255
194256
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194256
|
-
const assert_1 = __importDefault(
|
194257
|
-
const node_fetch_1 = __importDefault(
|
194258
|
-
const multistream_1 = __importDefault(
|
194259
|
-
const async_retry_1 = __importDefault(
|
194260
|
-
const async_sema_1 = __importDefault(
|
194257
|
+
const assert_1 = __importDefault(__nested_webpack_require_784379__(2357));
|
194258
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_784379__(2197));
|
194259
|
+
const multistream_1 = __importDefault(__nested_webpack_require_784379__(8179));
|
194260
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_784379__(3691));
|
194261
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_784379__(5758));
|
194261
194262
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
194262
194263
|
class BailableError extends Error {
|
194263
194264
|
constructor(...args) {
|
@@ -194338,7 +194339,7 @@ exports.default = FileRef;
|
|
194338
194339
|
/***/ }),
|
194339
194340
|
|
194340
194341
|
/***/ 1611:
|
194341
|
-
/***/ (function(__unused_webpack_module, exports,
|
194342
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_787780__) {
|
194342
194343
|
|
194343
194344
|
"use strict";
|
194344
194345
|
|
@@ -194347,11 +194348,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194347
194348
|
};
|
194348
194349
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194349
194350
|
exports.isSymbolicLink = void 0;
|
194350
|
-
const path_1 = __importDefault(
|
194351
|
-
const debug_1 = __importDefault(
|
194352
|
-
const file_fs_ref_1 = __importDefault(
|
194353
|
-
const fs_extra_1 =
|
194354
|
-
const stream_to_buffer_1 = __importDefault(
|
194351
|
+
const path_1 = __importDefault(__nested_webpack_require_787780__(5622));
|
194352
|
+
const debug_1 = __importDefault(__nested_webpack_require_787780__(1868));
|
194353
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_787780__(9331));
|
194354
|
+
const fs_extra_1 = __nested_webpack_require_787780__(5392);
|
194355
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_787780__(2560));
|
194355
194356
|
const S_IFMT = 61440; /* 0170000 type of file */
|
194356
194357
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
194357
194358
|
function isSymbolicLink(mode) {
|
@@ -194424,14 +194425,14 @@ exports.default = download;
|
|
194424
194425
|
/***/ }),
|
194425
194426
|
|
194426
194427
|
/***/ 3838:
|
194427
|
-
/***/ ((__unused_webpack_module, exports,
|
194428
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_791229__) => {
|
194428
194429
|
|
194429
194430
|
"use strict";
|
194430
194431
|
|
194431
194432
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194432
|
-
const path_1 =
|
194433
|
-
const os_1 =
|
194434
|
-
const fs_extra_1 =
|
194433
|
+
const path_1 = __nested_webpack_require_791229__(5622);
|
194434
|
+
const os_1 = __nested_webpack_require_791229__(2087);
|
194435
|
+
const fs_extra_1 = __nested_webpack_require_791229__(5392);
|
194435
194436
|
async function getWritableDirectory() {
|
194436
194437
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
194437
194438
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -194444,7 +194445,7 @@ exports.default = getWritableDirectory;
|
|
194444
194445
|
/***/ }),
|
194445
194446
|
|
194446
194447
|
/***/ 4240:
|
194447
|
-
/***/ (function(__unused_webpack_module, exports,
|
194448
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_791809__) {
|
194448
194449
|
|
194449
194450
|
"use strict";
|
194450
194451
|
|
@@ -194452,13 +194453,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194452
194453
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
194453
194454
|
};
|
194454
194455
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194455
|
-
const path_1 = __importDefault(
|
194456
|
-
const assert_1 = __importDefault(
|
194457
|
-
const glob_1 = __importDefault(
|
194458
|
-
const util_1 =
|
194459
|
-
const fs_extra_1 =
|
194460
|
-
const normalize_path_1 =
|
194461
|
-
const file_fs_ref_1 = __importDefault(
|
194456
|
+
const path_1 = __importDefault(__nested_webpack_require_791809__(5622));
|
194457
|
+
const assert_1 = __importDefault(__nested_webpack_require_791809__(2357));
|
194458
|
+
const glob_1 = __importDefault(__nested_webpack_require_791809__(1104));
|
194459
|
+
const util_1 = __nested_webpack_require_791809__(1669);
|
194460
|
+
const fs_extra_1 = __nested_webpack_require_791809__(5392);
|
194461
|
+
const normalize_path_1 = __nested_webpack_require_791809__(6261);
|
194462
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_791809__(9331));
|
194462
194463
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
194463
194464
|
async function glob(pattern, opts, mountpoint) {
|
194464
194465
|
let options;
|
@@ -194504,7 +194505,7 @@ exports.default = glob;
|
|
194504
194505
|
/***/ }),
|
194505
194506
|
|
194506
194507
|
/***/ 7903:
|
194507
|
-
/***/ (function(__unused_webpack_module, exports,
|
194508
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_794005__) {
|
194508
194509
|
|
194509
194510
|
"use strict";
|
194510
194511
|
|
@@ -194513,9 +194514,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194513
194514
|
};
|
194514
194515
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194515
194516
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
194516
|
-
const semver_1 =
|
194517
|
-
const errors_1 =
|
194518
|
-
const debug_1 = __importDefault(
|
194517
|
+
const semver_1 = __nested_webpack_require_794005__(2879);
|
194518
|
+
const errors_1 = __nested_webpack_require_794005__(3983);
|
194519
|
+
const debug_1 = __importDefault(__nested_webpack_require_794005__(1868));
|
194519
194520
|
const allOptions = [
|
194520
194521
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
194521
194522
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
@@ -194615,7 +194616,7 @@ exports.normalizePath = normalizePath;
|
|
194615
194616
|
/***/ }),
|
194616
194617
|
|
194617
194618
|
/***/ 7792:
|
194618
|
-
/***/ (function(__unused_webpack_module, exports,
|
194619
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_798008__) {
|
194619
194620
|
|
194620
194621
|
"use strict";
|
194621
194622
|
|
@@ -194624,9 +194625,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194624
194625
|
};
|
194625
194626
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194626
194627
|
exports.readConfigFile = void 0;
|
194627
|
-
const js_yaml_1 = __importDefault(
|
194628
|
-
const toml_1 = __importDefault(
|
194629
|
-
const fs_extra_1 =
|
194628
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_798008__(6540));
|
194629
|
+
const toml_1 = __importDefault(__nested_webpack_require_798008__(9434));
|
194630
|
+
const fs_extra_1 = __nested_webpack_require_798008__(5392);
|
194630
194631
|
async function readFileOrNull(file) {
|
194631
194632
|
try {
|
194632
194633
|
const data = await fs_extra_1.readFile(file);
|
@@ -194681,7 +194682,7 @@ exports.default = rename;
|
|
194681
194682
|
/***/ }),
|
194682
194683
|
|
194683
194684
|
/***/ 1442:
|
194684
|
-
/***/ (function(__unused_webpack_module, exports,
|
194685
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_799801__) {
|
194685
194686
|
|
194686
194687
|
"use strict";
|
194687
194688
|
|
@@ -194690,17 +194691,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
194690
194691
|
};
|
194691
194692
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
194692
194693
|
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;
|
194693
|
-
const assert_1 = __importDefault(
|
194694
|
-
const fs_extra_1 = __importDefault(
|
194695
|
-
const path_1 = __importDefault(
|
194696
|
-
const async_sema_1 = __importDefault(
|
194697
|
-
const cross_spawn_1 = __importDefault(
|
194698
|
-
const semver_1 =
|
194699
|
-
const util_1 =
|
194700
|
-
const debug_1 = __importDefault(
|
194701
|
-
const errors_1 =
|
194702
|
-
const node_version_1 =
|
194703
|
-
const read_config_file_1 =
|
194694
|
+
const assert_1 = __importDefault(__nested_webpack_require_799801__(2357));
|
194695
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_799801__(5392));
|
194696
|
+
const path_1 = __importDefault(__nested_webpack_require_799801__(5622));
|
194697
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_799801__(5758));
|
194698
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_799801__(7618));
|
194699
|
+
const semver_1 = __nested_webpack_require_799801__(2879);
|
194700
|
+
const util_1 = __nested_webpack_require_799801__(1669);
|
194701
|
+
const debug_1 = __importDefault(__nested_webpack_require_799801__(1868));
|
194702
|
+
const errors_1 = __nested_webpack_require_799801__(3983);
|
194703
|
+
const node_version_1 = __nested_webpack_require_799801__(7903);
|
194704
|
+
const read_config_file_1 = __nested_webpack_require_799801__(7792);
|
194704
194705
|
// Only allow one `runNpmInstall()` invocation to run concurrently
|
194705
194706
|
const runNpmInstallSema = new async_sema_1.default(1);
|
194706
194707
|
function spawnAsync(command, args, opts = {}) {
|
@@ -195149,7 +195150,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
195149
195150
|
/***/ }),
|
195150
195151
|
|
195151
195152
|
/***/ 2560:
|
195152
|
-
/***/ (function(__unused_webpack_module, exports,
|
195153
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_819357__) {
|
195153
195154
|
|
195154
195155
|
"use strict";
|
195155
195156
|
|
@@ -195157,7 +195158,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
195157
195158
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
195158
195159
|
};
|
195159
195160
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195160
|
-
const end_of_stream_1 = __importDefault(
|
195161
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_819357__(687));
|
195161
195162
|
function streamToBuffer(stream) {
|
195162
195163
|
return new Promise((resolve, reject) => {
|
195163
195164
|
const buffers = [];
|
@@ -195186,7 +195187,7 @@ exports.default = streamToBuffer;
|
|
195186
195187
|
/***/ }),
|
195187
195188
|
|
195188
195189
|
/***/ 1148:
|
195189
|
-
/***/ (function(__unused_webpack_module, exports,
|
195190
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_820425__) {
|
195190
195191
|
|
195191
195192
|
"use strict";
|
195192
195193
|
|
@@ -195194,9 +195195,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
195194
195195
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
195195
195196
|
};
|
195196
195197
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195197
|
-
const path_1 = __importDefault(
|
195198
|
-
const fs_extra_1 = __importDefault(
|
195199
|
-
const ignore_1 = __importDefault(
|
195198
|
+
const path_1 = __importDefault(__nested_webpack_require_820425__(5622));
|
195199
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_820425__(5392));
|
195200
|
+
const ignore_1 = __importDefault(__nested_webpack_require_820425__(3556));
|
195200
195201
|
function isCodedError(error) {
|
195201
195202
|
return (error !== null &&
|
195202
195203
|
error !== undefined &&
|
@@ -195253,13 +195254,13 @@ exports.default = default_1;
|
|
195253
195254
|
/***/ }),
|
195254
195255
|
|
195255
195256
|
/***/ 4678:
|
195256
|
-
/***/ ((__unused_webpack_module, exports,
|
195257
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_822799__) => {
|
195257
195258
|
|
195258
195259
|
"use strict";
|
195259
195260
|
|
195260
195261
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195261
195262
|
exports.getPlatformEnv = void 0;
|
195262
|
-
const errors_1 =
|
195263
|
+
const errors_1 = __nested_webpack_require_822799__(3983);
|
195263
195264
|
/**
|
195264
195265
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
195265
195266
|
* Throws an error if *both* env vars are defined.
|
@@ -195287,7 +195288,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
195287
195288
|
/***/ }),
|
195288
195289
|
|
195289
195290
|
/***/ 2855:
|
195290
|
-
/***/ (function(__unused_webpack_module, exports,
|
195291
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_823836__) {
|
195291
195292
|
|
195292
195293
|
"use strict";
|
195293
195294
|
|
@@ -195318,30 +195319,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
195318
195319
|
};
|
195319
195320
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195320
195321
|
exports.normalizePath = exports.readConfigFile = exports.EdgeFunction = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPlatformEnv = 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.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
195321
|
-
const file_blob_1 = __importDefault(
|
195322
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_823836__(2397));
|
195322
195323
|
exports.FileBlob = file_blob_1.default;
|
195323
|
-
const file_fs_ref_1 = __importDefault(
|
195324
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_823836__(9331));
|
195324
195325
|
exports.FileFsRef = file_fs_ref_1.default;
|
195325
|
-
const file_ref_1 = __importDefault(
|
195326
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_823836__(5187));
|
195326
195327
|
exports.FileRef = file_ref_1.default;
|
195327
|
-
const lambda_1 =
|
195328
|
+
const lambda_1 = __nested_webpack_require_823836__(6721);
|
195328
195329
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
195329
195330
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
195330
195331
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
195331
|
-
const nodejs_lambda_1 =
|
195332
|
+
const nodejs_lambda_1 = __nested_webpack_require_823836__(7049);
|
195332
195333
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
195333
|
-
const prerender_1 =
|
195334
|
+
const prerender_1 = __nested_webpack_require_823836__(2850);
|
195334
195335
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
195335
|
-
const download_1 = __importStar(
|
195336
|
+
const download_1 = __importStar(__nested_webpack_require_823836__(1611));
|
195336
195337
|
exports.download = download_1.default;
|
195337
195338
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
195338
|
-
const get_writable_directory_1 = __importDefault(
|
195339
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_823836__(3838));
|
195339
195340
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
195340
|
-
const glob_1 = __importDefault(
|
195341
|
+
const glob_1 = __importDefault(__nested_webpack_require_823836__(4240));
|
195341
195342
|
exports.glob = glob_1.default;
|
195342
|
-
const rename_1 = __importDefault(
|
195343
|
+
const rename_1 = __importDefault(__nested_webpack_require_823836__(6718));
|
195343
195344
|
exports.rename = rename_1.default;
|
195344
|
-
const run_user_scripts_1 =
|
195345
|
+
const run_user_scripts_1 = __nested_webpack_require_823836__(1442);
|
195345
195346
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
195346
195347
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
195347
195348
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -195360,33 +195361,33 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
195360
195361
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
195361
195362
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
195362
195363
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
195363
|
-
const node_version_1 =
|
195364
|
+
const node_version_1 = __nested_webpack_require_823836__(7903);
|
195364
195365
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
195365
195366
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
195366
|
-
const stream_to_buffer_1 = __importDefault(
|
195367
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_823836__(2560));
|
195367
195368
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
195368
|
-
const debug_1 = __importDefault(
|
195369
|
+
const debug_1 = __importDefault(__nested_webpack_require_823836__(1868));
|
195369
195370
|
exports.debug = debug_1.default;
|
195370
|
-
const get_ignore_filter_1 = __importDefault(
|
195371
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_823836__(1148));
|
195371
195372
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
195372
|
-
const get_platform_env_1 =
|
195373
|
+
const get_platform_env_1 = __nested_webpack_require_823836__(4678);
|
195373
195374
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
195374
|
-
var edge_function_1 =
|
195375
|
+
var edge_function_1 = __nested_webpack_require_823836__(8038);
|
195375
195376
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
195376
|
-
var read_config_file_1 =
|
195377
|
+
var read_config_file_1 = __nested_webpack_require_823836__(7792);
|
195377
195378
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
195378
|
-
var normalize_path_1 =
|
195379
|
+
var normalize_path_1 = __nested_webpack_require_823836__(6261);
|
195379
195380
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
195380
|
-
__exportStar(
|
195381
|
-
__exportStar(
|
195382
|
-
__exportStar(
|
195383
|
-
__exportStar(
|
195381
|
+
__exportStar(__nested_webpack_require_823836__(2564), exports);
|
195382
|
+
__exportStar(__nested_webpack_require_823836__(2416), exports);
|
195383
|
+
__exportStar(__nested_webpack_require_823836__(5748), exports);
|
195384
|
+
__exportStar(__nested_webpack_require_823836__(3983), exports);
|
195384
195385
|
|
195385
195386
|
|
195386
195387
|
/***/ }),
|
195387
195388
|
|
195388
195389
|
/***/ 6721:
|
195389
|
-
/***/ (function(__unused_webpack_module, exports,
|
195390
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_832081__) {
|
195390
195391
|
|
195391
195392
|
"use strict";
|
195392
195393
|
|
@@ -195395,13 +195396,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
195395
195396
|
};
|
195396
195397
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195397
195398
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
195398
|
-
const assert_1 = __importDefault(
|
195399
|
-
const async_sema_1 = __importDefault(
|
195400
|
-
const yazl_1 =
|
195401
|
-
const minimatch_1 = __importDefault(
|
195402
|
-
const fs_extra_1 =
|
195403
|
-
const download_1 =
|
195404
|
-
const stream_to_buffer_1 = __importDefault(
|
195399
|
+
const assert_1 = __importDefault(__nested_webpack_require_832081__(2357));
|
195400
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_832081__(5758));
|
195401
|
+
const yazl_1 = __nested_webpack_require_832081__(1223);
|
195402
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_832081__(9566));
|
195403
|
+
const fs_extra_1 = __nested_webpack_require_832081__(5392);
|
195404
|
+
const download_1 = __nested_webpack_require_832081__(1611);
|
195405
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_832081__(2560));
|
195405
195406
|
class Lambda {
|
195406
195407
|
constructor(opts) {
|
195407
195408
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
@@ -195523,13 +195524,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
195523
195524
|
/***/ }),
|
195524
195525
|
|
195525
195526
|
/***/ 7049:
|
195526
|
-
/***/ ((__unused_webpack_module, exports,
|
195527
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_837538__) => {
|
195527
195528
|
|
195528
195529
|
"use strict";
|
195529
195530
|
|
195530
195531
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195531
195532
|
exports.NodejsLambda = void 0;
|
195532
|
-
const lambda_1 =
|
195533
|
+
const lambda_1 = __nested_webpack_require_837538__(6721);
|
195533
195534
|
class NodejsLambda extends lambda_1.Lambda {
|
195534
195535
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
195535
195536
|
super(opts);
|
@@ -195666,13 +195667,13 @@ exports.buildsSchema = {
|
|
195666
195667
|
/***/ }),
|
195667
195668
|
|
195668
195669
|
/***/ 2564:
|
195669
|
-
/***/ ((__unused_webpack_module, exports,
|
195670
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_841883__) => {
|
195670
195671
|
|
195671
195672
|
"use strict";
|
195672
195673
|
|
195673
195674
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195674
195675
|
exports.shouldServe = void 0;
|
195675
|
-
const path_1 =
|
195676
|
+
const path_1 = __nested_webpack_require_841883__(5622);
|
195676
195677
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
195677
195678
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
195678
195679
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -195901,7 +195902,7 @@ module.exports = __webpack_require__(78761);
|
|
195901
195902
|
/******/ var __webpack_module_cache__ = {};
|
195902
195903
|
/******/
|
195903
195904
|
/******/ // The require function
|
195904
|
-
/******/ function
|
195905
|
+
/******/ function __nested_webpack_require_941560__(moduleId) {
|
195905
195906
|
/******/ // Check if module is in cache
|
195906
195907
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
195907
195908
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -195916,7 +195917,7 @@ module.exports = __webpack_require__(78761);
|
|
195916
195917
|
/******/ // Execute the module function
|
195917
195918
|
/******/ var threw = true;
|
195918
195919
|
/******/ try {
|
195919
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
195920
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_941560__);
|
195920
195921
|
/******/ threw = false;
|
195921
195922
|
/******/ } finally {
|
195922
195923
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -195929,11 +195930,11 @@ module.exports = __webpack_require__(78761);
|
|
195929
195930
|
/************************************************************************/
|
195930
195931
|
/******/ /* webpack/runtime/compat */
|
195931
195932
|
/******/
|
195932
|
-
/******/
|
195933
|
+
/******/ __nested_webpack_require_941560__.ab = __dirname + "/";/************************************************************************/
|
195933
195934
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
195934
195935
|
/******/ // startup
|
195935
195936
|
/******/ // Load entry module and return exports
|
195936
|
-
/******/ return
|
195937
|
+
/******/ return __nested_webpack_require_941560__(2855);
|
195937
195938
|
/******/ })()
|
195938
195939
|
;
|
195939
195940
|
|
@@ -206561,7 +206562,7 @@ let subcommand;
|
|
206561
206562
|
}
|
206562
206563
|
|
206563
206564
|
// This is required, otherwise we get those weird zlib errors
|
206564
|
-
return (0,exit
|
206565
|
+
return (0,exit/* default */.Z)(0);
|
206565
206566
|
});
|
206566
206567
|
|
206567
206568
|
// Builds a `choices` object that can be passesd to inquirer.prompt()
|
@@ -206885,7 +206886,7 @@ const main = async client => {
|
|
206885
206886
|
|
206886
206887
|
if (argv.help || !subcommand) {
|
206887
206888
|
help();
|
206888
|
-
await (0,exit
|
206889
|
+
await (0,exit/* default */.Z)(0);
|
206889
206890
|
}
|
206890
206891
|
|
206891
206892
|
const {
|
@@ -219896,7 +219897,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
219896
219897
|
exports.detectFileSystemAPI = void 0;
|
219897
219898
|
const semver_1 = __importDefault(__webpack_require__(59445));
|
219898
219899
|
const _1 = __webpack_require__(20302);
|
219899
|
-
const enableFileSystemApiFrameworks = new Set(['solidstart']);
|
219900
219900
|
/**
|
219901
219901
|
* If the Deployment can be built with the new File System API,
|
219902
219902
|
* return the new Builder. Otherwise an "Exclusion Condition"
|
@@ -219913,10 +219913,7 @@ async function detectFileSystemAPI({ files, projectSettings, builders, vercelCon
|
|
219913
219913
|
hasDotOutput,
|
219914
219914
|
hasMiddleware,
|
219915
219915
|
};
|
219916
|
-
const isEnabled = enableFlag ||
|
219917
|
-
hasMiddleware ||
|
219918
|
-
hasDotOutput ||
|
219919
|
-
enableFileSystemApiFrameworks.has(framework);
|
219916
|
+
const isEnabled = enableFlag || hasMiddleware || hasDotOutput;
|
219920
219917
|
if (!isEnabled) {
|
219921
219918
|
return { metadata, fsApiBuilder: null, reason: 'Flag not enabled.' };
|
219922
219919
|
}
|
@@ -220121,12 +220118,13 @@ async function matches(fs, framework) {
|
|
220121
220118
|
return result.every(res => res === true);
|
220122
220119
|
}
|
220123
220120
|
async function detectFramework({ fs, frameworkList, }) {
|
220124
|
-
|
220125
|
-
if (await matches(fs,
|
220126
|
-
return
|
220121
|
+
const result = await Promise.all(frameworkList.map(async (frameworkMatch) => {
|
220122
|
+
if (await matches(fs, frameworkMatch)) {
|
220123
|
+
return frameworkMatch.slug;
|
220127
220124
|
}
|
220128
|
-
|
220129
|
-
|
220125
|
+
return null;
|
220126
|
+
}));
|
220127
|
+
return result.find(res => res !== null) ?? null;
|
220130
220128
|
}
|
220131
220129
|
exports.detectFramework = detectFramework;
|
220132
220130
|
//# sourceMappingURL=detect-framework.js.map
|
@@ -230957,8 +230955,7 @@ async function main(client) {
|
|
230957
230955
|
const buildResults = new Map();
|
230958
230956
|
const overrides = [];
|
230959
230957
|
const repoRootPath = cwd;
|
230960
|
-
const
|
230961
|
-
const corepackShimDir = await corepack_1.initCorepack({ cwd, rootPackageJsonPath });
|
230958
|
+
const corepackShimDir = await corepack_1.initCorepack({ repoRootPath });
|
230962
230959
|
for (const build of builds) {
|
230963
230960
|
if (typeof build.src !== 'string')
|
230964
230961
|
continue;
|
@@ -231727,6 +231724,7 @@ const help = () => `
|
|
231727
231724
|
deploy [path] Performs a deployment ${chalk_1.default.bold('(default)')}
|
231728
231725
|
dev Start a local development server
|
231729
231726
|
env Manages the Environment Variables for your current Project
|
231727
|
+
git Manage Git provider repository for your current Project
|
231730
231728
|
init [example] Initialize an example project
|
231731
231729
|
ls | list [app] Lists deployments
|
231732
231730
|
inspect [id] Displays information related to a deployment
|
@@ -231861,7 +231859,7 @@ const args_1 = __webpack_require__(56870);
|
|
231861
231859
|
const get_deployment_checks_1 = __webpack_require__(58293);
|
231862
231860
|
const parse_target_1 = __importDefault(__webpack_require__(77601));
|
231863
231861
|
const get_prebuilt_json_1 = __importDefault(__webpack_require__(91307));
|
231864
|
-
const create_git_meta_1 = __webpack_require__(
|
231862
|
+
const create_git_meta_1 = __webpack_require__(21084);
|
231865
231863
|
exports.default = async (client) => {
|
231866
231864
|
const { output } = client;
|
231867
231865
|
let argv = null;
|
@@ -234666,6 +234664,251 @@ async function rm(client, project, opts, args, output) {
|
|
234666
234664
|
exports.default = rm;
|
234667
234665
|
|
234668
234666
|
|
234667
|
+
/***/ }),
|
234668
|
+
|
234669
|
+
/***/ 19017:
|
234670
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
234671
|
+
|
234672
|
+
"use strict";
|
234673
|
+
|
234674
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
234675
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
234676
|
+
};
|
234677
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
234678
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
234679
|
+
const path_1 = __webpack_require__(85622);
|
234680
|
+
const create_git_meta_1 = __webpack_require__(21084);
|
234681
|
+
const confirm_1 = __importDefault(__webpack_require__(33564));
|
234682
|
+
const link_1 = __importDefault(__webpack_require__(98472));
|
234683
|
+
const pkg_name_1 = __webpack_require__(98106);
|
234684
|
+
const connect_git_provider_1 = __webpack_require__(35650);
|
234685
|
+
const validate_paths_1 = __importDefault(__webpack_require__(54579));
|
234686
|
+
async function connect(client, argv, args, project, org) {
|
234687
|
+
const { output } = client;
|
234688
|
+
const confirm = Boolean(argv['--confirm']);
|
234689
|
+
if (args.length !== 0) {
|
234690
|
+
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project connect')}`)}`);
|
234691
|
+
return 2;
|
234692
|
+
}
|
234693
|
+
if (!project || !org) {
|
234694
|
+
output.error(`Can't find \`org\` or \`project\`. Make sure your current directory is linked to a Vercel projet by running ${pkg_name_1.getCommandName('link')}.`);
|
234695
|
+
return 1;
|
234696
|
+
}
|
234697
|
+
let paths = [process.cwd()];
|
234698
|
+
const validate = await validate_paths_1.default(client, paths);
|
234699
|
+
if (!validate.valid) {
|
234700
|
+
return validate.exitCode;
|
234701
|
+
}
|
234702
|
+
const { path } = validate;
|
234703
|
+
const gitProviderLink = project.link;
|
234704
|
+
client.config.currentTeam = org.type === 'team' ? org.id : undefined;
|
234705
|
+
// get project from .git
|
234706
|
+
const gitConfigPath = path_1.join(path, '.git/config');
|
234707
|
+
const gitConfig = await create_git_meta_1.parseGitConfig(gitConfigPath, output);
|
234708
|
+
if (!gitConfig) {
|
234709
|
+
output.error(`No local git repo found. Run ${chalk_1.default.cyan('`git clone <url>`')} to clone a remote Git repository first.`);
|
234710
|
+
return 1;
|
234711
|
+
}
|
234712
|
+
const remoteUrl = create_git_meta_1.pluckRemoteUrl(gitConfig);
|
234713
|
+
if (!remoteUrl) {
|
234714
|
+
output.error(`No remote origin URL found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${chalk_1.default.cyan('`git remote --help`')} for more details.`);
|
234715
|
+
return 1;
|
234716
|
+
}
|
234717
|
+
output.log(`Identified Git remote "origin": ${link_1.default(remoteUrl)}`);
|
234718
|
+
const parsedUrl = connect_git_provider_1.parseRepoUrl(remoteUrl);
|
234719
|
+
if (!parsedUrl) {
|
234720
|
+
output.error(`Failed to parse Git repo data from the following remote URL in your Git config: ${link_1.default(remoteUrl)}`);
|
234721
|
+
return 1;
|
234722
|
+
}
|
234723
|
+
const { provider, org: gitOrg, repo } = parsedUrl;
|
234724
|
+
const repoPath = `${gitOrg}/${repo}`;
|
234725
|
+
let connectedRepoPath;
|
234726
|
+
if (!gitProviderLink) {
|
234727
|
+
const connect = await connect_git_provider_1.connectGitProvider(client, org, project.id, provider, repoPath);
|
234728
|
+
if (typeof connect === 'number') {
|
234729
|
+
return connect;
|
234730
|
+
}
|
234731
|
+
}
|
234732
|
+
else {
|
234733
|
+
const connectedProvider = gitProviderLink.type;
|
234734
|
+
const connectedOrg = gitProviderLink.org;
|
234735
|
+
const connectedRepo = gitProviderLink.repo;
|
234736
|
+
connectedRepoPath = `${connectedOrg}/${connectedRepo}`;
|
234737
|
+
const isSameRepo = connectedProvider === provider &&
|
234738
|
+
connectedOrg === gitOrg &&
|
234739
|
+
connectedRepo === repo;
|
234740
|
+
if (isSameRepo) {
|
234741
|
+
output.log(`${chalk_1.default.cyan(connectedRepoPath)} is already connected to your project.`);
|
234742
|
+
return 1;
|
234743
|
+
}
|
234744
|
+
const shouldReplaceRepo = await confirmRepoConnect(client, output, confirm, connectedRepoPath);
|
234745
|
+
if (!shouldReplaceRepo) {
|
234746
|
+
return 0;
|
234747
|
+
}
|
234748
|
+
await connect_git_provider_1.disconnectGitProvider(client, org, project.id);
|
234749
|
+
const connect = await connect_git_provider_1.connectGitProvider(client, org, project.id, provider, repoPath);
|
234750
|
+
if (typeof connect === 'number') {
|
234751
|
+
return connect;
|
234752
|
+
}
|
234753
|
+
}
|
234754
|
+
output.log(`Connected ${connect_git_provider_1.formatProvider(provider)} repository ${chalk_1.default.cyan(repoPath)}!`);
|
234755
|
+
return 0;
|
234756
|
+
}
|
234757
|
+
exports.default = connect;
|
234758
|
+
async function confirmRepoConnect(client, output, yes, connectedRepoPath) {
|
234759
|
+
let shouldReplaceProject = yes;
|
234760
|
+
if (!shouldReplaceProject) {
|
234761
|
+
shouldReplaceProject = await confirm_1.default(client, `Looks like you already have a repository connected: ${chalk_1.default.cyan(connectedRepoPath)}. Do you want to replace it?`, true);
|
234762
|
+
if (!shouldReplaceProject) {
|
234763
|
+
output.log(`Aborted. Repo not connected.`);
|
234764
|
+
}
|
234765
|
+
}
|
234766
|
+
return shouldReplaceProject;
|
234767
|
+
}
|
234768
|
+
|
234769
|
+
|
234770
|
+
/***/ }),
|
234771
|
+
|
234772
|
+
/***/ 36316:
|
234773
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
234774
|
+
|
234775
|
+
"use strict";
|
234776
|
+
|
234777
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
234778
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
234779
|
+
};
|
234780
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
234781
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
234782
|
+
const confirm_1 = __importDefault(__webpack_require__(33564));
|
234783
|
+
const pkg_name_1 = __webpack_require__(98106);
|
234784
|
+
const connect_git_provider_1 = __webpack_require__(35650);
|
234785
|
+
async function disconnect(client, args, project, org) {
|
234786
|
+
const { output } = client;
|
234787
|
+
if (args.length !== 0) {
|
234788
|
+
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project disconnect')}`)}`);
|
234789
|
+
return 2;
|
234790
|
+
}
|
234791
|
+
if (!project || !org) {
|
234792
|
+
output.error('An unexpected error occurred.');
|
234793
|
+
return 1;
|
234794
|
+
}
|
234795
|
+
if (project.link) {
|
234796
|
+
const { org: linkOrg, repo } = project.link;
|
234797
|
+
output.print(`Your Vercel project will no longer create deployments when you push to this repository.\n`);
|
234798
|
+
const confirmDisconnect = await confirm_1.default(client, `Are you sure you want to disconnect ${chalk_1.default.cyan(`${linkOrg}/${repo}`)} from your project?`, false);
|
234799
|
+
if (confirmDisconnect) {
|
234800
|
+
await connect_git_provider_1.disconnectGitProvider(client, org, project.id);
|
234801
|
+
output.log(`Disconnected ${chalk_1.default.cyan(`${linkOrg}/${repo}`)}.`);
|
234802
|
+
}
|
234803
|
+
else {
|
234804
|
+
output.log('Aborted.');
|
234805
|
+
}
|
234806
|
+
}
|
234807
|
+
else {
|
234808
|
+
output.error(`No Git repository connected. Run ${pkg_name_1.getCommandName('project connect')} to connect one.`);
|
234809
|
+
return 1;
|
234810
|
+
}
|
234811
|
+
return 0;
|
234812
|
+
}
|
234813
|
+
exports.default = disconnect;
|
234814
|
+
|
234815
|
+
|
234816
|
+
/***/ }),
|
234817
|
+
|
234818
|
+
/***/ 94715:
|
234819
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
234820
|
+
|
234821
|
+
"use strict";
|
234822
|
+
|
234823
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
234824
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
234825
|
+
};
|
234826
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
234827
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
234828
|
+
const ensure_link_1 = __webpack_require__(18067);
|
234829
|
+
const get_args_1 = __importDefault(__webpack_require__(87612));
|
234830
|
+
const get_invalid_subcommand_1 = __importDefault(__webpack_require__(89543));
|
234831
|
+
const handle_error_1 = __importDefault(__webpack_require__(70870));
|
234832
|
+
const logo_1 = __importDefault(__webpack_require__(9829));
|
234833
|
+
const pkg_name_1 = __webpack_require__(98106);
|
234834
|
+
const validate_paths_1 = __importDefault(__webpack_require__(54579));
|
234835
|
+
const connect_1 = __importDefault(__webpack_require__(19017));
|
234836
|
+
const disconnect_1 = __importDefault(__webpack_require__(36316));
|
234837
|
+
const help = () => {
|
234838
|
+
console.log(`
|
234839
|
+
${chalk_1.default.bold(`${logo_1.default} ${pkg_name_1.getPkgName()} git`)} <command>
|
234840
|
+
|
234841
|
+
${chalk_1.default.dim('Commands:')}
|
234842
|
+
|
234843
|
+
connect Connect your Git config "origin" remote as a Git provider to your project
|
234844
|
+
disconnect Disconnect the Git provider repository from your project
|
234845
|
+
|
234846
|
+
${chalk_1.default.dim('Options:')}
|
234847
|
+
|
234848
|
+
-h, --help Output usage information
|
234849
|
+
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
234850
|
+
|
234851
|
+
${chalk_1.default.dim('Examples:')}
|
234852
|
+
|
234853
|
+
${chalk_1.default.gray('–')} Connect a Git provider repository
|
234854
|
+
|
234855
|
+
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()} git connect`)}
|
234856
|
+
|
234857
|
+
${chalk_1.default.gray('–')} Disconnect the Git provider repository
|
234858
|
+
|
234859
|
+
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()} git disconnect`)}
|
234860
|
+
`);
|
234861
|
+
};
|
234862
|
+
const COMMAND_CONFIG = {
|
234863
|
+
connect: ['connect'],
|
234864
|
+
disconnect: ['disconnect'],
|
234865
|
+
};
|
234866
|
+
async function main(client) {
|
234867
|
+
let argv;
|
234868
|
+
let subcommand;
|
234869
|
+
try {
|
234870
|
+
argv = get_args_1.default(client.argv.slice(2), {
|
234871
|
+
'--confirm': Boolean,
|
234872
|
+
});
|
234873
|
+
}
|
234874
|
+
catch (error) {
|
234875
|
+
handle_error_1.default(error);
|
234876
|
+
return 1;
|
234877
|
+
}
|
234878
|
+
if (argv['--help']) {
|
234879
|
+
help();
|
234880
|
+
return 2;
|
234881
|
+
}
|
234882
|
+
argv._ = argv._.slice(1);
|
234883
|
+
subcommand = argv._[0];
|
234884
|
+
const args = argv._.slice(1);
|
234885
|
+
const confirm = Boolean(argv['--confirm']);
|
234886
|
+
const { output } = client;
|
234887
|
+
let paths = [process.cwd()];
|
234888
|
+
const pathValidation = await validate_paths_1.default(client, paths);
|
234889
|
+
if (!pathValidation.valid) {
|
234890
|
+
return pathValidation.exitCode;
|
234891
|
+
}
|
234892
|
+
const { path } = pathValidation;
|
234893
|
+
const linkedProject = await ensure_link_1.ensureLink('git', client, path, confirm);
|
234894
|
+
if (typeof linkedProject === 'number') {
|
234895
|
+
return linkedProject;
|
234896
|
+
}
|
234897
|
+
const { org, project } = linkedProject;
|
234898
|
+
switch (subcommand) {
|
234899
|
+
case 'connect':
|
234900
|
+
return await connect_1.default(client, argv, args, project, org);
|
234901
|
+
case 'disconnect':
|
234902
|
+
return await disconnect_1.default(client, args, project, org);
|
234903
|
+
default:
|
234904
|
+
output.error(get_invalid_subcommand_1.default(COMMAND_CONFIG));
|
234905
|
+
help();
|
234906
|
+
return 2;
|
234907
|
+
}
|
234908
|
+
}
|
234909
|
+
exports.default = main;
|
234910
|
+
|
234911
|
+
|
234669
234912
|
/***/ }),
|
234670
234913
|
|
234671
234914
|
/***/ 87136:
|
@@ -234690,6 +234933,7 @@ exports.default = new Map([
|
|
234690
234933
|
['domain', 'domains'],
|
234691
234934
|
['domains', 'domains'],
|
234692
234935
|
['env', 'env'],
|
234936
|
+
['git', 'git'],
|
234693
234937
|
['help', 'help'],
|
234694
234938
|
['init', 'init'],
|
234695
234939
|
['inspect', 'inspect'],
|
@@ -234701,8 +234945,8 @@ exports.default = new Map([
|
|
234701
234945
|
['logout', 'logout'],
|
234702
234946
|
['logs', 'logs'],
|
234703
234947
|
['ls', 'list'],
|
234704
|
-
['project', '
|
234705
|
-
['projects', '
|
234948
|
+
['project', 'project'],
|
234949
|
+
['projects', 'project'],
|
234706
234950
|
['pull', 'pull'],
|
234707
234951
|
['remove', 'remove'],
|
234708
234952
|
['rm', 'remove'],
|
@@ -235975,7 +236219,7 @@ function toTimestamp(datestr) {
|
|
235975
236219
|
|
235976
236220
|
/***/ }),
|
235977
236221
|
|
235978
|
-
/***/
|
236222
|
+
/***/ 38128:
|
235979
236223
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
235980
236224
|
|
235981
236225
|
"use strict";
|
@@ -235986,19 +236230,65 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
235986
236230
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
235987
236231
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
235988
236232
|
const ms_1 = __importDefault(__webpack_require__(80040));
|
235989
|
-
const
|
235990
|
-
|
236233
|
+
const pkg_name_1 = __webpack_require__(98106);
|
236234
|
+
async function add(client, args, contextName) {
|
236235
|
+
const { output } = client;
|
236236
|
+
if (args.length !== 1) {
|
236237
|
+
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project add <name>')}`)}`);
|
236238
|
+
if (args.length > 1) {
|
236239
|
+
const example = chalk_1.default.cyan(`${pkg_name_1.getCommandName(`project add "${args.join(' ')}"`)}`);
|
236240
|
+
output.log(`If your project name has spaces, make sure to wrap it in quotes. Example: \n ${example} `);
|
236241
|
+
}
|
236242
|
+
return 1;
|
236243
|
+
}
|
236244
|
+
const start = Date.now();
|
236245
|
+
const [name] = args;
|
236246
|
+
try {
|
236247
|
+
await client.fetch('/projects', {
|
236248
|
+
method: 'POST',
|
236249
|
+
body: { name },
|
236250
|
+
});
|
236251
|
+
}
|
236252
|
+
catch (error) {
|
236253
|
+
if (error.status === 409) {
|
236254
|
+
// project already exists, so we can
|
236255
|
+
// show a success message
|
236256
|
+
}
|
236257
|
+
else {
|
236258
|
+
throw error;
|
236259
|
+
}
|
236260
|
+
}
|
236261
|
+
const elapsed = ms_1.default(Date.now() - start);
|
236262
|
+
output.log(`${chalk_1.default.cyan('Success!')} Project ${chalk_1.default.bold(name.toLowerCase())} added (${chalk_1.default.bold(contextName)}) ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236263
|
+
return;
|
236264
|
+
}
|
236265
|
+
exports.default = add;
|
236266
|
+
|
236267
|
+
|
236268
|
+
/***/ }),
|
236269
|
+
|
236270
|
+
/***/ 26387:
|
236271
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
236272
|
+
|
236273
|
+
"use strict";
|
236274
|
+
|
236275
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
236276
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
236277
|
+
};
|
236278
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
236279
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
235991
236280
|
const get_args_1 = __importDefault(__webpack_require__(87612));
|
235992
|
-
const
|
235993
|
-
const exit_1 = __importDefault(__webpack_require__(54732));
|
235994
|
-
const logo_1 = __importDefault(__webpack_require__(9829));
|
236281
|
+
const get_invalid_subcommand_1 = __importDefault(__webpack_require__(89543));
|
235995
236282
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
235996
|
-
const
|
236283
|
+
const handle_error_1 = __importDefault(__webpack_require__(70870));
|
236284
|
+
const logo_1 = __importDefault(__webpack_require__(9829));
|
235997
236285
|
const pkg_name_1 = __webpack_require__(98106);
|
235998
|
-
const
|
236286
|
+
const add_1 = __importDefault(__webpack_require__(38128));
|
236287
|
+
const list_1 = __importDefault(__webpack_require__(38696));
|
236288
|
+
const rm_1 = __importDefault(__webpack_require__(76136));
|
235999
236289
|
const help = () => {
|
236000
236290
|
console.log(`
|
236001
|
-
${chalk_1.default.bold(`${logo_1.default} ${pkg_name_1.getPkgName()}
|
236291
|
+
${chalk_1.default.bold(`${logo_1.default} ${pkg_name_1.getPkgName()} project`)} [options] <command>
|
236002
236292
|
|
236003
236293
|
${chalk_1.default.dim('Commands:')}
|
236004
236294
|
|
@@ -236017,16 +236307,21 @@ const help = () => {
|
|
236017
236307
|
|
236018
236308
|
${chalk_1.default.gray('–')} Add a new project
|
236019
236309
|
|
236020
|
-
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()}
|
236310
|
+
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()} project add my-project`)}
|
236021
236311
|
|
236022
236312
|
${chalk_1.default.gray('–')} Paginate projects, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
|
236023
236313
|
|
236024
|
-
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()}
|
236314
|
+
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()} project ls --next 1584722256178`)}
|
236025
236315
|
`);
|
236026
236316
|
};
|
236027
|
-
|
236028
|
-
|
236029
|
-
|
236317
|
+
const COMMAND_CONFIG = {
|
236318
|
+
ls: ['ls', 'list'],
|
236319
|
+
add: ['add'],
|
236320
|
+
rm: ['rm', 'remove'],
|
236321
|
+
};
|
236322
|
+
async function main(client) {
|
236323
|
+
let argv;
|
236324
|
+
let subcommand;
|
236030
236325
|
try {
|
236031
236326
|
argv = get_args_1.default(client.argv.slice(2), {
|
236032
236327
|
'--next': Number,
|
@@ -236034,163 +236329,157 @@ const main = async (client) => {
|
|
236034
236329
|
});
|
236035
236330
|
}
|
236036
236331
|
catch (error) {
|
236037
|
-
|
236038
|
-
return
|
236332
|
+
handle_error_1.default(error);
|
236333
|
+
return 1;
|
236039
236334
|
}
|
236040
|
-
argv._ = argv._.slice(1);
|
236041
|
-
subcommand = argv._[0] || 'list';
|
236042
236335
|
if (argv['--help']) {
|
236043
236336
|
help();
|
236044
|
-
return
|
236337
|
+
return 2;
|
236045
236338
|
}
|
236339
|
+
argv._ = argv._.slice(1);
|
236340
|
+
subcommand = argv._[0] || 'list';
|
236341
|
+
const args = argv._.slice(1);
|
236046
236342
|
const { output } = client;
|
236047
|
-
let contextName =
|
236343
|
+
let contextName = '';
|
236048
236344
|
try {
|
236049
236345
|
({ contextName } = await get_scope_1.default(client));
|
236050
236346
|
}
|
236051
|
-
catch (
|
236052
|
-
if (
|
236053
|
-
output.error(
|
236347
|
+
catch (error) {
|
236348
|
+
if (error.code === 'NOT_AUTHORIZED' || error.code === 'TEAM_DELETED') {
|
236349
|
+
output.error(error.message);
|
236054
236350
|
return 1;
|
236055
236351
|
}
|
236056
|
-
throw
|
236057
|
-
}
|
236058
|
-
try {
|
236059
|
-
await run({ client, contextName });
|
236060
|
-
}
|
236061
|
-
catch (err) {
|
236062
|
-
error_1.handleError(err);
|
236063
|
-
exit_1.default(1);
|
236064
|
-
}
|
236065
|
-
};
|
236066
|
-
exports.default = async (client) => {
|
236067
|
-
try {
|
236068
|
-
await main(client);
|
236352
|
+
throw error;
|
236069
236353
|
}
|
236070
|
-
|
236071
|
-
|
236072
|
-
|
236354
|
+
switch (subcommand) {
|
236355
|
+
case 'ls':
|
236356
|
+
case 'list':
|
236357
|
+
return await list_1.default(client, argv, args, contextName);
|
236358
|
+
case 'add':
|
236359
|
+
return await add_1.default(client, args, contextName);
|
236360
|
+
case 'rm':
|
236361
|
+
case 'remove':
|
236362
|
+
return await rm_1.default(client, args);
|
236363
|
+
default:
|
236364
|
+
output.error(get_invalid_subcommand_1.default(COMMAND_CONFIG));
|
236365
|
+
help();
|
236366
|
+
return 2;
|
236073
236367
|
}
|
236368
|
+
}
|
236369
|
+
exports.default = main;
|
236370
|
+
|
236371
|
+
|
236372
|
+
/***/ }),
|
236373
|
+
|
236374
|
+
/***/ 38696:
|
236375
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
236376
|
+
|
236377
|
+
"use strict";
|
236378
|
+
|
236379
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
236380
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
236074
236381
|
};
|
236075
|
-
|
236382
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
236383
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
236384
|
+
const ms_1 = __importDefault(__webpack_require__(80040));
|
236385
|
+
const text_table_1 = __importDefault(__webpack_require__(3221));
|
236386
|
+
const get_command_flags_1 = __importDefault(__webpack_require__(68927));
|
236387
|
+
const pkg_name_1 = __webpack_require__(98106);
|
236388
|
+
const strlen_1 = __importDefault(__webpack_require__(17606));
|
236389
|
+
async function list(client, argv, args, contextName) {
|
236076
236390
|
const { output } = client;
|
236077
|
-
|
236391
|
+
if (args.length !== 0) {
|
236392
|
+
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project ls')}`)}`);
|
236393
|
+
return 2;
|
236394
|
+
}
|
236078
236395
|
const start = Date.now();
|
236079
|
-
|
236080
|
-
|
236081
|
-
|
236082
|
-
|
236083
|
-
}
|
236084
|
-
output.spinner(`Fetching projects in ${chalk_1.default.bold(contextName)}`);
|
236085
|
-
let projectsUrl = '/v4/projects/?limit=20';
|
236086
|
-
const next = argv['--next'];
|
236087
|
-
if (next) {
|
236088
|
-
projectsUrl += `&until=${next}`;
|
236089
|
-
}
|
236090
|
-
const { projects: list, pagination, } = await client.fetch(projectsUrl, {
|
236091
|
-
method: 'GET',
|
236092
|
-
});
|
236093
|
-
output.stopSpinner();
|
236094
|
-
const elapsed = ms_1.default(Date.now() - start);
|
236095
|
-
console.log(`> ${list.length > 0 ? 'Projects' : 'No projects'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236096
|
-
if (list.length > 0) {
|
236097
|
-
const cur = Date.now();
|
236098
|
-
const header = [['', 'name', 'updated'].map(title => chalk_1.default.dim(title))];
|
236099
|
-
const out = text_table_1.default(header.concat(list.map(secret => [
|
236100
|
-
'',
|
236101
|
-
chalk_1.default.bold(secret.name),
|
236102
|
-
chalk_1.default.gray(`${ms_1.default(cur - secret.updatedAt)} ago`),
|
236103
|
-
])), {
|
236104
|
-
align: ['l', 'l', 'l'],
|
236105
|
-
hsep: ' '.repeat(2),
|
236106
|
-
stringLength: strlen_1.default,
|
236107
|
-
});
|
236108
|
-
if (out) {
|
236109
|
-
console.log(`\n${out}\n`);
|
236110
|
-
}
|
236111
|
-
if (pagination && pagination.count === 20) {
|
236112
|
-
const flags = get_command_flags_1.default(argv, ['_', '--next', '-N', '-d', '-y']);
|
236113
|
-
const nextCmd = `projects ls${flags} --next ${pagination.next}`;
|
236114
|
-
console.log(`To display the next page run ${pkg_name_1.getCommandName(nextCmd)}`);
|
236115
|
-
}
|
236116
|
-
}
|
236117
|
-
return;
|
236396
|
+
output.spinner(`Fetching projects in ${chalk_1.default.bold(contextName)}`);
|
236397
|
+
let projectsUrl = '/v4/projects/?limit=20';
|
236398
|
+
const next = argv['--next'] || false;
|
236399
|
+
if (next) {
|
236400
|
+
projectsUrl += `&until=${next}`;
|
236118
236401
|
}
|
236119
|
-
|
236120
|
-
|
236121
|
-
|
236122
|
-
|
236123
|
-
|
236124
|
-
|
236125
|
-
|
236126
|
-
|
236127
|
-
|
236128
|
-
|
236129
|
-
|
236130
|
-
|
236131
|
-
|
236132
|
-
|
236133
|
-
|
236402
|
+
const { projects: list, pagination, } = await client.fetch(projectsUrl, {
|
236403
|
+
method: 'GET',
|
236404
|
+
});
|
236405
|
+
output.stopSpinner();
|
236406
|
+
const elapsed = ms_1.default(Date.now() - start);
|
236407
|
+
output.log(`${list.length > 0 ? 'Projects' : 'No projects'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236408
|
+
if (list.length > 0) {
|
236409
|
+
const cur = Date.now();
|
236410
|
+
const header = [['', 'name', 'updated'].map(title => chalk_1.default.dim(title))];
|
236411
|
+
const out = text_table_1.default(header.concat(list.map(secret => [
|
236412
|
+
'',
|
236413
|
+
chalk_1.default.bold(secret.name),
|
236414
|
+
chalk_1.default.gray(`${ms_1.default(cur - secret.updatedAt)} ago`),
|
236415
|
+
])), {
|
236416
|
+
align: ['l', 'l', 'l'],
|
236417
|
+
hsep: ' '.repeat(2),
|
236418
|
+
stringLength: strlen_1.default,
|
236419
|
+
});
|
236420
|
+
if (out) {
|
236421
|
+
output.print(`\n${out}\n\n`);
|
236134
236422
|
}
|
236135
|
-
|
236136
|
-
|
236137
|
-
|
236138
|
-
|
236139
|
-
}
|
236423
|
+
if (pagination && pagination.count === 20) {
|
236424
|
+
const flags = get_command_flags_1.default(argv, ['_', '--next', '-N', '-d', '-y']);
|
236425
|
+
const nextCmd = `project ls${flags} --next ${pagination.next}`;
|
236426
|
+
output.log(`To display the next page run ${pkg_name_1.getCommandName(nextCmd)}`);
|
236140
236427
|
}
|
236141
|
-
const elapsed = ms_1.default(Date.now() - start);
|
236142
|
-
console.log(`${chalk_1.default.cyan('> Success!')} Project ${chalk_1.default.bold(name)} removed ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236143
|
-
return;
|
236144
236428
|
}
|
236145
|
-
|
236146
|
-
|
236147
|
-
|
236148
|
-
|
236149
|
-
|
236150
|
-
|
236151
|
-
|
236152
|
-
|
236153
|
-
|
236154
|
-
|
236155
|
-
|
236156
|
-
|
236157
|
-
|
236158
|
-
|
236159
|
-
|
236160
|
-
|
236161
|
-
|
236162
|
-
|
236163
|
-
|
236164
|
-
|
236165
|
-
|
236166
|
-
|
236167
|
-
|
236168
|
-
|
236429
|
+
return 0;
|
236430
|
+
}
|
236431
|
+
exports.default = list;
|
236432
|
+
|
236433
|
+
|
236434
|
+
/***/ }),
|
236435
|
+
|
236436
|
+
/***/ 76136:
|
236437
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
236438
|
+
|
236439
|
+
"use strict";
|
236440
|
+
|
236441
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
236442
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
236443
|
+
};
|
236444
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
236445
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
236446
|
+
const ms_1 = __importDefault(__webpack_require__(80040));
|
236447
|
+
const emoji_1 = __webpack_require__(41806);
|
236448
|
+
const confirm_1 = __importDefault(__webpack_require__(33564));
|
236449
|
+
const pkg_name_1 = __webpack_require__(98106);
|
236450
|
+
const e = encodeURIComponent;
|
236451
|
+
async function rm(client, args) {
|
236452
|
+
if (args.length !== 1) {
|
236453
|
+
client.output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project rm <name>')}`)}`);
|
236454
|
+
return 1;
|
236455
|
+
}
|
236456
|
+
const name = args[0];
|
236457
|
+
const start = Date.now();
|
236458
|
+
const yes = await readConfirmation(client, name);
|
236459
|
+
if (!yes) {
|
236460
|
+
client.output.log('User abort');
|
236461
|
+
return 0;
|
236462
|
+
}
|
236463
|
+
try {
|
236464
|
+
await client.fetch(`/v2/projects/${e(name)}`, {
|
236465
|
+
method: 'DELETE',
|
236466
|
+
});
|
236467
|
+
}
|
236468
|
+
catch (err) {
|
236469
|
+
if (err.status === 404) {
|
236470
|
+
client.output.error('No such project exists');
|
236471
|
+
return 1;
|
236169
236472
|
}
|
236170
|
-
const elapsed = ms_1.default(Date.now() - start);
|
236171
|
-
console.log(`${chalk_1.default.cyan('> Success!')} Project ${chalk_1.default.bold(name.toLowerCase())} added (${chalk_1.default.bold(contextName)}) ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236172
|
-
return;
|
236173
236473
|
}
|
236174
|
-
|
236175
|
-
|
236176
|
-
|
236474
|
+
const elapsed = ms_1.default(Date.now() - start);
|
236475
|
+
client.output.log(`${chalk_1.default.cyan('Success!')} Project ${chalk_1.default.bold(name)} removed ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236476
|
+
return 0;
|
236177
236477
|
}
|
236178
|
-
|
236179
|
-
|
236180
|
-
|
236181
|
-
|
236182
|
-
|
236183
|
-
return new Promise(resolve => {
|
236184
|
-
process.stdout.write(`The project: ${chalk_1.default.bold(projectName)} will be removed permanently.\n` +
|
236185
|
-
`It will also delete everything under the project including deployments.\n`);
|
236186
|
-
process.stdout.write(`${chalk_1.default.bold.red('> Are you sure?')} ${chalk_1.default.gray('[y/N] ')}`);
|
236187
|
-
process.stdin
|
236188
|
-
.on('data', d => {
|
236189
|
-
process.stdin.pause();
|
236190
|
-
resolve(d.toString().trim().toLowerCase() === 'y');
|
236191
|
-
})
|
236192
|
-
.resume();
|
236193
|
-
});
|
236478
|
+
exports.default = rm;
|
236479
|
+
async function readConfirmation(client, projectName) {
|
236480
|
+
client.output.print(emoji_1.prependEmoji(`The project ${chalk_1.default.bold(projectName)} will be removed permanently.\n` +
|
236481
|
+
`It will also delete everything under the project including deployments.\n`, emoji_1.emoji('warning')));
|
236482
|
+
return await confirm_1.default(client, `${chalk_1.default.bold.red('Are you sure?')}`, false);
|
236194
236483
|
}
|
236195
236484
|
|
236196
236485
|
|
@@ -237488,7 +237777,8 @@ const main = async () => {
|
|
237488
237777
|
// * a path to deploy (as in: `vercel path/`)
|
237489
237778
|
// * a subcommand (as in: `vercel ls`)
|
237490
237779
|
const targetOrSubcommand = argv._[2];
|
237491
|
-
|
237780
|
+
// Currently no beta commands - add here as needed
|
237781
|
+
const betaCommands = [];
|
237492
237782
|
if (betaCommands.includes(targetOrSubcommand)) {
|
237493
237783
|
console.log(`${chalk_1.default.grey(`${pkg_name_1.getTitleName()} CLI ${pkg_1.default.version} ${targetOrSubcommand} (beta) — https://vercel.com/feedback`)}`);
|
237494
237784
|
}
|
@@ -237827,6 +238117,9 @@ const main = async () => {
|
|
237827
238117
|
case 'env':
|
237828
238118
|
func = __webpack_require__(41872).default;
|
237829
238119
|
break;
|
238120
|
+
case 'git':
|
238121
|
+
func = __webpack_require__(94715).default;
|
238122
|
+
break;
|
237830
238123
|
case 'init':
|
237831
238124
|
func = __webpack_require__(34499).default;
|
237832
238125
|
break;
|
@@ -237848,8 +238141,8 @@ const main = async () => {
|
|
237848
238141
|
case 'logout':
|
237849
238142
|
func = __webpack_require__(6299).default;
|
237850
238143
|
break;
|
237851
|
-
case '
|
237852
|
-
func = __webpack_require__(
|
238144
|
+
case 'project':
|
238145
|
+
func = __webpack_require__(26387).default;
|
237853
238146
|
break;
|
237854
238147
|
case 'pull':
|
237855
238148
|
func = __webpack_require__(6277).default;
|
@@ -238368,13 +238661,13 @@ const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
|
238368
238661
|
const errors_ts_1 = __webpack_require__(60156);
|
238369
238662
|
const link_1 = __webpack_require__(67630);
|
238370
238663
|
const read_json_file_1 = __importDefault(__webpack_require__(16898));
|
238371
|
-
async function initCorepack({
|
238664
|
+
async function initCorepack({ repoRootPath, }) {
|
238372
238665
|
if (process.env.ENABLE_EXPERIMENTAL_COREPACK !== '1') {
|
238373
238666
|
// Since corepack is experimental, we need to exit early
|
238374
238667
|
// unless the user explicitly enables it with the env var.
|
238375
238668
|
return null;
|
238376
238669
|
}
|
238377
|
-
const pkg = await read_json_file_1.default(path_1.join(
|
238670
|
+
const pkg = await read_json_file_1.default(path_1.join(repoRootPath, 'package.json'));
|
238378
238671
|
if (pkg instanceof errors_ts_1.CantParseJSONFile) {
|
238379
238672
|
console.warn('Warning: Could not enable corepack because package.json is invalid JSON');
|
238380
238673
|
}
|
@@ -238383,16 +238676,13 @@ async function initCorepack({ cwd, rootPackageJsonPath, }) {
|
|
238383
238676
|
}
|
238384
238677
|
else {
|
238385
238678
|
console.log(`Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "${pkg.packageManager}" in package.json`);
|
238386
|
-
const corepackRootDir = path_1.join(
|
238679
|
+
const corepackRootDir = path_1.join(repoRootPath, link_1.VERCEL_DIR, 'cache', 'corepack');
|
238387
238680
|
const corepackHomeDir = path_1.join(corepackRootDir, 'home');
|
238388
238681
|
const corepackShimDir = path_1.join(corepackRootDir, 'shim');
|
238389
238682
|
await fs_extra_1.default.mkdirp(corepackHomeDir);
|
238390
238683
|
await fs_extra_1.default.mkdirp(corepackShimDir);
|
238391
238684
|
process.env.COREPACK_HOME = corepackHomeDir;
|
238392
238685
|
process.env.PATH = `${corepackShimDir}${path_1.delimiter}${process.env.PATH}`;
|
238393
|
-
process.env.DEBUG = process.env.DEBUG
|
238394
|
-
? `corepack,${process.env.DEBUG}`
|
238395
|
-
: 'corepack';
|
238396
238686
|
const pkgManagerName = pkg.packageManager.split('@')[0];
|
238397
238687
|
// We must explicitly call `corepack enable npm` since `corepack enable`
|
238398
238688
|
// doesn't work with npm. See https://github.com/nodejs/corepack/pull/24
|
@@ -238416,14 +238706,6 @@ function cleanupCorepack(corepackShimDir) {
|
|
238416
238706
|
if (process.env.PATH) {
|
238417
238707
|
process.env.PATH = process.env.PATH.replace(`${corepackShimDir}${path_1.delimiter}`, '');
|
238418
238708
|
}
|
238419
|
-
if (process.env.DEBUG) {
|
238420
|
-
if (process.env.DEBUG === 'corepack') {
|
238421
|
-
delete process.env.DEBUG;
|
238422
|
-
}
|
238423
|
-
else {
|
238424
|
-
process.env.DEBUG = process.env.DEBUG.replace('corepack,', '');
|
238425
|
-
}
|
238426
|
-
}
|
238427
238709
|
}
|
238428
238710
|
exports.cleanupCorepack = cleanupCorepack;
|
238429
238711
|
|
@@ -240228,6 +240510,103 @@ exports.GA_TRACKING_ID = "UA-117491914-3";
|
|
240228
240510
|
exports.SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
|
240229
240511
|
|
240230
240512
|
|
240513
|
+
/***/ }),
|
240514
|
+
|
240515
|
+
/***/ 21084:
|
240516
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
240517
|
+
|
240518
|
+
"use strict";
|
240519
|
+
|
240520
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
240521
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
240522
|
+
};
|
240523
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
240524
|
+
exports.createGitMeta = exports.getRemoteUrl = exports.pluckRemoteUrl = exports.parseGitConfig = exports.isDirty = void 0;
|
240525
|
+
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
240526
|
+
const path_1 = __webpack_require__(85622);
|
240527
|
+
const ini_1 = __importDefault(__webpack_require__(61967));
|
240528
|
+
const git_last_commit_1 = __importDefault(__webpack_require__(13495));
|
240529
|
+
const child_process_1 = __webpack_require__(63129);
|
240530
|
+
function isDirty(directory, output) {
|
240531
|
+
return new Promise(resolve => {
|
240532
|
+
child_process_1.exec('git status -s', { cwd: directory }, function (err, stdout, stderr) {
|
240533
|
+
let debugMessage = `Failed to determine if Git repo has been modified:`;
|
240534
|
+
if (err || stderr) {
|
240535
|
+
if (err)
|
240536
|
+
debugMessage += `\n${err}`;
|
240537
|
+
if (stderr)
|
240538
|
+
debugMessage += `\n${stderr.trim()}`;
|
240539
|
+
output.debug(debugMessage);
|
240540
|
+
return resolve(false);
|
240541
|
+
}
|
240542
|
+
resolve(stdout.trim().length > 0);
|
240543
|
+
});
|
240544
|
+
});
|
240545
|
+
}
|
240546
|
+
exports.isDirty = isDirty;
|
240547
|
+
function getLastCommit(directory) {
|
240548
|
+
return new Promise((resolve, reject) => {
|
240549
|
+
git_last_commit_1.default.getLastCommit((err, commit) => {
|
240550
|
+
if (err)
|
240551
|
+
return reject(err);
|
240552
|
+
resolve(commit);
|
240553
|
+
}, { dst: directory });
|
240554
|
+
});
|
240555
|
+
}
|
240556
|
+
async function parseGitConfig(configPath, output) {
|
240557
|
+
try {
|
240558
|
+
return ini_1.default.parse(await fs_extra_1.default.readFile(configPath, 'utf-8'));
|
240559
|
+
}
|
240560
|
+
catch (error) {
|
240561
|
+
output.debug(`Error while parsing repo data: ${error.message}`);
|
240562
|
+
}
|
240563
|
+
}
|
240564
|
+
exports.parseGitConfig = parseGitConfig;
|
240565
|
+
function pluckRemoteUrl(gitConfig) {
|
240566
|
+
// Assuming "origin" is the remote url that the user would want to use
|
240567
|
+
return gitConfig['remote "origin"']?.url;
|
240568
|
+
}
|
240569
|
+
exports.pluckRemoteUrl = pluckRemoteUrl;
|
240570
|
+
async function getRemoteUrl(configPath, output) {
|
240571
|
+
let gitConfig = await parseGitConfig(configPath, output);
|
240572
|
+
if (!gitConfig) {
|
240573
|
+
return null;
|
240574
|
+
}
|
240575
|
+
const originUrl = pluckRemoteUrl(gitConfig);
|
240576
|
+
if (originUrl) {
|
240577
|
+
return originUrl;
|
240578
|
+
}
|
240579
|
+
return null;
|
240580
|
+
}
|
240581
|
+
exports.getRemoteUrl = getRemoteUrl;
|
240582
|
+
async function createGitMeta(directory, output) {
|
240583
|
+
const remoteUrl = await getRemoteUrl(path_1.join(directory, '.git/config'), output);
|
240584
|
+
// If we can't get the repo URL, then don't return any metadata
|
240585
|
+
if (!remoteUrl) {
|
240586
|
+
return;
|
240587
|
+
}
|
240588
|
+
const [commit, dirty] = await Promise.all([
|
240589
|
+
getLastCommit(directory).catch(err => {
|
240590
|
+
output.debug(`Failed to get last commit. The directory is likely not a Git repo, there are no latest commits, or it is corrupted.\n${err}`);
|
240591
|
+
return;
|
240592
|
+
}),
|
240593
|
+
isDirty(directory, output),
|
240594
|
+
]);
|
240595
|
+
if (!commit) {
|
240596
|
+
return;
|
240597
|
+
}
|
240598
|
+
return {
|
240599
|
+
remoteUrl,
|
240600
|
+
commitAuthorName: commit.author.name,
|
240601
|
+
commitMessage: commit.subject,
|
240602
|
+
commitRef: commit.branch,
|
240603
|
+
commitSha: commit.hash,
|
240604
|
+
dirty,
|
240605
|
+
};
|
240606
|
+
}
|
240607
|
+
exports.createGitMeta = createGitMeta;
|
240608
|
+
|
240609
|
+
|
240231
240610
|
/***/ }),
|
240232
240611
|
|
240233
240612
|
/***/ 80974:
|
@@ -240335,84 +240714,6 @@ async function createDeploy(client, now, contextName, paths, createArgs, org, is
|
|
240335
240714
|
exports.default = createDeploy;
|
240336
240715
|
|
240337
240716
|
|
240338
|
-
/***/ }),
|
240339
|
-
|
240340
|
-
/***/ 92282:
|
240341
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
240342
|
-
|
240343
|
-
"use strict";
|
240344
|
-
|
240345
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
240346
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
240347
|
-
};
|
240348
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
240349
|
-
exports.createGitMeta = exports.getRemoteUrl = exports.isDirty = void 0;
|
240350
|
-
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
240351
|
-
const path_1 = __webpack_require__(85622);
|
240352
|
-
const ini_1 = __importDefault(__webpack_require__(61967));
|
240353
|
-
const git_last_commit_1 = __importDefault(__webpack_require__(13495));
|
240354
|
-
const child_process_1 = __webpack_require__(63129);
|
240355
|
-
function isDirty(directory) {
|
240356
|
-
return new Promise((resolve, reject) => {
|
240357
|
-
child_process_1.exec('git status -s', { cwd: directory }, function (err, stdout, stderr) {
|
240358
|
-
if (err)
|
240359
|
-
return reject(err);
|
240360
|
-
if (stderr)
|
240361
|
-
return reject(new Error(`Failed to determine if git repo has been modified: ${stderr.trim()}`));
|
240362
|
-
resolve(stdout.trim().length > 0);
|
240363
|
-
});
|
240364
|
-
});
|
240365
|
-
}
|
240366
|
-
exports.isDirty = isDirty;
|
240367
|
-
function getLastCommit(directory) {
|
240368
|
-
return new Promise((resolve, reject) => {
|
240369
|
-
git_last_commit_1.default.getLastCommit((err, commit) => {
|
240370
|
-
if (err)
|
240371
|
-
return reject(err);
|
240372
|
-
resolve(commit);
|
240373
|
-
}, { dst: directory });
|
240374
|
-
});
|
240375
|
-
}
|
240376
|
-
async function getRemoteUrl(configPath, output) {
|
240377
|
-
let gitConfig;
|
240378
|
-
try {
|
240379
|
-
gitConfig = ini_1.default.parse(await fs_extra_1.default.readFile(configPath, 'utf-8'));
|
240380
|
-
}
|
240381
|
-
catch (error) {
|
240382
|
-
output.debug(`Error while parsing repo data: ${error.message}`);
|
240383
|
-
}
|
240384
|
-
if (!gitConfig) {
|
240385
|
-
return null;
|
240386
|
-
}
|
240387
|
-
const originUrl = gitConfig['remote "origin"']?.url;
|
240388
|
-
if (originUrl) {
|
240389
|
-
return originUrl;
|
240390
|
-
}
|
240391
|
-
return null;
|
240392
|
-
}
|
240393
|
-
exports.getRemoteUrl = getRemoteUrl;
|
240394
|
-
async function createGitMeta(directory, output) {
|
240395
|
-
const remoteUrl = await getRemoteUrl(path_1.join(directory, '.git/config'), output);
|
240396
|
-
// If we can't get the repo URL, then don't return any metadata
|
240397
|
-
if (!remoteUrl) {
|
240398
|
-
return;
|
240399
|
-
}
|
240400
|
-
const [commit, dirty] = await Promise.all([
|
240401
|
-
getLastCommit(directory),
|
240402
|
-
isDirty(directory),
|
240403
|
-
]);
|
240404
|
-
return {
|
240405
|
-
remoteUrl,
|
240406
|
-
commitAuthorName: commit.author.name,
|
240407
|
-
commitMessage: commit.subject,
|
240408
|
-
commitRef: commit.branch,
|
240409
|
-
commitSha: commit.hash,
|
240410
|
-
dirty,
|
240411
|
-
};
|
240412
|
-
}
|
240413
|
-
exports.createGitMeta = createGitMeta;
|
240414
|
-
|
240415
|
-
|
240416
240717
|
/***/ }),
|
240417
240718
|
|
240418
240719
|
/***/ 80478:
|
@@ -246599,9 +246900,10 @@ exports.default = printEvents;
|
|
246599
246900
|
/***/ ((__unused_webpack_module, exports) => {
|
246600
246901
|
|
246601
246902
|
"use strict";
|
246903
|
+
var __webpack_unused_export__;
|
246602
246904
|
|
246603
|
-
|
246604
|
-
exports.
|
246905
|
+
__webpack_unused_export__ = ({ value: true });
|
246906
|
+
exports.Z = (code) => new Promise(() => {
|
246605
246907
|
// We give stdout some time to flush out
|
246606
246908
|
// because there's a node bug where
|
246607
246909
|
// stdout writes are asynchronous
|
@@ -248682,7 +248984,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
248682
248984
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
248683
248985
|
};
|
248684
248986
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
248685
|
-
const inquirer_1 = __importDefault(__webpack_require__(64016));
|
248686
248987
|
const get_user_1 = __importDefault(__webpack_require__(89796));
|
248687
248988
|
const get_teams_1 = __importDefault(__webpack_require__(1280));
|
248688
248989
|
async function selectOrg(client, question, autoConfirm) {
|
@@ -248711,7 +249012,7 @@ async function selectOrg(client, question, autoConfirm) {
|
|
248711
249012
|
if (autoConfirm) {
|
248712
249013
|
return choices[defaultOrgIndex].value;
|
248713
249014
|
}
|
248714
|
-
const answers = await
|
249015
|
+
const answers = await client.prompt({
|
248715
249016
|
type: 'list',
|
248716
249017
|
name: 'org',
|
248717
249018
|
message: question,
|
@@ -250915,6 +251216,109 @@ async function addDomainToProject(client, projectNameOrId, domain) {
|
|
250915
251216
|
exports.addDomainToProject = addDomainToProject;
|
250916
251217
|
|
250917
251218
|
|
251219
|
+
/***/ }),
|
251220
|
+
|
251221
|
+
/***/ 35650:
|
251222
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
251223
|
+
|
251224
|
+
"use strict";
|
251225
|
+
|
251226
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
251227
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
251228
|
+
};
|
251229
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
251230
|
+
exports.parseRepoUrl = exports.formatProvider = exports.connectGitProvider = exports.disconnectGitProvider = void 0;
|
251231
|
+
const qs_1 = __webpack_require__(84860);
|
251232
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
251233
|
+
const link_1 = __importDefault(__webpack_require__(98472));
|
251234
|
+
async function disconnectGitProvider(client, org, projectId) {
|
251235
|
+
const fetchUrl = `/v4/projects/${projectId}/link?${qs_1.stringify({
|
251236
|
+
teamId: org.type === 'team' ? org.id : undefined,
|
251237
|
+
})}`;
|
251238
|
+
return client.fetch(fetchUrl, {
|
251239
|
+
method: 'DELETE',
|
251240
|
+
headers: {
|
251241
|
+
'Content-Type': 'application/json',
|
251242
|
+
},
|
251243
|
+
});
|
251244
|
+
}
|
251245
|
+
exports.disconnectGitProvider = disconnectGitProvider;
|
251246
|
+
async function connectGitProvider(client, org, projectId, type, repo) {
|
251247
|
+
const fetchUrl = `/v4/projects/${projectId}/link?${qs_1.stringify({
|
251248
|
+
teamId: org.type === 'team' ? org.id : undefined,
|
251249
|
+
})}`;
|
251250
|
+
try {
|
251251
|
+
return await client.fetch(fetchUrl, {
|
251252
|
+
method: 'POST',
|
251253
|
+
headers: {
|
251254
|
+
'Content-Type': 'application/json',
|
251255
|
+
},
|
251256
|
+
body: JSON.stringify({
|
251257
|
+
type,
|
251258
|
+
repo,
|
251259
|
+
}),
|
251260
|
+
});
|
251261
|
+
}
|
251262
|
+
catch (err) {
|
251263
|
+
if (err.meta?.action === 'Install GitHub App' ||
|
251264
|
+
err.code === 'repo_not_found') {
|
251265
|
+
client.output.error(`Failed to link ${chalk_1.default.cyan(repo)}. Make sure there aren't any typos and that you have access to the repository if it's private.`);
|
251266
|
+
}
|
251267
|
+
else if (err.action === 'Add a Login Connection') {
|
251268
|
+
client.output.error(err.message.replace(repo, chalk_1.default.cyan(repo)) +
|
251269
|
+
`\nVisit ${link_1.default(err.link)} for more information.`);
|
251270
|
+
}
|
251271
|
+
else {
|
251272
|
+
client.output.error(`Failed to connect the ${formatProvider(type)} repository ${repo}.\n${err}`);
|
251273
|
+
}
|
251274
|
+
return 1;
|
251275
|
+
}
|
251276
|
+
}
|
251277
|
+
exports.connectGitProvider = connectGitProvider;
|
251278
|
+
function formatProvider(type) {
|
251279
|
+
switch (type) {
|
251280
|
+
case 'github':
|
251281
|
+
return 'GitHub';
|
251282
|
+
case 'gitlab':
|
251283
|
+
return 'GitLab';
|
251284
|
+
case 'bitbucket':
|
251285
|
+
return 'Bitbucket';
|
251286
|
+
default:
|
251287
|
+
return type;
|
251288
|
+
}
|
251289
|
+
}
|
251290
|
+
exports.formatProvider = formatProvider;
|
251291
|
+
function parseRepoUrl(originUrl) {
|
251292
|
+
const isSSH = originUrl.startsWith('git@');
|
251293
|
+
// Matches all characters between (// or @) and (.com or .org)
|
251294
|
+
// eslint-disable-next-line prefer-named-capture-group
|
251295
|
+
const provider = /(?<=(\/\/|@)).*(?=(\.com|\.org))/.exec(originUrl);
|
251296
|
+
if (!provider) {
|
251297
|
+
return null;
|
251298
|
+
}
|
251299
|
+
let org;
|
251300
|
+
let repo;
|
251301
|
+
if (isSSH) {
|
251302
|
+
org = originUrl.split(':')[1].split('/')[0];
|
251303
|
+
repo = originUrl.split('/')[1]?.replace('.git', '');
|
251304
|
+
}
|
251305
|
+
else {
|
251306
|
+
// Assume https:// or git://
|
251307
|
+
org = originUrl.split('/')[3];
|
251308
|
+
repo = originUrl.split('/')[4]?.replace('.git', '');
|
251309
|
+
}
|
251310
|
+
if (!org || !repo) {
|
251311
|
+
return null;
|
251312
|
+
}
|
251313
|
+
return {
|
251314
|
+
provider: provider[0],
|
251315
|
+
org,
|
251316
|
+
repo,
|
251317
|
+
};
|
251318
|
+
}
|
251319
|
+
exports.parseRepoUrl = parseRepoUrl;
|
251320
|
+
|
251321
|
+
|
250918
251322
|
/***/ }),
|
250919
251323
|
|
250920
251324
|
/***/ 8721:
|
@@ -251233,6 +251637,7 @@ async function writeProjectSettings(cwd, project, org) {
|
|
251233
251637
|
projectId: project.id,
|
251234
251638
|
orgId: org.id,
|
251235
251639
|
settings: {
|
251640
|
+
createdAt: project.createdAt,
|
251236
251641
|
framework: project.framework,
|
251237
251642
|
devCommand: project.devCommand,
|
251238
251643
|
installCommand: project.installCommand,
|
@@ -252221,7 +252626,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
252221
252626
|
/***/ ((module) => {
|
252222
252627
|
|
252223
252628
|
"use strict";
|
252224
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.
|
252629
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.1.0\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --runInBand --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn test test/dev/\",\"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\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.0.2\",\"@vercel/go\":\"2.0.6\",\"@vercel/hydrogen\":\"0.0.3\",\"@vercel/next\":\"3.1.5\",\"@vercel/node\":\"2.4.3\",\"@vercel/python\":\"3.0.6\",\"@vercel/redwood\":\"1.0.7\",\"@vercel/remix\":\"1.0.8\",\"@vercel/ruby\":\"1.3.14\",\"@vercel/static-build\":\"1.0.6\",\"update-notifier\":\"5.1.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@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/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"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\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.1.1\",\"@vercel/frameworks\":\"1.1.0\",\"@vercel/fs-detectors\":\"2.0.0\",\"@vercel/ncc\":\"0.24.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\",\"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\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"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-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\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"d2f8d178f77e15cb490cce73f5766537d892f763\"}");
|
252225
252630
|
|
252226
252631
|
/***/ }),
|
252227
252632
|
|
@@ -252237,7 +252642,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
252237
252642
|
/***/ ((module) => {
|
252238
252643
|
|
252239
252644
|
"use strict";
|
252240
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.
|
252645
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.1\",\"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\":\"yarn test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"yarn test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@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\":\"5.0.2\",\"@vercel/routing-utils\":\"1.13.5\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"d2f8d178f77e15cb490cce73f5766537d892f763\"}");
|
252241
252646
|
|
252242
252647
|
/***/ }),
|
252243
252648
|
|