vercel 27.3.5 → 27.3.8
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 +96 -56
- package/package.json +15 -16
package/dist/index.js
CHANGED
@@ -201197,7 +201197,7 @@ const allOptions = [
|
|
201197
201197
|
major: 12,
|
201198
201198
|
range: '12.x',
|
201199
201199
|
runtime: 'nodejs12.x',
|
201200
|
-
discontinueDate: new Date('2022-
|
201200
|
+
discontinueDate: new Date('2022-10-01'),
|
201201
201201
|
},
|
201202
201202
|
{
|
201203
201203
|
major: 10,
|
@@ -201960,10 +201960,46 @@ const getPlatformEnv = (name) => {
|
|
201960
201960
|
exports.getPlatformEnv = getPlatformEnv;
|
201961
201961
|
|
201962
201962
|
|
201963
|
+
/***/ }),
|
201964
|
+
|
201965
|
+
/***/ 6838:
|
201966
|
+
/***/ ((__unused_webpack_module, exports) => {
|
201967
|
+
|
201968
|
+
"use strict";
|
201969
|
+
|
201970
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201971
|
+
exports.getPrefixedEnvVars = void 0;
|
201972
|
+
/**
|
201973
|
+
* Get the framework-specific prefixed System Environment Variables.
|
201974
|
+
* See https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables
|
201975
|
+
* @param envPrefix - Prefix, typically from `@vercel/frameworks`
|
201976
|
+
* @param envs - Environment Variables, typically from `process.env`
|
201977
|
+
*/
|
201978
|
+
function getPrefixedEnvVars({ envPrefix, envs, }) {
|
201979
|
+
const vercelSystemEnvPrefix = 'VERCEL_';
|
201980
|
+
const newEnvs = {};
|
201981
|
+
if (envPrefix && envs.VERCEL_URL) {
|
201982
|
+
Object.keys(envs)
|
201983
|
+
.filter(key => key.startsWith(vercelSystemEnvPrefix))
|
201984
|
+
.forEach(key => {
|
201985
|
+
const newKey = `${envPrefix}${key}`;
|
201986
|
+
if (!(newKey in envs)) {
|
201987
|
+
newEnvs[newKey] = envs[key];
|
201988
|
+
}
|
201989
|
+
});
|
201990
|
+
// Tell turbo to exclude all Vercel System Env Vars
|
201991
|
+
// See https://github.com/vercel/turborepo/pull/1622
|
201992
|
+
newEnvs.TURBO_CI_VENDOR_ENV_KEY = `${envPrefix}${vercelSystemEnvPrefix}`;
|
201993
|
+
}
|
201994
|
+
return newEnvs;
|
201995
|
+
}
|
201996
|
+
exports.getPrefixedEnvVars = getPrefixedEnvVars;
|
201997
|
+
|
201998
|
+
|
201963
201999
|
/***/ }),
|
201964
202000
|
|
201965
202001
|
/***/ 2855:
|
201966
|
-
/***/ (function(__unused_webpack_module, exports,
|
202002
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_882902__) {
|
201967
202003
|
|
201968
202004
|
"use strict";
|
201969
202005
|
|
@@ -201993,32 +202029,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201993
202029
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201994
202030
|
};
|
201995
202031
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
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(
|
202032
|
+
exports.normalizePath = exports.readConfigFile = exports.EdgeFunction = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPrefixedEnvVars = 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;
|
202033
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_882902__(2397));
|
201998
202034
|
exports.FileBlob = file_blob_1.default;
|
201999
|
-
const file_fs_ref_1 = __importDefault(
|
202035
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_882902__(9331));
|
202000
202036
|
exports.FileFsRef = file_fs_ref_1.default;
|
202001
|
-
const file_ref_1 = __importDefault(
|
202037
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_882902__(5187));
|
202002
202038
|
exports.FileRef = file_ref_1.default;
|
202003
|
-
const lambda_1 =
|
202039
|
+
const lambda_1 = __nested_webpack_require_882902__(6721);
|
202004
202040
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
202005
202041
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
202006
202042
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
202007
|
-
const nodejs_lambda_1 =
|
202043
|
+
const nodejs_lambda_1 = __nested_webpack_require_882902__(7049);
|
202008
202044
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
202009
|
-
const prerender_1 =
|
202045
|
+
const prerender_1 = __nested_webpack_require_882902__(2850);
|
202010
202046
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
202011
|
-
const download_1 = __importStar(
|
202047
|
+
const download_1 = __importStar(__nested_webpack_require_882902__(1611));
|
202012
202048
|
exports.download = download_1.default;
|
202013
202049
|
Object.defineProperty(exports, "downloadFile", ({ enumerable: true, get: function () { return download_1.downloadFile; } }));
|
202014
202050
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
202015
|
-
const get_writable_directory_1 = __importDefault(
|
202051
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_882902__(3838));
|
202016
202052
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
202017
|
-
const glob_1 = __importDefault(
|
202053
|
+
const glob_1 = __importDefault(__nested_webpack_require_882902__(4240));
|
202018
202054
|
exports.glob = glob_1.default;
|
202019
|
-
const rename_1 = __importDefault(
|
202055
|
+
const rename_1 = __importDefault(__nested_webpack_require_882902__(6718));
|
202020
202056
|
exports.rename = rename_1.default;
|
202021
|
-
const run_user_scripts_1 =
|
202057
|
+
const run_user_scripts_1 = __nested_webpack_require_882902__(1442);
|
202022
202058
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
202023
202059
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
202024
202060
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -202037,33 +202073,35 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
202037
202073
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
202038
202074
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
202039
202075
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
202040
|
-
const node_version_1 =
|
202076
|
+
const node_version_1 = __nested_webpack_require_882902__(7903);
|
202041
202077
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
202042
202078
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
202043
|
-
const stream_to_buffer_1 = __importDefault(
|
202079
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_882902__(2560));
|
202044
202080
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
202045
|
-
const debug_1 = __importDefault(
|
202081
|
+
const debug_1 = __importDefault(__nested_webpack_require_882902__(1868));
|
202046
202082
|
exports.debug = debug_1.default;
|
202047
|
-
const get_ignore_filter_1 = __importDefault(
|
202083
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_882902__(1148));
|
202048
202084
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
202049
|
-
const get_platform_env_1 =
|
202085
|
+
const get_platform_env_1 = __nested_webpack_require_882902__(4678);
|
202050
202086
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
202051
|
-
|
202087
|
+
const get_prefixed_env_vars_1 = __nested_webpack_require_882902__(6838);
|
202088
|
+
Object.defineProperty(exports, "getPrefixedEnvVars", ({ enumerable: true, get: function () { return get_prefixed_env_vars_1.getPrefixedEnvVars; } }));
|
202089
|
+
var edge_function_1 = __nested_webpack_require_882902__(8038);
|
202052
202090
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
202053
|
-
var read_config_file_1 =
|
202091
|
+
var read_config_file_1 = __nested_webpack_require_882902__(7792);
|
202054
202092
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
202055
|
-
var normalize_path_1 =
|
202093
|
+
var normalize_path_1 = __nested_webpack_require_882902__(6261);
|
202056
202094
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
202057
|
-
__exportStar(
|
202058
|
-
__exportStar(
|
202059
|
-
__exportStar(
|
202060
|
-
__exportStar(
|
202095
|
+
__exportStar(__nested_webpack_require_882902__(2564), exports);
|
202096
|
+
__exportStar(__nested_webpack_require_882902__(2416), exports);
|
202097
|
+
__exportStar(__nested_webpack_require_882902__(5748), exports);
|
202098
|
+
__exportStar(__nested_webpack_require_882902__(3983), exports);
|
202061
202099
|
|
202062
202100
|
|
202063
202101
|
/***/ }),
|
202064
202102
|
|
202065
202103
|
/***/ 6721:
|
202066
|
-
/***/ (function(__unused_webpack_module, exports,
|
202104
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_891535__) {
|
202067
202105
|
|
202068
202106
|
"use strict";
|
202069
202107
|
|
@@ -202072,16 +202110,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
202072
202110
|
};
|
202073
202111
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202074
202112
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
202075
|
-
const assert_1 = __importDefault(
|
202076
|
-
const async_sema_1 = __importDefault(
|
202077
|
-
const yazl_1 =
|
202078
|
-
const minimatch_1 = __importDefault(
|
202079
|
-
const fs_extra_1 =
|
202080
|
-
const download_1 =
|
202081
|
-
const stream_to_buffer_1 = __importDefault(
|
202113
|
+
const assert_1 = __importDefault(__nested_webpack_require_891535__(2357));
|
202114
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_891535__(5758));
|
202115
|
+
const yazl_1 = __nested_webpack_require_891535__(1223);
|
202116
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_891535__(9566));
|
202117
|
+
const fs_extra_1 = __nested_webpack_require_891535__(5392);
|
202118
|
+
const download_1 = __nested_webpack_require_891535__(1611);
|
202119
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_891535__(2560));
|
202082
202120
|
class Lambda {
|
202083
202121
|
constructor(opts) {
|
202084
|
-
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
202122
|
+
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, } = opts;
|
202085
202123
|
if ('files' in opts) {
|
202086
202124
|
assert_1.default(typeof opts.files === 'object', '"files" must be an object');
|
202087
202125
|
}
|
@@ -202104,6 +202142,9 @@ class Lambda {
|
|
202104
202142
|
if (supportsMultiPayloads !== undefined) {
|
202105
202143
|
assert_1.default(typeof supportsMultiPayloads === 'boolean', '"supportsMultiPayloads" is not a boolean');
|
202106
202144
|
}
|
202145
|
+
if (supportsWrapper !== undefined) {
|
202146
|
+
assert_1.default(typeof supportsWrapper === 'boolean', '"supportsWrapper" is not a boolean');
|
202147
|
+
}
|
202107
202148
|
if (regions !== undefined) {
|
202108
202149
|
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
202109
202150
|
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
@@ -202119,6 +202160,7 @@ class Lambda {
|
|
202119
202160
|
this.regions = regions;
|
202120
202161
|
this.zipBuffer = 'zipBuffer' in opts ? opts.zipBuffer : undefined;
|
202121
202162
|
this.supportsMultiPayloads = supportsMultiPayloads;
|
202163
|
+
this.supportsWrapper = supportsWrapper;
|
202122
202164
|
}
|
202123
202165
|
async createZip() {
|
202124
202166
|
let { zipBuffer } = this;
|
@@ -202200,13 +202242,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
202200
202242
|
/***/ }),
|
202201
202243
|
|
202202
202244
|
/***/ 7049:
|
202203
|
-
/***/ ((__unused_webpack_module, exports,
|
202245
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_897218__) => {
|
202204
202246
|
|
202205
202247
|
"use strict";
|
202206
202248
|
|
202207
202249
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202208
202250
|
exports.NodejsLambda = void 0;
|
202209
|
-
const lambda_1 =
|
202251
|
+
const lambda_1 = __nested_webpack_require_897218__(6721);
|
202210
202252
|
class NodejsLambda extends lambda_1.Lambda {
|
202211
202253
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
202212
202254
|
super(opts);
|
@@ -202343,13 +202385,13 @@ exports.buildsSchema = {
|
|
202343
202385
|
/***/ }),
|
202344
202386
|
|
202345
202387
|
/***/ 2564:
|
202346
|
-
/***/ ((__unused_webpack_module, exports,
|
202388
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_901563__) => {
|
202347
202389
|
|
202348
202390
|
"use strict";
|
202349
202391
|
|
202350
202392
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202351
202393
|
exports.shouldServe = void 0;
|
202352
|
-
const path_1 =
|
202394
|
+
const path_1 = __nested_webpack_require_901563__(5622);
|
202353
202395
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
202354
202396
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
202355
202397
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -202594,7 +202636,7 @@ module.exports = __webpack_require__(78761);
|
|
202594
202636
|
/******/ var __webpack_module_cache__ = {};
|
202595
202637
|
/******/
|
202596
202638
|
/******/ // The require function
|
202597
|
-
/******/ function
|
202639
|
+
/******/ function __nested_webpack_require_1278928__(moduleId) {
|
202598
202640
|
/******/ // Check if module is in cache
|
202599
202641
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
202600
202642
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -202609,7 +202651,7 @@ module.exports = __webpack_require__(78761);
|
|
202609
202651
|
/******/ // Execute the module function
|
202610
202652
|
/******/ var threw = true;
|
202611
202653
|
/******/ try {
|
202612
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
202654
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1278928__);
|
202613
202655
|
/******/ threw = false;
|
202614
202656
|
/******/ } finally {
|
202615
202657
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -202622,11 +202664,11 @@ module.exports = __webpack_require__(78761);
|
|
202622
202664
|
/************************************************************************/
|
202623
202665
|
/******/ /* webpack/runtime/compat */
|
202624
202666
|
/******/
|
202625
|
-
/******/
|
202667
|
+
/******/ __nested_webpack_require_1278928__.ab = __dirname + "/";/************************************************************************/
|
202626
202668
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
202627
202669
|
/******/ // startup
|
202628
202670
|
/******/ // Load entry module and return exports
|
202629
|
-
/******/ return
|
202671
|
+
/******/ return __nested_webpack_require_1278928__(2855);
|
202630
202672
|
/******/ })()
|
202631
202673
|
;
|
202632
202674
|
|
@@ -215150,7 +215192,8 @@ async function run({ output, contextName, currentTeam, client }) {
|
|
215150
215192
|
|
215151
215193
|
if (theSecret) {
|
215152
215194
|
const yes =
|
215153
|
-
argv.yes ||
|
215195
|
+
argv.yes ||
|
215196
|
+
(await readConfirmation(client, output, theSecret, contextName));
|
215154
215197
|
if (!yes) {
|
215155
215198
|
output.print(`Aborted. Secret not deleted.\n`);
|
215156
215199
|
return 0;
|
@@ -215277,7 +215320,7 @@ async function run({ output, contextName, currentTeam, client }) {
|
|
215277
215320
|
return 2;
|
215278
215321
|
}
|
215279
215322
|
|
215280
|
-
async function readConfirmation(output, secret, contextName) {
|
215323
|
+
async function readConfirmation(client, output, secret, contextName) {
|
215281
215324
|
const time = source_default().gray(`${(0,ms_default())(new Date() - new Date(secret.created))} ago`);
|
215282
215325
|
const tbl = (0,text_table_default())([[source_default().bold(secret.name), time]], {
|
215283
215326
|
align: ['r', 'l'],
|
@@ -215291,7 +215334,7 @@ async function readConfirmation(output, secret, contextName) {
|
|
215291
215334
|
);
|
215292
215335
|
output.print(` ${tbl}\n`);
|
215293
215336
|
|
215294
|
-
return (0,input_confirm.default)(`${source_default().bold.red('Are you sure?')}`, false);
|
215337
|
+
return (0,input_confirm.default)(client, `${source_default().bold.red('Are you sure?')}`, false);
|
215295
215338
|
}
|
215296
215339
|
|
215297
215340
|
|
@@ -238928,7 +238971,7 @@ async function main(client) {
|
|
238928
238971
|
let confirmed = yes;
|
238929
238972
|
if (!confirmed) {
|
238930
238973
|
if (!isTTY) {
|
238931
|
-
client.output.print(`No Project Settings found locally. Run ${cli.getCommandName('pull --yes')} to
|
238974
|
+
client.output.print(`No Project Settings found locally. Run ${cli.getCommandName('pull --yes')} to retrieve them.`);
|
238932
238975
|
return 1;
|
238933
238976
|
}
|
238934
238977
|
confirmed = await (0, confirm_1.default)(client, `No Project Settings found locally. Run ${cli.getCommandName('pull')} for retrieving them?`, true);
|
@@ -240588,7 +240631,6 @@ async function dev(client, opts, args) {
|
|
240588
240631
|
return link.exitCode;
|
240589
240632
|
}
|
240590
240633
|
let devCommand;
|
240591
|
-
let frameworkSlug;
|
240592
240634
|
let projectSettings;
|
240593
240635
|
let projectEnvs = [];
|
240594
240636
|
let systemEnvValues = [];
|
@@ -240602,9 +240644,6 @@ async function dev(client, opts, args) {
|
|
240602
240644
|
else if (project.framework) {
|
240603
240645
|
const framework = frameworks.find(f => f.slug === project.framework);
|
240604
240646
|
if (framework) {
|
240605
|
-
if (framework.slug) {
|
240606
|
-
frameworkSlug = framework.slug;
|
240607
|
-
}
|
240608
240647
|
const defaults = framework.settings.devCommand.value;
|
240609
240648
|
if (defaults) {
|
240610
240649
|
devCommand = defaults;
|
@@ -240639,7 +240678,6 @@ async function dev(client, opts, args) {
|
|
240639
240678
|
const devServer = new server_1.default(cwd, {
|
240640
240679
|
output,
|
240641
240680
|
devCommand,
|
240642
|
-
frameworkSlug,
|
240643
240681
|
projectSettings,
|
240644
240682
|
projectEnvs,
|
240645
240683
|
systemEnvValues,
|
@@ -251083,7 +251121,6 @@ class DevServer {
|
|
251083
251121
|
this.address = '';
|
251084
251122
|
this.devCommand = options.devCommand;
|
251085
251123
|
this.projectSettings = options.projectSettings;
|
251086
|
-
this.frameworkSlug = options.frameworkSlug;
|
251087
251124
|
this.caseSensitive = false;
|
251088
251125
|
this.apiDir = null;
|
251089
251126
|
this.apiExtensions = new Set();
|
@@ -252021,7 +252058,10 @@ class DevServer {
|
|
252021
252058
|
// Because of child process 'pipe' below, isTTY will be false.
|
252022
252059
|
// Most frameworks use `chalk`/`supports-color` so we enable it anyway.
|
252023
252060
|
FORCE_COLOR: process.stdout.isTTY ? '1' : '0',
|
252024
|
-
|
252061
|
+
// Prevent framework dev servers from automatically opening a web
|
252062
|
+
// browser window, since it will not be the port that `vc dev`
|
252063
|
+
// is listening on and thus will be missing Vercel features.
|
252064
|
+
BROWSER: 'none',
|
252025
252065
|
...process.env,
|
252026
252066
|
...this.envConfigs.allEnv,
|
252027
252067
|
PORT: `${port}`,
|
@@ -261030,7 +261070,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
261030
261070
|
/***/ ((module) => {
|
261031
261071
|
|
261032
261072
|
"use strict";
|
261033
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.
|
261073
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.8\",\"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.3.0\",\"@vercel/go\":\"2.0.16\",\"@vercel/hydrogen\":\"0.0.13\",\"@vercel/next\":\"3.1.16\",\"@vercel/node\":\"2.5.7\",\"@vercel/python\":\"3.1.8\",\"@vercel/redwood\":\"1.0.17\",\"@vercel/remix\":\"1.0.18\",\"@vercel/ruby\":\"1.3.24\",\"@vercel/static-build\":\"1.0.17\",\"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.11\",\"@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\"]}}");
|
261034
261074
|
|
261035
261075
|
/***/ }),
|
261036
261076
|
|
@@ -261046,7 +261086,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
261046
261086
|
/***/ ((module) => {
|
261047
261087
|
|
261048
261088
|
"use strict";
|
261049
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.
|
261089
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.11\",\"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.3.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\"}}");
|
261050
261090
|
|
261051
261091
|
/***/ }),
|
261052
261092
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.3.
|
3
|
+
"version": "27.3.8",
|
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.
|
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.3.0",
|
45
|
+
"@vercel/go": "2.0.16",
|
46
|
+
"@vercel/hydrogen": "0.0.13",
|
47
|
+
"@vercel/next": "3.1.16",
|
48
|
+
"@vercel/node": "2.5.7",
|
49
|
+
"@vercel/python": "3.1.8",
|
50
|
+
"@vercel/redwood": "1.0.17",
|
51
|
+
"@vercel/remix": "1.0.18",
|
52
|
+
"@vercel/ruby": "1.3.24",
|
53
|
+
"@vercel/static-build": "1.0.17",
|
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.11",
|
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": "47e3381c6df661168e8be335cc58df03f3cf2414"
|
201
200
|
}
|