vercel 27.3.4 → 27.3.7
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 +160 -253
- package/package.json +15 -16
package/dist/index.js
CHANGED
@@ -201002,7 +201002,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201002
201002
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201003
201003
|
};
|
201004
201004
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201005
|
-
exports.isSymbolicLink = void 0;
|
201005
|
+
exports.downloadFile = exports.isSymbolicLink = void 0;
|
201006
201006
|
const path_1 = __importDefault(__nested_webpack_require_845236__(5622));
|
201007
201007
|
const debug_1 = __importDefault(__nested_webpack_require_845236__(1868));
|
201008
201008
|
const file_fs_ref_1 = __importDefault(__nested_webpack_require_845236__(9331));
|
@@ -201021,7 +201021,7 @@ async function prepareSymlinkTarget(file, fsPath) {
|
|
201021
201021
|
return target;
|
201022
201022
|
}
|
201023
201023
|
if (file.type === 'FileRef' || file.type === 'FileBlob') {
|
201024
|
-
const targetPathBufferPromise =
|
201024
|
+
const targetPathBufferPromise = stream_to_buffer_1.default(await file.toStreamAsync());
|
201025
201025
|
const [targetPathBuffer] = await Promise.all([
|
201026
201026
|
targetPathBufferPromise,
|
201027
201027
|
mkdirPromise,
|
@@ -201032,6 +201032,9 @@ async function prepareSymlinkTarget(file, fsPath) {
|
|
201032
201032
|
}
|
201033
201033
|
async function downloadFile(file, fsPath) {
|
201034
201034
|
const { mode } = file;
|
201035
|
+
// If the source is a symlink, try to create it instead of copying the file.
|
201036
|
+
// Note: creating symlinks on Windows requires admin priviliges or symlinks
|
201037
|
+
// enabled in the group policy. We may want to improve the error message.
|
201035
201038
|
if (isSymbolicLink(mode)) {
|
201036
201039
|
const target = await prepareSymlinkTarget(file, fsPath);
|
201037
201040
|
await fs_extra_1.symlink(target, fsPath);
|
@@ -201040,6 +201043,7 @@ async function downloadFile(file, fsPath) {
|
|
201040
201043
|
const stream = file.toStream();
|
201041
201044
|
return file_fs_ref_1.default.fromStream({ mode, stream, fsPath });
|
201042
201045
|
}
|
201046
|
+
exports.downloadFile = downloadFile;
|
201043
201047
|
async function removeFile(basePath, fileMatched) {
|
201044
201048
|
const file = path_1.default.join(basePath, fileMatched);
|
201045
201049
|
await fs_extra_1.remove(file);
|
@@ -201094,14 +201098,14 @@ exports.default = download;
|
|
201094
201098
|
/***/ }),
|
201095
201099
|
|
201096
201100
|
/***/ 3838:
|
201097
|
-
/***/ ((__unused_webpack_module, exports,
|
201101
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_849671__) => {
|
201098
201102
|
|
201099
201103
|
"use strict";
|
201100
201104
|
|
201101
201105
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201102
|
-
const path_1 =
|
201103
|
-
const os_1 =
|
201104
|
-
const fs_extra_1 =
|
201106
|
+
const path_1 = __nested_webpack_require_849671__(5622);
|
201107
|
+
const os_1 = __nested_webpack_require_849671__(2087);
|
201108
|
+
const fs_extra_1 = __nested_webpack_require_849671__(5392);
|
201105
201109
|
async function getWritableDirectory() {
|
201106
201110
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
201107
201111
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -201114,7 +201118,7 @@ exports.default = getWritableDirectory;
|
|
201114
201118
|
/***/ }),
|
201115
201119
|
|
201116
201120
|
/***/ 4240:
|
201117
|
-
/***/ (function(__unused_webpack_module, exports,
|
201121
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_850251__) {
|
201118
201122
|
|
201119
201123
|
"use strict";
|
201120
201124
|
|
@@ -201122,13 +201126,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201122
201126
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201123
201127
|
};
|
201124
201128
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201125
|
-
const path_1 = __importDefault(
|
201126
|
-
const assert_1 = __importDefault(
|
201127
|
-
const glob_1 = __importDefault(
|
201128
|
-
const util_1 =
|
201129
|
-
const fs_extra_1 =
|
201130
|
-
const normalize_path_1 =
|
201131
|
-
const file_fs_ref_1 = __importDefault(
|
201129
|
+
const path_1 = __importDefault(__nested_webpack_require_850251__(5622));
|
201130
|
+
const assert_1 = __importDefault(__nested_webpack_require_850251__(2357));
|
201131
|
+
const glob_1 = __importDefault(__nested_webpack_require_850251__(1104));
|
201132
|
+
const util_1 = __nested_webpack_require_850251__(1669);
|
201133
|
+
const fs_extra_1 = __nested_webpack_require_850251__(5392);
|
201134
|
+
const normalize_path_1 = __nested_webpack_require_850251__(6261);
|
201135
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_850251__(9331));
|
201132
201136
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
201133
201137
|
async function glob(pattern, opts, mountpoint) {
|
201134
201138
|
let options;
|
@@ -201174,7 +201178,7 @@ exports.default = glob;
|
|
201174
201178
|
/***/ }),
|
201175
201179
|
|
201176
201180
|
/***/ 7903:
|
201177
|
-
/***/ (function(__unused_webpack_module, exports,
|
201181
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_852447__) {
|
201178
201182
|
|
201179
201183
|
"use strict";
|
201180
201184
|
|
@@ -201183,9 +201187,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201183
201187
|
};
|
201184
201188
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201185
201189
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
201186
|
-
const semver_1 =
|
201187
|
-
const errors_1 =
|
201188
|
-
const debug_1 = __importDefault(
|
201190
|
+
const semver_1 = __nested_webpack_require_852447__(2879);
|
201191
|
+
const errors_1 = __nested_webpack_require_852447__(3983);
|
201192
|
+
const debug_1 = __importDefault(__nested_webpack_require_852447__(1868));
|
201189
201193
|
const allOptions = [
|
201190
201194
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
201191
201195
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
@@ -201284,7 +201288,7 @@ exports.normalizePath = normalizePath;
|
|
201284
201288
|
/***/ }),
|
201285
201289
|
|
201286
201290
|
/***/ 7792:
|
201287
|
-
/***/ (function(__unused_webpack_module, exports,
|
201291
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_856301__) {
|
201288
201292
|
|
201289
201293
|
"use strict";
|
201290
201294
|
|
@@ -201293,9 +201297,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201293
201297
|
};
|
201294
201298
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201295
201299
|
exports.readConfigFile = void 0;
|
201296
|
-
const js_yaml_1 = __importDefault(
|
201297
|
-
const toml_1 = __importDefault(
|
201298
|
-
const fs_extra_1 =
|
201300
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_856301__(6540));
|
201301
|
+
const toml_1 = __importDefault(__nested_webpack_require_856301__(9434));
|
201302
|
+
const fs_extra_1 = __nested_webpack_require_856301__(5392);
|
201299
201303
|
async function readFileOrNull(file) {
|
201300
201304
|
try {
|
201301
201305
|
const data = await fs_extra_1.readFile(file);
|
@@ -201350,7 +201354,7 @@ exports.default = rename;
|
|
201350
201354
|
/***/ }),
|
201351
201355
|
|
201352
201356
|
/***/ 1442:
|
201353
|
-
/***/ (function(__unused_webpack_module, exports,
|
201357
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_858094__) {
|
201354
201358
|
|
201355
201359
|
"use strict";
|
201356
201360
|
|
@@ -201359,17 +201363,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201359
201363
|
};
|
201360
201364
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201361
201365
|
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;
|
201362
|
-
const assert_1 = __importDefault(
|
201363
|
-
const fs_extra_1 = __importDefault(
|
201364
|
-
const path_1 = __importDefault(
|
201365
|
-
const async_sema_1 = __importDefault(
|
201366
|
-
const cross_spawn_1 = __importDefault(
|
201367
|
-
const semver_1 =
|
201368
|
-
const util_1 =
|
201369
|
-
const debug_1 = __importDefault(
|
201370
|
-
const errors_1 =
|
201371
|
-
const node_version_1 =
|
201372
|
-
const read_config_file_1 =
|
201366
|
+
const assert_1 = __importDefault(__nested_webpack_require_858094__(2357));
|
201367
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_858094__(5392));
|
201368
|
+
const path_1 = __importDefault(__nested_webpack_require_858094__(5622));
|
201369
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_858094__(5758));
|
201370
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_858094__(7618));
|
201371
|
+
const semver_1 = __nested_webpack_require_858094__(2879);
|
201372
|
+
const util_1 = __nested_webpack_require_858094__(1669);
|
201373
|
+
const debug_1 = __importDefault(__nested_webpack_require_858094__(1868));
|
201374
|
+
const errors_1 = __nested_webpack_require_858094__(3983);
|
201375
|
+
const node_version_1 = __nested_webpack_require_858094__(7903);
|
201376
|
+
const read_config_file_1 = __nested_webpack_require_858094__(7792);
|
201373
201377
|
// Only allow one `runNpmInstall()` invocation to run concurrently
|
201374
201378
|
const runNpmInstallSema = new async_sema_1.default(1);
|
201375
201379
|
function spawnAsync(command, args, opts = {}) {
|
@@ -201821,7 +201825,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
201821
201825
|
/***/ }),
|
201822
201826
|
|
201823
201827
|
/***/ 2560:
|
201824
|
-
/***/ (function(__unused_webpack_module, exports,
|
201828
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_877201__) {
|
201825
201829
|
|
201826
201830
|
"use strict";
|
201827
201831
|
|
@@ -201829,7 +201833,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201829
201833
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201830
201834
|
};
|
201831
201835
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201832
|
-
const end_of_stream_1 = __importDefault(
|
201836
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_877201__(687));
|
201833
201837
|
function streamToBuffer(stream) {
|
201834
201838
|
return new Promise((resolve, reject) => {
|
201835
201839
|
const buffers = [];
|
@@ -201858,7 +201862,7 @@ exports.default = streamToBuffer;
|
|
201858
201862
|
/***/ }),
|
201859
201863
|
|
201860
201864
|
/***/ 1148:
|
201861
|
-
/***/ (function(__unused_webpack_module, exports,
|
201865
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_878269__) {
|
201862
201866
|
|
201863
201867
|
"use strict";
|
201864
201868
|
|
@@ -201866,9 +201870,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201866
201870
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201867
201871
|
};
|
201868
201872
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201869
|
-
const path_1 = __importDefault(
|
201870
|
-
const fs_extra_1 = __importDefault(
|
201871
|
-
const ignore_1 = __importDefault(
|
201873
|
+
const path_1 = __importDefault(__nested_webpack_require_878269__(5622));
|
201874
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_878269__(5392));
|
201875
|
+
const ignore_1 = __importDefault(__nested_webpack_require_878269__(3556));
|
201872
201876
|
function isCodedError(error) {
|
201873
201877
|
return (error !== null &&
|
201874
201878
|
error !== undefined &&
|
@@ -201925,13 +201929,13 @@ exports.default = default_1;
|
|
201925
201929
|
/***/ }),
|
201926
201930
|
|
201927
201931
|
/***/ 4678:
|
201928
|
-
/***/ ((__unused_webpack_module, exports,
|
201932
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_880643__) => {
|
201929
201933
|
|
201930
201934
|
"use strict";
|
201931
201935
|
|
201932
201936
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201933
201937
|
exports.getPlatformEnv = void 0;
|
201934
|
-
const errors_1 =
|
201938
|
+
const errors_1 = __nested_webpack_require_880643__(3983);
|
201935
201939
|
/**
|
201936
201940
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
201937
201941
|
* Throws an error if *both* env vars are defined.
|
@@ -201959,7 +201963,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
201959
201963
|
/***/ }),
|
201960
201964
|
|
201961
201965
|
/***/ 2855:
|
201962
|
-
/***/ (function(__unused_webpack_module, exports,
|
201966
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_881680__) {
|
201963
201967
|
|
201964
201968
|
"use strict";
|
201965
201969
|
|
@@ -201989,31 +201993,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201989
201993
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201990
201994
|
};
|
201991
201995
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201992
|
-
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;
|
201993
|
-
const file_blob_1 = __importDefault(
|
201996
|
+
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.downloadFile = exports.download = exports.Prerender = exports.createLambda = exports.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
201997
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_881680__(2397));
|
201994
201998
|
exports.FileBlob = file_blob_1.default;
|
201995
|
-
const file_fs_ref_1 = __importDefault(
|
201999
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_881680__(9331));
|
201996
202000
|
exports.FileFsRef = file_fs_ref_1.default;
|
201997
|
-
const file_ref_1 = __importDefault(
|
202001
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_881680__(5187));
|
201998
202002
|
exports.FileRef = file_ref_1.default;
|
201999
|
-
const lambda_1 =
|
202003
|
+
const lambda_1 = __nested_webpack_require_881680__(6721);
|
202000
202004
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
202001
202005
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
202002
202006
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
202003
|
-
const nodejs_lambda_1 =
|
202007
|
+
const nodejs_lambda_1 = __nested_webpack_require_881680__(7049);
|
202004
202008
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
202005
|
-
const prerender_1 =
|
202009
|
+
const prerender_1 = __nested_webpack_require_881680__(2850);
|
202006
202010
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
202007
|
-
const download_1 = __importStar(
|
202011
|
+
const download_1 = __importStar(__nested_webpack_require_881680__(1611));
|
202008
202012
|
exports.download = download_1.default;
|
202013
|
+
Object.defineProperty(exports, "downloadFile", ({ enumerable: true, get: function () { return download_1.downloadFile; } }));
|
202009
202014
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
202010
|
-
const get_writable_directory_1 = __importDefault(
|
202015
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_881680__(3838));
|
202011
202016
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
202012
|
-
const glob_1 = __importDefault(
|
202017
|
+
const glob_1 = __importDefault(__nested_webpack_require_881680__(4240));
|
202013
202018
|
exports.glob = glob_1.default;
|
202014
|
-
const rename_1 = __importDefault(
|
202019
|
+
const rename_1 = __importDefault(__nested_webpack_require_881680__(6718));
|
202015
202020
|
exports.rename = rename_1.default;
|
202016
|
-
const run_user_scripts_1 =
|
202021
|
+
const run_user_scripts_1 = __nested_webpack_require_881680__(1442);
|
202017
202022
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
202018
202023
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
202019
202024
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -202032,33 +202037,33 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
202032
202037
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
202033
202038
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
202034
202039
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
202035
|
-
const node_version_1 =
|
202040
|
+
const node_version_1 = __nested_webpack_require_881680__(7903);
|
202036
202041
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
202037
202042
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
202038
|
-
const stream_to_buffer_1 = __importDefault(
|
202043
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_881680__(2560));
|
202039
202044
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
202040
|
-
const debug_1 = __importDefault(
|
202045
|
+
const debug_1 = __importDefault(__nested_webpack_require_881680__(1868));
|
202041
202046
|
exports.debug = debug_1.default;
|
202042
|
-
const get_ignore_filter_1 = __importDefault(
|
202047
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_881680__(1148));
|
202043
202048
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
202044
|
-
const get_platform_env_1 =
|
202049
|
+
const get_platform_env_1 = __nested_webpack_require_881680__(4678);
|
202045
202050
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
202046
|
-
var edge_function_1 =
|
202051
|
+
var edge_function_1 = __nested_webpack_require_881680__(8038);
|
202047
202052
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
202048
|
-
var read_config_file_1 =
|
202053
|
+
var read_config_file_1 = __nested_webpack_require_881680__(7792);
|
202049
202054
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
202050
|
-
var normalize_path_1 =
|
202055
|
+
var normalize_path_1 = __nested_webpack_require_881680__(6261);
|
202051
202056
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
202052
|
-
__exportStar(
|
202053
|
-
__exportStar(
|
202054
|
-
__exportStar(
|
202055
|
-
__exportStar(
|
202057
|
+
__exportStar(__nested_webpack_require_881680__(2564), exports);
|
202058
|
+
__exportStar(__nested_webpack_require_881680__(2416), exports);
|
202059
|
+
__exportStar(__nested_webpack_require_881680__(5748), exports);
|
202060
|
+
__exportStar(__nested_webpack_require_881680__(3983), exports);
|
202056
202061
|
|
202057
202062
|
|
202058
202063
|
/***/ }),
|
202059
202064
|
|
202060
202065
|
/***/ 6721:
|
202061
|
-
/***/ (function(__unused_webpack_module, exports,
|
202066
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_890074__) {
|
202062
202067
|
|
202063
202068
|
"use strict";
|
202064
202069
|
|
@@ -202067,16 +202072,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
202067
202072
|
};
|
202068
202073
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202069
202074
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
202070
|
-
const assert_1 = __importDefault(
|
202071
|
-
const async_sema_1 = __importDefault(
|
202072
|
-
const yazl_1 =
|
202073
|
-
const minimatch_1 = __importDefault(
|
202074
|
-
const fs_extra_1 =
|
202075
|
-
const download_1 =
|
202076
|
-
const stream_to_buffer_1 = __importDefault(
|
202075
|
+
const assert_1 = __importDefault(__nested_webpack_require_890074__(2357));
|
202076
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_890074__(5758));
|
202077
|
+
const yazl_1 = __nested_webpack_require_890074__(1223);
|
202078
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_890074__(9566));
|
202079
|
+
const fs_extra_1 = __nested_webpack_require_890074__(5392);
|
202080
|
+
const download_1 = __nested_webpack_require_890074__(1611);
|
202081
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_890074__(2560));
|
202077
202082
|
class Lambda {
|
202078
202083
|
constructor(opts) {
|
202079
|
-
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
202084
|
+
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, } = opts;
|
202080
202085
|
if ('files' in opts) {
|
202081
202086
|
assert_1.default(typeof opts.files === 'object', '"files" must be an object');
|
202082
202087
|
}
|
@@ -202099,6 +202104,9 @@ class Lambda {
|
|
202099
202104
|
if (supportsMultiPayloads !== undefined) {
|
202100
202105
|
assert_1.default(typeof supportsMultiPayloads === 'boolean', '"supportsMultiPayloads" is not a boolean');
|
202101
202106
|
}
|
202107
|
+
if (supportsWrapper !== undefined) {
|
202108
|
+
assert_1.default(typeof supportsWrapper === 'boolean', '"supportsWrapper" is not a boolean');
|
202109
|
+
}
|
202102
202110
|
if (regions !== undefined) {
|
202103
202111
|
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
202104
202112
|
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
@@ -202114,6 +202122,7 @@ class Lambda {
|
|
202114
202122
|
this.regions = regions;
|
202115
202123
|
this.zipBuffer = 'zipBuffer' in opts ? opts.zipBuffer : undefined;
|
202116
202124
|
this.supportsMultiPayloads = supportsMultiPayloads;
|
202125
|
+
this.supportsWrapper = supportsWrapper;
|
202117
202126
|
}
|
202118
202127
|
async createZip() {
|
202119
202128
|
let { zipBuffer } = this;
|
@@ -202195,13 +202204,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
202195
202204
|
/***/ }),
|
202196
202205
|
|
202197
202206
|
/***/ 7049:
|
202198
|
-
/***/ ((__unused_webpack_module, exports,
|
202207
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_895757__) => {
|
202199
202208
|
|
202200
202209
|
"use strict";
|
202201
202210
|
|
202202
202211
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202203
202212
|
exports.NodejsLambda = void 0;
|
202204
|
-
const lambda_1 =
|
202213
|
+
const lambda_1 = __nested_webpack_require_895757__(6721);
|
202205
202214
|
class NodejsLambda extends lambda_1.Lambda {
|
202206
202215
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
202207
202216
|
super(opts);
|
@@ -202338,13 +202347,13 @@ exports.buildsSchema = {
|
|
202338
202347
|
/***/ }),
|
202339
202348
|
|
202340
202349
|
/***/ 2564:
|
202341
|
-
/***/ ((__unused_webpack_module, exports,
|
202350
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_900102__) => {
|
202342
202351
|
|
202343
202352
|
"use strict";
|
202344
202353
|
|
202345
202354
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202346
202355
|
exports.shouldServe = void 0;
|
202347
|
-
const path_1 =
|
202356
|
+
const path_1 = __nested_webpack_require_900102__(5622);
|
202348
202357
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
202349
202358
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
202350
202359
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -202589,7 +202598,7 @@ module.exports = __webpack_require__(78761);
|
|
202589
202598
|
/******/ var __webpack_module_cache__ = {};
|
202590
202599
|
/******/
|
202591
202600
|
/******/ // The require function
|
202592
|
-
/******/ function
|
202601
|
+
/******/ function __nested_webpack_require_1277467__(moduleId) {
|
202593
202602
|
/******/ // Check if module is in cache
|
202594
202603
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
202595
202604
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -202604,7 +202613,7 @@ module.exports = __webpack_require__(78761);
|
|
202604
202613
|
/******/ // Execute the module function
|
202605
202614
|
/******/ var threw = true;
|
202606
202615
|
/******/ try {
|
202607
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
202616
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1277467__);
|
202608
202617
|
/******/ threw = false;
|
202609
202618
|
/******/ } finally {
|
202610
202619
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -202617,11 +202626,11 @@ module.exports = __webpack_require__(78761);
|
|
202617
202626
|
/************************************************************************/
|
202618
202627
|
/******/ /* webpack/runtime/compat */
|
202619
202628
|
/******/
|
202620
|
-
/******/
|
202629
|
+
/******/ __nested_webpack_require_1277467__.ab = __dirname + "/";/************************************************************************/
|
202621
202630
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
202622
202631
|
/******/ // startup
|
202623
202632
|
/******/ // Load entry module and return exports
|
202624
|
-
/******/ return
|
202633
|
+
/******/ return __nested_webpack_require_1277467__(2855);
|
202625
202634
|
/******/ })()
|
202626
202635
|
;
|
202627
202636
|
|
@@ -215145,7 +215154,8 @@ async function run({ output, contextName, currentTeam, client }) {
|
|
215145
215154
|
|
215146
215155
|
if (theSecret) {
|
215147
215156
|
const yes =
|
215148
|
-
argv.yes ||
|
215157
|
+
argv.yes ||
|
215158
|
+
(await readConfirmation(client, output, theSecret, contextName));
|
215149
215159
|
if (!yes) {
|
215150
215160
|
output.print(`Aborted. Secret not deleted.\n`);
|
215151
215161
|
return 0;
|
@@ -215272,7 +215282,7 @@ async function run({ output, contextName, currentTeam, client }) {
|
|
215272
215282
|
return 2;
|
215273
215283
|
}
|
215274
215284
|
|
215275
|
-
async function readConfirmation(output, secret, contextName) {
|
215285
|
+
async function readConfirmation(client, output, secret, contextName) {
|
215276
215286
|
const time = source_default().gray(`${(0,ms_default())(new Date() - new Date(secret.created))} ago`);
|
215277
215287
|
const tbl = (0,text_table_default())([[source_default().bold(secret.name), time]], {
|
215278
215288
|
align: ['r', 'l'],
|
@@ -215286,7 +215296,7 @@ async function readConfirmation(output, secret, contextName) {
|
|
215286
215296
|
);
|
215287
215297
|
output.print(` ${tbl}\n`);
|
215288
215298
|
|
215289
|
-
return (0,input_confirm.default)(`${source_default().bold.red('Are you sure?')}`, false);
|
215299
|
+
return (0,input_confirm.default)(client, `${source_default().bold.red('Are you sure?')}`, false);
|
215290
215300
|
}
|
215291
215301
|
|
215292
215302
|
|
@@ -239166,6 +239176,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
239166
239176
|
}, err => err));
|
239167
239177
|
}
|
239168
239178
|
catch (err) {
|
239179
|
+
output.prettyError(err);
|
239169
239180
|
const writeConfigJsonPromise = fs_extra_1.default.writeJSON((0, path_1.join)(outputDir, 'config.json'), { version: 3 }, { spaces: 2 });
|
239170
239181
|
await Promise.all([writeBuildsJsonPromise, writeConfigJsonPromise]);
|
239171
239182
|
const buildJsonBuild = buildsJsonBuilds.get(build);
|
@@ -242618,14 +242629,13 @@ async function pull(client, project, environment, opts, args, output, cwd, sourc
|
|
242618
242629
|
.join('\n') +
|
242619
242630
|
'\n';
|
242620
242631
|
await (0, fs_extra_1.outputFile)(fullPath, contents, 'utf8');
|
242621
|
-
output.print(`${(0, emoji_1.prependEmoji)(`${exists ? 'Updated' : 'Created'} ${chalk_1.default.bold(filename)} file ${chalk_1.default.gray(pullStamp())}`, (0, emoji_1.emoji)('success'))}\n`);
|
242622
|
-
output.print('\n');
|
242623
242632
|
if (deltaString) {
|
242624
|
-
output.print(deltaString);
|
242633
|
+
output.print('\n' + deltaString);
|
242625
242634
|
}
|
242626
242635
|
else if (oldEnv && exists) {
|
242627
242636
|
output.log('No changes found.');
|
242628
242637
|
}
|
242638
|
+
output.print(`${(0, emoji_1.prependEmoji)(`${exists ? 'Updated' : 'Created'} ${chalk_1.default.bold(filename)} file ${chalk_1.default.gray(pullStamp())}`, (0, emoji_1.emoji)('success'))}\n`);
|
242629
242639
|
return 0;
|
242630
242640
|
}
|
242631
242641
|
exports.default = pull;
|
@@ -243328,6 +243338,7 @@ const get_deployment_1 = __webpack_require__(34518);
|
|
243328
243338
|
const title_1 = __importDefault(__webpack_require__(45676));
|
243329
243339
|
const is_error_1 = __webpack_require__(11026);
|
243330
243340
|
const errors_ts_1 = __webpack_require__(60156);
|
243341
|
+
const url_1 = __webpack_require__(78835);
|
243331
243342
|
const help = () => {
|
243332
243343
|
console.log(`
|
243333
243344
|
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} inspect`)} <url>
|
@@ -243368,7 +243379,7 @@ async function main(client) {
|
|
243368
243379
|
}
|
243369
243380
|
const { print, log, error } = client.output;
|
243370
243381
|
// extract the first parameter
|
243371
|
-
|
243382
|
+
let [, deploymentIdOrHost] = argv._;
|
243372
243383
|
if (argv._.length !== 2) {
|
243373
243384
|
error(`${(0, pkg_name_1.getCommandName)('inspect <url>')} expects exactly one argument`);
|
243374
243385
|
help();
|
@@ -243386,9 +243397,13 @@ async function main(client) {
|
|
243386
243397
|
}
|
243387
243398
|
throw err;
|
243388
243399
|
}
|
243389
|
-
// resolve the deployment, since we might have been given an alias
|
243390
243400
|
const depFetchStart = Date.now();
|
243401
|
+
try {
|
243402
|
+
deploymentIdOrHost = new url_1.URL(deploymentIdOrHost).hostname;
|
243403
|
+
}
|
243404
|
+
catch { }
|
243391
243405
|
client.output.spinner(`Fetching deployment "${deploymentIdOrHost}" in ${chalk_1.default.bold(contextName)}`);
|
243406
|
+
// resolve the deployment, since we might have been given an alias
|
243392
243407
|
try {
|
243393
243408
|
deployment = await (0, get_deployment_1.getDeployment)(client, deploymentIdOrHost);
|
243394
243409
|
}
|
@@ -245879,107 +245894,48 @@ const main = async () => {
|
|
245879
245894
|
}
|
245880
245895
|
catch (err) {
|
245881
245896
|
output.error(`An unexpected error occurred while trying to create the global directory "${(0, humanize_path_1.default)(VERCEL_DIR)}" ${(0, is_error_1.errorToString)(err)}`);
|
245897
|
+
return 1;
|
245882
245898
|
}
|
245883
|
-
let
|
245884
|
-
let configExists;
|
245899
|
+
let config;
|
245885
245900
|
try {
|
245886
|
-
|
245901
|
+
config = configFiles.readConfigFile();
|
245887
245902
|
}
|
245888
245903
|
catch (err) {
|
245889
|
-
|
245890
|
-
|
245891
|
-
|
245892
|
-
|
245893
|
-
|
245894
|
-
|
245895
|
-
|
245896
|
-
|
245897
|
-
|
245898
|
-
catch (err) {
|
245899
|
-
console.error((0, error_1.default)(`${'An unexpected error occurred while trying to read the ' +
|
245900
|
-
`config in "${(0, humanize_path_1.default)(VERCEL_CONFIG_PATH)}" `}${(0, is_error_1.errorToString)(err)}`));
|
245901
|
-
return 1;
|
245902
|
-
}
|
245903
|
-
// This is from when Vercel CLI supported
|
245904
|
-
// multiple providers. In that case, we really
|
245905
|
-
// need to migrate.
|
245906
|
-
if (
|
245907
|
-
// @ts-ignore
|
245908
|
-
config.sh ||
|
245909
|
-
// @ts-ignore
|
245910
|
-
config.user ||
|
245911
|
-
// @ts-ignore
|
245912
|
-
typeof config.user === 'object' ||
|
245913
|
-
typeof config.currentTeam === 'object') {
|
245914
|
-
configExists = false;
|
245915
|
-
}
|
245916
|
-
}
|
245917
|
-
if (!configExists) {
|
245918
|
-
const results = await (0, get_default_1.getDefaultConfig)(config);
|
245919
|
-
config = results.config;
|
245920
|
-
migrated = results.migrated;
|
245921
|
-
try {
|
245922
|
-
configFiles.writeToConfigFile(config);
|
245904
|
+
if ((0, is_error_1.isErrnoException)(err) && err.code === 'ENOENT') {
|
245905
|
+
config = get_default_1.defaultGlobalConfig;
|
245906
|
+
try {
|
245907
|
+
configFiles.writeToConfigFile(config);
|
245908
|
+
}
|
245909
|
+
catch (err) {
|
245910
|
+
output.error(`An unexpected error occurred while trying to save the config to "${(0, humanize_path_1.default)(VERCEL_CONFIG_PATH)}" ${(0, is_error_1.errorToString)(err)}`);
|
245911
|
+
return 1;
|
245912
|
+
}
|
245923
245913
|
}
|
245924
|
-
|
245925
|
-
|
245926
|
-
`default config to "${(0, humanize_path_1.default)(VERCEL_CONFIG_PATH)}" `}${(0, is_error_1.errorToString)(err)}`));
|
245914
|
+
else {
|
245915
|
+
output.error(`An unexpected error occurred while trying to read the config in "${(0, humanize_path_1.default)(VERCEL_CONFIG_PATH)}" ${(0, is_error_1.errorToString)(err)}`);
|
245927
245916
|
return 1;
|
245928
245917
|
}
|
245929
245918
|
}
|
245930
|
-
let
|
245919
|
+
let authConfig;
|
245931
245920
|
try {
|
245932
|
-
|
245921
|
+
authConfig = configFiles.readAuthConfigFile();
|
245933
245922
|
}
|
245934
245923
|
catch (err) {
|
245935
|
-
|
245936
|
-
|
245937
|
-
|
245938
|
-
|
245939
|
-
|
245940
|
-
|
245941
|
-
|
245942
|
-
|
245943
|
-
|
245944
|
-
'init',
|
245945
|
-
'update',
|
245946
|
-
'build',
|
245947
|
-
];
|
245948
|
-
if (authConfigExists) {
|
245949
|
-
try {
|
245950
|
-
authConfig = configFiles.readAuthConfigFile();
|
245951
|
-
}
|
245952
|
-
catch (err) {
|
245953
|
-
console.error((0, error_1.default)(`${'An unexpected error occurred while trying to read the ' +
|
245954
|
-
`auth config in "${(0, humanize_path_1.default)(VERCEL_AUTH_CONFIG_PATH)}" `}${(0, is_error_1.errorToString)(err)}`));
|
245955
|
-
return 1;
|
245956
|
-
}
|
245957
|
-
// This is from when Vercel CLI supported
|
245958
|
-
// multiple providers. In that case, we really
|
245959
|
-
// need to migrate.
|
245960
|
-
// @ts-ignore
|
245961
|
-
if (authConfig.credentials) {
|
245962
|
-
authConfigExists = false;
|
245963
|
-
}
|
245964
|
-
}
|
245965
|
-
else {
|
245966
|
-
const results = await (0, get_default_1.getDefaultAuthConfig)(authConfig);
|
245967
|
-
authConfig = results.config;
|
245968
|
-
migrated = results.migrated;
|
245969
|
-
try {
|
245970
|
-
configFiles.writeToAuthConfigFile(authConfig);
|
245924
|
+
if ((0, is_error_1.isErrnoException)(err) && err.code === 'ENOENT') {
|
245925
|
+
authConfig = get_default_1.defaultAuthConfig;
|
245926
|
+
try {
|
245927
|
+
configFiles.writeToAuthConfigFile(authConfig);
|
245928
|
+
}
|
245929
|
+
catch (err) {
|
245930
|
+
output.error(`An unexpected error occurred while trying to write the auth config to "${(0, humanize_path_1.default)(VERCEL_AUTH_CONFIG_PATH)}" ${(0, is_error_1.errorToString)(err)}`);
|
245931
|
+
return 1;
|
245932
|
+
}
|
245971
245933
|
}
|
245972
|
-
|
245973
|
-
|
245974
|
-
`default config to "${(0, humanize_path_1.default)(VERCEL_AUTH_CONFIG_PATH)}" `}${(0, is_error_1.errorToString)(err)}`));
|
245934
|
+
else {
|
245935
|
+
output.error(`An unexpected error occurred while trying to read the auth config in "${(0, humanize_path_1.default)(VERCEL_AUTH_CONFIG_PATH)}" ${(0, is_error_1.errorToString)(err)}`);
|
245975
245936
|
return 1;
|
245976
245937
|
}
|
245977
245938
|
}
|
245978
|
-
// Let the user know we migrated the config
|
245979
|
-
if (migrated) {
|
245980
|
-
const directory = (0, param_1.default)((0, humanize_path_1.default)(VERCEL_DIR));
|
245981
|
-
debug(`The credentials and configuration within the ${directory} directory were upgraded`);
|
245982
|
-
}
|
245983
245939
|
if (typeof argv['--api'] === 'string') {
|
245984
245940
|
apiUrl = argv['--api'];
|
245985
245941
|
}
|
@@ -245987,17 +245943,12 @@ const main = async () => {
|
|
245987
245943
|
apiUrl = config.api;
|
245988
245944
|
}
|
245989
245945
|
try {
|
245990
|
-
// eslint-disable-next-line no-new
|
245991
245946
|
new url_1.URL(apiUrl);
|
245992
245947
|
}
|
245993
245948
|
catch (err) {
|
245994
245949
|
output.error(`Please provide a valid URL instead of ${(0, highlight_1.default)(apiUrl)}.`);
|
245995
245950
|
return 1;
|
245996
245951
|
}
|
245997
|
-
if (!config) {
|
245998
|
-
output.error(`Vercel global config was not loaded.`);
|
245999
|
-
return 1;
|
246000
|
-
}
|
246001
245952
|
// Shared API `Client` instance for all sub-commands to utilize
|
246002
245953
|
client = new client_1.default({
|
246003
245954
|
apiUrl,
|
@@ -246038,6 +245989,14 @@ const main = async () => {
|
|
246038
245989
|
subcommand = argv._[3] || 'deploy';
|
246039
245990
|
client.argv.push('-h');
|
246040
245991
|
}
|
245992
|
+
const subcommandsWithoutToken = [
|
245993
|
+
'login',
|
245994
|
+
'logout',
|
245995
|
+
'help',
|
245996
|
+
'init',
|
245997
|
+
'update',
|
245998
|
+
'build',
|
245999
|
+
];
|
246041
246000
|
// Prompt for login if there is no current token
|
246042
246001
|
if ((!authConfig || !authConfig.token) &&
|
246043
246002
|
!client.argv.includes('-h') &&
|
@@ -247376,9 +247335,7 @@ async function writeStaticFile(outputDir, file, path, overrides, cleanUrls = fal
|
|
247376
247335
|
}
|
247377
247336
|
const dest = (0, path_1.join)(outputDir, 'static', fsPath);
|
247378
247337
|
await fs_extra_1.default.mkdirp((0, path_1.dirname)(dest));
|
247379
|
-
|
247380
|
-
const stream = file.toStream();
|
247381
|
-
await (0, promisepipe_1.default)(stream, fs_extra_1.default.createWriteStream(dest, { mode: file.mode }));
|
247338
|
+
await (0, build_utils_1.downloadFile)(file, dest);
|
247382
247339
|
}
|
247383
247340
|
/**
|
247384
247341
|
* Serializes the `EdgeFunction` instance to the file system.
|
@@ -248504,69 +248461,16 @@ exports.readLocalConfig = readLocalConfig;
|
|
248504
248461
|
"use strict";
|
248505
248462
|
|
248506
248463
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
248507
|
-
exports.
|
248508
|
-
|
248509
|
-
|
248510
|
-
|
248511
|
-
|
248512
|
-
collectMetrics: true,
|
248513
|
-
};
|
248514
|
-
if (existingCopy) {
|
248515
|
-
const keep = [
|
248516
|
-
'_',
|
248517
|
-
'currentTeam',
|
248518
|
-
'desktop',
|
248519
|
-
'updateChannel',
|
248520
|
-
'collectMetrics',
|
248521
|
-
'api',
|
248522
|
-
// This is deleted later in the code
|
248523
|
-
];
|
248524
|
-
try {
|
248525
|
-
const existing = Object.assign({}, existingCopy);
|
248526
|
-
// @ts-ignore
|
248527
|
-
const sh = Object.assign({}, existing.sh || {});
|
248528
|
-
Object.assign(config, existing, sh);
|
248529
|
-
for (const key of Object.keys(config)) {
|
248530
|
-
if (!keep.includes(key)) {
|
248531
|
-
// @ts-ignore
|
248532
|
-
delete config[key];
|
248533
|
-
}
|
248534
|
-
}
|
248535
|
-
if (typeof config.currentTeam === 'object') {
|
248536
|
-
// @ts-ignore
|
248537
|
-
config.currentTeam = config.currentTeam.id;
|
248538
|
-
}
|
248539
|
-
// @ts-ignore
|
248540
|
-
if (typeof config.user === 'object') {
|
248541
|
-
// @ts-ignore
|
248542
|
-
config.user = config.user.uid || config.user.id;
|
248543
|
-
}
|
248544
|
-
migrated = true;
|
248545
|
-
}
|
248546
|
-
catch (err) { }
|
248547
|
-
}
|
248548
|
-
return { config, migrated };
|
248464
|
+
exports.defaultAuthConfig = exports.defaultGlobalConfig = void 0;
|
248465
|
+
exports.defaultGlobalConfig = {
|
248466
|
+
'// Note': 'This is your Vercel config file. For more information see the global configuration documentation.',
|
248467
|
+
'// Docs': 'https://vercel.com/docs/project-configuration#global-configuration/config-json',
|
248468
|
+
collectMetrics: true,
|
248549
248469
|
};
|
248550
|
-
exports.
|
248551
|
-
|
248552
|
-
|
248553
|
-
const config = {
|
248554
|
-
_: 'This is your Vercel credentials file. DO NOT SHARE! More: https://vercel.com/docs/configuration#global',
|
248555
|
-
};
|
248556
|
-
if (existing) {
|
248557
|
-
try {
|
248558
|
-
// @ts-ignore
|
248559
|
-
const sh = existing.credentials.find(item => item.provider === 'sh');
|
248560
|
-
if (sh) {
|
248561
|
-
config.token = sh.token;
|
248562
|
-
}
|
248563
|
-
migrated = true;
|
248564
|
-
}
|
248565
|
-
catch (err) { }
|
248566
|
-
}
|
248567
|
-
return { config, migrated };
|
248470
|
+
exports.defaultAuthConfig = {
|
248471
|
+
'// Note': 'This is your Vercel credentials file. DO NOT SHARE!',
|
248472
|
+
'// Docs': 'https://vercel.com/docs/project-configuration#global-configuration/auth-json',
|
248568
248473
|
};
|
248569
|
-
exports.getDefaultAuthConfig = getDefaultAuthConfig;
|
248570
248474
|
|
248571
248475
|
|
248572
248476
|
/***/ }),
|
@@ -250851,6 +250755,7 @@ class DevServer {
|
|
250851
250755
|
err.message = `Command not found: ${chalk_1.default.cyan(err.path, ...err.spawnargs)}\nPlease ensure that ${(0, cmd_1.default)(err.path)} is properly installed`;
|
250852
250756
|
err.link = 'https://vercel.link/command-not-found';
|
250853
250757
|
}
|
250758
|
+
this.output.prettyError(err);
|
250854
250759
|
await this.sendError(req, res, requestId, 'EDGE_FUNCTION_INVOCATION_FAILED', 500);
|
250855
250760
|
return;
|
250856
250761
|
}
|
@@ -254014,18 +253919,20 @@ function findChanges(oldEnv, newEnv) {
|
|
254014
253919
|
function buildDeltaString(oldEnv, newEnv) {
|
254015
253920
|
const { added, changed, removed } = findChanges(oldEnv, newEnv);
|
254016
253921
|
let deltaString = '';
|
253922
|
+
deltaString += chalk_1.default.green(addDeltaSection('+', changed, true));
|
254017
253923
|
deltaString += chalk_1.default.green(addDeltaSection('+', added));
|
254018
|
-
deltaString += chalk_1.default.yellow(addDeltaSection('~', changed));
|
254019
253924
|
deltaString += chalk_1.default.red(addDeltaSection('-', removed));
|
254020
|
-
return deltaString
|
253925
|
+
return deltaString
|
253926
|
+
? chalk_1.default.gray('Changes:\n') + deltaString + '\n'
|
253927
|
+
: deltaString;
|
254021
253928
|
}
|
254022
253929
|
exports.buildDeltaString = buildDeltaString;
|
254023
|
-
function addDeltaSection(prefix, arr) {
|
253930
|
+
function addDeltaSection(prefix, arr, changed = false) {
|
254024
253931
|
if (arr.length === 0)
|
254025
253932
|
return '';
|
254026
253933
|
return (arr
|
254027
253934
|
.sort()
|
254028
|
-
.map(item => `${prefix} ${item}`)
|
253935
|
+
.map(item => `${prefix} ${item}${changed ? ' (Updated)' : ''}`)
|
254029
253936
|
.join('\n') + '\n');
|
254030
253937
|
}
|
254031
253938
|
|
@@ -261128,7 +261035,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
261128
261035
|
/***/ ((module) => {
|
261129
261036
|
|
261130
261037
|
"use strict";
|
261131
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.
|
261038
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.7\",\"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/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.2.0\",\"@vercel/go\":\"2.0.15\",\"@vercel/hydrogen\":\"0.0.12\",\"@vercel/next\":\"3.1.15\",\"@vercel/node\":\"2.5.6\",\"@vercel/python\":\"3.1.7\",\"@vercel/redwood\":\"1.0.16\",\"@vercel/remix\":\"1.0.17\",\"@vercel/ruby\":\"1.3.23\",\"@vercel/static-build\":\"1.0.16\",\"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\",\"@swc/core\":\"1.2.218\",\"@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.10\",\"@vercel/frameworks\":\"1.1.3\",\"@vercel/fs-detectors\":\"2.0.5\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@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\",\"boxen\":\"4.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.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"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\":\"10.9.1\",\"typescript\":\"4.7.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\"]}}");
|
261132
261039
|
|
261133
261040
|
/***/ }),
|
261134
261041
|
|
@@ -261144,7 +261051,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
261144
261051
|
/***/ ((module) => {
|
261145
261052
|
|
261146
261053
|
"use strict";
|
261147
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.
|
261054
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.10\",\"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.2.0\",\"@vercel/routing-utils\":\"2.0.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.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"}}");
|
261148
261055
|
|
261149
261056
|
/***/ }),
|
261150
261057
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.3.
|
3
|
+
"version": "27.3.7",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -16,7 +16,6 @@
|
|
16
16
|
"test-unit": "yarn test test/unit/",
|
17
17
|
"test-integration-cli": "rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose",
|
18
18
|
"test-integration-dev": "yarn test test/dev/",
|
19
|
-
"prepublishOnly": "yarn build",
|
20
19
|
"coverage": "codecov",
|
21
20
|
"build": "ts-node ./scripts/build.ts",
|
22
21
|
"dev": "ts-node ./src/index.ts"
|
@@ -42,16 +41,16 @@
|
|
42
41
|
"node": ">= 14"
|
43
42
|
},
|
44
43
|
"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.5.
|
50
|
-
"@vercel/python": "3.1.
|
51
|
-
"@vercel/redwood": "1.0.
|
52
|
-
"@vercel/remix": "1.0.
|
53
|
-
"@vercel/ruby": "1.3.
|
54
|
-
"@vercel/static-build": "1.0.
|
44
|
+
"@vercel/build-utils": "5.2.0",
|
45
|
+
"@vercel/go": "2.0.15",
|
46
|
+
"@vercel/hydrogen": "0.0.12",
|
47
|
+
"@vercel/next": "3.1.15",
|
48
|
+
"@vercel/node": "2.5.6",
|
49
|
+
"@vercel/python": "3.1.7",
|
50
|
+
"@vercel/redwood": "1.0.16",
|
51
|
+
"@vercel/remix": "1.0.17",
|
52
|
+
"@vercel/ruby": "1.3.23",
|
53
|
+
"@vercel/static-build": "1.0.16",
|
55
54
|
"update-notifier": "5.1.0"
|
56
55
|
},
|
57
56
|
"devDependencies": {
|
@@ -97,9 +96,9 @@
|
|
97
96
|
"@types/which": "1.3.2",
|
98
97
|
"@types/write-json-file": "2.2.1",
|
99
98
|
"@types/yauzl-promise": "2.1.0",
|
100
|
-
"@vercel/client": "12.1.
|
101
|
-
"@vercel/frameworks": "1.1.
|
102
|
-
"@vercel/fs-detectors": "2.0.
|
99
|
+
"@vercel/client": "12.1.10",
|
100
|
+
"@vercel/frameworks": "1.1.3",
|
101
|
+
"@vercel/fs-detectors": "2.0.5",
|
103
102
|
"@vercel/fun": "1.0.4",
|
104
103
|
"@vercel/ncc": "0.24.0",
|
105
104
|
"@zeit/source-map-support": "0.6.2",
|
@@ -197,5 +196,5 @@
|
|
197
196
|
"<rootDir>/test/**/*.test.ts"
|
198
197
|
]
|
199
198
|
},
|
200
|
-
"gitHead": "
|
199
|
+
"gitHead": "32afd67d29d46f67027091ab9695d8ff330355b5"
|
201
200
|
}
|