vercel 27.0.2 → 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 +558 -208
- 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
|
|
@@ -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
|
}
|
@@ -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'],
|
@@ -236039,7 +236283,6 @@ const get_scope_1 = __importDefault(__webpack_require__(73389));
|
|
236039
236283
|
const handle_error_1 = __importDefault(__webpack_require__(70870));
|
236040
236284
|
const logo_1 = __importDefault(__webpack_require__(9829));
|
236041
236285
|
const pkg_name_1 = __webpack_require__(98106);
|
236042
|
-
const validate_paths_1 = __importDefault(__webpack_require__(54579));
|
236043
236286
|
const add_1 = __importDefault(__webpack_require__(38128));
|
236044
236287
|
const list_1 = __importDefault(__webpack_require__(38696));
|
236045
236288
|
const rm_1 = __importDefault(__webpack_require__(76136));
|
@@ -236075,7 +236318,6 @@ const COMMAND_CONFIG = {
|
|
236075
236318
|
ls: ['ls', 'list'],
|
236076
236319
|
add: ['add'],
|
236077
236320
|
rm: ['rm', 'remove'],
|
236078
|
-
connect: ['connect'],
|
236079
236321
|
};
|
236080
236322
|
async function main(client) {
|
236081
236323
|
let argv;
|
@@ -236084,7 +236326,6 @@ async function main(client) {
|
|
236084
236326
|
argv = get_args_1.default(client.argv.slice(2), {
|
236085
236327
|
'--next': Number,
|
236086
236328
|
'-N': '--next',
|
236087
|
-
'--yes': Boolean,
|
236088
236329
|
});
|
236089
236330
|
}
|
236090
236331
|
catch (error) {
|
@@ -236099,11 +236340,6 @@ async function main(client) {
|
|
236099
236340
|
subcommand = argv._[0] || 'list';
|
236100
236341
|
const args = argv._.slice(1);
|
236101
236342
|
const { output } = client;
|
236102
|
-
let paths = [process.cwd()];
|
236103
|
-
const pathValidation = await validate_paths_1.default(client, paths);
|
236104
|
-
if (!pathValidation.valid) {
|
236105
|
-
return pathValidation.exitCode;
|
236106
|
-
}
|
236107
236343
|
let contextName = '';
|
236108
236344
|
try {
|
236109
236345
|
({ contextName } = await get_scope_1.default(client));
|
@@ -237881,6 +238117,9 @@ const main = async () => {
|
|
237881
238117
|
case 'env':
|
237882
238118
|
func = __webpack_require__(41872).default;
|
237883
238119
|
break;
|
238120
|
+
case 'git':
|
238121
|
+
func = __webpack_require__(94715).default;
|
238122
|
+
break;
|
237884
238123
|
case 'init':
|
237885
238124
|
func = __webpack_require__(34499).default;
|
237886
238125
|
break;
|
@@ -240271,6 +240510,103 @@ exports.GA_TRACKING_ID = "UA-117491914-3";
|
|
240271
240510
|
exports.SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
|
240272
240511
|
|
240273
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
|
+
|
240274
240610
|
/***/ }),
|
240275
240611
|
|
240276
240612
|
/***/ 80974:
|
@@ -240378,95 +240714,6 @@ async function createDeploy(client, now, contextName, paths, createArgs, org, is
|
|
240378
240714
|
exports.default = createDeploy;
|
240379
240715
|
|
240380
240716
|
|
240381
|
-
/***/ }),
|
240382
|
-
|
240383
|
-
/***/ 92282:
|
240384
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
240385
|
-
|
240386
|
-
"use strict";
|
240387
|
-
|
240388
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
240389
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
240390
|
-
};
|
240391
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
240392
|
-
exports.createGitMeta = exports.getRemoteUrl = exports.isDirty = void 0;
|
240393
|
-
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
240394
|
-
const path_1 = __webpack_require__(85622);
|
240395
|
-
const ini_1 = __importDefault(__webpack_require__(61967));
|
240396
|
-
const git_last_commit_1 = __importDefault(__webpack_require__(13495));
|
240397
|
-
const child_process_1 = __webpack_require__(63129);
|
240398
|
-
function isDirty(directory, output) {
|
240399
|
-
return new Promise(resolve => {
|
240400
|
-
child_process_1.exec('git status -s', { cwd: directory }, function (err, stdout, stderr) {
|
240401
|
-
let debugMessage = `Failed to determine if Git repo has been modified:`;
|
240402
|
-
if (err || stderr) {
|
240403
|
-
if (err)
|
240404
|
-
debugMessage += `\n${err}`;
|
240405
|
-
if (stderr)
|
240406
|
-
debugMessage += `\n${stderr.trim()}`;
|
240407
|
-
output.debug(debugMessage);
|
240408
|
-
return resolve(false);
|
240409
|
-
}
|
240410
|
-
resolve(stdout.trim().length > 0);
|
240411
|
-
});
|
240412
|
-
});
|
240413
|
-
}
|
240414
|
-
exports.isDirty = isDirty;
|
240415
|
-
function getLastCommit(directory) {
|
240416
|
-
return new Promise((resolve, reject) => {
|
240417
|
-
git_last_commit_1.default.getLastCommit((err, commit) => {
|
240418
|
-
if (err)
|
240419
|
-
return reject(err);
|
240420
|
-
resolve(commit);
|
240421
|
-
}, { dst: directory });
|
240422
|
-
});
|
240423
|
-
}
|
240424
|
-
async function getRemoteUrl(configPath, output) {
|
240425
|
-
let gitConfig;
|
240426
|
-
try {
|
240427
|
-
gitConfig = ini_1.default.parse(await fs_extra_1.default.readFile(configPath, 'utf-8'));
|
240428
|
-
}
|
240429
|
-
catch (error) {
|
240430
|
-
output.debug(`Error while parsing repo data: ${error.message}`);
|
240431
|
-
}
|
240432
|
-
if (!gitConfig) {
|
240433
|
-
return null;
|
240434
|
-
}
|
240435
|
-
const originUrl = gitConfig['remote "origin"']?.url;
|
240436
|
-
if (originUrl) {
|
240437
|
-
return originUrl;
|
240438
|
-
}
|
240439
|
-
return null;
|
240440
|
-
}
|
240441
|
-
exports.getRemoteUrl = getRemoteUrl;
|
240442
|
-
async function createGitMeta(directory, output) {
|
240443
|
-
const remoteUrl = await getRemoteUrl(path_1.join(directory, '.git/config'), output);
|
240444
|
-
// If we can't get the repo URL, then don't return any metadata
|
240445
|
-
if (!remoteUrl) {
|
240446
|
-
return;
|
240447
|
-
}
|
240448
|
-
const [commit, dirty] = await Promise.all([
|
240449
|
-
getLastCommit(directory).catch(err => {
|
240450
|
-
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}`);
|
240451
|
-
return;
|
240452
|
-
}),
|
240453
|
-
isDirty(directory, output),
|
240454
|
-
]);
|
240455
|
-
if (!commit) {
|
240456
|
-
return;
|
240457
|
-
}
|
240458
|
-
return {
|
240459
|
-
remoteUrl,
|
240460
|
-
commitAuthorName: commit.author.name,
|
240461
|
-
commitMessage: commit.subject,
|
240462
|
-
commitRef: commit.branch,
|
240463
|
-
commitSha: commit.hash,
|
240464
|
-
dirty,
|
240465
|
-
};
|
240466
|
-
}
|
240467
|
-
exports.createGitMeta = createGitMeta;
|
240468
|
-
|
240469
|
-
|
240470
240717
|
/***/ }),
|
240471
240718
|
|
240472
240719
|
/***/ 80478:
|
@@ -248737,7 +248984,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
248737
248984
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
248738
248985
|
};
|
248739
248986
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
248740
|
-
const inquirer_1 = __importDefault(__webpack_require__(64016));
|
248741
248987
|
const get_user_1 = __importDefault(__webpack_require__(89796));
|
248742
248988
|
const get_teams_1 = __importDefault(__webpack_require__(1280));
|
248743
248989
|
async function selectOrg(client, question, autoConfirm) {
|
@@ -248766,7 +249012,7 @@ async function selectOrg(client, question, autoConfirm) {
|
|
248766
249012
|
if (autoConfirm) {
|
248767
249013
|
return choices[defaultOrgIndex].value;
|
248768
249014
|
}
|
248769
|
-
const answers = await
|
249015
|
+
const answers = await client.prompt({
|
248770
249016
|
type: 'list',
|
248771
249017
|
name: 'org',
|
248772
249018
|
message: question,
|
@@ -250970,6 +251216,109 @@ async function addDomainToProject(client, projectNameOrId, domain) {
|
|
250970
251216
|
exports.addDomainToProject = addDomainToProject;
|
250971
251217
|
|
250972
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
|
+
|
250973
251322
|
/***/ }),
|
250974
251323
|
|
250975
251324
|
/***/ 8721:
|
@@ -251288,6 +251637,7 @@ async function writeProjectSettings(cwd, project, org) {
|
|
251288
251637
|
projectId: project.id,
|
251289
251638
|
orgId: org.id,
|
251290
251639
|
settings: {
|
251640
|
+
createdAt: project.createdAt,
|
251291
251641
|
framework: project.framework,
|
251292
251642
|
devCommand: project.devCommand,
|
251293
251643
|
installCommand: project.installCommand,
|
@@ -252276,7 +252626,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
252276
252626
|
/***/ ((module) => {
|
252277
252627
|
|
252278
252628
|
"use strict";
|
252279
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.0
|
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\"}");
|
252280
252630
|
|
252281
252631
|
/***/ }),
|
252282
252632
|
|
@@ -252292,7 +252642,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
252292
252642
|
/***/ ((module) => {
|
252293
252643
|
|
252294
252644
|
"use strict";
|
252295
|
-
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\"}");
|
252296
252646
|
|
252297
252647
|
/***/ }),
|
252298
252648
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.0
|
3
|
+
"version": "27.1.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -42,16 +42,16 @@
|
|
42
42
|
"node": ">= 14"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@vercel/build-utils": "5.0.
|
46
|
-
"@vercel/go": "2.0.
|
47
|
-
"@vercel/hydrogen": "0.0.
|
48
|
-
"@vercel/next": "3.1.
|
49
|
-
"@vercel/node": "2.4.
|
50
|
-
"@vercel/python": "3.0.
|
51
|
-
"@vercel/redwood": "1.0.
|
52
|
-
"@vercel/remix": "1.0.
|
53
|
-
"@vercel/ruby": "1.3.
|
54
|
-
"@vercel/static-build": "1.0.
|
45
|
+
"@vercel/build-utils": "5.0.2",
|
46
|
+
"@vercel/go": "2.0.6",
|
47
|
+
"@vercel/hydrogen": "0.0.3",
|
48
|
+
"@vercel/next": "3.1.5",
|
49
|
+
"@vercel/node": "2.4.3",
|
50
|
+
"@vercel/python": "3.0.6",
|
51
|
+
"@vercel/redwood": "1.0.7",
|
52
|
+
"@vercel/remix": "1.0.8",
|
53
|
+
"@vercel/ruby": "1.3.14",
|
54
|
+
"@vercel/static-build": "1.0.6",
|
55
55
|
"update-notifier": "5.1.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
@@ -96,9 +96,9 @@
|
|
96
96
|
"@types/which": "1.3.2",
|
97
97
|
"@types/write-json-file": "2.2.1",
|
98
98
|
"@types/yauzl-promise": "2.1.0",
|
99
|
-
"@vercel/client": "12.1.
|
99
|
+
"@vercel/client": "12.1.1",
|
100
100
|
"@vercel/frameworks": "1.1.0",
|
101
|
-
"@vercel/fs-detectors": "
|
101
|
+
"@vercel/fs-detectors": "2.0.0",
|
102
102
|
"@vercel/ncc": "0.24.0",
|
103
103
|
"@zeit/fun": "0.11.2",
|
104
104
|
"@zeit/source-map-support": "0.6.2",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "d2f8d178f77e15cb490cce73f5766537d892f763"
|
199
199
|
}
|