vercel 27.3.4 → 27.3.5
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 +151 -249
- package/package.json +13 -13
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,13 +202072,13 @@ 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
202084
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
@@ -202195,13 +202200,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
202195
202200
|
/***/ }),
|
202196
202201
|
|
202197
202202
|
/***/ 7049:
|
202198
|
-
/***/ ((__unused_webpack_module, exports,
|
202203
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_895531__) => {
|
202199
202204
|
|
202200
202205
|
"use strict";
|
202201
202206
|
|
202202
202207
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202203
202208
|
exports.NodejsLambda = void 0;
|
202204
|
-
const lambda_1 =
|
202209
|
+
const lambda_1 = __nested_webpack_require_895531__(6721);
|
202205
202210
|
class NodejsLambda extends lambda_1.Lambda {
|
202206
202211
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
202207
202212
|
super(opts);
|
@@ -202338,13 +202343,13 @@ exports.buildsSchema = {
|
|
202338
202343
|
/***/ }),
|
202339
202344
|
|
202340
202345
|
/***/ 2564:
|
202341
|
-
/***/ ((__unused_webpack_module, exports,
|
202346
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_899876__) => {
|
202342
202347
|
|
202343
202348
|
"use strict";
|
202344
202349
|
|
202345
202350
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202346
202351
|
exports.shouldServe = void 0;
|
202347
|
-
const path_1 =
|
202352
|
+
const path_1 = __nested_webpack_require_899876__(5622);
|
202348
202353
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
202349
202354
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
202350
202355
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -202589,7 +202594,7 @@ module.exports = __webpack_require__(78761);
|
|
202589
202594
|
/******/ var __webpack_module_cache__ = {};
|
202590
202595
|
/******/
|
202591
202596
|
/******/ // The require function
|
202592
|
-
/******/ function
|
202597
|
+
/******/ function __nested_webpack_require_1277241__(moduleId) {
|
202593
202598
|
/******/ // Check if module is in cache
|
202594
202599
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
202595
202600
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -202604,7 +202609,7 @@ module.exports = __webpack_require__(78761);
|
|
202604
202609
|
/******/ // Execute the module function
|
202605
202610
|
/******/ var threw = true;
|
202606
202611
|
/******/ try {
|
202607
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
202612
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1277241__);
|
202608
202613
|
/******/ threw = false;
|
202609
202614
|
/******/ } finally {
|
202610
202615
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -202617,11 +202622,11 @@ module.exports = __webpack_require__(78761);
|
|
202617
202622
|
/************************************************************************/
|
202618
202623
|
/******/ /* webpack/runtime/compat */
|
202619
202624
|
/******/
|
202620
|
-
/******/
|
202625
|
+
/******/ __nested_webpack_require_1277241__.ab = __dirname + "/";/************************************************************************/
|
202621
202626
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
202622
202627
|
/******/ // startup
|
202623
202628
|
/******/ // Load entry module and return exports
|
202624
|
-
/******/ return
|
202629
|
+
/******/ return __nested_webpack_require_1277241__(2855);
|
202625
202630
|
/******/ })()
|
202626
202631
|
;
|
202627
202632
|
|
@@ -239166,6 +239171,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
239166
239171
|
}, err => err));
|
239167
239172
|
}
|
239168
239173
|
catch (err) {
|
239174
|
+
output.prettyError(err);
|
239169
239175
|
const writeConfigJsonPromise = fs_extra_1.default.writeJSON((0, path_1.join)(outputDir, 'config.json'), { version: 3 }, { spaces: 2 });
|
239170
239176
|
await Promise.all([writeBuildsJsonPromise, writeConfigJsonPromise]);
|
239171
239177
|
const buildJsonBuild = buildsJsonBuilds.get(build);
|
@@ -242618,14 +242624,13 @@ async function pull(client, project, environment, opts, args, output, cwd, sourc
|
|
242618
242624
|
.join('\n') +
|
242619
242625
|
'\n';
|
242620
242626
|
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
242627
|
if (deltaString) {
|
242624
|
-
output.print(deltaString);
|
242628
|
+
output.print('\n' + deltaString);
|
242625
242629
|
}
|
242626
242630
|
else if (oldEnv && exists) {
|
242627
242631
|
output.log('No changes found.');
|
242628
242632
|
}
|
242633
|
+
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
242634
|
return 0;
|
242630
242635
|
}
|
242631
242636
|
exports.default = pull;
|
@@ -243328,6 +243333,7 @@ const get_deployment_1 = __webpack_require__(34518);
|
|
243328
243333
|
const title_1 = __importDefault(__webpack_require__(45676));
|
243329
243334
|
const is_error_1 = __webpack_require__(11026);
|
243330
243335
|
const errors_ts_1 = __webpack_require__(60156);
|
243336
|
+
const url_1 = __webpack_require__(78835);
|
243331
243337
|
const help = () => {
|
243332
243338
|
console.log(`
|
243333
243339
|
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} inspect`)} <url>
|
@@ -243368,7 +243374,7 @@ async function main(client) {
|
|
243368
243374
|
}
|
243369
243375
|
const { print, log, error } = client.output;
|
243370
243376
|
// extract the first parameter
|
243371
|
-
|
243377
|
+
let [, deploymentIdOrHost] = argv._;
|
243372
243378
|
if (argv._.length !== 2) {
|
243373
243379
|
error(`${(0, pkg_name_1.getCommandName)('inspect <url>')} expects exactly one argument`);
|
243374
243380
|
help();
|
@@ -243386,9 +243392,13 @@ async function main(client) {
|
|
243386
243392
|
}
|
243387
243393
|
throw err;
|
243388
243394
|
}
|
243389
|
-
// resolve the deployment, since we might have been given an alias
|
243390
243395
|
const depFetchStart = Date.now();
|
243396
|
+
try {
|
243397
|
+
deploymentIdOrHost = new url_1.URL(deploymentIdOrHost).hostname;
|
243398
|
+
}
|
243399
|
+
catch { }
|
243391
243400
|
client.output.spinner(`Fetching deployment "${deploymentIdOrHost}" in ${chalk_1.default.bold(contextName)}`);
|
243401
|
+
// resolve the deployment, since we might have been given an alias
|
243392
243402
|
try {
|
243393
243403
|
deployment = await (0, get_deployment_1.getDeployment)(client, deploymentIdOrHost);
|
243394
243404
|
}
|
@@ -245879,107 +245889,48 @@ const main = async () => {
|
|
245879
245889
|
}
|
245880
245890
|
catch (err) {
|
245881
245891
|
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)}`);
|
245892
|
+
return 1;
|
245882
245893
|
}
|
245883
|
-
let
|
245884
|
-
let configExists;
|
245894
|
+
let config;
|
245885
245895
|
try {
|
245886
|
-
|
245896
|
+
config = configFiles.readConfigFile();
|
245887
245897
|
}
|
245888
245898
|
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);
|
245899
|
+
if ((0, is_error_1.isErrnoException)(err) && err.code === 'ENOENT') {
|
245900
|
+
config = get_default_1.defaultGlobalConfig;
|
245901
|
+
try {
|
245902
|
+
configFiles.writeToConfigFile(config);
|
245903
|
+
}
|
245904
|
+
catch (err) {
|
245905
|
+
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)}`);
|
245906
|
+
return 1;
|
245907
|
+
}
|
245923
245908
|
}
|
245924
|
-
|
245925
|
-
|
245926
|
-
`default config to "${(0, humanize_path_1.default)(VERCEL_CONFIG_PATH)}" `}${(0, is_error_1.errorToString)(err)}`));
|
245909
|
+
else {
|
245910
|
+
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
245911
|
return 1;
|
245928
245912
|
}
|
245929
245913
|
}
|
245930
|
-
let
|
245914
|
+
let authConfig;
|
245931
245915
|
try {
|
245932
|
-
|
245916
|
+
authConfig = configFiles.readAuthConfigFile();
|
245933
245917
|
}
|
245934
245918
|
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);
|
245919
|
+
if ((0, is_error_1.isErrnoException)(err) && err.code === 'ENOENT') {
|
245920
|
+
authConfig = get_default_1.defaultAuthConfig;
|
245921
|
+
try {
|
245922
|
+
configFiles.writeToAuthConfigFile(authConfig);
|
245923
|
+
}
|
245924
|
+
catch (err) {
|
245925
|
+
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)}`);
|
245926
|
+
return 1;
|
245927
|
+
}
|
245971
245928
|
}
|
245972
|
-
|
245973
|
-
|
245974
|
-
`default config to "${(0, humanize_path_1.default)(VERCEL_AUTH_CONFIG_PATH)}" `}${(0, is_error_1.errorToString)(err)}`));
|
245929
|
+
else {
|
245930
|
+
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
245931
|
return 1;
|
245976
245932
|
}
|
245977
245933
|
}
|
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
245934
|
if (typeof argv['--api'] === 'string') {
|
245984
245935
|
apiUrl = argv['--api'];
|
245985
245936
|
}
|
@@ -245987,17 +245938,12 @@ const main = async () => {
|
|
245987
245938
|
apiUrl = config.api;
|
245988
245939
|
}
|
245989
245940
|
try {
|
245990
|
-
// eslint-disable-next-line no-new
|
245991
245941
|
new url_1.URL(apiUrl);
|
245992
245942
|
}
|
245993
245943
|
catch (err) {
|
245994
245944
|
output.error(`Please provide a valid URL instead of ${(0, highlight_1.default)(apiUrl)}.`);
|
245995
245945
|
return 1;
|
245996
245946
|
}
|
245997
|
-
if (!config) {
|
245998
|
-
output.error(`Vercel global config was not loaded.`);
|
245999
|
-
return 1;
|
246000
|
-
}
|
246001
245947
|
// Shared API `Client` instance for all sub-commands to utilize
|
246002
245948
|
client = new client_1.default({
|
246003
245949
|
apiUrl,
|
@@ -246038,6 +245984,14 @@ const main = async () => {
|
|
246038
245984
|
subcommand = argv._[3] || 'deploy';
|
246039
245985
|
client.argv.push('-h');
|
246040
245986
|
}
|
245987
|
+
const subcommandsWithoutToken = [
|
245988
|
+
'login',
|
245989
|
+
'logout',
|
245990
|
+
'help',
|
245991
|
+
'init',
|
245992
|
+
'update',
|
245993
|
+
'build',
|
245994
|
+
];
|
246041
245995
|
// Prompt for login if there is no current token
|
246042
245996
|
if ((!authConfig || !authConfig.token) &&
|
246043
245997
|
!client.argv.includes('-h') &&
|
@@ -247376,9 +247330,7 @@ async function writeStaticFile(outputDir, file, path, overrides, cleanUrls = fal
|
|
247376
247330
|
}
|
247377
247331
|
const dest = (0, path_1.join)(outputDir, 'static', fsPath);
|
247378
247332
|
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 }));
|
247333
|
+
await (0, build_utils_1.downloadFile)(file, dest);
|
247382
247334
|
}
|
247383
247335
|
/**
|
247384
247336
|
* Serializes the `EdgeFunction` instance to the file system.
|
@@ -248504,69 +248456,16 @@ exports.readLocalConfig = readLocalConfig;
|
|
248504
248456
|
"use strict";
|
248505
248457
|
|
248506
248458
|
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 };
|
248459
|
+
exports.defaultAuthConfig = exports.defaultGlobalConfig = void 0;
|
248460
|
+
exports.defaultGlobalConfig = {
|
248461
|
+
'// Note': 'This is your Vercel config file. For more information see the global configuration documentation.',
|
248462
|
+
'// Docs': 'https://vercel.com/docs/project-configuration#global-configuration/config-json',
|
248463
|
+
collectMetrics: true,
|
248549
248464
|
};
|
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 };
|
248465
|
+
exports.defaultAuthConfig = {
|
248466
|
+
'// Note': 'This is your Vercel credentials file. DO NOT SHARE!',
|
248467
|
+
'// Docs': 'https://vercel.com/docs/project-configuration#global-configuration/auth-json',
|
248568
248468
|
};
|
248569
|
-
exports.getDefaultAuthConfig = getDefaultAuthConfig;
|
248570
248469
|
|
248571
248470
|
|
248572
248471
|
/***/ }),
|
@@ -250851,6 +250750,7 @@ class DevServer {
|
|
250851
250750
|
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
250751
|
err.link = 'https://vercel.link/command-not-found';
|
250853
250752
|
}
|
250753
|
+
this.output.prettyError(err);
|
250854
250754
|
await this.sendError(req, res, requestId, 'EDGE_FUNCTION_INVOCATION_FAILED', 500);
|
250855
250755
|
return;
|
250856
250756
|
}
|
@@ -254014,18 +253914,20 @@ function findChanges(oldEnv, newEnv) {
|
|
254014
253914
|
function buildDeltaString(oldEnv, newEnv) {
|
254015
253915
|
const { added, changed, removed } = findChanges(oldEnv, newEnv);
|
254016
253916
|
let deltaString = '';
|
253917
|
+
deltaString += chalk_1.default.green(addDeltaSection('+', changed, true));
|
254017
253918
|
deltaString += chalk_1.default.green(addDeltaSection('+', added));
|
254018
|
-
deltaString += chalk_1.default.yellow(addDeltaSection('~', changed));
|
254019
253919
|
deltaString += chalk_1.default.red(addDeltaSection('-', removed));
|
254020
|
-
return deltaString
|
253920
|
+
return deltaString
|
253921
|
+
? chalk_1.default.gray('Changes:\n') + deltaString + '\n'
|
253922
|
+
: deltaString;
|
254021
253923
|
}
|
254022
253924
|
exports.buildDeltaString = buildDeltaString;
|
254023
|
-
function addDeltaSection(prefix, arr) {
|
253925
|
+
function addDeltaSection(prefix, arr, changed = false) {
|
254024
253926
|
if (arr.length === 0)
|
254025
253927
|
return '';
|
254026
253928
|
return (arr
|
254027
253929
|
.sort()
|
254028
|
-
.map(item => `${prefix} ${item}`)
|
253930
|
+
.map(item => `${prefix} ${item}${changed ? ' (Updated)' : ''}`)
|
254029
253931
|
.join('\n') + '\n');
|
254030
253932
|
}
|
254031
253933
|
|
@@ -261128,7 +261030,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
261128
261030
|
/***/ ((module) => {
|
261129
261031
|
|
261130
261032
|
"use strict";
|
261131
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.
|
261033
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.5\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --runInBand --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn test test/dev/\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"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.1.0\",\"@vercel/go\":\"2.0.13\",\"@vercel/hydrogen\":\"0.0.10\",\"@vercel/next\":\"3.1.13\",\"@vercel/node\":\"2.5.4\",\"@vercel/python\":\"3.1.5\",\"@vercel/redwood\":\"1.0.14\",\"@vercel/remix\":\"1.0.15\",\"@vercel/ruby\":\"1.3.21\",\"@vercel/static-build\":\"1.0.14\",\"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.8\",\"@vercel/frameworks\":\"1.1.1\",\"@vercel/fs-detectors\":\"2.0.3\",\"@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\"]},\"gitHead\":\"7db6436797d0b4131113f0b8dccc3b66bc9b1981\"}");
|
261132
261034
|
|
261133
261035
|
/***/ }),
|
261134
261036
|
|
@@ -261144,7 +261046,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
261144
261046
|
/***/ ((module) => {
|
261145
261047
|
|
261146
261048
|
"use strict";
|
261147
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.
|
261049
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.8\",\"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.1.0\",\"@vercel/routing-utils\":\"2.0.0\",\"@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\"},\"gitHead\":\"7db6436797d0b4131113f0b8dccc3b66bc9b1981\"}");
|
261148
261050
|
|
261149
261051
|
/***/ }),
|
261150
261052
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.3.
|
3
|
+
"version": "27.3.5",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -42,16 +42,16 @@
|
|
42
42
|
"node": ">= 14"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@vercel/build-utils": "5.0
|
46
|
-
"@vercel/go": "2.0.
|
47
|
-
"@vercel/hydrogen": "0.0.
|
48
|
-
"@vercel/next": "3.1.
|
49
|
-
"@vercel/node": "2.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.
|
45
|
+
"@vercel/build-utils": "5.1.0",
|
46
|
+
"@vercel/go": "2.0.13",
|
47
|
+
"@vercel/hydrogen": "0.0.10",
|
48
|
+
"@vercel/next": "3.1.13",
|
49
|
+
"@vercel/node": "2.5.4",
|
50
|
+
"@vercel/python": "3.1.5",
|
51
|
+
"@vercel/redwood": "1.0.14",
|
52
|
+
"@vercel/remix": "1.0.15",
|
53
|
+
"@vercel/ruby": "1.3.21",
|
54
|
+
"@vercel/static-build": "1.0.14",
|
55
55
|
"update-notifier": "5.1.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"@types/which": "1.3.2",
|
98
98
|
"@types/write-json-file": "2.2.1",
|
99
99
|
"@types/yauzl-promise": "2.1.0",
|
100
|
-
"@vercel/client": "12.1.
|
100
|
+
"@vercel/client": "12.1.8",
|
101
101
|
"@vercel/frameworks": "1.1.1",
|
102
102
|
"@vercel/fs-detectors": "2.0.3",
|
103
103
|
"@vercel/fun": "1.0.4",
|
@@ -197,5 +197,5 @@
|
|
197
197
|
"<rootDir>/test/**/*.test.ts"
|
198
198
|
]
|
199
199
|
},
|
200
|
-
"gitHead": "
|
200
|
+
"gitHead": "7db6436797d0b4131113f0b8dccc3b66bc9b1981"
|
201
201
|
}
|