vercel 28.15.0 → 28.15.2
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 +94 -17
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -189252,13 +189252,25 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
189252
189252
|
if (!hasBuildPipeline) {
|
189253
189253
|
throw new MissingBuildPipeline();
|
189254
189254
|
}
|
189255
|
+
if (projectPath === '/') {
|
189256
|
+
return {
|
189257
|
+
monorepoManager: 'turbo',
|
189258
|
+
buildCommand: 'npx turbo run build',
|
189259
|
+
installCommand: packageManager ? `${packageManager} install` : null,
|
189260
|
+
commandForIgnoringBuildStep: 'npx turbo-ignore',
|
189261
|
+
};
|
189262
|
+
}
|
189255
189263
|
return {
|
189256
189264
|
monorepoManager: 'turbo',
|
189257
|
-
buildCommand:
|
189265
|
+
buildCommand: projectPath
|
189266
|
+
? `cd ${relativeToRoot} && npx turbo run build --filter={${projectPath}}...`
|
189267
|
+
: null,
|
189258
189268
|
installCommand: packageManager === 'npm'
|
189259
189269
|
? `${packageManager} install --prefix=${relativeToRoot}`
|
189260
|
-
:
|
189261
|
-
|
189270
|
+
: packageManager
|
189271
|
+
? `${packageManager} install`
|
189272
|
+
: null,
|
189273
|
+
commandForIgnoringBuildStep: 'npx turbo-ignore',
|
189262
189274
|
};
|
189263
189275
|
}
|
189264
189276
|
else if (monorepoManager === 'nx') {
|
@@ -189293,12 +189305,23 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
189293
189305
|
throw new MissingBuildTarget();
|
189294
189306
|
}
|
189295
189307
|
}
|
189308
|
+
if (projectPath === '/') {
|
189309
|
+
return {
|
189310
|
+
monorepoManager: 'nx',
|
189311
|
+
buildCommand: 'npx nx build',
|
189312
|
+
installCommand: packageManager ? `${packageManager} install` : null,
|
189313
|
+
};
|
189314
|
+
}
|
189296
189315
|
return {
|
189297
189316
|
monorepoManager: 'nx',
|
189298
|
-
buildCommand:
|
189317
|
+
buildCommand: projectName
|
189318
|
+
? `cd ${relativeToRoot} && npx nx build ${projectName}`
|
189319
|
+
: null,
|
189299
189320
|
installCommand: packageManager === 'npm'
|
189300
189321
|
? `${packageManager} install --prefix=${relativeToRoot}`
|
189301
|
-
:
|
189322
|
+
: packageManager
|
189323
|
+
? `${packageManager} install`
|
189324
|
+
: null,
|
189302
189325
|
};
|
189303
189326
|
}
|
189304
189327
|
// TODO (@Ethan-Arrowood) - Revisit rush support when we can test it better
|
@@ -190984,6 +191007,7 @@ const help = () => {
|
|
190984
191007
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
190985
191008
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
190986
191009
|
-d, --debug Debug mode [off]
|
191010
|
+
--no-color No color mode [off]
|
190987
191011
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
190988
191012
|
-S, --scope Set a custom scope
|
190989
191013
|
-N, --next Show next page of results
|
@@ -191456,6 +191480,7 @@ const help = () => {
|
|
191456
191480
|
|
191457
191481
|
-h, --help Output usage information
|
191458
191482
|
-d, --debug Debug mode [off]
|
191483
|
+
--no-color No color mode [off]
|
191459
191484
|
-b, --bad Known bad URL
|
191460
191485
|
-g, --good Known good URL
|
191461
191486
|
-o, --open Automatically open each URL in the browser
|
@@ -191824,6 +191849,7 @@ const help = () => {
|
|
191824
191849
|
--output [path] Directory where built assets should be written to
|
191825
191850
|
--prod Build a production deployment
|
191826
191851
|
-d, --debug Debug mode [off]
|
191852
|
+
--no-color No color mode [off]
|
191827
191853
|
-y, --yes Skip the confirmation prompt about pulling environment variables and project settings when not found locally
|
191828
191854
|
|
191829
191855
|
${chalk_1.default.dim('Examples:')}
|
@@ -192429,6 +192455,7 @@ const help = () => {
|
|
192429
192455
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
192430
192456
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
192431
192457
|
-d, --debug Debug mode [off]
|
192458
|
+
--no-color No color mode [off]
|
192432
192459
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
192433
192460
|
-S, --scope Set a custom scope
|
192434
192461
|
--challenge-only Only show challenges needed to issue a cert
|
@@ -192926,6 +192953,7 @@ const help = () => `
|
|
192926
192953
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
192927
192954
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
192928
192955
|
-d, --debug Debug mode [off]
|
192956
|
+
--no-color No color mode [off]
|
192929
192957
|
-f, --force Force a new deployment even if nothing has changed
|
192930
192958
|
--with-cache Retain build cache when using "--force"
|
192931
192959
|
-t ${chalk_1.default.underline('TOKEN')}, --token=${chalk_1.default.underline('TOKEN')} Login token
|
@@ -193689,6 +193717,7 @@ const help = () => {
|
|
193689
193717
|
|
193690
193718
|
-h, --help Output usage information
|
193691
193719
|
-d, --debug Debug mode [off]
|
193720
|
+
--no-color No color mode [off]
|
193692
193721
|
-l, --listen [uri] Specify a URI endpoint on which to listen [0.0.0.0:3000]
|
193693
193722
|
-t, --token [token] Specify an Authorization Token
|
193694
193723
|
-y, --yes Skip questions when setting up new project using default scope and settings
|
@@ -193941,6 +193970,7 @@ const help = () => {
|
|
193941
193970
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
193942
193971
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
193943
193972
|
-d, --debug Debug mode [off]
|
193973
|
+
--no-color No color mode [off]
|
193944
193974
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
193945
193975
|
-S, --scope Set a custom scope
|
193946
193976
|
-N, --next Show next page of results
|
@@ -194484,6 +194514,7 @@ const help = () => {
|
|
194484
194514
|
|
194485
194515
|
-h, --help Output usage information
|
194486
194516
|
-d, --debug Debug mode [off]
|
194517
|
+
--no-color No color mode [off]
|
194487
194518
|
-f, --force Force a domain on a project and remove it from an existing one
|
194488
194519
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
194489
194520
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
@@ -195369,6 +195400,7 @@ const help = () => {
|
|
195369
195400
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
195370
195401
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
195371
195402
|
-d, --debug Debug mode [off]
|
195403
|
+
--no-color No color mode [off]
|
195372
195404
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
195373
195405
|
-y, --yes Skip the confirmation prompt when overwriting env file on pull or removing an env variable
|
195374
195406
|
|
@@ -196259,6 +196291,7 @@ const help = () => {
|
|
196259
196291
|
|
196260
196292
|
-h, --help Output usage information
|
196261
196293
|
-d, --debug Debug mode [off]
|
196294
|
+
--no-color No color mode [off]
|
196262
196295
|
-f, --force Overwrite destination directory if exists [off]
|
196263
196296
|
|
196264
196297
|
${chalk_1.default.dim('Examples:')}
|
@@ -196512,6 +196545,7 @@ const help = () => {
|
|
196512
196545
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
196513
196546
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
196514
196547
|
-d, --debug Debug mode [off]
|
196548
|
+
--no-color No color mode [off]
|
196515
196549
|
-S, --scope Set a custom scope
|
196516
196550
|
|
196517
196551
|
${chalk_1.default.dim('Examples:')}
|
@@ -196656,6 +196690,7 @@ const help = () => {
|
|
196656
196690
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
196657
196691
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
196658
196692
|
-d, --debug Debug mode [off]
|
196693
|
+
--no-color No color mode [off]
|
196659
196694
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
196660
196695
|
-p ${chalk_1.default.bold.underline('NAME')}, --project=${chalk_1.default.bold.underline('NAME')} Project name
|
196661
196696
|
-y, --yes Skip questions when setting up new project using default scope and settings
|
@@ -196751,6 +196786,7 @@ const help = () => {
|
|
196751
196786
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
196752
196787
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
196753
196788
|
-d, --debug Debug mode [off]
|
196789
|
+
--no-color No color mode [off]
|
196754
196790
|
-y, --yes Skip questions when setting up new project using default scope and settings
|
196755
196791
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
196756
196792
|
-S, --scope Set a custom scope
|
@@ -197069,6 +197105,7 @@ const help = () => {
|
|
197069
197105
|
${chalk_1.default.dim('Options:')}
|
197070
197106
|
|
197071
197107
|
-h, --help Output usage information
|
197108
|
+
--no-color No color mode [off]
|
197072
197109
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
197073
197110
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
197074
197111
|
|
@@ -197292,6 +197329,7 @@ const help = () => {
|
|
197292
197329
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
197293
197330
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
197294
197331
|
-d, --debug Debug mode [off]
|
197332
|
+
--no-color No color mode [off]
|
197295
197333
|
-f, --follow Wait for additional data [off]
|
197296
197334
|
-n ${chalk_1.default.bold.underline('NUMBER')} Number of logs [100]
|
197297
197335
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
@@ -197824,6 +197862,7 @@ const help = () => {
|
|
197824
197862
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
197825
197863
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
197826
197864
|
-d, --debug Debug mode [off]
|
197865
|
+
--no-color No color mode [off]
|
197827
197866
|
--environment [environment] Deployment environment [development]
|
197828
197867
|
-y, --yes Skip questions when setting up new project using default scope and settings
|
197829
197868
|
|
@@ -197939,6 +197978,7 @@ const help = () => {
|
|
197939
197978
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
197940
197979
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
197941
197980
|
-d, --debug Debug mode [off]
|
197981
|
+
--no-color No color mode [off]
|
197942
197982
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
197943
197983
|
-y, --yes Skip confirmation
|
197944
197984
|
-s, --safe Skip deployments with an active alias
|
@@ -198170,6 +198210,7 @@ const help = () => {
|
|
198170
198210
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
198171
198211
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
198172
198212
|
-d, --debug Debug mode [off]
|
198213
|
+
--no-color No color mode [off]
|
198173
198214
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
198174
198215
|
--timeout=${chalk_1.default.bold.underline('TIME')} Time to wait for rollback completion [3m]
|
198175
198216
|
-y, --yes Skip questions when setting up new project using default scope and settings
|
@@ -198411,6 +198452,7 @@ const help = () => {
|
|
198411
198452
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
198412
198453
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
198413
198454
|
-d, --debug Debug mode [off]
|
198455
|
+
--no-color No color mode [off]
|
198414
198456
|
-N, --next Show next page of results
|
198415
198457
|
|
198416
198458
|
${chalk_1.default.dim('Examples:')}
|
@@ -198890,6 +198932,7 @@ const help = () => {
|
|
198890
198932
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
198891
198933
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
198892
198934
|
-d, --debug Debug mode [off]
|
198935
|
+
--no-color No color mode [off]
|
198893
198936
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
198894
198937
|
|
198895
198938
|
${chalk_1.default.dim('Examples:')}
|
@@ -199038,7 +199081,11 @@ const main = async () => {
|
|
199038
199081
|
return 1;
|
199039
199082
|
}
|
199040
199083
|
const isDebugging = argv['--debug'];
|
199041
|
-
const
|
199084
|
+
const isNoColor = argv['--no-color'];
|
199085
|
+
const output = new output_1.Output(process.stderr, {
|
199086
|
+
debug: isDebugging,
|
199087
|
+
noColor: isNoColor,
|
199088
|
+
});
|
199042
199089
|
debug = output.debug;
|
199043
199090
|
const localConfigPath = argv['--local-config'];
|
199044
199091
|
let localConfig = await (0, get_config_1.default)(output, localConfigPath);
|
@@ -199865,6 +199912,7 @@ const ARG_COMMON = {
|
|
199865
199912
|
'-V': '--platform-version',
|
199866
199913
|
'--debug': Boolean,
|
199867
199914
|
'-d': '--debug',
|
199915
|
+
'--no-color': Boolean,
|
199868
199916
|
'--token': String,
|
199869
199917
|
'-t': '--token',
|
199870
199918
|
'--scope': String,
|
@@ -200318,8 +200366,12 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
|
|
200318
200366
|
}
|
200319
200367
|
const { monorepoManager, ...commands } = result;
|
200320
200368
|
output.log(`Automatically detected ${(0, title_1.default)(monorepoManager)} monorepo manager. Attempting to assign default settings.`);
|
200321
|
-
|
200322
|
-
|
200369
|
+
if (commands.buildCommand) {
|
200370
|
+
setCommand('buildCommand', commands.buildCommand);
|
200371
|
+
}
|
200372
|
+
if (commands.installCommand) {
|
200373
|
+
setCommand('installCommand', commands.installCommand);
|
200374
|
+
}
|
200323
200375
|
if (commands.commandForIgnoringBuildStep) {
|
200324
200376
|
setCommand('commandForIgnoringBuildStep', commands.commandForIgnoringBuildStep);
|
200325
200377
|
}
|
@@ -200787,11 +200839,13 @@ async function writeLambda(outputDir, lambda, path, functionConfiguration, lambd
|
|
200787
200839
|
else {
|
200788
200840
|
throw new Error('Malformed `Lambda` - no "files" present');
|
200789
200841
|
}
|
200842
|
+
const cron = functionConfiguration?.cron ?? lambda.cron;
|
200790
200843
|
const memory = functionConfiguration?.memory ?? lambda.memory;
|
200791
200844
|
const maxDuration = functionConfiguration?.maxDuration ?? lambda.maxDuration;
|
200792
200845
|
const config = {
|
200793
200846
|
...lambda,
|
200794
200847
|
handler: (0, build_utils_1.normalizePath)(lambda.handler),
|
200848
|
+
cron,
|
200795
200849
|
memory,
|
200796
200850
|
maxDuration,
|
200797
200851
|
type: undefined,
|
@@ -203236,7 +203290,7 @@ exports.default = isURL;
|
|
203236
203290
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203237
203291
|
const mime_types_1 = __webpack_require__(92981);
|
203238
203292
|
function getMimeType(fileName) {
|
203239
|
-
return (0, mime_types_1.
|
203293
|
+
return (0, mime_types_1.contentType)(fileName) || 'application/octet-stream';
|
203240
203294
|
}
|
203241
203295
|
exports.default = getMimeType;
|
203242
203296
|
|
@@ -204990,11 +205044,11 @@ class DevServer {
|
|
204990
205044
|
body = `${json}\n`;
|
204991
205045
|
}
|
204992
205046
|
else if (accept.includes('html')) {
|
204993
|
-
res.setHeader('content-type', 'text/html');
|
205047
|
+
res.setHeader('content-type', 'text/html; charset=utf-8');
|
204994
205048
|
body = (0, redirect_1.default)({ location, statusCode });
|
204995
205049
|
}
|
204996
205050
|
else {
|
204997
|
-
res.setHeader('content-type', 'text/plain');
|
205051
|
+
res.setHeader('content-type', 'text/plain; charset=utf-8');
|
204998
205052
|
body = `Redirecting to ${location} (${statusCode})\n`;
|
204999
205053
|
}
|
205000
205054
|
res.end(body);
|
@@ -206812,8 +206866,8 @@ exports.default = transferInDomain;
|
|
206812
206866
|
"use strict";
|
206813
206867
|
|
206814
206868
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
206815
|
-
exports.
|
206816
|
-
|
206869
|
+
exports.removeEmoji = exports.prependEmoji = exports.emoji = void 0;
|
206870
|
+
const emojiLabels = {
|
206817
206871
|
notice: '📝',
|
206818
206872
|
tip: '💡',
|
206819
206873
|
warning: '❗️',
|
@@ -206822,8 +206876,9 @@ exports.emojiLabels = {
|
|
206822
206876
|
success: '✅',
|
206823
206877
|
locked: '🔒',
|
206824
206878
|
};
|
206879
|
+
const stripEmojiRegex = new RegExp(Object.values(emojiLabels).join('|'), 'gi');
|
206825
206880
|
function emoji(label) {
|
206826
|
-
return
|
206881
|
+
return emojiLabels[label];
|
206827
206882
|
}
|
206828
206883
|
exports.emoji = emoji;
|
206829
206884
|
function prependEmoji(message, emoji) {
|
@@ -206833,6 +206888,11 @@ function prependEmoji(message, emoji) {
|
|
206833
206888
|
return message;
|
206834
206889
|
}
|
206835
206890
|
exports.prependEmoji = prependEmoji;
|
206891
|
+
function removeEmoji(message) {
|
206892
|
+
const result = message.replace(stripEmojiRegex, '').trimStart();
|
206893
|
+
return result;
|
206894
|
+
}
|
206895
|
+
exports.removeEmoji = removeEmoji;
|
206836
206896
|
|
206837
206897
|
|
206838
206898
|
/***/ }),
|
@@ -212015,13 +212075,17 @@ const supports_hyperlinks_1 = __webpack_require__(18505);
|
|
212015
212075
|
const link_1 = __importDefault(__webpack_require__(39302));
|
212016
212076
|
const wait_1 = __importDefault(__webpack_require__(34604));
|
212017
212077
|
const error_utils_1 = __webpack_require__(39799);
|
212078
|
+
const emoji_1 = __webpack_require__(35172);
|
212018
212079
|
const IS_TEST = process.env.NODE_ENV === 'test';
|
212019
212080
|
class Output {
|
212020
|
-
constructor(stream, { debug: debugEnabled = false, supportsHyperlink = (0, supports_hyperlinks_1.supportsHyperlink)(stream), } = {}) {
|
212081
|
+
constructor(stream, { debug: debugEnabled = false, supportsHyperlink = (0, supports_hyperlinks_1.supportsHyperlink)(stream), noColor = false, } = {}) {
|
212021
212082
|
this.isDebugEnabled = () => {
|
212022
212083
|
return this.debugEnabled;
|
212023
212084
|
};
|
212024
212085
|
this.print = (str) => {
|
212086
|
+
if (this.colorDisabled) {
|
212087
|
+
str = (0, emoji_1.removeEmoji)(str);
|
212088
|
+
}
|
212025
212089
|
this.stopSpinner();
|
212026
212090
|
this.stream.write(str);
|
212027
212091
|
};
|
@@ -212131,9 +212195,22 @@ class Output {
|
|
212131
212195
|
this.supportsHyperlink = supportsHyperlink;
|
212132
212196
|
this.spinnerMessage = '';
|
212133
212197
|
this._spinner = null;
|
212198
|
+
this.colorDisabled = getNoColor(noColor);
|
212199
|
+
if (this.colorDisabled) {
|
212200
|
+
chalk_1.default.level = 0;
|
212201
|
+
}
|
212134
212202
|
}
|
212135
212203
|
}
|
212136
212204
|
exports.Output = Output;
|
212205
|
+
function getNoColor(noColorArg) {
|
212206
|
+
// FORCE_COLOR: the standard supported by chalk https://github.com/chalk/chalk#supportscolor
|
212207
|
+
// NO_COLOR: the standard we want to support https://no-color.org/
|
212208
|
+
// noColorArg: the `--no-color` arg passed to the CLI command
|
212209
|
+
const noColor = process.env.FORCE_COLOR === '0' ||
|
212210
|
+
process.env.NO_COLOR === '1' ||
|
212211
|
+
noColorArg;
|
212212
|
+
return !!noColor;
|
212213
|
+
}
|
212137
212214
|
|
212138
212215
|
|
212139
212216
|
/***/ }),
|
@@ -214659,7 +214736,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
214659
214736
|
/***/ ((module) => {
|
214660
214737
|
|
214661
214738
|
"use strict";
|
214662
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.
|
214739
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.2\",\"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 --bail\",\"test-unit\":\"pnpm test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"pnpm 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\":\"6.2.1\",\"@vercel/go\":\"2.3.3\",\"@vercel/hydrogen\":\"0.0.49\",\"@vercel/next\":\"3.4.1\",\"@vercel/node\":\"2.9.2\",\"@vercel/python\":\"3.1.45\",\"@vercel/redwood\":\"1.1.1\",\"@vercel/remix\":\"1.2.12\",\"@vercel/ruby\":\"1.3.61\",\"@vercel/static-build\":\"1.3.4\"},\"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/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\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/qs\":\"6.9.7\",\"@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.3.7\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.3.0\",\"@vercel/fs-detectors\":\"3.7.10\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.1.8\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"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\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"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\",\"jest-matcher-utils\":\"29.3.1\",\"json5\":\"2.2.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"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\",\"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\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.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.9.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"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\"]}}");
|
214663
214740
|
|
214664
214741
|
/***/ }),
|
214665
214742
|
|
@@ -214667,7 +214744,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.0\",\"pref
|
|
214667
214744
|
/***/ ((module) => {
|
214668
214745
|
|
214669
214746
|
"use strict";
|
214670
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.
|
214747
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.7\",\"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\":\"pnpm 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\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"6.2.1\",\"@vercel/routing-utils\":\"2.1.8\",\"@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\",\"tar-fs\":\"1.16.3\"}}");
|
214671
214748
|
|
214672
214749
|
/***/ }),
|
214673
214750
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.15.
|
3
|
+
"version": "28.15.2",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -41,16 +41,16 @@
|
|
41
41
|
"node": ">= 14"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@vercel/build-utils": "6.1
|
45
|
-
"@vercel/go": "2.3.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.
|
48
|
-
"@vercel/node": "2.9.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.
|
51
|
-
"@vercel/remix": "1.2.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.3.
|
44
|
+
"@vercel/build-utils": "6.2.1",
|
45
|
+
"@vercel/go": "2.3.3",
|
46
|
+
"@vercel/hydrogen": "0.0.49",
|
47
|
+
"@vercel/next": "3.4.1",
|
48
|
+
"@vercel/node": "2.9.2",
|
49
|
+
"@vercel/python": "3.1.45",
|
50
|
+
"@vercel/redwood": "1.1.1",
|
51
|
+
"@vercel/remix": "1.2.12",
|
52
|
+
"@vercel/ruby": "1.3.61",
|
53
|
+
"@vercel/static-build": "1.3.4"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@alex_neo/jest-expect-message": "1.0.5",
|
@@ -93,10 +93,10 @@
|
|
93
93
|
"@types/which": "1.3.2",
|
94
94
|
"@types/write-json-file": "2.2.1",
|
95
95
|
"@types/yauzl-promise": "2.1.0",
|
96
|
-
"@vercel/client": "12.3.
|
96
|
+
"@vercel/client": "12.3.7",
|
97
97
|
"@vercel/error-utils": "1.0.8",
|
98
98
|
"@vercel/frameworks": "1.3.0",
|
99
|
-
"@vercel/fs-detectors": "3.7.
|
99
|
+
"@vercel/fs-detectors": "3.7.10",
|
100
100
|
"@vercel/fun": "1.0.4",
|
101
101
|
"@vercel/ncc": "0.24.0",
|
102
102
|
"@vercel/routing-utils": "2.1.8",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "c1c8b454cc29de4bd306b87078f36d6416ceb90f"
|
199
199
|
}
|