vercel 24.1.1-canary.0 → 24.1.1-canary.3
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 +152 -135
- package/package.json +13 -8
package/dist/index.js
CHANGED
@@ -197149,12 +197149,15 @@ exports.installDependencies = exports.getScriptName = exports.runPipInstall = ex
|
|
197149
197149
|
const assert_1 = __importDefault(__nested_webpack_require_985498__(2357));
|
197150
197150
|
const fs_extra_1 = __importDefault(__nested_webpack_require_985498__(5392));
|
197151
197151
|
const path_1 = __importDefault(__nested_webpack_require_985498__(5622));
|
197152
|
-
const
|
197152
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_985498__(5758));
|
197153
197153
|
const cross_spawn_1 = __importDefault(__nested_webpack_require_985498__(7618));
|
197154
197154
|
const util_1 = __nested_webpack_require_985498__(1669);
|
197155
|
+
const debug_1 = __importDefault(__nested_webpack_require_985498__(1868));
|
197155
197156
|
const errors_1 = __nested_webpack_require_985498__(3983);
|
197156
197157
|
const node_version_1 = __nested_webpack_require_985498__(7903);
|
197157
197158
|
const read_config_file_1 = __nested_webpack_require_985498__(7792);
|
197159
|
+
// Only allow one `runNpmInstall()` invocation to run concurrently
|
197160
|
+
const runNpmInstallSema = new async_sema_1.default(1);
|
197158
197161
|
function spawnAsync(command, args, opts = {}) {
|
197159
197162
|
return new Promise((resolve, reject) => {
|
197160
197163
|
const stderrLogs = [];
|
@@ -197293,11 +197296,12 @@ async function scanParentDirs(destPath, readPackageJson = false) {
|
|
197293
197296
|
assert_1.default(path_1.default.isAbsolute(destPath));
|
197294
197297
|
let cliType = 'yarn';
|
197295
197298
|
let packageJson;
|
197299
|
+
let packageJsonPath;
|
197296
197300
|
let currentDestPath = destPath;
|
197297
197301
|
let lockfileVersion;
|
197298
197302
|
// eslint-disable-next-line no-constant-condition
|
197299
197303
|
while (true) {
|
197300
|
-
|
197304
|
+
packageJsonPath = path_1.default.join(currentDestPath, 'package.json');
|
197301
197305
|
// eslint-disable-next-line no-await-in-loop
|
197302
197306
|
if (await fs_extra_1.default.pathExists(packageJsonPath)) {
|
197303
197307
|
// Only read the contents of the *first* `package.json` file found,
|
@@ -197341,7 +197345,7 @@ async function scanParentDirs(destPath, readPackageJson = false) {
|
|
197341
197345
|
break;
|
197342
197346
|
currentDestPath = newDestPath;
|
197343
197347
|
}
|
197344
|
-
return { cliType, packageJson, lockfileVersion };
|
197348
|
+
return { cliType, packageJson, lockfileVersion, packageJsonPath };
|
197345
197349
|
}
|
197346
197350
|
exports.scanParentDirs = scanParentDirs;
|
197347
197351
|
async function walkParentDirs({ base, start, filename, }) {
|
@@ -197359,46 +197363,75 @@ async function walkParentDirs({ base, start, filename, }) {
|
|
197359
197363
|
return null;
|
197360
197364
|
}
|
197361
197365
|
exports.walkParentDirs = walkParentDirs;
|
197366
|
+
function isSet(v) {
|
197367
|
+
var _a;
|
197368
|
+
return ((_a = v === null || v === void 0 ? void 0 : v.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Set';
|
197369
|
+
}
|
197362
197370
|
async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion) {
|
197363
197371
|
if (meta === null || meta === void 0 ? void 0 : meta.isDev) {
|
197364
197372
|
debug_1.default('Skipping dependency installation because dev mode is enabled');
|
197365
|
-
return;
|
197373
|
+
return false;
|
197366
197374
|
}
|
197367
197375
|
assert_1.default(path_1.default.isAbsolute(destPath));
|
197368
|
-
|
197369
|
-
|
197370
|
-
|
197371
|
-
|
197372
|
-
|
197373
|
-
|
197374
|
-
|
197375
|
-
|
197376
|
-
|
197377
|
-
|
197378
|
-
|
197379
|
-
|
197380
|
-
|
197381
|
-
|
197382
|
-
|
197383
|
-
|
197384
|
-
|
197385
|
-
|
197386
|
-
|
197387
|
-
|
197388
|
-
|
197389
|
-
opts
|
197390
|
-
|
197391
|
-
|
197392
|
-
|
197393
|
-
|
197394
|
-
|
197395
|
-
|
197396
|
-
|
197376
|
+
try {
|
197377
|
+
await runNpmInstallSema.acquire();
|
197378
|
+
const { cliType, packageJsonPath, lockfileVersion } = await scanParentDirs(destPath);
|
197379
|
+
// Only allow `runNpmInstall()` to run once per `package.json`
|
197380
|
+
// when doing a default install (no additional args)
|
197381
|
+
if (meta && packageJsonPath && args.length === 0) {
|
197382
|
+
if (!isSet(meta.runNpmInstallSet)) {
|
197383
|
+
meta.runNpmInstallSet = new Set();
|
197384
|
+
}
|
197385
|
+
if (isSet(meta.runNpmInstallSet)) {
|
197386
|
+
if (meta.runNpmInstallSet.has(packageJsonPath)) {
|
197387
|
+
return false;
|
197388
|
+
}
|
197389
|
+
else {
|
197390
|
+
meta.runNpmInstallSet.add(packageJsonPath);
|
197391
|
+
}
|
197392
|
+
}
|
197393
|
+
}
|
197394
|
+
const installTime = Date.now();
|
197395
|
+
console.log('Installing dependencies...');
|
197396
|
+
debug_1.default(`Installing to ${destPath}`);
|
197397
|
+
const opts = { cwd: destPath, ...spawnOpts };
|
197398
|
+
const env = opts.env ? { ...opts.env } : { ...process.env };
|
197399
|
+
delete env.NODE_ENV;
|
197400
|
+
opts.env = getEnvForPackageManager({
|
197401
|
+
cliType,
|
197402
|
+
lockfileVersion,
|
197403
|
+
nodeVersion,
|
197404
|
+
env,
|
197405
|
+
});
|
197406
|
+
let commandArgs;
|
197407
|
+
if (cliType === 'npm') {
|
197408
|
+
opts.prettyCommand = 'npm install';
|
197409
|
+
commandArgs = args
|
197410
|
+
.filter(a => a !== '--prefer-offline')
|
197411
|
+
.concat(['install', '--no-audit', '--unsafe-perm']);
|
197412
|
+
}
|
197413
|
+
else if (cliType === 'pnpm') {
|
197414
|
+
// PNPM's install command is similar to NPM's but without the audit nonsense
|
197415
|
+
// @see options https://pnpm.io/cli/install
|
197416
|
+
opts.prettyCommand = 'pnpm install';
|
197417
|
+
commandArgs = args
|
197418
|
+
.filter(a => a !== '--prefer-offline')
|
197419
|
+
.concat(['install', '--unsafe-perm']);
|
197420
|
+
}
|
197421
|
+
else {
|
197422
|
+
opts.prettyCommand = 'yarn install';
|
197423
|
+
commandArgs = ['install', ...args];
|
197424
|
+
}
|
197425
|
+
if (process.env.NPM_ONLY_PRODUCTION) {
|
197426
|
+
commandArgs.push('--production');
|
197427
|
+
}
|
197428
|
+
await spawnAsync(cliType, commandArgs, opts);
|
197429
|
+
debug_1.default(`Install complete [${Date.now() - installTime}ms]`);
|
197430
|
+
return true;
|
197397
197431
|
}
|
197398
|
-
|
197399
|
-
|
197432
|
+
finally {
|
197433
|
+
runNpmInstallSema.release();
|
197400
197434
|
}
|
197401
|
-
return spawnAsync(cliType, commandArgs, opts);
|
197402
197435
|
}
|
197403
197436
|
exports.runNpmInstall = runNpmInstall;
|
197404
197437
|
function getEnvForPackageManager({ cliType, lockfileVersion, nodeVersion, env, }) {
|
@@ -197515,7 +197548,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
197515
197548
|
/***/ }),
|
197516
197549
|
|
197517
197550
|
/***/ 2560:
|
197518
|
-
/***/ (function(__unused_webpack_module, exports,
|
197551
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1002736__) {
|
197519
197552
|
|
197520
197553
|
"use strict";
|
197521
197554
|
|
@@ -197523,7 +197556,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197523
197556
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
197524
197557
|
};
|
197525
197558
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197526
|
-
const end_of_stream_1 = __importDefault(
|
197559
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1002736__(687));
|
197527
197560
|
function streamToBuffer(stream) {
|
197528
197561
|
return new Promise((resolve, reject) => {
|
197529
197562
|
const buffers = [];
|
@@ -197552,7 +197585,7 @@ exports.default = streamToBuffer;
|
|
197552
197585
|
/***/ }),
|
197553
197586
|
|
197554
197587
|
/***/ 1148:
|
197555
|
-
/***/ (function(__unused_webpack_module, exports,
|
197588
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1003804__) {
|
197556
197589
|
|
197557
197590
|
"use strict";
|
197558
197591
|
|
@@ -197560,9 +197593,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197560
197593
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
197561
197594
|
};
|
197562
197595
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197563
|
-
const path_1 = __importDefault(
|
197564
|
-
const fs_extra_1 = __importDefault(
|
197565
|
-
const ignore_1 = __importDefault(
|
197596
|
+
const path_1 = __importDefault(__nested_webpack_require_1003804__(5622));
|
197597
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1003804__(5392));
|
197598
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1003804__(3556));
|
197566
197599
|
function isCodedError(error) {
|
197567
197600
|
return (error !== null &&
|
197568
197601
|
error !== undefined &&
|
@@ -197619,13 +197652,13 @@ exports.default = default_1;
|
|
197619
197652
|
/***/ }),
|
197620
197653
|
|
197621
197654
|
/***/ 4678:
|
197622
|
-
/***/ ((__unused_webpack_module, exports,
|
197655
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1006178__) => {
|
197623
197656
|
|
197624
197657
|
"use strict";
|
197625
197658
|
|
197626
197659
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197627
197660
|
exports.getPlatformEnv = void 0;
|
197628
|
-
const errors_1 =
|
197661
|
+
const errors_1 = __nested_webpack_require_1006178__(3983);
|
197629
197662
|
/**
|
197630
197663
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
197631
197664
|
* Throws an error if *both* env vars are defined.
|
@@ -197653,7 +197686,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
197653
197686
|
/***/ }),
|
197654
197687
|
|
197655
197688
|
/***/ 2855:
|
197656
|
-
/***/ (function(__unused_webpack_module, exports,
|
197689
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1007215__) {
|
197657
197690
|
|
197658
197691
|
"use strict";
|
197659
197692
|
|
@@ -197684,30 +197717,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197684
197717
|
};
|
197685
197718
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197686
197719
|
exports.isStaticRuntime = exports.isOfficialRuntime = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectFileSystemAPI = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.EdgeFunction = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = 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;
|
197687
|
-
const file_blob_1 = __importDefault(
|
197720
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1007215__(2397));
|
197688
197721
|
exports.FileBlob = file_blob_1.default;
|
197689
|
-
const file_fs_ref_1 = __importDefault(
|
197722
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1007215__(9331));
|
197690
197723
|
exports.FileFsRef = file_fs_ref_1.default;
|
197691
|
-
const file_ref_1 = __importDefault(
|
197724
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1007215__(5187));
|
197692
197725
|
exports.FileRef = file_ref_1.default;
|
197693
|
-
const lambda_1 =
|
197726
|
+
const lambda_1 = __nested_webpack_require_1007215__(6721);
|
197694
197727
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
197695
197728
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
197696
197729
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
197697
|
-
const nodejs_lambda_1 =
|
197730
|
+
const nodejs_lambda_1 = __nested_webpack_require_1007215__(7049);
|
197698
197731
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
197699
|
-
const prerender_1 =
|
197732
|
+
const prerender_1 = __nested_webpack_require_1007215__(2850);
|
197700
197733
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
197701
|
-
const download_1 = __importStar(
|
197734
|
+
const download_1 = __importStar(__nested_webpack_require_1007215__(1611));
|
197702
197735
|
exports.download = download_1.default;
|
197703
197736
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
197704
|
-
const get_writable_directory_1 = __importDefault(
|
197737
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1007215__(3838));
|
197705
197738
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
197706
|
-
const glob_1 = __importDefault(
|
197739
|
+
const glob_1 = __importDefault(__nested_webpack_require_1007215__(4240));
|
197707
197740
|
exports.glob = glob_1.default;
|
197708
|
-
const rename_1 = __importDefault(
|
197741
|
+
const rename_1 = __importDefault(__nested_webpack_require_1007215__(6718));
|
197709
197742
|
exports.rename = rename_1.default;
|
197710
|
-
const run_user_scripts_1 =
|
197743
|
+
const run_user_scripts_1 = __nested_webpack_require_1007215__(1442);
|
197711
197744
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
197712
197745
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
197713
197746
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -197726,39 +197759,39 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
197726
197759
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
197727
197760
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
197728
197761
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
197729
|
-
const node_version_1 =
|
197762
|
+
const node_version_1 = __nested_webpack_require_1007215__(7903);
|
197730
197763
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
197731
197764
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
197732
|
-
const stream_to_buffer_1 = __importDefault(
|
197765
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1007215__(2560));
|
197733
197766
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
197734
|
-
const should_serve_1 = __importDefault(
|
197767
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_1007215__(2564));
|
197735
197768
|
exports.shouldServe = should_serve_1.default;
|
197736
|
-
const debug_1 = __importDefault(
|
197769
|
+
const debug_1 = __importDefault(__nested_webpack_require_1007215__(1868));
|
197737
197770
|
exports.debug = debug_1.default;
|
197738
|
-
const get_ignore_filter_1 = __importDefault(
|
197771
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1007215__(1148));
|
197739
197772
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
197740
|
-
const get_platform_env_1 =
|
197773
|
+
const get_platform_env_1 = __nested_webpack_require_1007215__(4678);
|
197741
197774
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
197742
|
-
var edge_function_1 =
|
197775
|
+
var edge_function_1 = __nested_webpack_require_1007215__(8038);
|
197743
197776
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
197744
|
-
var detect_builders_1 =
|
197777
|
+
var detect_builders_1 = __nested_webpack_require_1007215__(4246);
|
197745
197778
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
197746
197779
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
197747
197780
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
197748
197781
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
197749
|
-
var detect_file_system_api_1 =
|
197782
|
+
var detect_file_system_api_1 = __nested_webpack_require_1007215__(1182);
|
197750
197783
|
Object.defineProperty(exports, "detectFileSystemAPI", ({ enumerable: true, get: function () { return detect_file_system_api_1.detectFileSystemAPI; } }));
|
197751
|
-
var detect_framework_1 =
|
197784
|
+
var detect_framework_1 = __nested_webpack_require_1007215__(5224);
|
197752
197785
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
197753
|
-
var filesystem_1 =
|
197786
|
+
var filesystem_1 = __nested_webpack_require_1007215__(461);
|
197754
197787
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
197755
|
-
var read_config_file_1 =
|
197788
|
+
var read_config_file_1 = __nested_webpack_require_1007215__(7792);
|
197756
197789
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
197757
|
-
var normalize_path_1 =
|
197790
|
+
var normalize_path_1 = __nested_webpack_require_1007215__(6261);
|
197758
197791
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
197759
|
-
__exportStar(
|
197760
|
-
__exportStar(
|
197761
|
-
__exportStar(
|
197792
|
+
__exportStar(__nested_webpack_require_1007215__(2416), exports);
|
197793
|
+
__exportStar(__nested_webpack_require_1007215__(5748), exports);
|
197794
|
+
__exportStar(__nested_webpack_require_1007215__(3983), exports);
|
197762
197795
|
/**
|
197763
197796
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
197764
197797
|
*/
|
@@ -197781,7 +197814,7 @@ exports.isStaticRuntime = isStaticRuntime;
|
|
197781
197814
|
/***/ }),
|
197782
197815
|
|
197783
197816
|
/***/ 6721:
|
197784
|
-
/***/ (function(__unused_webpack_module, exports,
|
197817
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1017586__) {
|
197785
197818
|
|
197786
197819
|
"use strict";
|
197787
197820
|
|
@@ -197790,13 +197823,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197790
197823
|
};
|
197791
197824
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197792
197825
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
197793
|
-
const assert_1 = __importDefault(
|
197794
|
-
const async_sema_1 = __importDefault(
|
197795
|
-
const yazl_1 =
|
197796
|
-
const minimatch_1 = __importDefault(
|
197797
|
-
const fs_extra_1 =
|
197798
|
-
const download_1 =
|
197799
|
-
const stream_to_buffer_1 = __importDefault(
|
197826
|
+
const assert_1 = __importDefault(__nested_webpack_require_1017586__(2357));
|
197827
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1017586__(5758));
|
197828
|
+
const yazl_1 = __nested_webpack_require_1017586__(1223);
|
197829
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1017586__(9566));
|
197830
|
+
const fs_extra_1 = __nested_webpack_require_1017586__(5392);
|
197831
|
+
const download_1 = __nested_webpack_require_1017586__(1611);
|
197832
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1017586__(2560));
|
197800
197833
|
class Lambda {
|
197801
197834
|
constructor(opts) {
|
197802
197835
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
@@ -197918,13 +197951,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
197918
197951
|
/***/ }),
|
197919
197952
|
|
197920
197953
|
/***/ 7049:
|
197921
|
-
/***/ ((__unused_webpack_module, exports,
|
197954
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1023090__) => {
|
197922
197955
|
|
197923
197956
|
"use strict";
|
197924
197957
|
|
197925
197958
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197926
197959
|
exports.NodejsLambda = void 0;
|
197927
|
-
const lambda_1 =
|
197960
|
+
const lambda_1 = __nested_webpack_require_1023090__(6721);
|
197928
197961
|
class NodejsLambda extends lambda_1.Lambda {
|
197929
197962
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
197930
197963
|
super(opts);
|
@@ -198061,12 +198094,12 @@ exports.buildsSchema = {
|
|
198061
198094
|
/***/ }),
|
198062
198095
|
|
198063
198096
|
/***/ 2564:
|
198064
|
-
/***/ ((__unused_webpack_module, exports,
|
198097
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1027435__) => {
|
198065
198098
|
|
198066
198099
|
"use strict";
|
198067
198100
|
|
198068
198101
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
198069
|
-
const path_1 =
|
198102
|
+
const path_1 = __nested_webpack_require_1027435__(5622);
|
198070
198103
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
198071
198104
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
198072
198105
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -198295,7 +198328,7 @@ module.exports = __webpack_require__(78761);
|
|
198295
198328
|
/******/ var __webpack_module_cache__ = {};
|
198296
198329
|
/******/
|
198297
198330
|
/******/ // The require function
|
198298
|
-
/******/ function
|
198331
|
+
/******/ function __nested_webpack_require_1127074__(moduleId) {
|
198299
198332
|
/******/ // Check if module is in cache
|
198300
198333
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
198301
198334
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -198310,7 +198343,7 @@ module.exports = __webpack_require__(78761);
|
|
198310
198343
|
/******/ // Execute the module function
|
198311
198344
|
/******/ var threw = true;
|
198312
198345
|
/******/ try {
|
198313
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
198346
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1127074__);
|
198314
198347
|
/******/ threw = false;
|
198315
198348
|
/******/ } finally {
|
198316
198349
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -198323,11 +198356,11 @@ module.exports = __webpack_require__(78761);
|
|
198323
198356
|
/************************************************************************/
|
198324
198357
|
/******/ /* webpack/runtime/compat */
|
198325
198358
|
/******/
|
198326
|
-
/******/
|
198359
|
+
/******/ __nested_webpack_require_1127074__.ab = __dirname + "/";/************************************************************************/
|
198327
198360
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
198328
198361
|
/******/ // startup
|
198329
198362
|
/******/ // Load entry module and return exports
|
198330
|
-
/******/ return
|
198363
|
+
/******/ return __nested_webpack_require_1127074__(2855);
|
198331
198364
|
/******/ })()
|
198332
198365
|
;
|
198333
198366
|
|
@@ -211124,10 +211157,9 @@ const upload_1 = __webpack_require__(78617);
|
|
211124
211157
|
const utils_1 = __webpack_require__(52015);
|
211125
211158
|
const errors_1 = __webpack_require__(42054);
|
211126
211159
|
function buildCreateDeployment() {
|
211127
|
-
return async function* createDeployment(clientOptions, deploymentOptions = {}
|
211160
|
+
return async function* createDeployment(clientOptions, deploymentOptions = {}) {
|
211128
211161
|
const { path } = clientOptions;
|
211129
211162
|
const debug = utils_1.createDebug(clientOptions.debug);
|
211130
|
-
const cwd = process.cwd();
|
211131
211163
|
debug('Creating deployment...');
|
211132
211164
|
if (typeof path !== 'string' && !Array.isArray(path)) {
|
211133
211165
|
debug(`Error: 'path' is expected to be a string or an array. Received ${typeof path}`);
|
@@ -211171,26 +211203,6 @@ function buildCreateDeployment() {
|
|
211171
211203
|
debug(`Provided 'path' is a single file`);
|
211172
211204
|
}
|
211173
211205
|
const { fileList } = await utils_1.buildFileTree(path, clientOptions, debug);
|
211174
|
-
let configPath;
|
211175
|
-
if (!nowConfig) {
|
211176
|
-
// If the user did not provide a config file, use the one in the root directory.
|
211177
|
-
const relativePaths = fileList.map(f => path_1.relative(cwd, f));
|
211178
|
-
const hasVercelConfig = relativePaths.includes('vercel.json');
|
211179
|
-
const hasNowConfig = relativePaths.includes('now.json');
|
211180
|
-
if (hasVercelConfig) {
|
211181
|
-
if (hasNowConfig) {
|
211182
|
-
throw new errors_1.DeploymentError({
|
211183
|
-
code: 'conflicting_config',
|
211184
|
-
message: 'Cannot use both a `vercel.json` and `now.json` file. Please delete the `now.json` file.',
|
211185
|
-
});
|
211186
|
-
}
|
211187
|
-
configPath = 'vercel.json';
|
211188
|
-
}
|
211189
|
-
else if (hasNowConfig) {
|
211190
|
-
configPath = 'now.json';
|
211191
|
-
}
|
211192
|
-
nowConfig = await utils_1.parseVercelConfig(configPath);
|
211193
|
-
}
|
211194
211206
|
// This is a useful warning because it prevents people
|
211195
211207
|
// from getting confused about a deployment that renders 404.
|
211196
211208
|
if (fileList.length === 0) {
|
@@ -225623,6 +225635,11 @@ exports.default = async (client) => {
|
|
225623
225635
|
let rootDirectory = project ? project.rootDirectory : null;
|
225624
225636
|
let sourceFilesOutsideRootDirectory = true;
|
225625
225637
|
if (status === 'not_linked') {
|
225638
|
+
// In the future this will need to be implemented in both the CLI and vercel.com/new at the same time
|
225639
|
+
if (localConfig === null || localConfig === void 0 ? void 0 : localConfig.projectSettings) {
|
225640
|
+
output.error('Unexpected property detected in vercel.json: "projectSettings"');
|
225641
|
+
return 1;
|
225642
|
+
}
|
225626
225643
|
const shouldStartSetup = autoConfirm ||
|
225627
225644
|
(await confirm_1.default(`Set up and deploy ${chalk_1.default.cyan(`“${humanize_path_1.default(path)}”`)}?`, true));
|
225628
225645
|
if (!shouldStartSetup) {
|
@@ -225788,7 +225805,10 @@ exports.default = async (client) => {
|
|
225788
225805
|
};
|
225789
225806
|
if (!localConfig.builds || localConfig.builds.length === 0) {
|
225790
225807
|
// Only add projectSettings for zero config deployments
|
225791
|
-
createArgs.projectSettings = {
|
225808
|
+
createArgs.projectSettings = {
|
225809
|
+
...localConfig.projectSettings,
|
225810
|
+
sourceFilesOutsideRootDirectory,
|
225811
|
+
};
|
225792
225812
|
}
|
225793
225813
|
deployment = await create_deploy_1.default(client, now, contextName, [sourcePath], createArgs, org, !project, path);
|
225794
225814
|
if (deployment.code === 'missing_project_settings') {
|
@@ -225802,7 +225822,10 @@ exports.default = async (client) => {
|
|
225802
225822
|
}
|
225803
225823
|
const settings = await edit_project_settings_1.default(output, projectSettings, framework);
|
225804
225824
|
// deploy again, but send projectSettings this time
|
225805
|
-
createArgs.projectSettings =
|
225825
|
+
createArgs.projectSettings = {
|
225826
|
+
...settings,
|
225827
|
+
...localConfig.projectSettings,
|
225828
|
+
};
|
225806
225829
|
deployStamp = stamp_1.default();
|
225807
225830
|
createArgs.deployStamp = deployStamp;
|
225808
225831
|
deployment = await create_deploy_1.default(client, now, contextName, [sourcePath], createArgs, org, false, path);
|
@@ -228000,9 +228023,11 @@ async function main(client) {
|
|
228000
228023
|
help();
|
228001
228024
|
return 2;
|
228002
228025
|
}
|
228003
|
-
const
|
228026
|
+
const cwd = argv['--cwd'] || process.cwd();
|
228027
|
+
const subArgs = argv._.slice(1);
|
228028
|
+
const { subcommand, args } = get_subcommand_1.default(subArgs, COMMAND_CONFIG);
|
228004
228029
|
const { output, config } = client;
|
228005
|
-
const link = await link_1.getLinkedProject(client);
|
228030
|
+
const link = await link_1.getLinkedProject(client, cwd);
|
228006
228031
|
if (link.status === 'error') {
|
228007
228032
|
return link.exitCode;
|
228008
228033
|
}
|
@@ -228021,7 +228046,7 @@ async function main(client) {
|
|
228021
228046
|
case 'rm':
|
228022
228047
|
return rm_1.default(client, project, argv, args, output);
|
228023
228048
|
case 'pull':
|
228024
|
-
return pull_1.default(client, project, types_1.ProjectEnvTarget.Development, argv, args, output);
|
228049
|
+
return pull_1.default(client, project, types_1.ProjectEnvTarget.Development, argv, args, output, cwd);
|
228025
228050
|
default:
|
228026
228051
|
output.error(get_invalid_subcommand_1.default(COMMAND_CONFIG));
|
228027
228052
|
help();
|
@@ -228159,7 +228184,7 @@ function tryReadHeadSync(path, length) {
|
|
228159
228184
|
}
|
228160
228185
|
}
|
228161
228186
|
}
|
228162
|
-
async function pull(client, project, environment, opts, args, output, cwd
|
228187
|
+
async function pull(client, project, environment, opts, args, output, cwd) {
|
228163
228188
|
if (args.length > 1) {
|
228164
228189
|
output.error(`Invalid number of arguments. Usage: ${pkg_name_1.getCommandName(`env pull <file>`)}`);
|
228165
228190
|
return 1;
|
@@ -228179,7 +228204,7 @@ async function pull(client, project, environment, opts, args, output, cwd = proc
|
|
228179
228204
|
output.log('Aborted');
|
228180
228205
|
return 0;
|
228181
228206
|
}
|
228182
|
-
output.print(`Downloading
|
228207
|
+
output.print(`Downloading "${environment}" Environment Variables for Project ${chalk_1.default.bold(project.name)}\n`);
|
228183
228208
|
const pullStamp = stamp_1.default();
|
228184
228209
|
output.spinner('Downloading');
|
228185
228210
|
const [{ envs: projectEnvs }, { systemEnvValues }] = await Promise.all([
|
@@ -228188,7 +228213,7 @@ async function pull(client, project, environment, opts, args, output, cwd = proc
|
|
228188
228213
|
? get_system_env_values_1.default(output, client, project.id)
|
228189
228214
|
: { systemEnvValues: [] },
|
228190
228215
|
]);
|
228191
|
-
const records = expose_system_envs_1.default(projectEnvs, systemEnvValues, project.autoExposeSystemEnvs);
|
228216
|
+
const records = expose_system_envs_1.default(projectEnvs, systemEnvValues, project.autoExposeSystemEnvs, undefined, environment);
|
228192
228217
|
const contents = CONTENTS_PREFIX +
|
228193
228218
|
Object.entries(records)
|
228194
228219
|
.map(([key, value]) => `${key}="${escapeValue(value)}"`)
|
@@ -229790,7 +229815,6 @@ const chalk_1 = __importDefault(__webpack_require__(961));
|
|
229790
229815
|
const path_1 = __webpack_require__(85622);
|
229791
229816
|
const emoji_1 = __webpack_require__(41806);
|
229792
229817
|
const get_args_1 = __importDefault(__webpack_require__(87612));
|
229793
|
-
const handle_error_1 = __importDefault(__webpack_require__(70870));
|
229794
229818
|
const setup_and_link_1 = __importDefault(__webpack_require__(69532));
|
229795
229819
|
const logo_1 = __importDefault(__webpack_require__(9829));
|
229796
229820
|
const stamp_1 = __importDefault(__webpack_require__(92205));
|
@@ -229837,18 +229861,12 @@ function processArgs(client) {
|
|
229837
229861
|
});
|
229838
229862
|
}
|
229839
229863
|
function parseArgs(client) {
|
229840
|
-
|
229841
|
-
|
229842
|
-
|
229843
|
-
|
229844
|
-
return 2;
|
229845
|
-
}
|
229846
|
-
return argv;
|
229847
|
-
}
|
229848
|
-
catch (err) {
|
229849
|
-
handle_error_1.default(err);
|
229850
|
-
return 1;
|
229864
|
+
const argv = processArgs(client);
|
229865
|
+
if (argv['--help']) {
|
229866
|
+
help();
|
229867
|
+
return 2;
|
229851
229868
|
}
|
229869
|
+
return argv;
|
229852
229870
|
}
|
229853
229871
|
async function ensureLink(client, cwd, yes) {
|
229854
229872
|
let link = await link_1.getLinkedProject(client, cwd);
|
@@ -233334,7 +233352,7 @@ function printInspectUrl(output, inspectorUrl, deployStamp) {
|
|
233334
233352
|
output.print(emoji_1.prependEmoji(`Inspect: ${chalk_1.default.bold(inspectorUrl)} ${deployStamp()}`, emoji_1.emoji('inspect')) + `\n`);
|
233335
233353
|
}
|
233336
233354
|
async function processDeployment({ org, cwd, projectName, isSettingUpProject, skipAutoDetectionConfirmation, ...args }) {
|
233337
|
-
let { now, output, paths, requestBody, deployStamp, force, withCache,
|
233355
|
+
let { now, output, paths, requestBody, deployStamp, force, withCache, quiet, prebuilt, rootDirectory, } = args;
|
233338
233356
|
const { debug } = output;
|
233339
233357
|
let bar = null;
|
233340
233358
|
const { env = {} } = requestBody;
|
@@ -233362,7 +233380,7 @@ async function processDeployment({ org, cwd, projectName, isSettingUpProject, sk
|
|
233362
233380
|
// the deployment is done
|
233363
233381
|
const indications = [];
|
233364
233382
|
try {
|
233365
|
-
for await (const event of client_1.createDeployment(clientOptions, requestBody
|
233383
|
+
for await (const event of client_1.createDeployment(clientOptions, requestBody)) {
|
233366
233384
|
if (['tip', 'notice', 'warning'].includes(event.type)) {
|
233367
233385
|
indications.push(event);
|
233368
233386
|
}
|
@@ -240104,7 +240122,6 @@ class Now extends events_1.default {
|
|
240104
240122
|
uploadStamp,
|
240105
240123
|
deployStamp,
|
240106
240124
|
quiet,
|
240107
|
-
nowConfig,
|
240108
240125
|
force: forceNew,
|
240109
240126
|
withCache,
|
240110
240127
|
org,
|
@@ -244648,7 +244665,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
244648
244665
|
/***/ ((module) => {
|
244649
244666
|
|
244650
244667
|
"use strict";
|
244651
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"24.1.1-canary.
|
244668
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"24.1.1-canary.3\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.15.2-canary.2\",\"@vercel/go\":\"1.3.3-canary.2\",\"@vercel/node\":\"1.14.2-canary.3\",\"@vercel/python\":\"2.2.3-canary.2\",\"@vercel/ruby\":\"1.3.3-canary.2\",\"update-notifier\":\"4.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/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.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\",\"@vercel/client\":\"10.4.2-canary.2\",\"@vercel/fetch-retry\":\"5.0.3\",\"@vercel/frameworks\":\"0.7.1\",\"@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\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"b61f049f1186ccc804cea35bcf61d16583ed6ca2\"}");
|
244652
244669
|
|
244653
244670
|
/***/ }),
|
244654
244671
|
|
@@ -244664,7 +244681,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
244664
244681
|
/***/ ((module) => {
|
244665
244682
|
|
244666
244683
|
"use strict";
|
244667
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.4.2-canary.
|
244684
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.4.2-canary.2\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@types/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\":\"2.15.2-canary.2\",\"@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\":\"b61f049f1186ccc804cea35bcf61d16583ed6ca2\"}");
|
244668
244685
|
|
244669
244686
|
/***/ }),
|
244670
244687
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "24.1.1-canary.
|
3
|
+
"version": "24.1.1-canary.3",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -43,14 +43,15 @@
|
|
43
43
|
"node": ">= 12"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@vercel/build-utils": "2.15.2-canary.
|
47
|
-
"@vercel/go": "1.3.3-canary.
|
48
|
-
"@vercel/node": "1.14.2-canary.
|
49
|
-
"@vercel/python": "2.2.3-canary.
|
50
|
-
"@vercel/ruby": "1.3.3-canary.
|
46
|
+
"@vercel/build-utils": "2.15.2-canary.2",
|
47
|
+
"@vercel/go": "1.3.3-canary.2",
|
48
|
+
"@vercel/node": "1.14.2-canary.3",
|
49
|
+
"@vercel/python": "2.2.3-canary.2",
|
50
|
+
"@vercel/ruby": "1.3.3-canary.2",
|
51
51
|
"update-notifier": "4.1.0"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
|
+
"@alex_neo/jest-expect-message": "1.0.5",
|
54
55
|
"@next/env": "11.1.2",
|
55
56
|
"@sentry/node": "5.5.0",
|
56
57
|
"@sindresorhus/slugify": "0.11.0",
|
@@ -69,6 +70,7 @@
|
|
69
70
|
"@types/http-proxy": "1.16.2",
|
70
71
|
"@types/inquirer": "7.3.1",
|
71
72
|
"@types/jest": "27.0.1",
|
73
|
+
"@types/jest-expect-message": "1.0.3",
|
72
74
|
"@types/load-json-file": "2.0.7",
|
73
75
|
"@types/mime-types": "2.1.0",
|
74
76
|
"@types/minimatch": "3.0.3",
|
@@ -88,7 +90,7 @@
|
|
88
90
|
"@types/update-notifier": "5.1.0",
|
89
91
|
"@types/which": "1.3.2",
|
90
92
|
"@types/write-json-file": "2.2.1",
|
91
|
-
"@vercel/client": "10.4.2-canary.
|
93
|
+
"@vercel/client": "10.4.2-canary.2",
|
92
94
|
"@vercel/fetch-retry": "5.0.3",
|
93
95
|
"@vercel/frameworks": "0.7.1",
|
94
96
|
"@vercel/ncc": "0.24.0",
|
@@ -176,11 +178,14 @@
|
|
176
178
|
"isolatedModules": true
|
177
179
|
}
|
178
180
|
},
|
181
|
+
"setupFilesAfterEnv": [
|
182
|
+
"@alex_neo/jest-expect-message"
|
183
|
+
],
|
179
184
|
"verbose": false,
|
180
185
|
"testEnvironment": "node",
|
181
186
|
"testMatch": [
|
182
187
|
"<rootDir>/test/**/*.test.ts"
|
183
188
|
]
|
184
189
|
},
|
185
|
-
"gitHead": "
|
190
|
+
"gitHead": "b61f049f1186ccc804cea35bcf61d16583ed6ca2"
|
186
191
|
}
|