vercel 28.7.2 → 28.9.0
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 +155 -82
- package/package.json +15 -16
package/dist/index.js
CHANGED
@@ -215156,20 +215156,21 @@ exports.frameworks = [
|
|
215156
215156
|
],
|
215157
215157
|
},
|
215158
215158
|
{
|
215159
|
-
name: 'SvelteKit',
|
215159
|
+
name: 'SvelteKit (Legacy Beta)',
|
215160
215160
|
slug: 'sveltekit',
|
215161
215161
|
demo: 'https://sveltekit-template.vercel.app',
|
215162
215162
|
logo: 'https://api-frameworks.vercel.sh/framework-logos/svelte.svg',
|
215163
215163
|
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/sveltekit.png',
|
215164
215164
|
tagline: 'SvelteKit is a framework for building web applications of all sizes.',
|
215165
|
-
description: 'A SvelteKit app optimized Edge-first.',
|
215165
|
+
description: 'A SvelteKit legacy app optimized Edge-first.',
|
215166
215166
|
website: 'https://kit.svelte.dev',
|
215167
|
+
sort: 99,
|
215167
215168
|
envPrefix: 'VITE_',
|
215168
215169
|
detectors: {
|
215169
215170
|
every: [
|
215170
215171
|
{
|
215171
215172
|
path: 'package.json',
|
215172
|
-
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"@sveltejs\\/kit":\\s*"
|
215173
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"@sveltejs\\/kit":\\s*"1\\.0\\.0-next\\.(\\d+)"[^}]*}',
|
215173
215174
|
},
|
215174
215175
|
],
|
215175
215176
|
},
|
@@ -215191,6 +215192,41 @@ exports.frameworks = [
|
|
215191
215192
|
},
|
215192
215193
|
getOutputDirName: async () => 'public',
|
215193
215194
|
},
|
215195
|
+
{
|
215196
|
+
name: 'SvelteKit',
|
215197
|
+
slug: 'sveltekit-1',
|
215198
|
+
demo: 'https://sveltekit-1-template.vercel.app',
|
215199
|
+
logo: 'https://api-frameworks.vercel.sh/framework-logos/svelte.svg',
|
215200
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/sveltekit.png',
|
215201
|
+
tagline: 'SvelteKit is a framework for building web applications of all sizes.',
|
215202
|
+
description: 'A SvelteKit app optimized Edge-first.',
|
215203
|
+
website: 'https://kit.svelte.dev',
|
215204
|
+
detectors: {
|
215205
|
+
every: [
|
215206
|
+
{
|
215207
|
+
path: 'package.json',
|
215208
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"@sveltejs\\/kit":\\s*".+?"[^}]*}',
|
215209
|
+
},
|
215210
|
+
],
|
215211
|
+
},
|
215212
|
+
settings: {
|
215213
|
+
installCommand: {
|
215214
|
+
placeholder: '`yarn install`, `pnpm install`, or `npm install`',
|
215215
|
+
},
|
215216
|
+
buildCommand: {
|
215217
|
+
placeholder: 'vite build',
|
215218
|
+
value: 'vite build',
|
215219
|
+
},
|
215220
|
+
devCommand: {
|
215221
|
+
placeholder: 'vite dev',
|
215222
|
+
value: 'vite dev --port $PORT',
|
215223
|
+
},
|
215224
|
+
outputDirectory: {
|
215225
|
+
value: 'public',
|
215226
|
+
},
|
215227
|
+
},
|
215228
|
+
getOutputDirName: async () => 'public',
|
215229
|
+
},
|
215194
215230
|
{
|
215195
215231
|
name: 'Ionic React',
|
215196
215232
|
slug: 'ionic-react',
|
@@ -215864,7 +215900,7 @@ exports.frameworks = [
|
|
215864
215900
|
every: [
|
215865
215901
|
{
|
215866
215902
|
path: 'package.json',
|
215867
|
-
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*vitepress:\\s*".+?"[^}]*}',
|
215903
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"vitepress":\\s*".+?"[^}]*}',
|
215868
215904
|
},
|
215869
215905
|
],
|
215870
215906
|
},
|
@@ -232860,6 +232896,7 @@ const help = () => {
|
|
232860
232896
|
-S, --scope Set a custom scope
|
232861
232897
|
-N, --next Show next page of results
|
232862
232898
|
-y, --yes Skip the confirmation prompt when removing an alias
|
232899
|
+
--limit=${chalk_1.default.bold.underline('VALUE')} Number of results to return per page (default: 20, max: 100)
|
232863
232900
|
|
232864
232901
|
${chalk_1.default.dim('Examples:')}
|
232865
232902
|
|
@@ -232888,6 +232925,7 @@ async function main(client) {
|
|
232888
232925
|
'--json': Boolean,
|
232889
232926
|
'--yes': Boolean,
|
232890
232927
|
'--next': Number,
|
232928
|
+
'--limit': Number,
|
232891
232929
|
'-y': '--yes',
|
232892
232930
|
'-N': '--next',
|
232893
232931
|
});
|
@@ -232929,16 +232967,20 @@ const ms_1 = __importDefault(__webpack_require__(80040));
|
|
232929
232967
|
const text_table_1 = __importDefault(__webpack_require__(3221));
|
232930
232968
|
const get_aliases_1 = __importDefault(__webpack_require__(20066));
|
232931
232969
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
232970
|
+
const get_pagination_opts_1 = __webpack_require__(20811);
|
232932
232971
|
const stamp_1 = __importDefault(__webpack_require__(92205));
|
232933
232972
|
const strlen_1 = __importDefault(__webpack_require__(17606));
|
232934
232973
|
const get_command_flags_1 = __importDefault(__webpack_require__(68927));
|
232935
232974
|
const pkg_name_1 = __webpack_require__(98106);
|
232936
232975
|
async function ls(client, opts, args) {
|
232937
232976
|
const { output } = client;
|
232938
|
-
const { '--next': nextTimestamp } = opts;
|
232939
232977
|
const { contextName } = await (0, get_scope_1.default)(client);
|
232940
|
-
|
232941
|
-
|
232978
|
+
let paginationOptions;
|
232979
|
+
try {
|
232980
|
+
paginationOptions = (0, get_pagination_opts_1.getPaginationOpts)(opts);
|
232981
|
+
}
|
232982
|
+
catch (err) {
|
232983
|
+
output.prettyError(err);
|
232942
232984
|
return 1;
|
232943
232985
|
}
|
232944
232986
|
const lsStamp = (0, stamp_1.default)();
|
@@ -232948,9 +232990,9 @@ async function ls(client, opts, args) {
|
|
232948
232990
|
}
|
232949
232991
|
output.spinner(`Fetching aliases under ${chalk_1.default.bold(contextName)}`);
|
232950
232992
|
// Get the list of alias
|
232951
|
-
const { aliases, pagination } = await (0, get_aliases_1.default)(client, undefined,
|
232993
|
+
const { aliases, pagination } = await (0, get_aliases_1.default)(client, undefined, ...paginationOptions);
|
232952
232994
|
output.log(`aliases found under ${chalk_1.default.bold(contextName)} ${lsStamp()}`);
|
232953
|
-
|
232995
|
+
output.log(printAliasTable(aliases));
|
232954
232996
|
if (pagination && pagination.count === 20) {
|
232955
232997
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
232956
232998
|
output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`alias ls${flags} --next ${pagination.next}`)}`);
|
@@ -234261,6 +234303,7 @@ const help = () => {
|
|
234261
234303
|
--key ${chalk_1.default.bold.underline('FILE')} Certificate key file
|
234262
234304
|
--ca ${chalk_1.default.bold.underline('FILE')} CA certificate chain file
|
234263
234305
|
-N, --next Show next page of results
|
234306
|
+
--limit=${chalk_1.default.bold.underline('VALUE')} Number of results to return per page (default: 20, max: 100)
|
234264
234307
|
|
234265
234308
|
${chalk_1.default.dim('Examples:')}
|
234266
234309
|
|
@@ -234296,6 +234339,7 @@ async function main(client) {
|
|
234296
234339
|
'--ca': String,
|
234297
234340
|
'--next': Number,
|
234298
234341
|
'-N': '--next',
|
234342
|
+
'--limit': Number,
|
234299
234343
|
});
|
234300
234344
|
}
|
234301
234345
|
catch (err) {
|
@@ -234490,6 +234534,7 @@ const chalk_1 = __importDefault(__webpack_require__(961));
|
|
234490
234534
|
const ms_1 = __importDefault(__webpack_require__(80040));
|
234491
234535
|
const text_table_1 = __importDefault(__webpack_require__(3221));
|
234492
234536
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
234537
|
+
const get_pagination_opts_1 = __webpack_require__(20811);
|
234493
234538
|
const stamp_1 = __importDefault(__webpack_require__(92205));
|
234494
234539
|
const get_certs_1 = __importDefault(__webpack_require__(89648));
|
234495
234540
|
const strlen_1 = __importDefault(__webpack_require__(17606));
|
@@ -234497,10 +234542,13 @@ const get_command_flags_1 = __importDefault(__webpack_require__(68927));
|
|
234497
234542
|
const pkg_name_1 = __webpack_require__(98106);
|
234498
234543
|
async function ls(client, opts, args) {
|
234499
234544
|
const { output } = client;
|
234500
|
-
const { '--next': nextTimestamp } = opts;
|
234501
234545
|
const { contextName } = await (0, get_scope_1.default)(client);
|
234502
|
-
|
234503
|
-
|
234546
|
+
let paginationOptions;
|
234547
|
+
try {
|
234548
|
+
paginationOptions = (0, get_pagination_opts_1.getPaginationOpts)(opts);
|
234549
|
+
}
|
234550
|
+
catch (err) {
|
234551
|
+
output.prettyError(err);
|
234504
234552
|
return 1;
|
234505
234553
|
}
|
234506
234554
|
const lsStamp = (0, stamp_1.default)();
|
@@ -234509,10 +234557,10 @@ async function ls(client, opts, args) {
|
|
234509
234557
|
return 1;
|
234510
234558
|
}
|
234511
234559
|
// Get the list of certificates
|
234512
|
-
const { certs, pagination } = await (0, get_certs_1.default)(client,
|
234560
|
+
const { certs, pagination } = await (0, get_certs_1.default)(client, ...paginationOptions).catch(err => err);
|
234513
234561
|
output.log(`${certs.length > 0 ? 'Certificates' : 'No certificates'} found under ${chalk_1.default.bold(contextName)} ${lsStamp()}`);
|
234514
234562
|
if (certs.length > 0) {
|
234515
|
-
|
234563
|
+
output.log(formatCertsTable(certs));
|
234516
234564
|
}
|
234517
234565
|
if (pagination && pagination.count === 20) {
|
234518
234566
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
@@ -235768,6 +235816,7 @@ const help = () => {
|
|
235768
235816
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
235769
235817
|
-S, --scope Set a custom scope
|
235770
235818
|
-N, --next Show next page of results
|
235819
|
+
--limit=${chalk_1.default.bold.underline('VALUE')} Number of results to return per page (default: 20, max: 100)
|
235771
235820
|
|
235772
235821
|
${chalk_1.default.dim('Examples:')}
|
235773
235822
|
|
@@ -235811,7 +235860,11 @@ const COMMAND_CONFIG = {
|
|
235811
235860
|
async function main(client) {
|
235812
235861
|
let argv;
|
235813
235862
|
try {
|
235814
|
-
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
235863
|
+
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
235864
|
+
'--next': Number,
|
235865
|
+
'-N': '--next',
|
235866
|
+
'--limit': Number,
|
235867
|
+
});
|
235815
235868
|
}
|
235816
235869
|
catch (error) {
|
235817
235870
|
(0, handle_error_1.default)(error);
|
@@ -235854,12 +235907,12 @@ const format_table_1 = __importDefault(__webpack_require__(35982));
|
|
235854
235907
|
const get_dns_records_1 = __importDefault(__webpack_require__(7207));
|
235855
235908
|
const get_domain_dns_records_1 = __importDefault(__webpack_require__(60902));
|
235856
235909
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
235910
|
+
const get_pagination_opts_1 = __webpack_require__(20811);
|
235857
235911
|
const stamp_1 = __importDefault(__webpack_require__(92205));
|
235858
235912
|
const get_command_flags_1 = __importDefault(__webpack_require__(68927));
|
235859
235913
|
const pkg_name_1 = __webpack_require__(98106);
|
235860
235914
|
async function ls(client, opts, args) {
|
235861
235915
|
const { output } = client;
|
235862
|
-
const { '--next': nextTimestamp } = opts;
|
235863
235916
|
const { contextName } = await (0, get_scope_1.default)(client);
|
235864
235917
|
const [domainName] = args;
|
235865
235918
|
const lsStamp = (0, stamp_1.default)();
|
@@ -235867,29 +235920,33 @@ async function ls(client, opts, args) {
|
|
235867
235920
|
output.error(`Invalid number of arguments. Usage: ${chalk_1.default.cyan(`${(0, pkg_name_1.getCommandName)('dns ls [domain]')}`)}`);
|
235868
235921
|
return 1;
|
235869
235922
|
}
|
235870
|
-
|
235871
|
-
|
235923
|
+
let paginationOptions;
|
235924
|
+
try {
|
235925
|
+
paginationOptions = (0, get_pagination_opts_1.getPaginationOpts)(opts);
|
235926
|
+
}
|
235927
|
+
catch (err) {
|
235928
|
+
output.prettyError(err);
|
235872
235929
|
return 1;
|
235873
235930
|
}
|
235874
235931
|
if (domainName) {
|
235875
|
-
const data = await (0, get_domain_dns_records_1.default)(output, client, domainName,
|
235932
|
+
const data = await (0, get_domain_dns_records_1.default)(output, client, domainName, 4, ...paginationOptions);
|
235876
235933
|
if (data instanceof errors_ts_1.DomainNotFound) {
|
235877
235934
|
output.error(`The domain ${domainName} can't be found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(lsStamp())}`);
|
235878
235935
|
return 1;
|
235879
235936
|
}
|
235880
235937
|
const { records, pagination } = data;
|
235881
235938
|
output.log(`${records.length > 0 ? 'Records' : 'No records'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(lsStamp())}`);
|
235882
|
-
|
235939
|
+
output.log(getDNSRecordsTable([{ domainName, records }]));
|
235883
235940
|
if (pagination && pagination.count === 20) {
|
235884
235941
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
235885
235942
|
output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`dns ls ${domainName}${flags} --next ${pagination.next}`)}`);
|
235886
235943
|
}
|
235887
235944
|
return 0;
|
235888
235945
|
}
|
235889
|
-
const { records: dnsRecords, pagination } = await (0, get_dns_records_1.default)(output, client, contextName,
|
235946
|
+
const { records: dnsRecords, pagination } = await (0, get_dns_records_1.default)(output, client, contextName, ...paginationOptions);
|
235890
235947
|
const nRecords = dnsRecords.reduce((p, r) => r.records.length + p, 0);
|
235891
235948
|
output.log(`${nRecords > 0 ? 'Records' : 'No records'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(lsStamp())}`);
|
235892
|
-
|
235949
|
+
output.log(getDNSRecordsTable(dnsRecords));
|
235893
235950
|
if (pagination && pagination.count === 20) {
|
235894
235951
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
235895
235952
|
output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`dns ls${flags} --next ${pagination.next}`)}`);
|
@@ -236305,6 +236362,7 @@ const help = () => {
|
|
236305
236362
|
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
236306
236363
|
-S, --scope Set a custom scope
|
236307
236364
|
-N, --next Show next page of results
|
236365
|
+
--limit=${chalk_1.default.bold.underline('VALUE')} Number of results to return per page (default: 20, max: 100)
|
236308
236366
|
-y, --yes Skip the confirmation prompt when removing a domain
|
236309
236367
|
|
236310
236368
|
${chalk_1.default.dim('Examples:')}
|
@@ -236343,6 +236401,7 @@ async function main(client) {
|
|
236343
236401
|
'--next': Number,
|
236344
236402
|
'-N': '--next',
|
236345
236403
|
'-y': '--yes',
|
236404
|
+
'--limit': Number,
|
236346
236405
|
});
|
236347
236406
|
}
|
236348
236407
|
catch (error) {
|
@@ -236536,14 +236595,18 @@ const stamp_1 = __importDefault(__webpack_require__(92205));
|
|
236536
236595
|
const format_table_1 = __importDefault(__webpack_require__(35982));
|
236537
236596
|
const format_date_1 = __webpack_require__(17215);
|
236538
236597
|
const get_command_flags_1 = __importDefault(__webpack_require__(68927));
|
236598
|
+
const get_pagination_opts_1 = __webpack_require__(20811);
|
236539
236599
|
const pkg_name_1 = __webpack_require__(98106);
|
236540
236600
|
const is_domain_external_1 = __importDefault(__webpack_require__(47012));
|
236541
236601
|
const get_domain_registrar_1 = __webpack_require__(89886);
|
236542
236602
|
async function ls(client, opts, args) {
|
236543
236603
|
const { output } = client;
|
236544
|
-
|
236545
|
-
|
236546
|
-
|
236604
|
+
let paginationOptions;
|
236605
|
+
try {
|
236606
|
+
paginationOptions = (0, get_pagination_opts_1.getPaginationOpts)(opts);
|
236607
|
+
}
|
236608
|
+
catch (err) {
|
236609
|
+
output.prettyError(err);
|
236547
236610
|
return 1;
|
236548
236611
|
}
|
236549
236612
|
const { contextName } = await (0, get_scope_1.default)(client);
|
@@ -236553,7 +236616,7 @@ async function ls(client, opts, args) {
|
|
236553
236616
|
return 1;
|
236554
236617
|
}
|
236555
236618
|
output.spinner(`Fetching Domains under ${chalk_1.default.bold(contextName)}`);
|
236556
|
-
const { domains, pagination } = await (0, get_domains_1.default)(client,
|
236619
|
+
const { domains, pagination } = await (0, get_domains_1.default)(client, ...paginationOptions);
|
236557
236620
|
output.log(`${(0, pluralize_1.default)('Domain', domains.length, true)} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(lsStamp())}`);
|
236558
236621
|
if (domains.length > 0) {
|
236559
236622
|
output.print(formatDomainsTable(domains).replace(/^(.*)/gm, `${' '.repeat(1)}$1`));
|
@@ -237174,6 +237237,7 @@ const help = () => {
|
|
237174
237237
|
|
237175
237238
|
-h, --help Output usage information
|
237176
237239
|
--environment Set the Environment (development, preview, production) when pulling Environment Variables
|
237240
|
+
--git-branch Specify the Git branch to pull specific Environment Variables for
|
237177
237241
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
237178
237242
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
237179
237243
|
-d, --debug Debug mode [off]
|
@@ -237237,6 +237301,7 @@ async function main(client) {
|
|
237237
237301
|
'--yes': Boolean,
|
237238
237302
|
'-y': '--yes',
|
237239
237303
|
'--environment': String,
|
237304
|
+
'--git-branch': String,
|
237240
237305
|
});
|
237241
237306
|
}
|
237242
237307
|
catch (error) {
|
@@ -237423,6 +237488,7 @@ async function pull(client, project, environment, opts, args, output, cwd, sourc
|
|
237423
237488
|
const [filename = '.env'] = args;
|
237424
237489
|
const fullPath = (0, path_1.resolve)(cwd, filename);
|
237425
237490
|
const skipConfirmation = opts['--yes'];
|
237491
|
+
const gitBranch = opts['--git-branch'];
|
237426
237492
|
const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
|
237427
237493
|
const exists = typeof head !== 'undefined';
|
237428
237494
|
if (head === CONTENTS_PREFIX) {
|
@@ -237439,6 +237505,7 @@ async function pull(client, project, environment, opts, args, output, cwd, sourc
|
|
237439
237505
|
output.spinner('Downloading');
|
237440
237506
|
const records = (await (0, get_env_records_1.pullEnvRecords)(output, client, project.id, source, {
|
237441
237507
|
target: environment || types_1.ProjectEnvTarget.Development,
|
237508
|
+
gitBranch,
|
237442
237509
|
})).env;
|
237443
237510
|
let deltaString = '';
|
237444
237511
|
let oldEnv;
|
@@ -239683,6 +239750,7 @@ function processArgs(client) {
|
|
239683
239750
|
return (0, get_args_1.default)(client.argv.slice(2), {
|
239684
239751
|
'--yes': Boolean,
|
239685
239752
|
'--environment': String,
|
239753
|
+
'--git-branch': String,
|
239686
239754
|
'--debug': Boolean,
|
239687
239755
|
'-d': '--debug',
|
239688
239756
|
'-y': '--yes',
|
@@ -241566,8 +241634,8 @@ function getSafeAlias(alias) {
|
|
241566
241634
|
"use strict";
|
241567
241635
|
|
241568
241636
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
241569
|
-
async function getAliases(client, deploymentId, next) {
|
241570
|
-
let aliasUrl = `/v3/now/aliases?limit
|
241637
|
+
async function getAliases(client, deploymentId, next, limit = 20) {
|
241638
|
+
let aliasUrl = `/v3/now/aliases?limit=${limit}`;
|
241571
241639
|
if (next) {
|
241572
241640
|
aliasUrl += `&until=${next}`;
|
241573
241641
|
}
|
@@ -243005,8 +243073,8 @@ exports.getCertsForCn = getCertsForCn;
|
|
243005
243073
|
"use strict";
|
243006
243074
|
|
243007
243075
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
243008
|
-
async function getCerts(client, next) {
|
243009
|
-
let certsUrl = `/v4/now/certs?limit
|
243076
|
+
async function getCerts(client, next, limit = 20) {
|
243077
|
+
let certsUrl = `/v4/now/certs?limit=${limit}`;
|
243010
243078
|
if (next) {
|
243011
243079
|
certsUrl += `&until=${next}`;
|
243012
243080
|
}
|
@@ -243861,16 +243929,20 @@ async function createGitMeta(directory, output, project) {
|
|
243861
243929
|
if (!remoteUrl) {
|
243862
243930
|
return;
|
243863
243931
|
}
|
243864
|
-
const [
|
243865
|
-
getLastCommit(directory)
|
243866
|
-
|
243867
|
-
return;
|
243868
|
-
}),
|
243869
|
-
isDirty(directory, output),
|
243932
|
+
const [commitResult, dirtyResult] = await Promise.allSettled([
|
243933
|
+
getLastCommit(directory),
|
243934
|
+
isDirty(directory),
|
243870
243935
|
]);
|
243871
|
-
if (
|
243936
|
+
if (commitResult.status === 'rejected') {
|
243937
|
+
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${commitResult.reason}`);
|
243872
243938
|
return;
|
243873
243939
|
}
|
243940
|
+
if (dirtyResult.status === 'rejected') {
|
243941
|
+
output.debug(`Failed to determine if Git repo has been modified:\n${dirtyResult.reason}`);
|
243942
|
+
return;
|
243943
|
+
}
|
243944
|
+
const dirty = dirtyResult.value;
|
243945
|
+
const commit = commitResult.value;
|
243874
243946
|
return {
|
243875
243947
|
remoteUrl,
|
243876
243948
|
commitAuthorName: commit.author.name,
|
@@ -243884,28 +243956,27 @@ exports.createGitMeta = createGitMeta;
|
|
243884
243956
|
function getLastCommit(directory) {
|
243885
243957
|
return new Promise((resolve, reject) => {
|
243886
243958
|
git_last_commit_1.default.getLastCommit((err, commit) => {
|
243887
|
-
if (err)
|
243888
|
-
return reject(err);
|
243959
|
+
if (err) {
|
243960
|
+
return reject((0, error_utils_1.normalizeError)(err));
|
243961
|
+
}
|
243889
243962
|
resolve(commit);
|
243890
243963
|
}, { dst: directory });
|
243891
243964
|
});
|
243892
243965
|
}
|
243893
|
-
function isDirty(directory
|
243894
|
-
return new Promise(resolve => {
|
243966
|
+
function isDirty(directory) {
|
243967
|
+
return new Promise((resolve, reject) => {
|
243895
243968
|
// note: we specify the `--no-optional-locks` git flag so that `git status`
|
243896
243969
|
// does not perform any "optional" operations such as optimizing the index
|
243897
243970
|
// in the background: https://git-scm.com/docs/git-status#_background_refresh
|
243898
243971
|
(0, child_process_1.exec)('git --no-optional-locks status -s', { cwd: directory }, function (err, stdout, stderr) {
|
243899
|
-
|
243900
|
-
|
243901
|
-
|
243902
|
-
|
243903
|
-
|
243904
|
-
if (stderr)
|
243905
|
-
debugMessage += `\n${stderr.trim()}`;
|
243906
|
-
output.debug(debugMessage);
|
243907
|
-
return resolve(false);
|
243972
|
+
if (err) {
|
243973
|
+
return reject(err);
|
243974
|
+
}
|
243975
|
+
if (stderr !== undefined && stderr.trim().length > 0) {
|
243976
|
+
return reject(new Error(stderr));
|
243908
243977
|
}
|
243978
|
+
// Example output (when dirty):
|
243979
|
+
// M ../fs-detectors/src/index.ts
|
243909
243980
|
resolve(stdout.trim().length > 0);
|
243910
243981
|
});
|
243911
243982
|
});
|
@@ -247729,10 +247800,10 @@ async function getDomainNames(client, contextName, next) {
|
|
247729
247800
|
|
247730
247801
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
247731
247802
|
const errors_ts_1 = __webpack_require__(60156);
|
247732
|
-
async function getDomainDNSRecords(output, client, domain, nextTimestamp,
|
247803
|
+
async function getDomainDNSRecords(output, client, domain, apiVersion = 3, nextTimestamp, limit = 20) {
|
247733
247804
|
output.debug(`Fetching for DNS records of domain ${domain}`);
|
247734
247805
|
try {
|
247735
|
-
let url = `/v${apiVersion}/domains/${encodeURIComponent(domain)}/records?limit
|
247806
|
+
let url = `/v${apiVersion}/domains/${encodeURIComponent(domain)}/records?limit=${limit}`;
|
247736
247807
|
if (nextTimestamp) {
|
247737
247808
|
url += `&until=${nextTimestamp}`;
|
247738
247809
|
}
|
@@ -248106,8 +248177,8 @@ exports.getDomain = getDomain;
|
|
248106
248177
|
"use strict";
|
248107
248178
|
|
248108
248179
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
248109
|
-
async function getDomains(client, next) {
|
248110
|
-
let domainUrl = `/v5/domains?limit
|
248180
|
+
async function getDomains(client, next, limit = 20) {
|
248181
|
+
let domainUrl = `/v5/domains?limit=${limit}`;
|
248111
248182
|
if (next) {
|
248112
248183
|
domainUrl += `&until=${next}`;
|
248113
248184
|
}
|
@@ -248857,37 +248928,13 @@ exports.default = formatEnvTarget;
|
|
248857
248928
|
/***/ }),
|
248858
248929
|
|
248859
248930
|
/***/ 4622:
|
248860
|
-
/***/ (
|
248931
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
248861
248932
|
|
248862
248933
|
"use strict";
|
248863
248934
|
|
248864
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
248865
|
-
if (k2 === undefined) k2 = k;
|
248866
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
248867
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
248868
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
248869
|
-
}
|
248870
|
-
Object.defineProperty(o, k2, desc);
|
248871
|
-
}) : (function(o, m, k, k2) {
|
248872
|
-
if (k2 === undefined) k2 = k;
|
248873
|
-
o[k2] = m[k];
|
248874
|
-
}));
|
248875
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
248876
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
248877
|
-
}) : function(o, v) {
|
248878
|
-
o["default"] = v;
|
248879
|
-
});
|
248880
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
248881
|
-
if (mod && mod.__esModule) return mod;
|
248882
|
-
var result = {};
|
248883
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
248884
|
-
__setModuleDefault(result, mod);
|
248885
|
-
return result;
|
248886
|
-
};
|
248887
248935
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
248888
248936
|
exports.pullEnvRecords = void 0;
|
248889
248937
|
const url_1 = __webpack_require__(78835);
|
248890
|
-
const path = __importStar(__webpack_require__(85622));
|
248891
248938
|
async function getEnvRecords(output, client, projectId, source, { target, gitBranch, decrypt, } = {}) {
|
248892
248939
|
output.debug(`Fetching Environment Variables of project ${projectId} and target ${target}`);
|
248893
248940
|
const query = new url_1.URLSearchParams();
|
@@ -248912,7 +248959,10 @@ async function pullEnvRecords(output, client, projectId, source, { target, gitBr
|
|
248912
248959
|
const query = new url_1.URLSearchParams();
|
248913
248960
|
let url = `/v1/env/pull/${projectId}`;
|
248914
248961
|
if (target) {
|
248915
|
-
url
|
248962
|
+
url += `/${encodeURIComponent(target)}`;
|
248963
|
+
if (gitBranch) {
|
248964
|
+
url += `/${encodeURIComponent(gitBranch)}`;
|
248965
|
+
}
|
248916
248966
|
}
|
248917
248967
|
if (source) {
|
248918
248968
|
query.set('source', source);
|
@@ -250596,6 +250646,29 @@ function getInvalidSubcommand(config) {
|
|
250596
250646
|
exports.default = getInvalidSubcommand;
|
250597
250647
|
|
250598
250648
|
|
250649
|
+
/***/ }),
|
250650
|
+
|
250651
|
+
/***/ 20811:
|
250652
|
+
/***/ ((__unused_webpack_module, exports) => {
|
250653
|
+
|
250654
|
+
"use strict";
|
250655
|
+
|
250656
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
250657
|
+
exports.getPaginationOpts = void 0;
|
250658
|
+
function getPaginationOpts(opts) {
|
250659
|
+
const { '--next': nextTimestamp, '--limit': limit } = opts;
|
250660
|
+
if (typeof nextTimestamp !== undefined && Number.isNaN(nextTimestamp)) {
|
250661
|
+
throw new Error('Please provide a number for option --next');
|
250662
|
+
}
|
250663
|
+
if (typeof limit === 'number' &&
|
250664
|
+
(!Number.isInteger(limit) || limit > 100 || limit < 1)) {
|
250665
|
+
throw new Error('Please provide an integer from 1 to 100 for option --limit');
|
250666
|
+
}
|
250667
|
+
return [nextTimestamp, limit];
|
250668
|
+
}
|
250669
|
+
exports.getPaginationOpts = getPaginationOpts;
|
250670
|
+
|
250671
|
+
|
250599
250672
|
/***/ }),
|
250600
250673
|
|
250601
250674
|
/***/ 10959:
|
@@ -256306,7 +256379,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
256306
256379
|
/***/ ((module) => {
|
256307
256380
|
|
256308
256381
|
"use strict";
|
256309
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.
|
256382
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.9.0\",\"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\":\"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.7.1\",\"@vercel/go\":\"2.2.20\",\"@vercel/hydrogen\":\"0.0.34\",\"@vercel/next\":\"3.3.3\",\"@vercel/node\":\"2.8.1\",\"@vercel/python\":\"3.1.30\",\"@vercel/redwood\":\"1.0.40\",\"@vercel/remix\":\"1.1.2\",\"@vercel/ruby\":\"1.3.46\",\"@vercel/static-build\":\"1.0.43\",\"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\":\"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/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.2.22\",\"@vercel/error-utils\":\"1.0.3\",\"@vercel/frameworks\":\"1.1.15\",\"@vercel/fs-detectors\":\"3.5.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\",\"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\",\"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\":\"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\",\"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\"]}}");
|
256310
256383
|
|
256311
256384
|
/***/ }),
|
256312
256385
|
|
@@ -256314,7 +256387,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.7.2\",\"prefe
|
|
256314
256387
|
/***/ ((module) => {
|
256315
256388
|
|
256316
256389
|
"use strict";
|
256317
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
256390
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.22\",\"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\":\"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\":\"5.7.1\",\"@vercel/routing-utils\":\"2.1.3\",\"@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\"}}");
|
256318
256391
|
|
256319
256392
|
/***/ }),
|
256320
256393
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.
|
3
|
+
"version": "28.9.0",
|
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": "5.7.
|
45
|
-
"@vercel/go": "2.2.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.3.
|
48
|
-
"@vercel/node": "2.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.0.
|
51
|
-
"@vercel/remix": "1.1.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.0.
|
44
|
+
"@vercel/build-utils": "5.7.1",
|
45
|
+
"@vercel/go": "2.2.20",
|
46
|
+
"@vercel/hydrogen": "0.0.34",
|
47
|
+
"@vercel/next": "3.3.3",
|
48
|
+
"@vercel/node": "2.8.1",
|
49
|
+
"@vercel/python": "3.1.30",
|
50
|
+
"@vercel/redwood": "1.0.40",
|
51
|
+
"@vercel/remix": "1.1.2",
|
52
|
+
"@vercel/ruby": "1.3.46",
|
53
|
+
"@vercel/static-build": "1.0.43",
|
54
54
|
"update-notifier": "5.1.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -95,10 +95,10 @@
|
|
95
95
|
"@types/which": "1.3.2",
|
96
96
|
"@types/write-json-file": "2.2.1",
|
97
97
|
"@types/yauzl-promise": "2.1.0",
|
98
|
-
"@vercel/client": "12.2.
|
98
|
+
"@vercel/client": "12.2.22",
|
99
99
|
"@vercel/error-utils": "1.0.3",
|
100
|
-
"@vercel/frameworks": "1.1.
|
101
|
-
"@vercel/fs-detectors": "3.5.
|
100
|
+
"@vercel/frameworks": "1.1.15",
|
101
|
+
"@vercel/fs-detectors": "3.5.5",
|
102
102
|
"@vercel/fun": "1.0.4",
|
103
103
|
"@vercel/ncc": "0.24.0",
|
104
104
|
"@zeit/source-map-support": "0.6.2",
|
@@ -122,7 +122,6 @@
|
|
122
122
|
"debug": "3.1.0",
|
123
123
|
"dot": "1.1.3",
|
124
124
|
"dotenv": "4.0.0",
|
125
|
-
"email-prompt": "0.3.2",
|
126
125
|
"email-validator": "1.1.1",
|
127
126
|
"epipebomb": "1.0.0",
|
128
127
|
"escape-html": "1.0.3",
|
@@ -195,5 +194,5 @@
|
|
195
194
|
"<rootDir>/test/**/*.test.ts"
|
196
195
|
]
|
197
196
|
},
|
198
|
-
"gitHead": "
|
197
|
+
"gitHead": "4484c134487214af68bc97da322688ec027db532"
|
199
198
|
}
|