vercel 27.0.0 → 27.0.1
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 +234 -168
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -206561,7 +206561,7 @@ let subcommand;
|
|
206561
206561
|
}
|
206562
206562
|
|
206563
206563
|
// This is required, otherwise we get those weird zlib errors
|
206564
|
-
return (0,exit
|
206564
|
+
return (0,exit/* default */.Z)(0);
|
206565
206565
|
});
|
206566
206566
|
|
206567
206567
|
// Builds a `choices` object that can be passesd to inquirer.prompt()
|
@@ -206885,7 +206885,7 @@ const main = async client => {
|
|
206885
206885
|
|
206886
206886
|
if (argv.help || !subcommand) {
|
206887
206887
|
help();
|
206888
|
-
await (0,exit
|
206888
|
+
await (0,exit/* default */.Z)(0);
|
206889
206889
|
}
|
206890
206890
|
|
206891
206891
|
const {
|
@@ -234701,8 +234701,8 @@ exports.default = new Map([
|
|
234701
234701
|
['logout', 'logout'],
|
234702
234702
|
['logs', 'logs'],
|
234703
234703
|
['ls', 'list'],
|
234704
|
-
['project', '
|
234705
|
-
['projects', '
|
234704
|
+
['project', 'project'],
|
234705
|
+
['projects', 'project'],
|
234706
234706
|
['pull', 'pull'],
|
234707
234707
|
['remove', 'remove'],
|
234708
234708
|
['rm', 'remove'],
|
@@ -235975,7 +235975,7 @@ function toTimestamp(datestr) {
|
|
235975
235975
|
|
235976
235976
|
/***/ }),
|
235977
235977
|
|
235978
|
-
/***/
|
235978
|
+
/***/ 38128:
|
235979
235979
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
235980
235980
|
|
235981
235981
|
"use strict";
|
@@ -235986,19 +235986,66 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
235986
235986
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
235987
235987
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
235988
235988
|
const ms_1 = __importDefault(__webpack_require__(80040));
|
235989
|
-
const
|
235990
|
-
|
235989
|
+
const pkg_name_1 = __webpack_require__(98106);
|
235990
|
+
async function add(client, args, contextName) {
|
235991
|
+
const { output } = client;
|
235992
|
+
if (args.length !== 1) {
|
235993
|
+
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project add <name>')}`)}`);
|
235994
|
+
if (args.length > 1) {
|
235995
|
+
const example = chalk_1.default.cyan(`${pkg_name_1.getCommandName(`project add "${args.join(' ')}"`)}`);
|
235996
|
+
output.log(`If your project name has spaces, make sure to wrap it in quotes. Example: \n ${example} `);
|
235997
|
+
}
|
235998
|
+
return 1;
|
235999
|
+
}
|
236000
|
+
const start = Date.now();
|
236001
|
+
const [name] = args;
|
236002
|
+
try {
|
236003
|
+
await client.fetch('/projects', {
|
236004
|
+
method: 'POST',
|
236005
|
+
body: { name },
|
236006
|
+
});
|
236007
|
+
}
|
236008
|
+
catch (error) {
|
236009
|
+
if (error.status === 409) {
|
236010
|
+
// project already exists, so we can
|
236011
|
+
// show a success message
|
236012
|
+
}
|
236013
|
+
else {
|
236014
|
+
throw error;
|
236015
|
+
}
|
236016
|
+
}
|
236017
|
+
const elapsed = ms_1.default(Date.now() - start);
|
236018
|
+
output.log(`${chalk_1.default.cyan('Success!')} Project ${chalk_1.default.bold(name.toLowerCase())} added (${chalk_1.default.bold(contextName)}) ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236019
|
+
return;
|
236020
|
+
}
|
236021
|
+
exports.default = add;
|
236022
|
+
|
236023
|
+
|
236024
|
+
/***/ }),
|
236025
|
+
|
236026
|
+
/***/ 26387:
|
236027
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
236028
|
+
|
236029
|
+
"use strict";
|
236030
|
+
|
236031
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
236032
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
236033
|
+
};
|
236034
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
236035
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
235991
236036
|
const get_args_1 = __importDefault(__webpack_require__(87612));
|
235992
|
-
const
|
235993
|
-
const exit_1 = __importDefault(__webpack_require__(54732));
|
235994
|
-
const logo_1 = __importDefault(__webpack_require__(9829));
|
236037
|
+
const get_invalid_subcommand_1 = __importDefault(__webpack_require__(89543));
|
235995
236038
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
235996
|
-
const
|
236039
|
+
const handle_error_1 = __importDefault(__webpack_require__(70870));
|
236040
|
+
const logo_1 = __importDefault(__webpack_require__(9829));
|
235997
236041
|
const pkg_name_1 = __webpack_require__(98106);
|
235998
|
-
const
|
236042
|
+
const validate_paths_1 = __importDefault(__webpack_require__(54579));
|
236043
|
+
const add_1 = __importDefault(__webpack_require__(38128));
|
236044
|
+
const list_1 = __importDefault(__webpack_require__(38696));
|
236045
|
+
const rm_1 = __importDefault(__webpack_require__(76136));
|
235999
236046
|
const help = () => {
|
236000
236047
|
console.log(`
|
236001
|
-
${chalk_1.default.bold(`${logo_1.default} ${pkg_name_1.getPkgName()}
|
236048
|
+
${chalk_1.default.bold(`${logo_1.default} ${pkg_name_1.getPkgName()} project`)} [options] <command>
|
236002
236049
|
|
236003
236050
|
${chalk_1.default.dim('Commands:')}
|
236004
236051
|
|
@@ -236017,180 +236064,186 @@ const help = () => {
|
|
236017
236064
|
|
236018
236065
|
${chalk_1.default.gray('–')} Add a new project
|
236019
236066
|
|
236020
|
-
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()}
|
236067
|
+
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()} project add my-project`)}
|
236021
236068
|
|
236022
236069
|
${chalk_1.default.gray('–')} Paginate projects, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
|
236023
236070
|
|
236024
|
-
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()}
|
236071
|
+
${chalk_1.default.cyan(`$ ${pkg_name_1.getPkgName()} project ls --next 1584722256178`)}
|
236025
236072
|
`);
|
236026
236073
|
};
|
236027
|
-
|
236028
|
-
|
236029
|
-
|
236074
|
+
const COMMAND_CONFIG = {
|
236075
|
+
ls: ['ls', 'list'],
|
236076
|
+
add: ['add'],
|
236077
|
+
rm: ['rm', 'remove'],
|
236078
|
+
connect: ['connect'],
|
236079
|
+
};
|
236080
|
+
async function main(client) {
|
236081
|
+
let argv;
|
236082
|
+
let subcommand;
|
236030
236083
|
try {
|
236031
236084
|
argv = get_args_1.default(client.argv.slice(2), {
|
236032
236085
|
'--next': Number,
|
236033
236086
|
'-N': '--next',
|
236087
|
+
'--yes': Boolean,
|
236034
236088
|
});
|
236035
236089
|
}
|
236036
236090
|
catch (error) {
|
236037
|
-
|
236038
|
-
return
|
236091
|
+
handle_error_1.default(error);
|
236092
|
+
return 1;
|
236039
236093
|
}
|
236040
|
-
argv._ = argv._.slice(1);
|
236041
|
-
subcommand = argv._[0] || 'list';
|
236042
236094
|
if (argv['--help']) {
|
236043
236095
|
help();
|
236044
|
-
return
|
236096
|
+
return 2;
|
236045
236097
|
}
|
236098
|
+
argv._ = argv._.slice(1);
|
236099
|
+
subcommand = argv._[0] || 'list';
|
236100
|
+
const args = argv._.slice(1);
|
236046
236101
|
const { output } = client;
|
236047
|
-
let
|
236102
|
+
let paths = [process.cwd()];
|
236103
|
+
const pathValidation = await validate_paths_1.default(client, paths);
|
236104
|
+
if (!pathValidation.valid) {
|
236105
|
+
return pathValidation.exitCode;
|
236106
|
+
}
|
236107
|
+
let contextName = '';
|
236048
236108
|
try {
|
236049
236109
|
({ contextName } = await get_scope_1.default(client));
|
236050
236110
|
}
|
236051
|
-
catch (
|
236052
|
-
if (
|
236053
|
-
output.error(
|
236111
|
+
catch (error) {
|
236112
|
+
if (error.code === 'NOT_AUTHORIZED' || error.code === 'TEAM_DELETED') {
|
236113
|
+
output.error(error.message);
|
236054
236114
|
return 1;
|
236055
236115
|
}
|
236056
|
-
throw
|
236057
|
-
}
|
236058
|
-
try {
|
236059
|
-
await run({ client, contextName });
|
236060
|
-
}
|
236061
|
-
catch (err) {
|
236062
|
-
error_1.handleError(err);
|
236063
|
-
exit_1.default(1);
|
236064
|
-
}
|
236065
|
-
};
|
236066
|
-
exports.default = async (client) => {
|
236067
|
-
try {
|
236068
|
-
await main(client);
|
236116
|
+
throw error;
|
236069
236117
|
}
|
236070
|
-
|
236071
|
-
|
236072
|
-
|
236118
|
+
switch (subcommand) {
|
236119
|
+
case 'ls':
|
236120
|
+
case 'list':
|
236121
|
+
return await list_1.default(client, argv, args, contextName);
|
236122
|
+
case 'add':
|
236123
|
+
return await add_1.default(client, args, contextName);
|
236124
|
+
case 'rm':
|
236125
|
+
case 'remove':
|
236126
|
+
return await rm_1.default(client, args);
|
236127
|
+
default:
|
236128
|
+
output.error(get_invalid_subcommand_1.default(COMMAND_CONFIG));
|
236129
|
+
help();
|
236130
|
+
return 2;
|
236073
236131
|
}
|
236132
|
+
}
|
236133
|
+
exports.default = main;
|
236134
|
+
|
236135
|
+
|
236136
|
+
/***/ }),
|
236137
|
+
|
236138
|
+
/***/ 38696:
|
236139
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
236140
|
+
|
236141
|
+
"use strict";
|
236142
|
+
|
236143
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
236144
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
236074
236145
|
};
|
236075
|
-
|
236146
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
236147
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
236148
|
+
const ms_1 = __importDefault(__webpack_require__(80040));
|
236149
|
+
const text_table_1 = __importDefault(__webpack_require__(3221));
|
236150
|
+
const get_command_flags_1 = __importDefault(__webpack_require__(68927));
|
236151
|
+
const pkg_name_1 = __webpack_require__(98106);
|
236152
|
+
const strlen_1 = __importDefault(__webpack_require__(17606));
|
236153
|
+
async function list(client, argv, args, contextName) {
|
236076
236154
|
const { output } = client;
|
236077
|
-
|
236155
|
+
if (args.length !== 0) {
|
236156
|
+
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project ls')}`)}`);
|
236157
|
+
return 2;
|
236158
|
+
}
|
236078
236159
|
const start = Date.now();
|
236079
|
-
|
236080
|
-
|
236081
|
-
|
236082
|
-
|
236083
|
-
}
|
236084
|
-
output.spinner(`Fetching projects in ${chalk_1.default.bold(contextName)}`);
|
236085
|
-
let projectsUrl = '/v4/projects/?limit=20';
|
236086
|
-
const next = argv['--next'];
|
236087
|
-
if (next) {
|
236088
|
-
projectsUrl += `&until=${next}`;
|
236089
|
-
}
|
236090
|
-
const { projects: list, pagination, } = await client.fetch(projectsUrl, {
|
236091
|
-
method: 'GET',
|
236092
|
-
});
|
236093
|
-
output.stopSpinner();
|
236094
|
-
const elapsed = ms_1.default(Date.now() - start);
|
236095
|
-
console.log(`> ${list.length > 0 ? 'Projects' : 'No projects'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236096
|
-
if (list.length > 0) {
|
236097
|
-
const cur = Date.now();
|
236098
|
-
const header = [['', 'name', 'updated'].map(title => chalk_1.default.dim(title))];
|
236099
|
-
const out = text_table_1.default(header.concat(list.map(secret => [
|
236100
|
-
'',
|
236101
|
-
chalk_1.default.bold(secret.name),
|
236102
|
-
chalk_1.default.gray(`${ms_1.default(cur - secret.updatedAt)} ago`),
|
236103
|
-
])), {
|
236104
|
-
align: ['l', 'l', 'l'],
|
236105
|
-
hsep: ' '.repeat(2),
|
236106
|
-
stringLength: strlen_1.default,
|
236107
|
-
});
|
236108
|
-
if (out) {
|
236109
|
-
console.log(`\n${out}\n`);
|
236110
|
-
}
|
236111
|
-
if (pagination && pagination.count === 20) {
|
236112
|
-
const flags = get_command_flags_1.default(argv, ['_', '--next', '-N', '-d', '-y']);
|
236113
|
-
const nextCmd = `projects ls${flags} --next ${pagination.next}`;
|
236114
|
-
console.log(`To display the next page run ${pkg_name_1.getCommandName(nextCmd)}`);
|
236115
|
-
}
|
236116
|
-
}
|
236117
|
-
return;
|
236160
|
+
output.spinner(`Fetching projects in ${chalk_1.default.bold(contextName)}`);
|
236161
|
+
let projectsUrl = '/v4/projects/?limit=20';
|
236162
|
+
const next = argv['--next'] || false;
|
236163
|
+
if (next) {
|
236164
|
+
projectsUrl += `&until=${next}`;
|
236118
236165
|
}
|
236119
|
-
|
236120
|
-
|
236121
|
-
|
236122
|
-
|
236123
|
-
|
236124
|
-
|
236125
|
-
|
236126
|
-
|
236127
|
-
|
236128
|
-
|
236129
|
-
|
236130
|
-
|
236131
|
-
|
236132
|
-
|
236133
|
-
|
236166
|
+
const { projects: list, pagination, } = await client.fetch(projectsUrl, {
|
236167
|
+
method: 'GET',
|
236168
|
+
});
|
236169
|
+
output.stopSpinner();
|
236170
|
+
const elapsed = ms_1.default(Date.now() - start);
|
236171
|
+
output.log(`${list.length > 0 ? 'Projects' : 'No projects'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236172
|
+
if (list.length > 0) {
|
236173
|
+
const cur = Date.now();
|
236174
|
+
const header = [['', 'name', 'updated'].map(title => chalk_1.default.dim(title))];
|
236175
|
+
const out = text_table_1.default(header.concat(list.map(secret => [
|
236176
|
+
'',
|
236177
|
+
chalk_1.default.bold(secret.name),
|
236178
|
+
chalk_1.default.gray(`${ms_1.default(cur - secret.updatedAt)} ago`),
|
236179
|
+
])), {
|
236180
|
+
align: ['l', 'l', 'l'],
|
236181
|
+
hsep: ' '.repeat(2),
|
236182
|
+
stringLength: strlen_1.default,
|
236183
|
+
});
|
236184
|
+
if (out) {
|
236185
|
+
output.print(`\n${out}\n\n`);
|
236134
236186
|
}
|
236135
|
-
|
236136
|
-
|
236137
|
-
|
236138
|
-
|
236139
|
-
}
|
236187
|
+
if (pagination && pagination.count === 20) {
|
236188
|
+
const flags = get_command_flags_1.default(argv, ['_', '--next', '-N', '-d', '-y']);
|
236189
|
+
const nextCmd = `project ls${flags} --next ${pagination.next}`;
|
236190
|
+
output.log(`To display the next page run ${pkg_name_1.getCommandName(nextCmd)}`);
|
236140
236191
|
}
|
236141
|
-
const elapsed = ms_1.default(Date.now() - start);
|
236142
|
-
console.log(`${chalk_1.default.cyan('> Success!')} Project ${chalk_1.default.bold(name)} removed ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236143
|
-
return;
|
236144
236192
|
}
|
236145
|
-
|
236146
|
-
|
236147
|
-
|
236148
|
-
|
236149
|
-
|
236150
|
-
|
236151
|
-
|
236152
|
-
|
236153
|
-
|
236154
|
-
|
236155
|
-
|
236156
|
-
|
236157
|
-
|
236158
|
-
|
236159
|
-
|
236160
|
-
|
236161
|
-
|
236162
|
-
|
236163
|
-
|
236164
|
-
|
236165
|
-
|
236166
|
-
|
236167
|
-
|
236168
|
-
|
236193
|
+
return 0;
|
236194
|
+
}
|
236195
|
+
exports.default = list;
|
236196
|
+
|
236197
|
+
|
236198
|
+
/***/ }),
|
236199
|
+
|
236200
|
+
/***/ 76136:
|
236201
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
236202
|
+
|
236203
|
+
"use strict";
|
236204
|
+
|
236205
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
236206
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
236207
|
+
};
|
236208
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
236209
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
236210
|
+
const ms_1 = __importDefault(__webpack_require__(80040));
|
236211
|
+
const emoji_1 = __webpack_require__(41806);
|
236212
|
+
const confirm_1 = __importDefault(__webpack_require__(33564));
|
236213
|
+
const pkg_name_1 = __webpack_require__(98106);
|
236214
|
+
const e = encodeURIComponent;
|
236215
|
+
async function rm(client, args) {
|
236216
|
+
if (args.length !== 1) {
|
236217
|
+
client.output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${pkg_name_1.getCommandName('project rm <name>')}`)}`);
|
236218
|
+
return 1;
|
236219
|
+
}
|
236220
|
+
const name = args[0];
|
236221
|
+
const start = Date.now();
|
236222
|
+
const yes = await readConfirmation(client, name);
|
236223
|
+
if (!yes) {
|
236224
|
+
client.output.log('User abort');
|
236225
|
+
return 0;
|
236226
|
+
}
|
236227
|
+
try {
|
236228
|
+
await client.fetch(`/v2/projects/${e(name)}`, {
|
236229
|
+
method: 'DELETE',
|
236230
|
+
});
|
236231
|
+
}
|
236232
|
+
catch (err) {
|
236233
|
+
if (err.status === 404) {
|
236234
|
+
client.output.error('No such project exists');
|
236235
|
+
return 1;
|
236169
236236
|
}
|
236170
|
-
const elapsed = ms_1.default(Date.now() - start);
|
236171
|
-
console.log(`${chalk_1.default.cyan('> Success!')} Project ${chalk_1.default.bold(name.toLowerCase())} added (${chalk_1.default.bold(contextName)}) ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236172
|
-
return;
|
236173
236237
|
}
|
236174
|
-
|
236175
|
-
|
236176
|
-
|
236238
|
+
const elapsed = ms_1.default(Date.now() - start);
|
236239
|
+
client.output.log(`${chalk_1.default.cyan('Success!')} Project ${chalk_1.default.bold(name)} removed ${chalk_1.default.gray(`[${elapsed}]`)}`);
|
236240
|
+
return 0;
|
236177
236241
|
}
|
236178
|
-
|
236179
|
-
|
236180
|
-
|
236181
|
-
|
236182
|
-
|
236183
|
-
return new Promise(resolve => {
|
236184
|
-
process.stdout.write(`The project: ${chalk_1.default.bold(projectName)} will be removed permanently.\n` +
|
236185
|
-
`It will also delete everything under the project including deployments.\n`);
|
236186
|
-
process.stdout.write(`${chalk_1.default.bold.red('> Are you sure?')} ${chalk_1.default.gray('[y/N] ')}`);
|
236187
|
-
process.stdin
|
236188
|
-
.on('data', d => {
|
236189
|
-
process.stdin.pause();
|
236190
|
-
resolve(d.toString().trim().toLowerCase() === 'y');
|
236191
|
-
})
|
236192
|
-
.resume();
|
236193
|
-
});
|
236242
|
+
exports.default = rm;
|
236243
|
+
async function readConfirmation(client, projectName) {
|
236244
|
+
client.output.print(emoji_1.prependEmoji(`The project ${chalk_1.default.bold(projectName)} will be removed permanently.\n` +
|
236245
|
+
`It will also delete everything under the project including deployments.\n`, emoji_1.emoji('warning')));
|
236246
|
+
return await confirm_1.default(client, `${chalk_1.default.bold.red('Are you sure?')}`, false);
|
236194
236247
|
}
|
236195
236248
|
|
236196
236249
|
|
@@ -237488,7 +237541,8 @@ const main = async () => {
|
|
237488
237541
|
// * a path to deploy (as in: `vercel path/`)
|
237489
237542
|
// * a subcommand (as in: `vercel ls`)
|
237490
237543
|
const targetOrSubcommand = argv._[2];
|
237491
|
-
|
237544
|
+
// Currently no beta commands - add here as needed
|
237545
|
+
const betaCommands = [''];
|
237492
237546
|
if (betaCommands.includes(targetOrSubcommand)) {
|
237493
237547
|
console.log(`${chalk_1.default.grey(`${pkg_name_1.getTitleName()} CLI ${pkg_1.default.version} ${targetOrSubcommand} (beta) — https://vercel.com/feedback`)}`);
|
237494
237548
|
}
|
@@ -237848,8 +237902,8 @@ const main = async () => {
|
|
237848
237902
|
case 'logout':
|
237849
237903
|
func = __webpack_require__(6299).default;
|
237850
237904
|
break;
|
237851
|
-
case '
|
237852
|
-
func = __webpack_require__(
|
237905
|
+
case 'project':
|
237906
|
+
func = __webpack_require__(26387).default;
|
237853
237907
|
break;
|
237854
237908
|
case 'pull':
|
237855
237909
|
func = __webpack_require__(6277).default;
|
@@ -240352,13 +240406,18 @@ const path_1 = __webpack_require__(85622);
|
|
240352
240406
|
const ini_1 = __importDefault(__webpack_require__(61967));
|
240353
240407
|
const git_last_commit_1 = __importDefault(__webpack_require__(13495));
|
240354
240408
|
const child_process_1 = __webpack_require__(63129);
|
240355
|
-
function isDirty(directory) {
|
240356
|
-
return new Promise(
|
240409
|
+
function isDirty(directory, output) {
|
240410
|
+
return new Promise(resolve => {
|
240357
240411
|
child_process_1.exec('git status -s', { cwd: directory }, function (err, stdout, stderr) {
|
240358
|
-
if
|
240359
|
-
|
240360
|
-
|
240361
|
-
|
240412
|
+
let debugMessage = `Failed to determine if Git repo has been modified:`;
|
240413
|
+
if (err || stderr) {
|
240414
|
+
if (err)
|
240415
|
+
debugMessage += `\n${err}`;
|
240416
|
+
if (stderr)
|
240417
|
+
debugMessage += `\n${stderr.trim()}`;
|
240418
|
+
output.debug(debugMessage);
|
240419
|
+
return resolve(false);
|
240420
|
+
}
|
240362
240421
|
resolve(stdout.trim().length > 0);
|
240363
240422
|
});
|
240364
240423
|
});
|
@@ -240398,9 +240457,15 @@ async function createGitMeta(directory, output) {
|
|
240398
240457
|
return;
|
240399
240458
|
}
|
240400
240459
|
const [commit, dirty] = await Promise.all([
|
240401
|
-
getLastCommit(directory)
|
240402
|
-
|
240460
|
+
getLastCommit(directory).catch(err => {
|
240461
|
+
output.debug(`Failed to get last commit. The directory is likely not a Git repo, there are no latest commits, or it is corrupted.\n${err}`);
|
240462
|
+
return;
|
240463
|
+
}),
|
240464
|
+
isDirty(directory, output),
|
240403
240465
|
]);
|
240466
|
+
if (!commit) {
|
240467
|
+
return;
|
240468
|
+
}
|
240404
240469
|
return {
|
240405
240470
|
remoteUrl,
|
240406
240471
|
commitAuthorName: commit.author.name,
|
@@ -246599,9 +246664,10 @@ exports.default = printEvents;
|
|
246599
246664
|
/***/ ((__unused_webpack_module, exports) => {
|
246600
246665
|
|
246601
246666
|
"use strict";
|
246667
|
+
var __webpack_unused_export__;
|
246602
246668
|
|
246603
|
-
|
246604
|
-
exports.
|
246669
|
+
__webpack_unused_export__ = ({ value: true });
|
246670
|
+
exports.Z = (code) => new Promise(() => {
|
246605
246671
|
// We give stdout some time to flush out
|
246606
246672
|
// because there's a node bug where
|
246607
246673
|
// stdout writes are asynchronous
|
@@ -252221,7 +252287,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
252221
252287
|
/***/ ((module) => {
|
252222
252288
|
|
252223
252289
|
"use strict";
|
252224
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.0.
|
252290
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.0.1\",\"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\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.0.1\",\"@vercel/go\":\"2.0.5\",\"@vercel/hydrogen\":\"0.0.2\",\"@vercel/next\":\"3.1.4\",\"@vercel/node\":\"2.4.1\",\"@vercel/python\":\"3.0.5\",\"@vercel/redwood\":\"1.0.6\",\"@vercel/remix\":\"1.0.7\",\"@vercel/ruby\":\"1.3.13\",\"@vercel/static-build\":\"1.0.5\",\"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\",\"@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.0\",\"@vercel/frameworks\":\"1.1.0\",\"@vercel/fs-detectors\":\"1.0.1\",\"@vercel/ncc\":\"0.24.0\",\"@zeit/fun\":\"0.11.2\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"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.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"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\":\"ec9b55dc8196b650987a505ed24566818566f3cf\"}");
|
252225
252291
|
|
252226
252292
|
/***/ }),
|
252227
252293
|
|
@@ -252237,7 +252303,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
252237
252303
|
/***/ ((module) => {
|
252238
252304
|
|
252239
252305
|
"use strict";
|
252240
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.0\",\"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.0.1\",\"@vercel/routing-utils\":\"1.13.5\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"}
|
252306
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.0\",\"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.0.1\",\"@vercel/routing-utils\":\"1.13.5\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"}}");
|
252241
252307
|
|
252242
252308
|
/***/ }),
|
252243
252309
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.0.
|
3
|
+
"version": "27.0.1",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"@vercel/node": "2.4.1",
|
50
50
|
"@vercel/python": "3.0.5",
|
51
51
|
"@vercel/redwood": "1.0.6",
|
52
|
-
"@vercel/remix": "1.0.
|
52
|
+
"@vercel/remix": "1.0.7",
|
53
53
|
"@vercel/ruby": "1.3.13",
|
54
54
|
"@vercel/static-build": "1.0.5",
|
55
55
|
"update-notifier": "5.1.0"
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "ec9b55dc8196b650987a505ed24566818566f3cf"
|
199
199
|
}
|