vercel 23.1.3-canary.71 → 23.1.3-canary.75
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 +807 -541
- package/package.json +13 -12
package/dist/index.js
CHANGED
@@ -123528,11 +123528,7 @@ const pTryEach = async (array, mapper) => {
|
|
123528
123528
|
throw latestError;
|
123529
123529
|
};
|
123530
123530
|
|
123531
|
-
const
|
123532
|
-
if (typeof target !== 'string') {
|
123533
|
-
throw new TypeError('Expected a `target`');
|
123534
|
-
}
|
123535
|
-
|
123531
|
+
const baseOpen = async options => {
|
123536
123532
|
options = {
|
123537
123533
|
wait: false,
|
123538
123534
|
background: false,
|
@@ -123542,16 +123538,17 @@ const open = async (target, options) => {
|
|
123542
123538
|
};
|
123543
123539
|
|
123544
123540
|
if (Array.isArray(options.app)) {
|
123545
|
-
return pTryEach(options.app, singleApp =>
|
123541
|
+
return pTryEach(options.app, singleApp => baseOpen({
|
123546
123542
|
...options,
|
123547
123543
|
app: singleApp
|
123548
123544
|
}));
|
123549
123545
|
}
|
123550
123546
|
|
123551
123547
|
let {name: app, arguments: appArguments = []} = options.app || {};
|
123548
|
+
appArguments = [...appArguments];
|
123552
123549
|
|
123553
123550
|
if (Array.isArray(app)) {
|
123554
|
-
return pTryEach(app, appName =>
|
123551
|
+
return pTryEach(app, appName => baseOpen({
|
123555
123552
|
...options,
|
123556
123553
|
app: {
|
123557
123554
|
name: appName,
|
@@ -123611,9 +123608,11 @@ const open = async (target, options) => {
|
|
123611
123608
|
// Double quote with double quotes to ensure the inner quotes are passed through.
|
123612
123609
|
// Inner quotes are delimited for PowerShell interpretation with backticks.
|
123613
123610
|
encodedArguments.push(`"\`"${app}\`""`, '-ArgumentList');
|
123614
|
-
|
123615
|
-
|
123616
|
-
|
123611
|
+
if (options.target) {
|
123612
|
+
appArguments.unshift(options.target);
|
123613
|
+
}
|
123614
|
+
} else if (options.target) {
|
123615
|
+
encodedArguments.push(`"${options.target}"`);
|
123617
123616
|
}
|
123618
123617
|
|
123619
123618
|
if (appArguments.length > 0) {
|
@@ -123622,7 +123621,7 @@ const open = async (target, options) => {
|
|
123622
123621
|
}
|
123623
123622
|
|
123624
123623
|
// Using Base64-encoded command, accepted by PowerShell, to allow special characters.
|
123625
|
-
target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
|
123624
|
+
options.target = Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
|
123626
123625
|
} else {
|
123627
123626
|
if (app) {
|
123628
123627
|
command = app;
|
@@ -123654,7 +123653,9 @@ const open = async (target, options) => {
|
|
123654
123653
|
}
|
123655
123654
|
}
|
123656
123655
|
|
123657
|
-
|
123656
|
+
if (options.target) {
|
123657
|
+
cliArguments.push(options.target);
|
123658
|
+
}
|
123658
123659
|
|
123659
123660
|
if (platform === 'darwin' && appArguments.length > 0) {
|
123660
123661
|
cliArguments.push('--args', ...appArguments);
|
@@ -123682,6 +123683,36 @@ const open = async (target, options) => {
|
|
123682
123683
|
return subprocess;
|
123683
123684
|
};
|
123684
123685
|
|
123686
|
+
const open = (target, options) => {
|
123687
|
+
if (typeof target !== 'string') {
|
123688
|
+
throw new TypeError('Expected a `target`');
|
123689
|
+
}
|
123690
|
+
|
123691
|
+
return baseOpen({
|
123692
|
+
...options,
|
123693
|
+
target
|
123694
|
+
});
|
123695
|
+
};
|
123696
|
+
|
123697
|
+
const openApp = (name, options) => {
|
123698
|
+
if (typeof name !== 'string') {
|
123699
|
+
throw new TypeError('Expected a `name`');
|
123700
|
+
}
|
123701
|
+
|
123702
|
+
const {arguments: appArguments = []} = options || {};
|
123703
|
+
if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
|
123704
|
+
throw new TypeError('Expected `appArguments` as Array type');
|
123705
|
+
}
|
123706
|
+
|
123707
|
+
return baseOpen({
|
123708
|
+
...options,
|
123709
|
+
app: {
|
123710
|
+
name,
|
123711
|
+
arguments: appArguments
|
123712
|
+
}
|
123713
|
+
});
|
123714
|
+
};
|
123715
|
+
|
123685
123716
|
function detectArchBinary(binary) {
|
123686
123717
|
if (typeof binary === 'string' || Array.isArray(binary)) {
|
123687
123718
|
return binary;
|
@@ -123713,7 +123744,7 @@ const apps = {};
|
|
123713
123744
|
defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({
|
123714
123745
|
darwin: 'google chrome',
|
123715
123746
|
win32: 'chrome',
|
123716
|
-
linux: ['google-chrome', 'google-chrome-stable']
|
123747
|
+
linux: ['google-chrome', 'google-chrome-stable', 'chromium']
|
123717
123748
|
}, {
|
123718
123749
|
wsl: {
|
123719
123750
|
ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe',
|
@@ -123732,12 +123763,13 @@ defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({
|
|
123732
123763
|
defineLazyProperty(apps, 'edge', () => detectPlatformBinary({
|
123733
123764
|
darwin: 'microsoft edge',
|
123734
123765
|
win32: 'msedge',
|
123735
|
-
linux: 'microsoft-edge'
|
123766
|
+
linux: ['microsoft-edge', 'microsoft-edge-dev']
|
123736
123767
|
}, {
|
123737
123768
|
wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'
|
123738
123769
|
}));
|
123739
123770
|
|
123740
123771
|
open.apps = apps;
|
123772
|
+
open.openApp = openApp;
|
123741
123773
|
|
123742
123774
|
module.exports = open;
|
123743
123775
|
|
@@ -211228,7 +211260,7 @@ exports.frameworks = [
|
|
211228
211260
|
{
|
211229
211261
|
name: 'Blitz.js',
|
211230
211262
|
slug: 'blitzjs',
|
211231
|
-
demo: 'https://
|
211263
|
+
demo: 'https://blitz-template.vercel.app',
|
211232
211264
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/blitz.svg',
|
211233
211265
|
tagline: 'Blitz.js: The Fullstack React Framework',
|
211234
211266
|
description: 'A brand new Blitz.js app - the result of running `npx blitz new`.',
|
@@ -211264,7 +211296,7 @@ exports.frameworks = [
|
|
211264
211296
|
{
|
211265
211297
|
name: 'Next.js',
|
211266
211298
|
slug: 'nextjs',
|
211267
|
-
demo: 'https://nextjs.
|
211299
|
+
demo: 'https://nextjs-template.vercel.app',
|
211268
211300
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/next.svg',
|
211269
211301
|
tagline: 'Next.js makes you productive with React instantly — whether you want to build static or dynamic sites.',
|
211270
211302
|
description: 'A Next.js app and a Serverless Function API.',
|
@@ -211309,10 +211341,10 @@ exports.frameworks = [
|
|
211309
211341
|
{
|
211310
211342
|
name: 'Gatsby.js',
|
211311
211343
|
slug: 'gatsby',
|
211312
|
-
demo: 'https://gatsby.
|
211344
|
+
demo: 'https://gatsby.vercel.app',
|
211313
211345
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/gatsby.svg',
|
211314
211346
|
tagline: 'Gatsby helps developers build blazing fast websites and apps with React.',
|
211315
|
-
description: 'A Gatsby
|
211347
|
+
description: 'A Gatsby starter app with an API Route.',
|
211316
211348
|
website: 'https://gatsbyjs.org',
|
211317
211349
|
sort: 5,
|
211318
211350
|
envPrefix: 'GATSBY_',
|
@@ -211391,7 +211423,7 @@ exports.frameworks = [
|
|
211391
211423
|
{
|
211392
211424
|
name: 'Remix',
|
211393
211425
|
slug: 'remix',
|
211394
|
-
demo: 'https://remix.
|
211426
|
+
demo: 'https://remix-run-template.vercel.app',
|
211395
211427
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix-no-shadow.svg',
|
211396
211428
|
tagline: 'Build Better Websites',
|
211397
211429
|
description: 'A new Remix app — the result of running `npx create-remix`.',
|
@@ -211460,7 +211492,7 @@ exports.frameworks = [
|
|
211460
211492
|
{
|
211461
211493
|
name: 'Hexo',
|
211462
211494
|
slug: 'hexo',
|
211463
|
-
demo: 'https://hexo.
|
211495
|
+
demo: 'https://hexo-template.vercel.app',
|
211464
211496
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/hexo.svg',
|
211465
211497
|
tagline: 'Hexo is a fast, simple & powerful blog framework powered by Node.js.',
|
211466
211498
|
description: 'A Hexo site, created with the Hexo CLI.',
|
@@ -211495,7 +211527,7 @@ exports.frameworks = [
|
|
211495
211527
|
{
|
211496
211528
|
name: 'Eleventy',
|
211497
211529
|
slug: 'eleventy',
|
211498
|
-
demo: 'https://eleventy.
|
211530
|
+
demo: 'https://eleventy-template.vercel.app',
|
211499
211531
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/eleventy.svg',
|
211500
211532
|
tagline: '11ty is a simpler static site generator written in JavaScript, created to be an alternative to Jekyll.',
|
211501
211533
|
description: 'An Eleventy site, created with npm init.',
|
@@ -211531,7 +211563,7 @@ exports.frameworks = [
|
|
211531
211563
|
{
|
211532
211564
|
name: 'Docusaurus 2',
|
211533
211565
|
slug: 'docusaurus-2',
|
211534
|
-
demo: 'https://docusaurus-2.
|
211566
|
+
demo: 'https://docusaurus-2-template.vercel.app',
|
211535
211567
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/docusaurus.svg',
|
211536
211568
|
tagline: 'Docusaurus makes it easy to maintain Open Source documentation websites.',
|
211537
211569
|
description: 'A static Docusaurus site that makes it easy to maintain OSS documentation.',
|
@@ -211660,7 +211692,7 @@ exports.frameworks = [
|
|
211660
211692
|
{
|
211661
211693
|
name: 'Docusaurus 1',
|
211662
211694
|
slug: 'docusaurus',
|
211663
|
-
demo: 'https://docusaurus.
|
211695
|
+
demo: 'https://docusaurus-template.vercel.app',
|
211664
211696
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/docusaurus.svg',
|
211665
211697
|
tagline: 'Docusaurus makes it easy to maintain Open Source documentation websites.',
|
211666
211698
|
description: 'A static Docusaurus site that makes it easy to maintain OSS documentation.',
|
@@ -211709,7 +211741,7 @@ exports.frameworks = [
|
|
211709
211741
|
{
|
211710
211742
|
name: 'Preact',
|
211711
211743
|
slug: 'preact',
|
211712
|
-
demo: 'https://preact.
|
211744
|
+
demo: 'https://preact-template.vercel.app',
|
211713
211745
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/preact.svg',
|
211714
211746
|
tagline: 'Preact is a fast 3kB alternative to React with the same modern API.',
|
211715
211747
|
description: 'A Preact app, created with the Preact CLI.',
|
@@ -211760,7 +211792,7 @@ exports.frameworks = [
|
|
211760
211792
|
{
|
211761
211793
|
name: 'SolidStart',
|
211762
211794
|
slug: 'solidstart',
|
211763
|
-
demo: 'https://
|
211795
|
+
demo: 'https://solid-start-template.vercel.app',
|
211764
211796
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/solid.svg',
|
211765
211797
|
tagline: 'Simple and performant reactivity for building user interfaces.',
|
211766
211798
|
description: 'A Solid app, created with SolidStart.',
|
@@ -211798,7 +211830,7 @@ exports.frameworks = [
|
|
211798
211830
|
{
|
211799
211831
|
name: 'Dojo',
|
211800
211832
|
slug: 'dojo',
|
211801
|
-
demo: 'https://dojo.
|
211833
|
+
demo: 'https://dojo-template.vercel.app',
|
211802
211834
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/dojo.png',
|
211803
211835
|
tagline: 'Dojo is a modern progressive, TypeScript first framework.',
|
211804
211836
|
description: "A Dojo app, created with the Dojo CLI's cli-create-app command.",
|
@@ -211865,7 +211897,7 @@ exports.frameworks = [
|
|
211865
211897
|
{
|
211866
211898
|
name: 'Ember.js',
|
211867
211899
|
slug: 'ember',
|
211868
|
-
demo: 'https://ember.
|
211900
|
+
demo: 'https://ember-template.vercel.app',
|
211869
211901
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/ember.svg',
|
211870
211902
|
tagline: 'Ember.js helps webapp developers be more productive out of the box.',
|
211871
211903
|
description: 'An Ember app, created with the Ember CLI.',
|
@@ -211916,7 +211948,7 @@ exports.frameworks = [
|
|
211916
211948
|
{
|
211917
211949
|
name: 'Vue.js',
|
211918
211950
|
slug: 'vue',
|
211919
|
-
demo: 'https://vue.
|
211951
|
+
demo: 'https://vue-template.vercel.app',
|
211920
211952
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/vue.svg',
|
211921
211953
|
tagline: 'Vue.js is a versatile JavaScript framework that is as approachable as it is performant.',
|
211922
211954
|
description: 'A Vue.js app, created with the Vue CLI.',
|
@@ -211992,7 +212024,7 @@ exports.frameworks = [
|
|
211992
212024
|
{
|
211993
212025
|
name: 'Scully',
|
211994
212026
|
slug: 'scully',
|
211995
|
-
demo: 'https://scully.
|
212027
|
+
demo: 'https://scully-template.vercel.app',
|
211996
212028
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/scullyio-logo.png',
|
211997
212029
|
tagline: 'Scully is a static site generator for Angular.',
|
211998
212030
|
description: 'The Static Site Generator for Angular apps.',
|
@@ -212027,7 +212059,7 @@ exports.frameworks = [
|
|
212027
212059
|
{
|
212028
212060
|
name: 'Ionic Angular',
|
212029
212061
|
slug: 'ionic-angular',
|
212030
|
-
demo: 'https://ionic-angular.
|
212062
|
+
demo: 'https://ionic-angular-template.vercel.app',
|
212031
212063
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/ionic.svg',
|
212032
212064
|
tagline: 'Ionic Angular allows you to build mobile PWAs with Angular and the Ionic Framework.',
|
212033
212065
|
description: 'An Ionic Angular site, created with the Ionic CLI.',
|
@@ -212077,7 +212109,7 @@ exports.frameworks = [
|
|
212077
212109
|
{
|
212078
212110
|
name: 'Angular',
|
212079
212111
|
slug: 'angular',
|
212080
|
-
demo: 'https://angular.
|
212112
|
+
demo: 'https://angular-template.vercel.app',
|
212081
212113
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/angular.svg',
|
212082
212114
|
tagline: 'Angular is a TypeScript-based cross-platform framework from Google.',
|
212083
212115
|
description: 'An Angular app, created with the Angular CLI.',
|
@@ -212142,7 +212174,7 @@ exports.frameworks = [
|
|
212142
212174
|
{
|
212143
212175
|
name: 'Polymer',
|
212144
212176
|
slug: 'polymer',
|
212145
|
-
demo: 'https://polymer.
|
212177
|
+
demo: 'https://polymer-template.vercel.app',
|
212146
212178
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/polymer.svg',
|
212147
212179
|
tagline: 'Polymer is an open-source webapps library from Google, for building using Web Components.',
|
212148
212180
|
description: 'A Polymer app, created with the Polymer CLI.',
|
@@ -212205,7 +212237,7 @@ exports.frameworks = [
|
|
212205
212237
|
{
|
212206
212238
|
name: 'Svelte',
|
212207
212239
|
slug: 'svelte',
|
212208
|
-
demo: 'https://svelte.
|
212240
|
+
demo: 'https://svelte.vercel.app',
|
212209
212241
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
212210
212242
|
tagline: 'Svelte lets you write high performance reactive apps with significantly less boilerplate.',
|
212211
212243
|
description: 'A basic Svelte app using the default template.',
|
@@ -212260,10 +212292,10 @@ exports.frameworks = [
|
|
212260
212292
|
{
|
212261
212293
|
name: 'SvelteKit',
|
212262
212294
|
slug: 'sveltekit',
|
212263
|
-
demo: 'https://sveltekit.
|
212295
|
+
demo: 'https://sveltekit-template.vercel.app',
|
212264
212296
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
212265
212297
|
tagline: 'SvelteKit is a framework for building web applications of all sizes.',
|
212266
|
-
description: 'A SvelteKit app optimized
|
212298
|
+
description: 'A SvelteKit app optimized Edge-first.',
|
212267
212299
|
website: 'https://kit.svelte.dev',
|
212268
212300
|
envPrefix: 'VITE_',
|
212269
212301
|
detectors: {
|
@@ -212295,7 +212327,7 @@ exports.frameworks = [
|
|
212295
212327
|
{
|
212296
212328
|
name: 'Ionic React',
|
212297
212329
|
slug: 'ionic-react',
|
212298
|
-
demo: 'https://ionic-react.
|
212330
|
+
demo: 'https://ionic-react-template.vercel.app',
|
212299
212331
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/ionic.svg',
|
212300
212332
|
tagline: 'Ionic React allows you to build mobile PWAs with React and the Ionic Framework.',
|
212301
212333
|
description: 'An Ionic React site, created with the Ionic CLI.',
|
@@ -212393,10 +212425,10 @@ exports.frameworks = [
|
|
212393
212425
|
{
|
212394
212426
|
name: 'Create React App',
|
212395
212427
|
slug: 'create-react-app',
|
212396
|
-
demo: 'https://react-
|
212428
|
+
demo: 'https://create-react-template.vercel.app',
|
212397
212429
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/react.svg',
|
212398
212430
|
tagline: 'Create React App allows you to get going with React in no time.',
|
212399
|
-
description: 'A React app
|
212431
|
+
description: 'A client-side React app created with create-react-app.',
|
212400
212432
|
website: 'https://create-react-app.dev',
|
212401
212433
|
sort: 4,
|
212402
212434
|
envPrefix: 'REACT_APP_',
|
@@ -212497,7 +212529,7 @@ exports.frameworks = [
|
|
212497
212529
|
{
|
212498
212530
|
name: 'Gridsome',
|
212499
212531
|
slug: 'gridsome',
|
212500
|
-
demo: 'https://gridsome.
|
212532
|
+
demo: 'https://gridsome-template.vercel.app',
|
212501
212533
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/gridsome.svg',
|
212502
212534
|
tagline: 'Gridsome is a Vue.js-powered framework for building websites & apps that are fast by default.',
|
212503
212535
|
description: 'A Gridsome app, created with the Gridsome CLI.',
|
@@ -212532,7 +212564,7 @@ exports.frameworks = [
|
|
212532
212564
|
{
|
212533
212565
|
name: 'UmiJS',
|
212534
212566
|
slug: 'umijs',
|
212535
|
-
demo: 'https://umijs.
|
212567
|
+
demo: 'https://umijs-template.vercel.app',
|
212536
212568
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/umi.svg',
|
212537
212569
|
tagline: 'UmiJS is an extensible enterprise-level React application framework.',
|
212538
212570
|
description: 'An UmiJS app, created using the Umi CLI.',
|
@@ -212583,7 +212615,7 @@ exports.frameworks = [
|
|
212583
212615
|
{
|
212584
212616
|
name: 'Sapper',
|
212585
212617
|
slug: 'sapper',
|
212586
|
-
demo: 'https://sapper.
|
212618
|
+
demo: 'https://sapper-template.vercel.app',
|
212587
212619
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
212588
212620
|
tagline: 'Sapper is a framework for building high-performance universal web apps with Svelte.',
|
212589
212621
|
description: 'A Sapper app, using the Sapper template.',
|
@@ -212618,7 +212650,7 @@ exports.frameworks = [
|
|
212618
212650
|
{
|
212619
212651
|
name: 'Saber',
|
212620
212652
|
slug: 'saber',
|
212621
|
-
demo: 'https://saber.
|
212653
|
+
demo: 'https://saber-template.vercel.app',
|
212622
212654
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/saber.svg',
|
212623
212655
|
tagline: 'Saber is a framework for building static sites in Vue.js that supports data from any source.',
|
212624
212656
|
description: 'A Saber site, created with npm init.',
|
@@ -212684,7 +212716,7 @@ exports.frameworks = [
|
|
212684
212716
|
{
|
212685
212717
|
name: 'Stencil',
|
212686
212718
|
slug: 'stencil',
|
212687
|
-
demo: 'https://stencil.
|
212719
|
+
demo: 'https://stencil.vercel.app',
|
212688
212720
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/stencil.svg',
|
212689
212721
|
tagline: 'Stencil is a powerful toolchain for building Progressive Web Apps and Design Systems.',
|
212690
212722
|
description: 'A Stencil site, created with the Stencil CLI.',
|
@@ -212769,7 +212801,7 @@ exports.frameworks = [
|
|
212769
212801
|
{
|
212770
212802
|
name: 'Nuxt.js',
|
212771
212803
|
slug: 'nuxtjs',
|
212772
|
-
demo: 'https://nuxtjs.
|
212804
|
+
demo: 'https://nuxtjs-template.vercel.app',
|
212773
212805
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/nuxt.svg',
|
212774
212806
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
212775
212807
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
@@ -212825,7 +212857,7 @@ exports.frameworks = [
|
|
212825
212857
|
{
|
212826
212858
|
name: 'RedwoodJS',
|
212827
212859
|
slug: 'redwoodjs',
|
212828
|
-
demo: 'https://
|
212860
|
+
demo: 'https://redwood-template.vercel.app',
|
212829
212861
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/redwoodjs.svg',
|
212830
212862
|
tagline: 'RedwoodJS is a full-stack framework for the Jamstack.',
|
212831
212863
|
description: 'A RedwoodJS app, bootstraped with create-redwood-app.',
|
@@ -212861,7 +212893,7 @@ exports.frameworks = [
|
|
212861
212893
|
{
|
212862
212894
|
name: 'Hugo',
|
212863
212895
|
slug: 'hugo',
|
212864
|
-
demo: 'https://hugo.
|
212896
|
+
demo: 'https://hugo-template.vercel.app',
|
212865
212897
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/hugo.svg',
|
212866
212898
|
tagline: 'Hugo is the world’s fastest framework for building websites, written in Go.',
|
212867
212899
|
description: 'A Hugo site, created with the Hugo CLI.',
|
@@ -212909,7 +212941,7 @@ exports.frameworks = [
|
|
212909
212941
|
{
|
212910
212942
|
name: 'Jekyll',
|
212911
212943
|
slug: 'jekyll',
|
212912
|
-
demo: 'https://jekyll.
|
212944
|
+
demo: 'https://jekyll-template.vercel.app',
|
212913
212945
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/jekyll.svg',
|
212914
212946
|
tagline: 'Jekyll makes it super easy to transform your plain text into static websites and blogs.',
|
212915
212947
|
description: 'A Jekyll site, created with the Jekyll CLI.',
|
@@ -212946,7 +212978,7 @@ exports.frameworks = [
|
|
212946
212978
|
{
|
212947
212979
|
name: 'Brunch',
|
212948
212980
|
slug: 'brunch',
|
212949
|
-
demo: 'https://brunch.
|
212981
|
+
demo: 'https://brunch-template.vercel.app',
|
212950
212982
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/brunch.svg',
|
212951
212983
|
tagline: 'Brunch is a fast and simple webapp build tool with seamless incremental compilation for rapid development.',
|
212952
212984
|
description: 'A Brunch app, created with the Brunch CLI.',
|
@@ -212979,7 +213011,7 @@ exports.frameworks = [
|
|
212979
213011
|
{
|
212980
213012
|
name: 'Middleman',
|
212981
213013
|
slug: 'middleman',
|
212982
|
-
demo: 'https://middleman.
|
213014
|
+
demo: 'https://middleman-template.vercel.app',
|
212983
213015
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/middleman.svg',
|
212984
213016
|
tagline: 'Middleman is a static site generator that uses all the shortcuts and tools in modern web development.',
|
212985
213017
|
description: 'A Middleman app, created with the Middleman CLI.',
|
@@ -213013,7 +213045,7 @@ exports.frameworks = [
|
|
213013
213045
|
{
|
213014
213046
|
name: 'Zola',
|
213015
213047
|
slug: 'zola',
|
213016
|
-
demo: 'https://zola.
|
213048
|
+
demo: 'https://zola-template.vercel.app',
|
213017
213049
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/zola.png',
|
213018
213050
|
tagline: 'Everything you need to make a static site engine in one binary.',
|
213019
213051
|
description: 'A Zola app, created with the "Getting Started" tutorial.',
|
@@ -213047,7 +213079,7 @@ exports.frameworks = [
|
|
213047
213079
|
{
|
213048
213080
|
name: 'Vite',
|
213049
213081
|
slug: 'vite',
|
213050
|
-
demo: 'https://vite.
|
213082
|
+
demo: 'https://vite-vue-template.vercel.app',
|
213051
213083
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/vite.svg',
|
213052
213084
|
tagline: 'Vite is a new breed of frontend build tool that significantly improves the frontend development experience.',
|
213053
213085
|
description: 'A Vue.js app, created with Vite.',
|
@@ -213071,7 +213103,7 @@ exports.frameworks = [
|
|
213071
213103
|
},
|
213072
213104
|
devCommand: {
|
213073
213105
|
placeholder: 'vite',
|
213074
|
-
value: 'vite',
|
213106
|
+
value: 'vite --port $PORT',
|
213075
213107
|
},
|
213076
213108
|
outputDirectory: {
|
213077
213109
|
value: 'dist',
|
@@ -213083,7 +213115,7 @@ exports.frameworks = [
|
|
213083
213115
|
{
|
213084
213116
|
name: 'Parcel',
|
213085
213117
|
slug: 'parcel',
|
213086
|
-
demo: 'https://parcel.
|
213118
|
+
demo: 'https://parcel-template.vercel.app',
|
213087
213119
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/parcel.png',
|
213088
213120
|
tagline: 'Parcel is a zero configuration build tool for the web that scales to projects of any size and complexity.',
|
213089
213121
|
description: 'A vanilla web app built with Parcel.',
|
@@ -213181,7 +213213,7 @@ exports.default = def;
|
|
213181
213213
|
/***/ }),
|
213182
213214
|
|
213183
213215
|
/***/ 3734:
|
213184
|
-
/***/ (function(__unused_webpack_module, exports,
|
213216
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_805781__) {
|
213185
213217
|
|
213186
213218
|
"use strict";
|
213187
213219
|
|
@@ -213190,9 +213222,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
213190
213222
|
};
|
213191
213223
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
213192
213224
|
exports.readConfigFile = void 0;
|
213193
|
-
const js_yaml_1 = __importDefault(
|
213194
|
-
const toml_1 = __importDefault(
|
213195
|
-
const fs_1 =
|
213225
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_805781__(641));
|
213226
|
+
const toml_1 = __importDefault(__nested_webpack_require_805781__(9434));
|
213227
|
+
const fs_1 = __nested_webpack_require_805781__(5747);
|
213196
213228
|
const { readFile } = fs_1.promises;
|
213197
213229
|
async function readFileOrNull(file) {
|
213198
213230
|
try {
|
@@ -213241,13 +213273,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
213241
213273
|
/***/ }),
|
213242
213274
|
|
213243
213275
|
/***/ 641:
|
213244
|
-
/***/ ((module, __unused_webpack_exports,
|
213276
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_807387__) => {
|
213245
213277
|
|
213246
213278
|
"use strict";
|
213247
213279
|
|
213248
213280
|
|
213249
213281
|
|
213250
|
-
var yaml =
|
213282
|
+
var yaml = __nested_webpack_require_807387__(9633);
|
213251
213283
|
|
213252
213284
|
|
213253
213285
|
module.exports = yaml;
|
@@ -213256,14 +213288,14 @@ module.exports = yaml;
|
|
213256
213288
|
/***/ }),
|
213257
213289
|
|
213258
213290
|
/***/ 9633:
|
213259
|
-
/***/ ((module, __unused_webpack_exports,
|
213291
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_807561__) => {
|
213260
213292
|
|
213261
213293
|
"use strict";
|
213262
213294
|
|
213263
213295
|
|
213264
213296
|
|
213265
|
-
var loader =
|
213266
|
-
var dumper =
|
213297
|
+
var loader = __nested_webpack_require_807561__(4349);
|
213298
|
+
var dumper = __nested_webpack_require_807561__(8047);
|
213267
213299
|
|
213268
213300
|
|
213269
213301
|
function deprecated(name) {
|
@@ -213273,25 +213305,25 @@ function deprecated(name) {
|
|
213273
213305
|
}
|
213274
213306
|
|
213275
213307
|
|
213276
|
-
module.exports.Type =
|
213277
|
-
module.exports.Schema =
|
213278
|
-
module.exports.FAILSAFE_SCHEMA =
|
213279
|
-
module.exports.JSON_SCHEMA =
|
213280
|
-
module.exports.CORE_SCHEMA =
|
213281
|
-
module.exports.DEFAULT_SAFE_SCHEMA =
|
213282
|
-
module.exports.DEFAULT_FULL_SCHEMA =
|
213308
|
+
module.exports.Type = __nested_webpack_require_807561__(6876);
|
213309
|
+
module.exports.Schema = __nested_webpack_require_807561__(6105);
|
213310
|
+
module.exports.FAILSAFE_SCHEMA = __nested_webpack_require_807561__(8441);
|
213311
|
+
module.exports.JSON_SCHEMA = __nested_webpack_require_807561__(1486);
|
213312
|
+
module.exports.CORE_SCHEMA = __nested_webpack_require_807561__(1112);
|
213313
|
+
module.exports.DEFAULT_SAFE_SCHEMA = __nested_webpack_require_807561__(596);
|
213314
|
+
module.exports.DEFAULT_FULL_SCHEMA = __nested_webpack_require_807561__(9647);
|
213283
213315
|
module.exports.load = loader.load;
|
213284
213316
|
module.exports.loadAll = loader.loadAll;
|
213285
213317
|
module.exports.safeLoad = loader.safeLoad;
|
213286
213318
|
module.exports.safeLoadAll = loader.safeLoadAll;
|
213287
213319
|
module.exports.dump = dumper.dump;
|
213288
213320
|
module.exports.safeDump = dumper.safeDump;
|
213289
|
-
module.exports.YAMLException =
|
213321
|
+
module.exports.YAMLException = __nested_webpack_require_807561__(3237);
|
213290
213322
|
|
213291
213323
|
// Deprecated schema names from JS-YAML 2.0.x
|
213292
|
-
module.exports.MINIMAL_SCHEMA =
|
213293
|
-
module.exports.SAFE_SCHEMA =
|
213294
|
-
module.exports.DEFAULT_SCHEMA =
|
213324
|
+
module.exports.MINIMAL_SCHEMA = __nested_webpack_require_807561__(8441);
|
213325
|
+
module.exports.SAFE_SCHEMA = __nested_webpack_require_807561__(596);
|
213326
|
+
module.exports.DEFAULT_SCHEMA = __nested_webpack_require_807561__(9647);
|
213295
213327
|
|
213296
213328
|
// Deprecated functions from JS-YAML 1.x.x
|
213297
213329
|
module.exports.scan = deprecated('scan');
|
@@ -213370,17 +213402,17 @@ module.exports.extend = extend;
|
|
213370
213402
|
/***/ }),
|
213371
213403
|
|
213372
213404
|
/***/ 8047:
|
213373
|
-
/***/ ((module, __unused_webpack_exports,
|
213405
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_810379__) => {
|
213374
213406
|
|
213375
213407
|
"use strict";
|
213376
213408
|
|
213377
213409
|
|
213378
213410
|
/*eslint-disable no-use-before-define*/
|
213379
213411
|
|
213380
|
-
var common =
|
213381
|
-
var YAMLException =
|
213382
|
-
var DEFAULT_FULL_SCHEMA =
|
213383
|
-
var DEFAULT_SAFE_SCHEMA =
|
213412
|
+
var common = __nested_webpack_require_810379__(903);
|
213413
|
+
var YAMLException = __nested_webpack_require_810379__(3237);
|
213414
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_810379__(9647);
|
213415
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_810379__(596);
|
213384
213416
|
|
213385
213417
|
var _toString = Object.prototype.toString;
|
213386
213418
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -214256,18 +214288,18 @@ module.exports = YAMLException;
|
|
214256
214288
|
/***/ }),
|
214257
214289
|
|
214258
214290
|
/***/ 4349:
|
214259
|
-
/***/ ((module, __unused_webpack_exports,
|
214291
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_838083__) => {
|
214260
214292
|
|
214261
214293
|
"use strict";
|
214262
214294
|
|
214263
214295
|
|
214264
214296
|
/*eslint-disable max-len,no-use-before-define*/
|
214265
214297
|
|
214266
|
-
var common =
|
214267
|
-
var YAMLException =
|
214268
|
-
var Mark =
|
214269
|
-
var DEFAULT_SAFE_SCHEMA =
|
214270
|
-
var DEFAULT_FULL_SCHEMA =
|
214298
|
+
var common = __nested_webpack_require_838083__(903);
|
214299
|
+
var YAMLException = __nested_webpack_require_838083__(3237);
|
214300
|
+
var Mark = __nested_webpack_require_838083__(4926);
|
214301
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_838083__(596);
|
214302
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_838083__(9647);
|
214271
214303
|
|
214272
214304
|
|
214273
214305
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -215889,13 +215921,13 @@ module.exports.safeLoad = safeLoad;
|
|
215889
215921
|
/***/ }),
|
215890
215922
|
|
215891
215923
|
/***/ 4926:
|
215892
|
-
/***/ ((module, __unused_webpack_exports,
|
215924
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_881950__) => {
|
215893
215925
|
|
215894
215926
|
"use strict";
|
215895
215927
|
|
215896
215928
|
|
215897
215929
|
|
215898
|
-
var common =
|
215930
|
+
var common = __nested_webpack_require_881950__(903);
|
215899
215931
|
|
215900
215932
|
|
215901
215933
|
function Mark(name, buffer, position, line, column) {
|
@@ -215973,16 +216005,16 @@ module.exports = Mark;
|
|
215973
216005
|
/***/ }),
|
215974
216006
|
|
215975
216007
|
/***/ 6105:
|
215976
|
-
/***/ ((module, __unused_webpack_exports,
|
216008
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_883612__) => {
|
215977
216009
|
|
215978
216010
|
"use strict";
|
215979
216011
|
|
215980
216012
|
|
215981
216013
|
/*eslint-disable max-len*/
|
215982
216014
|
|
215983
|
-
var common =
|
215984
|
-
var YAMLException =
|
215985
|
-
var Type =
|
216015
|
+
var common = __nested_webpack_require_883612__(903);
|
216016
|
+
var YAMLException = __nested_webpack_require_883612__(3237);
|
216017
|
+
var Type = __nested_webpack_require_883612__(6876);
|
215986
216018
|
|
215987
216019
|
|
215988
216020
|
function compileList(schema, name, result) {
|
@@ -216089,7 +216121,7 @@ module.exports = Schema;
|
|
216089
216121
|
/***/ }),
|
216090
216122
|
|
216091
216123
|
/***/ 1112:
|
216092
|
-
/***/ ((module, __unused_webpack_exports,
|
216124
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_886476__) => {
|
216093
216125
|
|
216094
216126
|
"use strict";
|
216095
216127
|
// Standard YAML's Core schema.
|
@@ -216102,12 +216134,12 @@ module.exports = Schema;
|
|
216102
216134
|
|
216103
216135
|
|
216104
216136
|
|
216105
|
-
var Schema =
|
216137
|
+
var Schema = __nested_webpack_require_886476__(6105);
|
216106
216138
|
|
216107
216139
|
|
216108
216140
|
module.exports = new Schema({
|
216109
216141
|
include: [
|
216110
|
-
|
216142
|
+
__nested_webpack_require_886476__(1486)
|
216111
216143
|
]
|
216112
216144
|
});
|
216113
216145
|
|
@@ -216115,7 +216147,7 @@ module.exports = new Schema({
|
|
216115
216147
|
/***/ }),
|
216116
216148
|
|
216117
216149
|
/***/ 9647:
|
216118
|
-
/***/ ((module, __unused_webpack_exports,
|
216150
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_886946__) => {
|
216119
216151
|
|
216120
216152
|
"use strict";
|
216121
216153
|
// JS-YAML's default schema for `load` function.
|
@@ -216130,17 +216162,17 @@ module.exports = new Schema({
|
|
216130
216162
|
|
216131
216163
|
|
216132
216164
|
|
216133
|
-
var Schema =
|
216165
|
+
var Schema = __nested_webpack_require_886946__(6105);
|
216134
216166
|
|
216135
216167
|
|
216136
216168
|
module.exports = Schema.DEFAULT = new Schema({
|
216137
216169
|
include: [
|
216138
|
-
|
216170
|
+
__nested_webpack_require_886946__(596)
|
216139
216171
|
],
|
216140
216172
|
explicit: [
|
216141
|
-
|
216142
|
-
|
216143
|
-
|
216173
|
+
__nested_webpack_require_886946__(5836),
|
216174
|
+
__nested_webpack_require_886946__(6841),
|
216175
|
+
__nested_webpack_require_886946__(8750)
|
216144
216176
|
]
|
216145
216177
|
});
|
216146
216178
|
|
@@ -216148,7 +216180,7 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
216148
216180
|
/***/ }),
|
216149
216181
|
|
216150
216182
|
/***/ 596:
|
216151
|
-
/***/ ((module, __unused_webpack_exports,
|
216183
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_887640__) => {
|
216152
216184
|
|
216153
216185
|
"use strict";
|
216154
216186
|
// JS-YAML's default schema for `safeLoad` function.
|
@@ -216161,22 +216193,22 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
216161
216193
|
|
216162
216194
|
|
216163
216195
|
|
216164
|
-
var Schema =
|
216196
|
+
var Schema = __nested_webpack_require_887640__(6105);
|
216165
216197
|
|
216166
216198
|
|
216167
216199
|
module.exports = new Schema({
|
216168
216200
|
include: [
|
216169
|
-
|
216201
|
+
__nested_webpack_require_887640__(1112)
|
216170
216202
|
],
|
216171
216203
|
implicit: [
|
216172
|
-
|
216173
|
-
|
216204
|
+
__nested_webpack_require_887640__(7028),
|
216205
|
+
__nested_webpack_require_887640__(7841)
|
216174
216206
|
],
|
216175
216207
|
explicit: [
|
216176
|
-
|
216177
|
-
|
216178
|
-
|
216179
|
-
|
216208
|
+
__nested_webpack_require_887640__(8675),
|
216209
|
+
__nested_webpack_require_887640__(3498),
|
216210
|
+
__nested_webpack_require_887640__(679),
|
216211
|
+
__nested_webpack_require_887640__(7205)
|
216180
216212
|
]
|
216181
216213
|
});
|
216182
216214
|
|
@@ -216184,7 +216216,7 @@ module.exports = new Schema({
|
|
216184
216216
|
/***/ }),
|
216185
216217
|
|
216186
216218
|
/***/ 8441:
|
216187
|
-
/***/ ((module, __unused_webpack_exports,
|
216219
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888352__) => {
|
216188
216220
|
|
216189
216221
|
"use strict";
|
216190
216222
|
// Standard YAML's Failsafe schema.
|
@@ -216194,14 +216226,14 @@ module.exports = new Schema({
|
|
216194
216226
|
|
216195
216227
|
|
216196
216228
|
|
216197
|
-
var Schema =
|
216229
|
+
var Schema = __nested_webpack_require_888352__(6105);
|
216198
216230
|
|
216199
216231
|
|
216200
216232
|
module.exports = new Schema({
|
216201
216233
|
explicit: [
|
216202
|
-
|
216203
|
-
|
216204
|
-
|
216234
|
+
__nested_webpack_require_888352__(5348),
|
216235
|
+
__nested_webpack_require_888352__(7330),
|
216236
|
+
__nested_webpack_require_888352__(293)
|
216205
216237
|
]
|
216206
216238
|
});
|
216207
216239
|
|
@@ -216209,7 +216241,7 @@ module.exports = new Schema({
|
|
216209
216241
|
/***/ }),
|
216210
216242
|
|
216211
216243
|
/***/ 1486:
|
216212
|
-
/***/ ((module, __unused_webpack_exports,
|
216244
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888738__) => {
|
216213
216245
|
|
216214
216246
|
"use strict";
|
216215
216247
|
// Standard YAML's JSON schema.
|
@@ -216223,18 +216255,18 @@ module.exports = new Schema({
|
|
216223
216255
|
|
216224
216256
|
|
216225
216257
|
|
216226
|
-
var Schema =
|
216258
|
+
var Schema = __nested_webpack_require_888738__(6105);
|
216227
216259
|
|
216228
216260
|
|
216229
216261
|
module.exports = new Schema({
|
216230
216262
|
include: [
|
216231
|
-
|
216263
|
+
__nested_webpack_require_888738__(8441)
|
216232
216264
|
],
|
216233
216265
|
implicit: [
|
216234
|
-
|
216235
|
-
|
216236
|
-
|
216237
|
-
|
216266
|
+
__nested_webpack_require_888738__(9074),
|
216267
|
+
__nested_webpack_require_888738__(4308),
|
216268
|
+
__nested_webpack_require_888738__(1167),
|
216269
|
+
__nested_webpack_require_888738__(7862)
|
216238
216270
|
]
|
216239
216271
|
});
|
216240
216272
|
|
@@ -216242,12 +216274,12 @@ module.exports = new Schema({
|
|
216242
216274
|
/***/ }),
|
216243
216275
|
|
216244
216276
|
/***/ 6876:
|
216245
|
-
/***/ ((module, __unused_webpack_exports,
|
216277
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_889436__) => {
|
216246
216278
|
|
216247
216279
|
"use strict";
|
216248
216280
|
|
216249
216281
|
|
216250
|
-
var YAMLException =
|
216282
|
+
var YAMLException = __nested_webpack_require_889436__(3237);
|
216251
216283
|
|
216252
216284
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
216253
216285
|
'kind',
|
@@ -216311,7 +216343,7 @@ module.exports = Type;
|
|
216311
216343
|
/***/ }),
|
216312
216344
|
|
216313
216345
|
/***/ 8675:
|
216314
|
-
/***/ ((module, __unused_webpack_exports,
|
216346
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_891120__) => {
|
216315
216347
|
|
216316
216348
|
"use strict";
|
216317
216349
|
|
@@ -216326,7 +216358,7 @@ try {
|
|
216326
216358
|
NodeBuffer = _require('buffer').Buffer;
|
216327
216359
|
} catch (__) {}
|
216328
216360
|
|
216329
|
-
var Type =
|
216361
|
+
var Type = __nested_webpack_require_891120__(6876);
|
216330
216362
|
|
216331
216363
|
|
216332
216364
|
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
@@ -216457,12 +216489,12 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
|
|
216457
216489
|
/***/ }),
|
216458
216490
|
|
216459
216491
|
/***/ 4308:
|
216460
|
-
/***/ ((module, __unused_webpack_exports,
|
216492
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_894512__) => {
|
216461
216493
|
|
216462
216494
|
"use strict";
|
216463
216495
|
|
216464
216496
|
|
216465
|
-
var Type =
|
216497
|
+
var Type = __nested_webpack_require_894512__(6876);
|
216466
216498
|
|
216467
216499
|
function resolveYamlBoolean(data) {
|
216468
216500
|
if (data === null) return false;
|
@@ -216500,13 +216532,13 @@ module.exports = new Type('tag:yaml.org,2002:bool', {
|
|
216500
216532
|
/***/ }),
|
216501
216533
|
|
216502
216534
|
/***/ 7862:
|
216503
|
-
/***/ ((module, __unused_webpack_exports,
|
216535
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_895585__) => {
|
216504
216536
|
|
216505
216537
|
"use strict";
|
216506
216538
|
|
216507
216539
|
|
216508
|
-
var common =
|
216509
|
-
var Type =
|
216540
|
+
var common = __nested_webpack_require_895585__(903);
|
216541
|
+
var Type = __nested_webpack_require_895585__(6876);
|
216510
216542
|
|
216511
216543
|
var YAML_FLOAT_PATTERN = new RegExp(
|
216512
216544
|
// 2.5e4, 2.5 and integers
|
@@ -216624,13 +216656,13 @@ module.exports = new Type('tag:yaml.org,2002:float', {
|
|
216624
216656
|
/***/ }),
|
216625
216657
|
|
216626
216658
|
/***/ 1167:
|
216627
|
-
/***/ ((module, __unused_webpack_exports,
|
216659
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898531__) => {
|
216628
216660
|
|
216629
216661
|
"use strict";
|
216630
216662
|
|
216631
216663
|
|
216632
|
-
var common =
|
216633
|
-
var Type =
|
216664
|
+
var common = __nested_webpack_require_898531__(903);
|
216665
|
+
var Type = __nested_webpack_require_898531__(6876);
|
216634
216666
|
|
216635
216667
|
function isHexCode(c) {
|
216636
216668
|
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
@@ -216805,7 +216837,7 @@ module.exports = new Type('tag:yaml.org,2002:int', {
|
|
216805
216837
|
/***/ }),
|
216806
216838
|
|
216807
216839
|
/***/ 8750:
|
216808
|
-
/***/ ((module, __unused_webpack_exports,
|
216840
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_902703__) => {
|
216809
216841
|
|
216810
216842
|
"use strict";
|
216811
216843
|
|
@@ -216828,7 +216860,7 @@ try {
|
|
216828
216860
|
if (typeof window !== 'undefined') esprima = window.esprima;
|
216829
216861
|
}
|
216830
216862
|
|
216831
|
-
var Type =
|
216863
|
+
var Type = __nested_webpack_require_902703__(6876);
|
216832
216864
|
|
216833
216865
|
function resolveJavascriptFunction(data) {
|
216834
216866
|
if (data === null) return false;
|
@@ -216905,12 +216937,12 @@ module.exports = new Type('tag:yaml.org,2002:js/function', {
|
|
216905
216937
|
/***/ }),
|
216906
216938
|
|
216907
216939
|
/***/ 6841:
|
216908
|
-
/***/ ((module, __unused_webpack_exports,
|
216940
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_905600__) => {
|
216909
216941
|
|
216910
216942
|
"use strict";
|
216911
216943
|
|
216912
216944
|
|
216913
|
-
var Type =
|
216945
|
+
var Type = __nested_webpack_require_905600__(6876);
|
216914
216946
|
|
216915
216947
|
function resolveJavascriptRegExp(data) {
|
216916
216948
|
if (data === null) return false;
|
@@ -216973,12 +217005,12 @@ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
|
216973
217005
|
/***/ }),
|
216974
217006
|
|
216975
217007
|
/***/ 5836:
|
216976
|
-
/***/ ((module, __unused_webpack_exports,
|
217008
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_907271__) => {
|
216977
217009
|
|
216978
217010
|
"use strict";
|
216979
217011
|
|
216980
217012
|
|
216981
|
-
var Type =
|
217013
|
+
var Type = __nested_webpack_require_907271__(6876);
|
216982
217014
|
|
216983
217015
|
function resolveJavascriptUndefined() {
|
216984
217016
|
return true;
|
@@ -217009,12 +217041,12 @@ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
|
217009
217041
|
/***/ }),
|
217010
217042
|
|
217011
217043
|
/***/ 293:
|
217012
|
-
/***/ ((module, __unused_webpack_exports,
|
217044
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_907942__) => {
|
217013
217045
|
|
217014
217046
|
"use strict";
|
217015
217047
|
|
217016
217048
|
|
217017
|
-
var Type =
|
217049
|
+
var Type = __nested_webpack_require_907942__(6876);
|
217018
217050
|
|
217019
217051
|
module.exports = new Type('tag:yaml.org,2002:map', {
|
217020
217052
|
kind: 'mapping',
|
@@ -217025,12 +217057,12 @@ module.exports = new Type('tag:yaml.org,2002:map', {
|
|
217025
217057
|
/***/ }),
|
217026
217058
|
|
217027
217059
|
/***/ 7841:
|
217028
|
-
/***/ ((module, __unused_webpack_exports,
|
217060
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_908234__) => {
|
217029
217061
|
|
217030
217062
|
"use strict";
|
217031
217063
|
|
217032
217064
|
|
217033
|
-
var Type =
|
217065
|
+
var Type = __nested_webpack_require_908234__(6876);
|
217034
217066
|
|
217035
217067
|
function resolveYamlMerge(data) {
|
217036
217068
|
return data === '<<' || data === null;
|
@@ -217045,12 +217077,12 @@ module.exports = new Type('tag:yaml.org,2002:merge', {
|
|
217045
217077
|
/***/ }),
|
217046
217078
|
|
217047
217079
|
/***/ 9074:
|
217048
|
-
/***/ ((module, __unused_webpack_exports,
|
217080
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_908566__) => {
|
217049
217081
|
|
217050
217082
|
"use strict";
|
217051
217083
|
|
217052
217084
|
|
217053
|
-
var Type =
|
217085
|
+
var Type = __nested_webpack_require_908566__(6876);
|
217054
217086
|
|
217055
217087
|
function resolveYamlNull(data) {
|
217056
217088
|
if (data === null) return true;
|
@@ -217087,12 +217119,12 @@ module.exports = new Type('tag:yaml.org,2002:null', {
|
|
217087
217119
|
/***/ }),
|
217088
217120
|
|
217089
217121
|
/***/ 3498:
|
217090
|
-
/***/ ((module, __unused_webpack_exports,
|
217122
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_909429__) => {
|
217091
217123
|
|
217092
217124
|
"use strict";
|
217093
217125
|
|
217094
217126
|
|
217095
|
-
var Type =
|
217127
|
+
var Type = __nested_webpack_require_909429__(6876);
|
217096
217128
|
|
217097
217129
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
217098
217130
|
var _toString = Object.prototype.toString;
|
@@ -217139,12 +217171,12 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
|
|
217139
217171
|
/***/ }),
|
217140
217172
|
|
217141
217173
|
/***/ 679:
|
217142
|
-
/***/ ((module, __unused_webpack_exports,
|
217174
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_910553__) => {
|
217143
217175
|
|
217144
217176
|
"use strict";
|
217145
217177
|
|
217146
217178
|
|
217147
|
-
var Type =
|
217179
|
+
var Type = __nested_webpack_require_910553__(6876);
|
217148
217180
|
|
217149
217181
|
var _toString = Object.prototype.toString;
|
217150
217182
|
|
@@ -217200,12 +217232,12 @@ module.exports = new Type('tag:yaml.org,2002:pairs', {
|
|
217200
217232
|
/***/ }),
|
217201
217233
|
|
217202
217234
|
/***/ 7330:
|
217203
|
-
/***/ ((module, __unused_webpack_exports,
|
217235
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_911739__) => {
|
217204
217236
|
|
217205
217237
|
"use strict";
|
217206
217238
|
|
217207
217239
|
|
217208
|
-
var Type =
|
217240
|
+
var Type = __nested_webpack_require_911739__(6876);
|
217209
217241
|
|
217210
217242
|
module.exports = new Type('tag:yaml.org,2002:seq', {
|
217211
217243
|
kind: 'sequence',
|
@@ -217216,12 +217248,12 @@ module.exports = new Type('tag:yaml.org,2002:seq', {
|
|
217216
217248
|
/***/ }),
|
217217
217249
|
|
217218
217250
|
/***/ 7205:
|
217219
|
-
/***/ ((module, __unused_webpack_exports,
|
217251
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912032__) => {
|
217220
217252
|
|
217221
217253
|
"use strict";
|
217222
217254
|
|
217223
217255
|
|
217224
|
-
var Type =
|
217256
|
+
var Type = __nested_webpack_require_912032__(6876);
|
217225
217257
|
|
217226
217258
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
217227
217259
|
|
@@ -217253,12 +217285,12 @@ module.exports = new Type('tag:yaml.org,2002:set', {
|
|
217253
217285
|
/***/ }),
|
217254
217286
|
|
217255
217287
|
/***/ 5348:
|
217256
|
-
/***/ ((module, __unused_webpack_exports,
|
217288
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912681__) => {
|
217257
217289
|
|
217258
217290
|
"use strict";
|
217259
217291
|
|
217260
217292
|
|
217261
|
-
var Type =
|
217293
|
+
var Type = __nested_webpack_require_912681__(6876);
|
217262
217294
|
|
217263
217295
|
module.exports = new Type('tag:yaml.org,2002:str', {
|
217264
217296
|
kind: 'scalar',
|
@@ -217269,12 +217301,12 @@ module.exports = new Type('tag:yaml.org,2002:str', {
|
|
217269
217301
|
/***/ }),
|
217270
217302
|
|
217271
217303
|
/***/ 7028:
|
217272
|
-
/***/ ((module, __unused_webpack_exports,
|
217304
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912972__) => {
|
217273
217305
|
|
217274
217306
|
"use strict";
|
217275
217307
|
|
217276
217308
|
|
217277
|
-
var Type =
|
217309
|
+
var Type = __nested_webpack_require_912972__(6876);
|
217278
217310
|
|
217279
217311
|
var YAML_DATE_REGEXP = new RegExp(
|
217280
217312
|
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
@@ -217365,7 +217397,7 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
|
217365
217397
|
/***/ }),
|
217366
217398
|
|
217367
217399
|
/***/ 7276:
|
217368
|
-
/***/ (function(__unused_webpack_module, exports,
|
217400
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_915653__) {
|
217369
217401
|
|
217370
217402
|
"use strict";
|
217371
217403
|
|
@@ -217373,13 +217405,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217373
217405
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
217374
217406
|
};
|
217375
217407
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217376
|
-
exports.
|
217377
|
-
const fs_extra_1 = __importDefault(
|
217378
|
-
const path_1 =
|
217379
|
-
const glob_1 = __importDefault(
|
217380
|
-
const normalize_path_1 =
|
217381
|
-
const
|
217382
|
-
const _1 = __nested_webpack_require_915739__(2855);
|
217408
|
+
exports._experimental_updateRoutesManifest = exports._experimental_updateFunctionsManifest = exports._experimental_convertRuntimeToPlugin = void 0;
|
217409
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_915653__(5392));
|
217410
|
+
const path_1 = __nested_webpack_require_915653__(5622);
|
217411
|
+
const glob_1 = __importDefault(__nested_webpack_require_915653__(4240));
|
217412
|
+
const normalize_path_1 = __nested_webpack_require_915653__(6261);
|
217413
|
+
const _1 = __nested_webpack_require_915653__(2855);
|
217383
217414
|
// `.output` was already created by the Build Command, so we have
|
217384
217415
|
// to ensure its contents don't get bundled into the Lambda. Similarily,
|
217385
217416
|
// we don't want to bundle anything from `.vercel` either. Lastly,
|
@@ -217416,7 +217447,7 @@ const getSourceFiles = async (workPath, ignoreFilter) => {
|
|
217416
217447
|
* @param packageName - the name of the package, for example `vercel-plugin-python`
|
217417
217448
|
* @param ext - the file extension, for example `.py`
|
217418
217449
|
*/
|
217419
|
-
function
|
217450
|
+
function _experimental_convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
217420
217451
|
// This `build()` signature should match `plugin.build()` signature in `vercel build`.
|
217421
217452
|
return async function build({ workPath }) {
|
217422
217453
|
// We also don't want to provide any files to Runtimes that were ignored
|
@@ -217462,8 +217493,7 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217462
217493
|
skipDownload: true,
|
217463
217494
|
},
|
217464
217495
|
});
|
217465
|
-
|
217466
|
-
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
217496
|
+
const lambdaFiles = output.files;
|
217467
217497
|
// When deploying, the `files` that are passed to the Legacy Runtimes already
|
217468
217498
|
// have certain files that are ignored stripped, but locally, that list of
|
217469
217499
|
// files isn't used by the Legacy Runtimes, so we need to apply the filters
|
@@ -217594,10 +217624,10 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217594
217624
|
}
|
217595
217625
|
// Add any Serverless Functions that were exposed by the Legacy Runtime
|
217596
217626
|
// to the `functions-manifest.json` file provided in `.output`.
|
217597
|
-
await
|
217627
|
+
await _experimental_updateFunctionsManifest({ workPath, pages });
|
217598
217628
|
};
|
217599
217629
|
}
|
217600
|
-
exports.
|
217630
|
+
exports._experimental_convertRuntimeToPlugin = _experimental_convertRuntimeToPlugin;
|
217601
217631
|
async function readJson(filePath) {
|
217602
217632
|
try {
|
217603
217633
|
const str = await fs_extra_1.default.readFile(filePath, 'utf8');
|
@@ -217614,7 +217644,7 @@ async function readJson(filePath) {
|
|
217614
217644
|
* If `.output/functions-manifest.json` exists, append to the pages
|
217615
217645
|
* property. Otherwise write a new file.
|
217616
217646
|
*/
|
217617
|
-
async function
|
217647
|
+
async function _experimental_updateFunctionsManifest({ workPath, pages, }) {
|
217618
217648
|
const functionsManifestPath = path_1.join(workPath, '.output', 'functions-manifest.json');
|
217619
217649
|
const functionsManifest = await readJson(functionsManifestPath);
|
217620
217650
|
if (!functionsManifest.version)
|
@@ -217626,12 +217656,12 @@ async function updateFunctionsManifest({ workPath, pages, }) {
|
|
217626
217656
|
}
|
217627
217657
|
await fs_extra_1.default.writeFile(functionsManifestPath, JSON.stringify(functionsManifest));
|
217628
217658
|
}
|
217629
|
-
exports.
|
217659
|
+
exports._experimental_updateFunctionsManifest = _experimental_updateFunctionsManifest;
|
217630
217660
|
/**
|
217631
217661
|
* Append routes to the `routes-manifest.json` file.
|
217632
217662
|
* If the file does not exist, it will be created.
|
217633
217663
|
*/
|
217634
|
-
async function
|
217664
|
+
async function _experimental_updateRoutesManifest({ workPath, redirects, rewrites, headers, dynamicRoutes, staticRoutes, }) {
|
217635
217665
|
const routesManifestPath = path_1.join(workPath, '.output', 'routes-manifest.json');
|
217636
217666
|
const routesManifest = await readJson(routesManifestPath);
|
217637
217667
|
if (!routesManifest.version)
|
@@ -217665,18 +217695,18 @@ async function updateRoutesManifest({ workPath, redirects, rewrites, headers, dy
|
|
217665
217695
|
}
|
217666
217696
|
await fs_extra_1.default.writeFile(routesManifestPath, JSON.stringify(routesManifest));
|
217667
217697
|
}
|
217668
|
-
exports.
|
217698
|
+
exports._experimental_updateRoutesManifest = _experimental_updateRoutesManifest;
|
217669
217699
|
|
217670
217700
|
|
217671
217701
|
/***/ }),
|
217672
217702
|
|
217673
217703
|
/***/ 1868:
|
217674
|
-
/***/ ((__unused_webpack_module, exports,
|
217704
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_931560__) => {
|
217675
217705
|
|
217676
217706
|
"use strict";
|
217677
217707
|
|
217678
217708
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217679
|
-
const _1 =
|
217709
|
+
const _1 = __nested_webpack_require_931560__(2855);
|
217680
217710
|
function debug(message, ...additional) {
|
217681
217711
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217682
217712
|
console.log(message, ...additional);
|
@@ -217688,7 +217718,7 @@ exports.default = debug;
|
|
217688
217718
|
/***/ }),
|
217689
217719
|
|
217690
217720
|
/***/ 4246:
|
217691
|
-
/***/ (function(__unused_webpack_module, exports,
|
217721
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_931945__) {
|
217692
217722
|
|
217693
217723
|
"use strict";
|
217694
217724
|
|
@@ -217697,11 +217727,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217697
217727
|
};
|
217698
217728
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217699
217729
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217700
|
-
const minimatch_1 = __importDefault(
|
217701
|
-
const semver_1 =
|
217702
|
-
const path_1 =
|
217703
|
-
const frameworks_1 = __importDefault(
|
217704
|
-
const _1 =
|
217730
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_931945__(9566));
|
217731
|
+
const semver_1 = __nested_webpack_require_931945__(2879);
|
217732
|
+
const path_1 = __nested_webpack_require_931945__(5622);
|
217733
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_931945__(8438));
|
217734
|
+
const _1 = __nested_webpack_require_931945__(2855);
|
217705
217735
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217706
217736
|
// We need to sort the file paths by alphabet to make
|
217707
217737
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -218530,7 +218560,7 @@ function sortFilesBySegmentCount(fileA, fileB) {
|
|
218530
218560
|
/***/ }),
|
218531
218561
|
|
218532
218562
|
/***/ 1182:
|
218533
|
-
/***/ (function(__unused_webpack_module, exports,
|
218563
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_963922__) {
|
218534
218564
|
|
218535
218565
|
"use strict";
|
218536
218566
|
|
@@ -218539,8 +218569,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218539
218569
|
};
|
218540
218570
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218541
218571
|
exports.detectFileSystemAPI = void 0;
|
218542
|
-
const semver_1 = __importDefault(
|
218543
|
-
const _1 =
|
218572
|
+
const semver_1 = __importDefault(__nested_webpack_require_963922__(2879));
|
218573
|
+
const _1 = __nested_webpack_require_963922__(2855);
|
218544
218574
|
const enableFileSystemApiFrameworks = new Set(['solidstart']);
|
218545
218575
|
/**
|
218546
218576
|
* If the Deployment can be built with the new File System API,
|
@@ -218941,7 +218971,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218941
218971
|
/***/ }),
|
218942
218972
|
|
218943
218973
|
/***/ 2397:
|
218944
|
-
/***/ (function(__unused_webpack_module, exports,
|
218974
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_979016__) {
|
218945
218975
|
|
218946
218976
|
"use strict";
|
218947
218977
|
|
@@ -218949,8 +218979,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218949
218979
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218950
218980
|
};
|
218951
218981
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218952
|
-
const assert_1 = __importDefault(
|
218953
|
-
const into_stream_1 = __importDefault(
|
218982
|
+
const assert_1 = __importDefault(__nested_webpack_require_979016__(2357));
|
218983
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_979016__(6130));
|
218954
218984
|
class FileBlob {
|
218955
218985
|
constructor({ mode = 0o100644, contentType, data }) {
|
218956
218986
|
assert_1.default(typeof mode === 'number');
|
@@ -218982,7 +219012,7 @@ exports.default = FileBlob;
|
|
218982
219012
|
/***/ }),
|
218983
219013
|
|
218984
219014
|
/***/ 9331:
|
218985
|
-
/***/ (function(__unused_webpack_module, exports,
|
219015
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_980468__) {
|
218986
219016
|
|
218987
219017
|
"use strict";
|
218988
219018
|
|
@@ -218990,11 +219020,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218990
219020
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218991
219021
|
};
|
218992
219022
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218993
|
-
const assert_1 = __importDefault(
|
218994
|
-
const fs_extra_1 = __importDefault(
|
218995
|
-
const multistream_1 = __importDefault(
|
218996
|
-
const path_1 = __importDefault(
|
218997
|
-
const async_sema_1 = __importDefault(
|
219023
|
+
const assert_1 = __importDefault(__nested_webpack_require_980468__(2357));
|
219024
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_980468__(5392));
|
219025
|
+
const multistream_1 = __importDefault(__nested_webpack_require_980468__(8179));
|
219026
|
+
const path_1 = __importDefault(__nested_webpack_require_980468__(5622));
|
219027
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_980468__(5758));
|
218998
219028
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218999
219029
|
class FileFsRef {
|
219000
219030
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -219060,7 +219090,7 @@ exports.default = FileFsRef;
|
|
219060
219090
|
/***/ }),
|
219061
219091
|
|
219062
219092
|
/***/ 5187:
|
219063
|
-
/***/ (function(__unused_webpack_module, exports,
|
219093
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_983272__) {
|
219064
219094
|
|
219065
219095
|
"use strict";
|
219066
219096
|
|
@@ -219068,11 +219098,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219068
219098
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219069
219099
|
};
|
219070
219100
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219071
|
-
const assert_1 = __importDefault(
|
219072
|
-
const node_fetch_1 = __importDefault(
|
219073
|
-
const multistream_1 = __importDefault(
|
219074
|
-
const async_retry_1 = __importDefault(
|
219075
|
-
const async_sema_1 = __importDefault(
|
219101
|
+
const assert_1 = __importDefault(__nested_webpack_require_983272__(2357));
|
219102
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_983272__(2197));
|
219103
|
+
const multistream_1 = __importDefault(__nested_webpack_require_983272__(8179));
|
219104
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_983272__(3691));
|
219105
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_983272__(5758));
|
219076
219106
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
219077
219107
|
class BailableError extends Error {
|
219078
219108
|
constructor(...args) {
|
@@ -219153,7 +219183,7 @@ exports.default = FileRef;
|
|
219153
219183
|
/***/ }),
|
219154
219184
|
|
219155
219185
|
/***/ 1611:
|
219156
|
-
/***/ (function(__unused_webpack_module, exports,
|
219186
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986673__) {
|
219157
219187
|
|
219158
219188
|
"use strict";
|
219159
219189
|
|
@@ -219162,10 +219192,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219162
219192
|
};
|
219163
219193
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219164
219194
|
exports.isSymbolicLink = void 0;
|
219165
|
-
const path_1 = __importDefault(
|
219166
|
-
const debug_1 = __importDefault(
|
219167
|
-
const file_fs_ref_1 = __importDefault(
|
219168
|
-
const fs_extra_1 =
|
219195
|
+
const path_1 = __importDefault(__nested_webpack_require_986673__(5622));
|
219196
|
+
const debug_1 = __importDefault(__nested_webpack_require_986673__(1868));
|
219197
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_986673__(9331));
|
219198
|
+
const fs_extra_1 = __nested_webpack_require_986673__(5392);
|
219169
219199
|
const S_IFMT = 61440; /* 0170000 type of file */
|
219170
219200
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
219171
219201
|
function isSymbolicLink(mode) {
|
@@ -219227,14 +219257,14 @@ exports.default = download;
|
|
219227
219257
|
/***/ }),
|
219228
219258
|
|
219229
219259
|
/***/ 3838:
|
219230
|
-
/***/ ((__unused_webpack_module, exports,
|
219260
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_989498__) => {
|
219231
219261
|
|
219232
219262
|
"use strict";
|
219233
219263
|
|
219234
219264
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219235
|
-
const path_1 =
|
219236
|
-
const os_1 =
|
219237
|
-
const fs_extra_1 =
|
219265
|
+
const path_1 = __nested_webpack_require_989498__(5622);
|
219266
|
+
const os_1 = __nested_webpack_require_989498__(2087);
|
219267
|
+
const fs_extra_1 = __nested_webpack_require_989498__(5392);
|
219238
219268
|
async function getWritableDirectory() {
|
219239
219269
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
219240
219270
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -219247,7 +219277,7 @@ exports.default = getWritableDirectory;
|
|
219247
219277
|
/***/ }),
|
219248
219278
|
|
219249
219279
|
/***/ 4240:
|
219250
|
-
/***/ (function(__unused_webpack_module, exports,
|
219280
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_990078__) {
|
219251
219281
|
|
219252
219282
|
"use strict";
|
219253
219283
|
|
@@ -219255,13 +219285,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219255
219285
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219256
219286
|
};
|
219257
219287
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219258
|
-
const path_1 = __importDefault(
|
219259
|
-
const assert_1 = __importDefault(
|
219260
|
-
const glob_1 = __importDefault(
|
219261
|
-
const util_1 =
|
219262
|
-
const fs_extra_1 =
|
219263
|
-
const normalize_path_1 =
|
219264
|
-
const file_fs_ref_1 = __importDefault(
|
219288
|
+
const path_1 = __importDefault(__nested_webpack_require_990078__(5622));
|
219289
|
+
const assert_1 = __importDefault(__nested_webpack_require_990078__(2357));
|
219290
|
+
const glob_1 = __importDefault(__nested_webpack_require_990078__(1104));
|
219291
|
+
const util_1 = __nested_webpack_require_990078__(1669);
|
219292
|
+
const fs_extra_1 = __nested_webpack_require_990078__(5392);
|
219293
|
+
const normalize_path_1 = __nested_webpack_require_990078__(6261);
|
219294
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_990078__(9331));
|
219265
219295
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
219266
219296
|
async function glob(pattern, opts, mountpoint) {
|
219267
219297
|
let options;
|
@@ -219307,7 +219337,7 @@ exports.default = glob;
|
|
219307
219337
|
/***/ }),
|
219308
219338
|
|
219309
219339
|
/***/ 7903:
|
219310
|
-
/***/ (function(__unused_webpack_module, exports,
|
219340
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_992274__) {
|
219311
219341
|
|
219312
219342
|
"use strict";
|
219313
219343
|
|
@@ -219316,9 +219346,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219316
219346
|
};
|
219317
219347
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219318
219348
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
219319
|
-
const semver_1 =
|
219320
|
-
const errors_1 =
|
219321
|
-
const debug_1 = __importDefault(
|
219349
|
+
const semver_1 = __nested_webpack_require_992274__(2879);
|
219350
|
+
const errors_1 = __nested_webpack_require_992274__(3983);
|
219351
|
+
const debug_1 = __importDefault(__nested_webpack_require_992274__(1868));
|
219322
219352
|
const allOptions = [
|
219323
219353
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
219324
219354
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -219412,7 +219442,7 @@ exports.normalizePath = normalizePath;
|
|
219412
219442
|
/***/ }),
|
219413
219443
|
|
219414
219444
|
/***/ 7792:
|
219415
|
-
/***/ (function(__unused_webpack_module, exports,
|
219445
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_996142__) {
|
219416
219446
|
|
219417
219447
|
"use strict";
|
219418
219448
|
|
@@ -219421,9 +219451,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219421
219451
|
};
|
219422
219452
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219423
219453
|
exports.readConfigFile = void 0;
|
219424
|
-
const js_yaml_1 = __importDefault(
|
219425
|
-
const toml_1 = __importDefault(
|
219426
|
-
const fs_extra_1 =
|
219454
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_996142__(6540));
|
219455
|
+
const toml_1 = __importDefault(__nested_webpack_require_996142__(9434));
|
219456
|
+
const fs_extra_1 = __nested_webpack_require_996142__(5392);
|
219427
219457
|
async function readFileOrNull(file) {
|
219428
219458
|
try {
|
219429
219459
|
const data = await fs_extra_1.readFile(file);
|
@@ -219478,7 +219508,7 @@ exports.default = rename;
|
|
219478
219508
|
/***/ }),
|
219479
219509
|
|
219480
219510
|
/***/ 1442:
|
219481
|
-
/***/ (function(__unused_webpack_module, exports,
|
219511
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997935__) {
|
219482
219512
|
|
219483
219513
|
"use strict";
|
219484
219514
|
|
@@ -219486,15 +219516,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219486
219516
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219487
219517
|
};
|
219488
219518
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219489
|
-
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
219490
|
-
const assert_1 = __importDefault(
|
219491
|
-
const fs_extra_1 = __importDefault(
|
219492
|
-
const path_1 = __importDefault(
|
219493
|
-
const debug_1 = __importDefault(
|
219494
|
-
const cross_spawn_1 = __importDefault(
|
219495
|
-
const util_1 =
|
219496
|
-
const errors_1 =
|
219497
|
-
const node_version_1 =
|
219519
|
+
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runCustomInstallCommand = exports.getEnvForPackageManager = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
219520
|
+
const assert_1 = __importDefault(__nested_webpack_require_997935__(2357));
|
219521
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_997935__(5392));
|
219522
|
+
const path_1 = __importDefault(__nested_webpack_require_997935__(5622));
|
219523
|
+
const debug_1 = __importDefault(__nested_webpack_require_997935__(1868));
|
219524
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_997935__(7618));
|
219525
|
+
const util_1 = __nested_webpack_require_997935__(1669);
|
219526
|
+
const errors_1 = __nested_webpack_require_997935__(3983);
|
219527
|
+
const node_version_1 = __nested_webpack_require_997935__(7903);
|
219498
219528
|
function spawnAsync(command, args, opts = {}) {
|
219499
219529
|
return new Promise((resolve, reject) => {
|
219500
219530
|
const stderrLogs = [];
|
@@ -219704,36 +219734,66 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
219704
219734
|
const opts = { cwd: destPath, ...spawnOpts };
|
219705
219735
|
const env = opts.env ? { ...opts.env } : { ...process.env };
|
219706
219736
|
delete env.NODE_ENV;
|
219707
|
-
opts.env =
|
219737
|
+
opts.env = getEnvForPackageManager({
|
219738
|
+
cliType,
|
219739
|
+
lockfileVersion,
|
219740
|
+
nodeVersion,
|
219741
|
+
env,
|
219742
|
+
});
|
219708
219743
|
let commandArgs;
|
219709
219744
|
if (cliType === 'npm') {
|
219710
219745
|
opts.prettyCommand = 'npm install';
|
219711
219746
|
commandArgs = args
|
219712
219747
|
.filter(a => a !== '--prefer-offline')
|
219713
219748
|
.concat(['install', '--no-audit', '--unsafe-perm']);
|
219714
|
-
|
219749
|
+
}
|
219750
|
+
else {
|
219751
|
+
opts.prettyCommand = 'yarn install';
|
219752
|
+
commandArgs = ['install', ...args];
|
219753
|
+
}
|
219754
|
+
if (process.env.NPM_ONLY_PRODUCTION) {
|
219755
|
+
commandArgs.push('--production');
|
219756
|
+
}
|
219757
|
+
return spawnAsync(cliType, commandArgs, opts);
|
219758
|
+
}
|
219759
|
+
exports.runNpmInstall = runNpmInstall;
|
219760
|
+
function getEnvForPackageManager({ cliType, lockfileVersion, nodeVersion, env, }) {
|
219761
|
+
const newEnv = { ...env };
|
219762
|
+
if (cliType === 'npm') {
|
219715
219763
|
if (typeof lockfileVersion === 'number' &&
|
219716
219764
|
lockfileVersion >= 2 &&
|
219717
219765
|
((nodeVersion === null || nodeVersion === void 0 ? void 0 : nodeVersion.major) || 0) < 16) {
|
219718
219766
|
// Ensure that npm 7 is at the beginning of the `$PATH`
|
219719
|
-
|
219767
|
+
newEnv.PATH = `/node16/bin-npm7:${env.PATH}`;
|
219720
219768
|
console.log('Detected `package-lock.json` generated by npm 7...');
|
219721
219769
|
}
|
219722
219770
|
}
|
219723
219771
|
else {
|
219724
|
-
opts.prettyCommand = 'yarn install';
|
219725
|
-
commandArgs = ['install', ...args];
|
219726
219772
|
// Yarn v2 PnP mode may be activated, so force "node-modules" linker style
|
219727
219773
|
if (!env.YARN_NODE_LINKER) {
|
219728
|
-
|
219774
|
+
newEnv.YARN_NODE_LINKER = 'node-modules';
|
219729
219775
|
}
|
219730
219776
|
}
|
219731
|
-
|
219732
|
-
commandArgs.push('--production');
|
219733
|
-
}
|
219734
|
-
return spawnAsync(cliType, commandArgs, opts);
|
219777
|
+
return newEnv;
|
219735
219778
|
}
|
219736
|
-
exports.
|
219779
|
+
exports.getEnvForPackageManager = getEnvForPackageManager;
|
219780
|
+
async function runCustomInstallCommand({ destPath, installCommand, nodeVersion, spawnOpts, }) {
|
219781
|
+
console.log(`Running "install" command: \`${installCommand}\`...`);
|
219782
|
+
const { cliType, lockfileVersion } = await scanParentDirs(destPath);
|
219783
|
+
const env = getEnvForPackageManager({
|
219784
|
+
cliType,
|
219785
|
+
lockfileVersion,
|
219786
|
+
nodeVersion,
|
219787
|
+
env: (spawnOpts === null || spawnOpts === void 0 ? void 0 : spawnOpts.env) || {},
|
219788
|
+
});
|
219789
|
+
debug_1.default(`Running with $PATH:`, (env === null || env === void 0 ? void 0 : env.PATH) || '');
|
219790
|
+
await execCommand(installCommand, {
|
219791
|
+
...spawnOpts,
|
219792
|
+
env,
|
219793
|
+
cwd: destPath,
|
219794
|
+
});
|
219795
|
+
}
|
219796
|
+
exports.runCustomInstallCommand = runCustomInstallCommand;
|
219737
219797
|
async function runPackageJsonScript(destPath, scriptNames, spawnOpts) {
|
219738
219798
|
assert_1.default(path_1.default.isAbsolute(destPath));
|
219739
219799
|
const { packageJson, cliType, lockfileVersion } = await scanParentDirs(destPath, true);
|
@@ -219742,21 +219802,24 @@ async function runPackageJsonScript(destPath, scriptNames, spawnOpts) {
|
|
219742
219802
|
return false;
|
219743
219803
|
debug_1.default('Running user script...');
|
219744
219804
|
const runScriptTime = Date.now();
|
219745
|
-
const opts = {
|
219746
|
-
|
219805
|
+
const opts = {
|
219806
|
+
cwd: destPath,
|
219807
|
+
...spawnOpts,
|
219808
|
+
env: getEnvForPackageManager({
|
219809
|
+
cliType,
|
219810
|
+
lockfileVersion,
|
219811
|
+
nodeVersion: undefined,
|
219812
|
+
env: {
|
219813
|
+
...process.env,
|
219814
|
+
...spawnOpts === null || spawnOpts === void 0 ? void 0 : spawnOpts.env,
|
219815
|
+
},
|
219816
|
+
}),
|
219817
|
+
};
|
219747
219818
|
if (cliType === 'npm') {
|
219748
219819
|
opts.prettyCommand = `npm run ${scriptName}`;
|
219749
|
-
if (typeof lockfileVersion === 'number' && lockfileVersion >= 2) {
|
219750
|
-
// Ensure that npm 7 is at the beginning of the `$PATH`
|
219751
|
-
env.PATH = `/node16/bin-npm7:${env.PATH}`;
|
219752
|
-
}
|
219753
219820
|
}
|
219754
219821
|
else {
|
219755
219822
|
opts.prettyCommand = `yarn run ${scriptName}`;
|
219756
|
-
// Yarn v2 PnP mode may be activated, so force "node-modules" linker style
|
219757
|
-
if (!env.YARN_NODE_LINKER) {
|
219758
|
-
env.YARN_NODE_LINKER = 'node-modules';
|
219759
|
-
}
|
219760
219823
|
}
|
219761
219824
|
console.log(`Running "${opts.prettyCommand}"`);
|
219762
219825
|
await spawnAsync(cliType, ['run', scriptName], opts);
|
@@ -219805,7 +219868,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
219805
219868
|
/***/ }),
|
219806
219869
|
|
219807
219870
|
/***/ 2560:
|
219808
|
-
/***/ (function(__unused_webpack_module, exports,
|
219871
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1012804__) {
|
219809
219872
|
|
219810
219873
|
"use strict";
|
219811
219874
|
|
@@ -219813,7 +219876,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219813
219876
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219814
219877
|
};
|
219815
219878
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219816
|
-
const end_of_stream_1 = __importDefault(
|
219879
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1012804__(687));
|
219817
219880
|
function streamToBuffer(stream) {
|
219818
219881
|
return new Promise((resolve, reject) => {
|
219819
219882
|
const buffers = [];
|
@@ -219842,7 +219905,7 @@ exports.default = streamToBuffer;
|
|
219842
219905
|
/***/ }),
|
219843
219906
|
|
219844
219907
|
/***/ 1148:
|
219845
|
-
/***/ (function(__unused_webpack_module, exports,
|
219908
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1013872__) {
|
219846
219909
|
|
219847
219910
|
"use strict";
|
219848
219911
|
|
@@ -219850,9 +219913,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219850
219913
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219851
219914
|
};
|
219852
219915
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219853
|
-
const path_1 = __importDefault(
|
219854
|
-
const fs_extra_1 = __importDefault(
|
219855
|
-
const ignore_1 = __importDefault(
|
219916
|
+
const path_1 = __importDefault(__nested_webpack_require_1013872__(5622));
|
219917
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1013872__(5392));
|
219918
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1013872__(3556));
|
219856
219919
|
function isCodedError(error) {
|
219857
219920
|
return (error !== null &&
|
219858
219921
|
error !== undefined &&
|
@@ -219909,7 +219972,7 @@ exports.default = default_1;
|
|
219909
219972
|
/***/ }),
|
219910
219973
|
|
219911
219974
|
/***/ 2855:
|
219912
|
-
/***/ (function(__unused_webpack_module, exports,
|
219975
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1016254__) {
|
219913
219976
|
|
219914
219977
|
"use strict";
|
219915
219978
|
|
@@ -219939,30 +220002,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219939
220002
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219940
220003
|
};
|
219941
220004
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219942
|
-
exports.
|
219943
|
-
|
219944
|
-
const file_blob_1 = __importDefault(
|
220005
|
+
exports.isStaticRuntime = exports.isOfficialRuntime = exports._experimental_updateRoutesManifest = exports._experimental_updateFunctionsManifest = exports._experimental_convertRuntimeToPlugin = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectFileSystemAPI = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
220006
|
+
exports.getPlatformEnv = void 0;
|
220007
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1016254__(2397));
|
219945
220008
|
exports.FileBlob = file_blob_1.default;
|
219946
|
-
const file_fs_ref_1 = __importDefault(
|
220009
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1016254__(9331));
|
219947
220010
|
exports.FileFsRef = file_fs_ref_1.default;
|
219948
|
-
const file_ref_1 = __importDefault(
|
220011
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1016254__(5187));
|
219949
220012
|
exports.FileRef = file_ref_1.default;
|
219950
|
-
const lambda_1 =
|
220013
|
+
const lambda_1 = __nested_webpack_require_1016254__(6721);
|
219951
220014
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
219952
220015
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
219953
220016
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219954
|
-
const prerender_1 =
|
220017
|
+
const prerender_1 = __nested_webpack_require_1016254__(2850);
|
219955
220018
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219956
|
-
const download_1 = __importStar(
|
220019
|
+
const download_1 = __importStar(__nested_webpack_require_1016254__(1611));
|
219957
220020
|
exports.download = download_1.default;
|
219958
220021
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219959
|
-
const get_writable_directory_1 = __importDefault(
|
220022
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1016254__(3838));
|
219960
220023
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219961
|
-
const glob_1 = __importDefault(
|
220024
|
+
const glob_1 = __importDefault(__nested_webpack_require_1016254__(4240));
|
219962
220025
|
exports.glob = glob_1.default;
|
219963
|
-
const rename_1 = __importDefault(
|
220026
|
+
const rename_1 = __importDefault(__nested_webpack_require_1016254__(6718));
|
219964
220027
|
exports.rename = rename_1.default;
|
219965
|
-
const run_user_scripts_1 =
|
220028
|
+
const run_user_scripts_1 = __nested_webpack_require_1016254__(1442);
|
219966
220029
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219967
220030
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219968
220031
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219975,44 +220038,46 @@ Object.defineProperty(exports, "runNpmInstall", ({ enumerable: true, get: functi
|
|
219975
220038
|
Object.defineProperty(exports, "runBundleInstall", ({ enumerable: true, get: function () { return run_user_scripts_1.runBundleInstall; } }));
|
219976
220039
|
Object.defineProperty(exports, "runPipInstall", ({ enumerable: true, get: function () { return run_user_scripts_1.runPipInstall; } }));
|
219977
220040
|
Object.defineProperty(exports, "runShellScript", ({ enumerable: true, get: function () { return run_user_scripts_1.runShellScript; } }));
|
220041
|
+
Object.defineProperty(exports, "runCustomInstallCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.runCustomInstallCommand; } }));
|
220042
|
+
Object.defineProperty(exports, "getEnvForPackageManager", ({ enumerable: true, get: function () { return run_user_scripts_1.getEnvForPackageManager; } }));
|
219978
220043
|
Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeVersion; } }));
|
219979
220044
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219980
220045
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219981
220046
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219982
|
-
const node_version_1 =
|
220047
|
+
const node_version_1 = __nested_webpack_require_1016254__(7903);
|
219983
220048
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219984
220049
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219985
|
-
const errors_1 =
|
219986
|
-
const stream_to_buffer_1 = __importDefault(
|
220050
|
+
const errors_1 = __nested_webpack_require_1016254__(3983);
|
220051
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1016254__(2560));
|
219987
220052
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219988
|
-
const should_serve_1 = __importDefault(
|
220053
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_1016254__(2564));
|
219989
220054
|
exports.shouldServe = should_serve_1.default;
|
219990
|
-
const debug_1 = __importDefault(
|
220055
|
+
const debug_1 = __importDefault(__nested_webpack_require_1016254__(1868));
|
219991
220056
|
exports.debug = debug_1.default;
|
219992
|
-
const get_ignore_filter_1 = __importDefault(
|
220057
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1016254__(1148));
|
219993
220058
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
219994
|
-
var detect_builders_1 =
|
220059
|
+
var detect_builders_1 = __nested_webpack_require_1016254__(4246);
|
219995
220060
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219996
220061
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219997
220062
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219998
220063
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219999
|
-
var detect_file_system_api_1 =
|
220064
|
+
var detect_file_system_api_1 = __nested_webpack_require_1016254__(1182);
|
220000
220065
|
Object.defineProperty(exports, "detectFileSystemAPI", ({ enumerable: true, get: function () { return detect_file_system_api_1.detectFileSystemAPI; } }));
|
220001
|
-
var detect_framework_1 =
|
220066
|
+
var detect_framework_1 = __nested_webpack_require_1016254__(5224);
|
220002
220067
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
220003
|
-
var filesystem_1 =
|
220068
|
+
var filesystem_1 = __nested_webpack_require_1016254__(461);
|
220004
220069
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
220005
|
-
var read_config_file_1 =
|
220070
|
+
var read_config_file_1 = __nested_webpack_require_1016254__(7792);
|
220006
220071
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
220007
|
-
var normalize_path_1 =
|
220072
|
+
var normalize_path_1 = __nested_webpack_require_1016254__(6261);
|
220008
220073
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
220009
|
-
var convert_runtime_to_plugin_1 =
|
220010
|
-
Object.defineProperty(exports, "
|
220011
|
-
Object.defineProperty(exports, "
|
220012
|
-
Object.defineProperty(exports, "
|
220013
|
-
__exportStar(
|
220014
|
-
__exportStar(
|
220015
|
-
__exportStar(
|
220074
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_1016254__(7276);
|
220075
|
+
Object.defineProperty(exports, "_experimental_convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1._experimental_convertRuntimeToPlugin; } }));
|
220076
|
+
Object.defineProperty(exports, "_experimental_updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1._experimental_updateFunctionsManifest; } }));
|
220077
|
+
Object.defineProperty(exports, "_experimental_updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1._experimental_updateRoutesManifest; } }));
|
220078
|
+
__exportStar(__nested_webpack_require_1016254__(2416), exports);
|
220079
|
+
__exportStar(__nested_webpack_require_1016254__(5748), exports);
|
220080
|
+
__exportStar(__nested_webpack_require_1016254__(3983), exports);
|
220016
220081
|
/**
|
220017
220082
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
220018
220083
|
*/
|
@@ -220052,20 +220117,12 @@ const getPlatformEnv = (name) => {
|
|
220052
220117
|
return n;
|
220053
220118
|
};
|
220054
220119
|
exports.getPlatformEnv = getPlatformEnv;
|
220055
|
-
/**
|
220056
|
-
* Helper function for generating file or directories names in `.output/inputs`
|
220057
|
-
* for dependencies of files provided to the File System API.
|
220058
|
-
*/
|
220059
|
-
const getInputHash = (source) => {
|
220060
|
-
return crypto_1.createHash('sha1').update(source).digest('hex');
|
220061
|
-
};
|
220062
|
-
exports.getInputHash = getInputHash;
|
220063
220120
|
|
220064
220121
|
|
220065
220122
|
/***/ }),
|
220066
220123
|
|
220067
220124
|
/***/ 6721:
|
220068
|
-
/***/ (function(__unused_webpack_module, exports,
|
220125
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1027627__) {
|
220069
220126
|
|
220070
220127
|
"use strict";
|
220071
220128
|
|
@@ -220073,19 +220130,38 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
220073
220130
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
220074
220131
|
};
|
220075
220132
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220076
|
-
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda =
|
220077
|
-
const assert_1 = __importDefault(
|
220078
|
-
const async_sema_1 = __importDefault(
|
220079
|
-
const yazl_1 =
|
220080
|
-
const minimatch_1 = __importDefault(
|
220081
|
-
const fs_extra_1 =
|
220082
|
-
const download_1 =
|
220083
|
-
const stream_to_buffer_1 = __importDefault(
|
220084
|
-
exports.FILES_SYMBOL = Symbol('files');
|
220133
|
+
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
220134
|
+
const assert_1 = __importDefault(__nested_webpack_require_1027627__(2357));
|
220135
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1027627__(5758));
|
220136
|
+
const yazl_1 = __nested_webpack_require_1027627__(1223);
|
220137
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1027627__(9566));
|
220138
|
+
const fs_extra_1 = __nested_webpack_require_1027627__(5392);
|
220139
|
+
const download_1 = __nested_webpack_require_1027627__(1611);
|
220140
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1027627__(2560));
|
220085
220141
|
class Lambda {
|
220086
|
-
constructor({
|
220142
|
+
constructor({ files, handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, zipBuffer, }) {
|
220143
|
+
if (!zipBuffer) {
|
220144
|
+
assert_1.default(typeof files === 'object', '"files" must be an object');
|
220145
|
+
}
|
220146
|
+
assert_1.default(typeof handler === 'string', '"handler" is not a string');
|
220147
|
+
assert_1.default(typeof runtime === 'string', '"runtime" is not a string');
|
220148
|
+
assert_1.default(typeof environment === 'object', '"environment" is not an object');
|
220149
|
+
if (memory !== undefined) {
|
220150
|
+
assert_1.default(typeof memory === 'number', '"memory" is not a number');
|
220151
|
+
}
|
220152
|
+
if (maxDuration !== undefined) {
|
220153
|
+
assert_1.default(typeof maxDuration === 'number', '"maxDuration" is not a number');
|
220154
|
+
}
|
220155
|
+
if (allowQuery !== undefined) {
|
220156
|
+
assert_1.default(Array.isArray(allowQuery), '"allowQuery" is not an Array');
|
220157
|
+
assert_1.default(allowQuery.every(q => typeof q === 'string'), '"allowQuery" is not a string Array');
|
220158
|
+
}
|
220159
|
+
if (regions !== undefined) {
|
220160
|
+
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
220161
|
+
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
220162
|
+
}
|
220087
220163
|
this.type = 'Lambda';
|
220088
|
-
this.
|
220164
|
+
this.files = files;
|
220089
220165
|
this.handler = handler;
|
220090
220166
|
this.runtime = runtime;
|
220091
220167
|
this.memory = memory;
|
@@ -220093,49 +220169,33 @@ class Lambda {
|
|
220093
220169
|
this.environment = environment;
|
220094
220170
|
this.allowQuery = allowQuery;
|
220095
220171
|
this.regions = regions;
|
220172
|
+
this.zipBuffer = zipBuffer;
|
220173
|
+
}
|
220174
|
+
async createZip() {
|
220175
|
+
let { zipBuffer } = this;
|
220176
|
+
if (!zipBuffer) {
|
220177
|
+
await sema.acquire();
|
220178
|
+
try {
|
220179
|
+
zipBuffer = await createZip(this.files);
|
220180
|
+
}
|
220181
|
+
finally {
|
220182
|
+
sema.release();
|
220183
|
+
}
|
220184
|
+
}
|
220185
|
+
return zipBuffer;
|
220096
220186
|
}
|
220097
220187
|
}
|
220098
220188
|
exports.Lambda = Lambda;
|
220099
220189
|
const sema = new async_sema_1.default(10);
|
220100
220190
|
const mtime = new Date(1540000000000);
|
220101
|
-
|
220102
|
-
|
220103
|
-
|
220104
|
-
|
220105
|
-
|
220106
|
-
|
220107
|
-
|
220108
|
-
|
220109
|
-
if (maxDuration !== undefined) {
|
220110
|
-
assert_1.default(typeof maxDuration === 'number', '"maxDuration" is not a number');
|
220111
|
-
}
|
220112
|
-
if (allowQuery !== undefined) {
|
220113
|
-
assert_1.default(Array.isArray(allowQuery), '"allowQuery" is not an Array');
|
220114
|
-
assert_1.default(allowQuery.every(q => typeof q === 'string'), '"allowQuery" is not a string Array');
|
220115
|
-
}
|
220116
|
-
if (regions !== undefined) {
|
220117
|
-
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
220118
|
-
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
220119
|
-
}
|
220120
|
-
await sema.acquire();
|
220121
|
-
try {
|
220122
|
-
const zipBuffer = await createZip(files);
|
220123
|
-
const lambda = new Lambda({
|
220124
|
-
zipBuffer,
|
220125
|
-
handler,
|
220126
|
-
runtime,
|
220127
|
-
memory,
|
220128
|
-
maxDuration,
|
220129
|
-
environment,
|
220130
|
-
regions,
|
220131
|
-
});
|
220132
|
-
// @ts-ignore This symbol is a private API
|
220133
|
-
lambda[exports.FILES_SYMBOL] = files;
|
220134
|
-
return lambda;
|
220135
|
-
}
|
220136
|
-
finally {
|
220137
|
-
sema.release();
|
220138
|
-
}
|
220191
|
+
/**
|
220192
|
+
* @deprecated Use `new Lambda()` instead.
|
220193
|
+
*/
|
220194
|
+
async function createLambda(opts) {
|
220195
|
+
const lambda = new Lambda(opts);
|
220196
|
+
// backwards compat
|
220197
|
+
lambda.zipBuffer = await lambda.createZip();
|
220198
|
+
return lambda;
|
220139
220199
|
}
|
220140
220200
|
exports.createLambda = createLambda;
|
220141
220201
|
async function createZip(files) {
|
@@ -220170,7 +220230,7 @@ async function createZip(files) {
|
|
220170
220230
|
}
|
220171
220231
|
exports.createZip = createZip;
|
220172
220232
|
async function getLambdaOptionsFromFunction({ sourceFile, config, }) {
|
220173
|
-
if (config
|
220233
|
+
if (config === null || config === void 0 ? void 0 : config.functions) {
|
220174
220234
|
for (const [pattern, fn] of Object.entries(config.functions)) {
|
220175
220235
|
if (sourceFile === pattern || minimatch_1.default(sourceFile, pattern)) {
|
220176
220236
|
return {
|
@@ -220309,12 +220369,12 @@ exports.buildsSchema = {
|
|
220309
220369
|
/***/ }),
|
220310
220370
|
|
220311
220371
|
/***/ 2564:
|
220312
|
-
/***/ ((__unused_webpack_module, exports,
|
220372
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1036217__) => {
|
220313
220373
|
|
220314
220374
|
"use strict";
|
220315
220375
|
|
220316
220376
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220317
|
-
const path_1 =
|
220377
|
+
const path_1 = __nested_webpack_require_1036217__(5622);
|
220318
220378
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
220319
220379
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
220320
220380
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -220449,14 +220509,6 @@ module.exports = __webpack_require__(27619);
|
|
220449
220509
|
|
220450
220510
|
/***/ }),
|
220451
220511
|
|
220452
|
-
/***/ 6417:
|
220453
|
-
/***/ ((module) => {
|
220454
|
-
|
220455
|
-
"use strict";
|
220456
|
-
module.exports = __webpack_require__(76417);
|
220457
|
-
|
220458
|
-
/***/ }),
|
220459
|
-
|
220460
220512
|
/***/ 8614:
|
220461
220513
|
/***/ ((module) => {
|
220462
220514
|
|
@@ -220551,7 +220603,7 @@ module.exports = __webpack_require__(78761);
|
|
220551
220603
|
/******/ var __webpack_module_cache__ = {};
|
220552
220604
|
/******/
|
220553
220605
|
/******/ // The require function
|
220554
|
-
/******/ function
|
220606
|
+
/******/ function __nested_webpack_require_1135856__(moduleId) {
|
220555
220607
|
/******/ // Check if module is in cache
|
220556
220608
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
220557
220609
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -220566,7 +220618,7 @@ module.exports = __webpack_require__(78761);
|
|
220566
220618
|
/******/ // Execute the module function
|
220567
220619
|
/******/ var threw = true;
|
220568
220620
|
/******/ try {
|
220569
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
220621
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1135856__);
|
220570
220622
|
/******/ threw = false;
|
220571
220623
|
/******/ } finally {
|
220572
220624
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -220579,11 +220631,11 @@ module.exports = __webpack_require__(78761);
|
|
220579
220631
|
/************************************************************************/
|
220580
220632
|
/******/ /* webpack/runtime/compat */
|
220581
220633
|
/******/
|
220582
|
-
/******/
|
220634
|
+
/******/ __nested_webpack_require_1135856__.ab = __dirname + "/";/************************************************************************/
|
220583
220635
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
220584
220636
|
/******/ // startup
|
220585
220637
|
/******/ // Load entry module and return exports
|
220586
|
-
/******/ return
|
220638
|
+
/******/ return __nested_webpack_require_1135856__(2855);
|
220587
220639
|
/******/ })()
|
220588
220640
|
;
|
220589
220641
|
|
@@ -242789,7 +242841,7 @@ exports.frameworks = [
|
|
242789
242841
|
{
|
242790
242842
|
name: 'Blitz.js',
|
242791
242843
|
slug: 'blitzjs',
|
242792
|
-
demo: 'https://
|
242844
|
+
demo: 'https://blitz-template.vercel.app',
|
242793
242845
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/blitz.svg',
|
242794
242846
|
tagline: 'Blitz.js: The Fullstack React Framework',
|
242795
242847
|
description: 'A brand new Blitz.js app - the result of running `npx blitz new`.',
|
@@ -242825,7 +242877,7 @@ exports.frameworks = [
|
|
242825
242877
|
{
|
242826
242878
|
name: 'Next.js',
|
242827
242879
|
slug: 'nextjs',
|
242828
|
-
demo: 'https://nextjs.
|
242880
|
+
demo: 'https://nextjs-template.vercel.app',
|
242829
242881
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/next.svg',
|
242830
242882
|
tagline: 'Next.js makes you productive with React instantly — whether you want to build static or dynamic sites.',
|
242831
242883
|
description: 'A Next.js app and a Serverless Function API.',
|
@@ -242870,10 +242922,10 @@ exports.frameworks = [
|
|
242870
242922
|
{
|
242871
242923
|
name: 'Gatsby.js',
|
242872
242924
|
slug: 'gatsby',
|
242873
|
-
demo: 'https://gatsby.
|
242925
|
+
demo: 'https://gatsby.vercel.app',
|
242874
242926
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/gatsby.svg',
|
242875
242927
|
tagline: 'Gatsby helps developers build blazing fast websites and apps with React.',
|
242876
|
-
description: 'A Gatsby
|
242928
|
+
description: 'A Gatsby starter app with an API Route.',
|
242877
242929
|
website: 'https://gatsbyjs.org',
|
242878
242930
|
sort: 5,
|
242879
242931
|
envPrefix: 'GATSBY_',
|
@@ -242952,7 +243004,7 @@ exports.frameworks = [
|
|
242952
243004
|
{
|
242953
243005
|
name: 'Remix',
|
242954
243006
|
slug: 'remix',
|
242955
|
-
demo: 'https://remix.
|
243007
|
+
demo: 'https://remix-run-template.vercel.app',
|
242956
243008
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix-no-shadow.svg',
|
242957
243009
|
tagline: 'Build Better Websites',
|
242958
243010
|
description: 'A new Remix app — the result of running `npx create-remix`.',
|
@@ -243021,7 +243073,7 @@ exports.frameworks = [
|
|
243021
243073
|
{
|
243022
243074
|
name: 'Hexo',
|
243023
243075
|
slug: 'hexo',
|
243024
|
-
demo: 'https://hexo.
|
243076
|
+
demo: 'https://hexo-template.vercel.app',
|
243025
243077
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/hexo.svg',
|
243026
243078
|
tagline: 'Hexo is a fast, simple & powerful blog framework powered by Node.js.',
|
243027
243079
|
description: 'A Hexo site, created with the Hexo CLI.',
|
@@ -243056,7 +243108,7 @@ exports.frameworks = [
|
|
243056
243108
|
{
|
243057
243109
|
name: 'Eleventy',
|
243058
243110
|
slug: 'eleventy',
|
243059
|
-
demo: 'https://eleventy.
|
243111
|
+
demo: 'https://eleventy-template.vercel.app',
|
243060
243112
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/eleventy.svg',
|
243061
243113
|
tagline: '11ty is a simpler static site generator written in JavaScript, created to be an alternative to Jekyll.',
|
243062
243114
|
description: 'An Eleventy site, created with npm init.',
|
@@ -243092,7 +243144,7 @@ exports.frameworks = [
|
|
243092
243144
|
{
|
243093
243145
|
name: 'Docusaurus 2',
|
243094
243146
|
slug: 'docusaurus-2',
|
243095
|
-
demo: 'https://docusaurus-2.
|
243147
|
+
demo: 'https://docusaurus-2-template.vercel.app',
|
243096
243148
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/docusaurus.svg',
|
243097
243149
|
tagline: 'Docusaurus makes it easy to maintain Open Source documentation websites.',
|
243098
243150
|
description: 'A static Docusaurus site that makes it easy to maintain OSS documentation.',
|
@@ -243221,7 +243273,7 @@ exports.frameworks = [
|
|
243221
243273
|
{
|
243222
243274
|
name: 'Docusaurus 1',
|
243223
243275
|
slug: 'docusaurus',
|
243224
|
-
demo: 'https://docusaurus.
|
243276
|
+
demo: 'https://docusaurus-template.vercel.app',
|
243225
243277
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/docusaurus.svg',
|
243226
243278
|
tagline: 'Docusaurus makes it easy to maintain Open Source documentation websites.',
|
243227
243279
|
description: 'A static Docusaurus site that makes it easy to maintain OSS documentation.',
|
@@ -243270,7 +243322,7 @@ exports.frameworks = [
|
|
243270
243322
|
{
|
243271
243323
|
name: 'Preact',
|
243272
243324
|
slug: 'preact',
|
243273
|
-
demo: 'https://preact.
|
243325
|
+
demo: 'https://preact-template.vercel.app',
|
243274
243326
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/preact.svg',
|
243275
243327
|
tagline: 'Preact is a fast 3kB alternative to React with the same modern API.',
|
243276
243328
|
description: 'A Preact app, created with the Preact CLI.',
|
@@ -243321,7 +243373,7 @@ exports.frameworks = [
|
|
243321
243373
|
{
|
243322
243374
|
name: 'SolidStart',
|
243323
243375
|
slug: 'solidstart',
|
243324
|
-
demo: 'https://
|
243376
|
+
demo: 'https://solid-start-template.vercel.app',
|
243325
243377
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/solid.svg',
|
243326
243378
|
tagline: 'Simple and performant reactivity for building user interfaces.',
|
243327
243379
|
description: 'A Solid app, created with SolidStart.',
|
@@ -243359,7 +243411,7 @@ exports.frameworks = [
|
|
243359
243411
|
{
|
243360
243412
|
name: 'Dojo',
|
243361
243413
|
slug: 'dojo',
|
243362
|
-
demo: 'https://dojo.
|
243414
|
+
demo: 'https://dojo-template.vercel.app',
|
243363
243415
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/dojo.png',
|
243364
243416
|
tagline: 'Dojo is a modern progressive, TypeScript first framework.',
|
243365
243417
|
description: "A Dojo app, created with the Dojo CLI's cli-create-app command.",
|
@@ -243426,7 +243478,7 @@ exports.frameworks = [
|
|
243426
243478
|
{
|
243427
243479
|
name: 'Ember.js',
|
243428
243480
|
slug: 'ember',
|
243429
|
-
demo: 'https://ember.
|
243481
|
+
demo: 'https://ember-template.vercel.app',
|
243430
243482
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/ember.svg',
|
243431
243483
|
tagline: 'Ember.js helps webapp developers be more productive out of the box.',
|
243432
243484
|
description: 'An Ember app, created with the Ember CLI.',
|
@@ -243477,7 +243529,7 @@ exports.frameworks = [
|
|
243477
243529
|
{
|
243478
243530
|
name: 'Vue.js',
|
243479
243531
|
slug: 'vue',
|
243480
|
-
demo: 'https://vue.
|
243532
|
+
demo: 'https://vue-template.vercel.app',
|
243481
243533
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/vue.svg',
|
243482
243534
|
tagline: 'Vue.js is a versatile JavaScript framework that is as approachable as it is performant.',
|
243483
243535
|
description: 'A Vue.js app, created with the Vue CLI.',
|
@@ -243553,7 +243605,7 @@ exports.frameworks = [
|
|
243553
243605
|
{
|
243554
243606
|
name: 'Scully',
|
243555
243607
|
slug: 'scully',
|
243556
|
-
demo: 'https://scully.
|
243608
|
+
demo: 'https://scully-template.vercel.app',
|
243557
243609
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/scullyio-logo.png',
|
243558
243610
|
tagline: 'Scully is a static site generator for Angular.',
|
243559
243611
|
description: 'The Static Site Generator for Angular apps.',
|
@@ -243588,7 +243640,7 @@ exports.frameworks = [
|
|
243588
243640
|
{
|
243589
243641
|
name: 'Ionic Angular',
|
243590
243642
|
slug: 'ionic-angular',
|
243591
|
-
demo: 'https://ionic-angular.
|
243643
|
+
demo: 'https://ionic-angular-template.vercel.app',
|
243592
243644
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/ionic.svg',
|
243593
243645
|
tagline: 'Ionic Angular allows you to build mobile PWAs with Angular and the Ionic Framework.',
|
243594
243646
|
description: 'An Ionic Angular site, created with the Ionic CLI.',
|
@@ -243638,7 +243690,7 @@ exports.frameworks = [
|
|
243638
243690
|
{
|
243639
243691
|
name: 'Angular',
|
243640
243692
|
slug: 'angular',
|
243641
|
-
demo: 'https://angular.
|
243693
|
+
demo: 'https://angular-template.vercel.app',
|
243642
243694
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/angular.svg',
|
243643
243695
|
tagline: 'Angular is a TypeScript-based cross-platform framework from Google.',
|
243644
243696
|
description: 'An Angular app, created with the Angular CLI.',
|
@@ -243703,7 +243755,7 @@ exports.frameworks = [
|
|
243703
243755
|
{
|
243704
243756
|
name: 'Polymer',
|
243705
243757
|
slug: 'polymer',
|
243706
|
-
demo: 'https://polymer.
|
243758
|
+
demo: 'https://polymer-template.vercel.app',
|
243707
243759
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/polymer.svg',
|
243708
243760
|
tagline: 'Polymer is an open-source webapps library from Google, for building using Web Components.',
|
243709
243761
|
description: 'A Polymer app, created with the Polymer CLI.',
|
@@ -243766,7 +243818,7 @@ exports.frameworks = [
|
|
243766
243818
|
{
|
243767
243819
|
name: 'Svelte',
|
243768
243820
|
slug: 'svelte',
|
243769
|
-
demo: 'https://svelte.
|
243821
|
+
demo: 'https://svelte.vercel.app',
|
243770
243822
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
243771
243823
|
tagline: 'Svelte lets you write high performance reactive apps with significantly less boilerplate.',
|
243772
243824
|
description: 'A basic Svelte app using the default template.',
|
@@ -243821,10 +243873,10 @@ exports.frameworks = [
|
|
243821
243873
|
{
|
243822
243874
|
name: 'SvelteKit',
|
243823
243875
|
slug: 'sveltekit',
|
243824
|
-
demo: 'https://sveltekit.
|
243876
|
+
demo: 'https://sveltekit-template.vercel.app',
|
243825
243877
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
243826
243878
|
tagline: 'SvelteKit is a framework for building web applications of all sizes.',
|
243827
|
-
description: 'A SvelteKit app optimized
|
243879
|
+
description: 'A SvelteKit app optimized Edge-first.',
|
243828
243880
|
website: 'https://kit.svelte.dev',
|
243829
243881
|
envPrefix: 'VITE_',
|
243830
243882
|
detectors: {
|
@@ -243856,7 +243908,7 @@ exports.frameworks = [
|
|
243856
243908
|
{
|
243857
243909
|
name: 'Ionic React',
|
243858
243910
|
slug: 'ionic-react',
|
243859
|
-
demo: 'https://ionic-react.
|
243911
|
+
demo: 'https://ionic-react-template.vercel.app',
|
243860
243912
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/ionic.svg',
|
243861
243913
|
tagline: 'Ionic React allows you to build mobile PWAs with React and the Ionic Framework.',
|
243862
243914
|
description: 'An Ionic React site, created with the Ionic CLI.',
|
@@ -243954,10 +244006,10 @@ exports.frameworks = [
|
|
243954
244006
|
{
|
243955
244007
|
name: 'Create React App',
|
243956
244008
|
slug: 'create-react-app',
|
243957
|
-
demo: 'https://react-
|
244009
|
+
demo: 'https://create-react-template.vercel.app',
|
243958
244010
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/react.svg',
|
243959
244011
|
tagline: 'Create React App allows you to get going with React in no time.',
|
243960
|
-
description: 'A React app
|
244012
|
+
description: 'A client-side React app created with create-react-app.',
|
243961
244013
|
website: 'https://create-react-app.dev',
|
243962
244014
|
sort: 4,
|
243963
244015
|
envPrefix: 'REACT_APP_',
|
@@ -244058,7 +244110,7 @@ exports.frameworks = [
|
|
244058
244110
|
{
|
244059
244111
|
name: 'Gridsome',
|
244060
244112
|
slug: 'gridsome',
|
244061
|
-
demo: 'https://gridsome.
|
244113
|
+
demo: 'https://gridsome-template.vercel.app',
|
244062
244114
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/gridsome.svg',
|
244063
244115
|
tagline: 'Gridsome is a Vue.js-powered framework for building websites & apps that are fast by default.',
|
244064
244116
|
description: 'A Gridsome app, created with the Gridsome CLI.',
|
@@ -244093,7 +244145,7 @@ exports.frameworks = [
|
|
244093
244145
|
{
|
244094
244146
|
name: 'UmiJS',
|
244095
244147
|
slug: 'umijs',
|
244096
|
-
demo: 'https://umijs.
|
244148
|
+
demo: 'https://umijs-template.vercel.app',
|
244097
244149
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/umi.svg',
|
244098
244150
|
tagline: 'UmiJS is an extensible enterprise-level React application framework.',
|
244099
244151
|
description: 'An UmiJS app, created using the Umi CLI.',
|
@@ -244144,7 +244196,7 @@ exports.frameworks = [
|
|
244144
244196
|
{
|
244145
244197
|
name: 'Sapper',
|
244146
244198
|
slug: 'sapper',
|
244147
|
-
demo: 'https://sapper.
|
244199
|
+
demo: 'https://sapper-template.vercel.app',
|
244148
244200
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
244149
244201
|
tagline: 'Sapper is a framework for building high-performance universal web apps with Svelte.',
|
244150
244202
|
description: 'A Sapper app, using the Sapper template.',
|
@@ -244179,7 +244231,7 @@ exports.frameworks = [
|
|
244179
244231
|
{
|
244180
244232
|
name: 'Saber',
|
244181
244233
|
slug: 'saber',
|
244182
|
-
demo: 'https://saber.
|
244234
|
+
demo: 'https://saber-template.vercel.app',
|
244183
244235
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/saber.svg',
|
244184
244236
|
tagline: 'Saber is a framework for building static sites in Vue.js that supports data from any source.',
|
244185
244237
|
description: 'A Saber site, created with npm init.',
|
@@ -244245,7 +244297,7 @@ exports.frameworks = [
|
|
244245
244297
|
{
|
244246
244298
|
name: 'Stencil',
|
244247
244299
|
slug: 'stencil',
|
244248
|
-
demo: 'https://stencil.
|
244300
|
+
demo: 'https://stencil.vercel.app',
|
244249
244301
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/stencil.svg',
|
244250
244302
|
tagline: 'Stencil is a powerful toolchain for building Progressive Web Apps and Design Systems.',
|
244251
244303
|
description: 'A Stencil site, created with the Stencil CLI.',
|
@@ -244330,7 +244382,7 @@ exports.frameworks = [
|
|
244330
244382
|
{
|
244331
244383
|
name: 'Nuxt.js',
|
244332
244384
|
slug: 'nuxtjs',
|
244333
|
-
demo: 'https://nuxtjs.
|
244385
|
+
demo: 'https://nuxtjs-template.vercel.app',
|
244334
244386
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/nuxt.svg',
|
244335
244387
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
244336
244388
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
@@ -244386,7 +244438,7 @@ exports.frameworks = [
|
|
244386
244438
|
{
|
244387
244439
|
name: 'RedwoodJS',
|
244388
244440
|
slug: 'redwoodjs',
|
244389
|
-
demo: 'https://
|
244441
|
+
demo: 'https://redwood-template.vercel.app',
|
244390
244442
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/redwoodjs.svg',
|
244391
244443
|
tagline: 'RedwoodJS is a full-stack framework for the Jamstack.',
|
244392
244444
|
description: 'A RedwoodJS app, bootstraped with create-redwood-app.',
|
@@ -244422,7 +244474,7 @@ exports.frameworks = [
|
|
244422
244474
|
{
|
244423
244475
|
name: 'Hugo',
|
244424
244476
|
slug: 'hugo',
|
244425
|
-
demo: 'https://hugo.
|
244477
|
+
demo: 'https://hugo-template.vercel.app',
|
244426
244478
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/hugo.svg',
|
244427
244479
|
tagline: 'Hugo is the world’s fastest framework for building websites, written in Go.',
|
244428
244480
|
description: 'A Hugo site, created with the Hugo CLI.',
|
@@ -244470,7 +244522,7 @@ exports.frameworks = [
|
|
244470
244522
|
{
|
244471
244523
|
name: 'Jekyll',
|
244472
244524
|
slug: 'jekyll',
|
244473
|
-
demo: 'https://jekyll.
|
244525
|
+
demo: 'https://jekyll-template.vercel.app',
|
244474
244526
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/jekyll.svg',
|
244475
244527
|
tagline: 'Jekyll makes it super easy to transform your plain text into static websites and blogs.',
|
244476
244528
|
description: 'A Jekyll site, created with the Jekyll CLI.',
|
@@ -244507,7 +244559,7 @@ exports.frameworks = [
|
|
244507
244559
|
{
|
244508
244560
|
name: 'Brunch',
|
244509
244561
|
slug: 'brunch',
|
244510
|
-
demo: 'https://brunch.
|
244562
|
+
demo: 'https://brunch-template.vercel.app',
|
244511
244563
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/brunch.svg',
|
244512
244564
|
tagline: 'Brunch is a fast and simple webapp build tool with seamless incremental compilation for rapid development.',
|
244513
244565
|
description: 'A Brunch app, created with the Brunch CLI.',
|
@@ -244540,7 +244592,7 @@ exports.frameworks = [
|
|
244540
244592
|
{
|
244541
244593
|
name: 'Middleman',
|
244542
244594
|
slug: 'middleman',
|
244543
|
-
demo: 'https://middleman.
|
244595
|
+
demo: 'https://middleman-template.vercel.app',
|
244544
244596
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/middleman.svg',
|
244545
244597
|
tagline: 'Middleman is a static site generator that uses all the shortcuts and tools in modern web development.',
|
244546
244598
|
description: 'A Middleman app, created with the Middleman CLI.',
|
@@ -244574,7 +244626,7 @@ exports.frameworks = [
|
|
244574
244626
|
{
|
244575
244627
|
name: 'Zola',
|
244576
244628
|
slug: 'zola',
|
244577
|
-
demo: 'https://zola.
|
244629
|
+
demo: 'https://zola-template.vercel.app',
|
244578
244630
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/zola.png',
|
244579
244631
|
tagline: 'Everything you need to make a static site engine in one binary.',
|
244580
244632
|
description: 'A Zola app, created with the "Getting Started" tutorial.',
|
@@ -244608,7 +244660,7 @@ exports.frameworks = [
|
|
244608
244660
|
{
|
244609
244661
|
name: 'Vite',
|
244610
244662
|
slug: 'vite',
|
244611
|
-
demo: 'https://vite.
|
244663
|
+
demo: 'https://vite-vue-template.vercel.app',
|
244612
244664
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/vite.svg',
|
244613
244665
|
tagline: 'Vite is a new breed of frontend build tool that significantly improves the frontend development experience.',
|
244614
244666
|
description: 'A Vue.js app, created with Vite.',
|
@@ -244632,7 +244684,7 @@ exports.frameworks = [
|
|
244632
244684
|
},
|
244633
244685
|
devCommand: {
|
244634
244686
|
placeholder: 'vite',
|
244635
|
-
value: 'vite',
|
244687
|
+
value: 'vite --port $PORT',
|
244636
244688
|
},
|
244637
244689
|
outputDirectory: {
|
244638
244690
|
value: 'dist',
|
@@ -244644,7 +244696,7 @@ exports.frameworks = [
|
|
244644
244696
|
{
|
244645
244697
|
name: 'Parcel',
|
244646
244698
|
slug: 'parcel',
|
244647
|
-
demo: 'https://parcel.
|
244699
|
+
demo: 'https://parcel-template.vercel.app',
|
244648
244700
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/parcel.png',
|
244649
244701
|
tagline: 'Parcel is a zero configuration build tool for the web that scales to projects of any size and complexity.',
|
244650
244702
|
description: 'A vanilla web app built with Parcel.',
|
@@ -250307,7 +250359,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
250307
250359
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
250308
250360
|
const ERRORS = __importStar(__webpack_require__(60156));
|
250309
250361
|
const assign_alias_1 = __importDefault(__webpack_require__(30791));
|
250310
|
-
const format_ns_table_1 = __importDefault(__webpack_require__(91498));
|
250311
250362
|
const get_deployment_by_id_or_host_1 = __importDefault(__webpack_require__(71698));
|
250312
250363
|
const get_deployment_by_alias_1 = __webpack_require__(44333);
|
250313
250364
|
const get_scope_1 = __importDefault(__webpack_require__(73389));
|
@@ -250415,15 +250466,6 @@ async function set(client, opts, args) {
|
|
250415
250466
|
}
|
250416
250467
|
exports.default = set;
|
250417
250468
|
function handleSetupDomainError(output, error) {
|
250418
|
-
if (error instanceof ERRORS.DomainVerificationFailed ||
|
250419
|
-
error instanceof ERRORS.DomainNsNotVerifiedForWildcard) {
|
250420
|
-
const { nsVerification, domain } = error.meta;
|
250421
|
-
output.error(`We could not alias since the domain ${domain} could not be verified due to the following reasons:\n`);
|
250422
|
-
output.print(`Nameservers verification failed since we see a different set than the intended set:`);
|
250423
|
-
output.print(`\n${format_ns_table_1.default(nsVerification.intendedNameservers, nsVerification.nameservers, { extraSpace: ' ' })}\n\n`);
|
250424
|
-
output.print(' Read more: https://err.sh/vercel/domain-verification\n');
|
250425
|
-
return 1;
|
250426
|
-
}
|
250427
250469
|
if (error instanceof ERRORS.DomainPermissionDenied) {
|
250428
250470
|
output.error(`You don't have permissions over domain ${chalk_1.default.underline(error.meta.domain)} under ${chalk_1.default.bold(error.meta.context)}.`);
|
250429
250471
|
return 1;
|
@@ -250536,6 +250578,344 @@ function getTargetsForAlias(args, { alias } = {}) {
|
|
250536
250578
|
}
|
250537
250579
|
|
250538
250580
|
|
250581
|
+
/***/ }),
|
250582
|
+
|
250583
|
+
/***/ 76792:
|
250584
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
250585
|
+
|
250586
|
+
"use strict";
|
250587
|
+
|
250588
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
250589
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
250590
|
+
};
|
250591
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
250592
|
+
const open_1 = __importDefault(__webpack_require__(28884));
|
250593
|
+
const boxen_1 = __importDefault(__webpack_require__(30396));
|
250594
|
+
const execa_1 = __importDefault(__webpack_require__(94237));
|
250595
|
+
const pluralize_1 = __importDefault(__webpack_require__(31974));
|
250596
|
+
const inquirer_1 = __importDefault(__webpack_require__(64016));
|
250597
|
+
const path_1 = __webpack_require__(85622);
|
250598
|
+
const chalk_1 = __importDefault(__webpack_require__(961));
|
250599
|
+
const url_1 = __webpack_require__(78835);
|
250600
|
+
const sleep_1 = __importDefault(__webpack_require__(35873));
|
250601
|
+
const format_date_1 = __importDefault(__webpack_require__(17215));
|
250602
|
+
const link_1 = __importDefault(__webpack_require__(98472));
|
250603
|
+
const logo_1 = __importDefault(__webpack_require__(9829));
|
250604
|
+
const get_args_1 = __importDefault(__webpack_require__(87612));
|
250605
|
+
const pkg_name_1 = __webpack_require__(98106);
|
250606
|
+
const pkgName = pkg_name_1.getPkgName();
|
250607
|
+
const help = () => {
|
250608
|
+
console.log(`
|
250609
|
+
${chalk_1.default.bold(`${logo_1.default} ${pkgName} bisect`)} [options]
|
250610
|
+
|
250611
|
+
${chalk_1.default.dim('Options:')}
|
250612
|
+
|
250613
|
+
-h, --help Output usage information
|
250614
|
+
-d, --debug Debug mode [off]
|
250615
|
+
-b, --bad Known bad URL
|
250616
|
+
-g, --good Known good URL
|
250617
|
+
-o, --open Automatically open each URL in the browser
|
250618
|
+
-p, --path Subpath of the deployment URL to test
|
250619
|
+
-r, --run Test script to run for each deployment
|
250620
|
+
|
250621
|
+
${chalk_1.default.dim('Examples:')}
|
250622
|
+
|
250623
|
+
${chalk_1.default.gray('–')} Bisect the current project interactively
|
250624
|
+
|
250625
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect`)}
|
250626
|
+
|
250627
|
+
${chalk_1.default.gray('–')} Bisect with a known bad deployment
|
250628
|
+
|
250629
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect --bad example-310pce9i0.vercel.app`)}
|
250630
|
+
|
250631
|
+
${chalk_1.default.gray('–')} Bisect specifying a deployment that was working 3 days ago
|
250632
|
+
|
250633
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect --good 3d`)}
|
250634
|
+
|
250635
|
+
${chalk_1.default.gray('–')} Automated bisect with a run script
|
250636
|
+
|
250637
|
+
${chalk_1.default.cyan(`$ ${pkgName} bisect --run ./test.sh`)}
|
250638
|
+
`);
|
250639
|
+
};
|
250640
|
+
async function main(client) {
|
250641
|
+
const { output } = client;
|
250642
|
+
const argv = get_args_1.default(client.argv.slice(2), {
|
250643
|
+
'--bad': String,
|
250644
|
+
'-b': '--bad',
|
250645
|
+
'--good': String,
|
250646
|
+
'-g': '--good',
|
250647
|
+
'--open': Boolean,
|
250648
|
+
'-o': '--open',
|
250649
|
+
'--path': String,
|
250650
|
+
'-p': '--path',
|
250651
|
+
'--run': String,
|
250652
|
+
'-r': '--run',
|
250653
|
+
});
|
250654
|
+
if (argv['--help']) {
|
250655
|
+
help();
|
250656
|
+
return 2;
|
250657
|
+
}
|
250658
|
+
let bad = argv['--bad'] ||
|
250659
|
+
(await prompt(output, `Specify a URL where the bug occurs:`));
|
250660
|
+
let good = argv['--good'] ||
|
250661
|
+
(await prompt(output, `Specify a URL where the bug does not occur:`));
|
250662
|
+
let subpath = argv['--path'] || '';
|
250663
|
+
let run = argv['--run'] || '';
|
250664
|
+
const openEnabled = argv['--open'] || false;
|
250665
|
+
if (run) {
|
250666
|
+
run = path_1.resolve(run);
|
250667
|
+
}
|
250668
|
+
if (!bad.startsWith('https://')) {
|
250669
|
+
bad = `https://${bad}`;
|
250670
|
+
}
|
250671
|
+
let parsed = url_1.parse(bad);
|
250672
|
+
if (!parsed.hostname) {
|
250673
|
+
output.error('Invalid input: no hostname provided');
|
250674
|
+
return 1;
|
250675
|
+
}
|
250676
|
+
bad = parsed.hostname;
|
250677
|
+
if (typeof parsed.path === 'string' && parsed.path !== '/') {
|
250678
|
+
if (subpath && subpath !== parsed.path) {
|
250679
|
+
output.note(`Ignoring subpath ${chalk_1.default.bold(parsed.path)} in favor of \`--path\` argument ${chalk_1.default.bold(subpath)}`);
|
250680
|
+
}
|
250681
|
+
else {
|
250682
|
+
subpath = parsed.path;
|
250683
|
+
}
|
250684
|
+
}
|
250685
|
+
const badDeploymentPromise = getDeployment(client, bad).catch(err => err);
|
250686
|
+
if (!good.startsWith('https://')) {
|
250687
|
+
good = `https://${good}`;
|
250688
|
+
}
|
250689
|
+
parsed = url_1.parse(good);
|
250690
|
+
if (!parsed.hostname) {
|
250691
|
+
output.error('Invalid input: no hostname provided');
|
250692
|
+
return 1;
|
250693
|
+
}
|
250694
|
+
good = parsed.hostname;
|
250695
|
+
if (typeof parsed.path === 'string' &&
|
250696
|
+
parsed.path !== '/' &&
|
250697
|
+
subpath &&
|
250698
|
+
subpath !== parsed.path) {
|
250699
|
+
output.note(`Ignoring subpath ${chalk_1.default.bold(parsed.path)} which does not match ${chalk_1.default.bold(subpath)}`);
|
250700
|
+
}
|
250701
|
+
const goodDeploymentPromise = getDeployment(client, good).catch(err => err);
|
250702
|
+
if (!subpath) {
|
250703
|
+
subpath = await prompt(output, `Specify the URL subpath where the bug occurs:`);
|
250704
|
+
}
|
250705
|
+
output.spinner('Retrieving deployments…');
|
250706
|
+
const [badDeployment, goodDeployment] = await Promise.all([
|
250707
|
+
badDeploymentPromise,
|
250708
|
+
goodDeploymentPromise,
|
250709
|
+
]);
|
250710
|
+
if (badDeployment) {
|
250711
|
+
if (badDeployment instanceof Error) {
|
250712
|
+
badDeployment.message += ` "${bad}"`;
|
250713
|
+
output.prettyError(badDeployment);
|
250714
|
+
return 1;
|
250715
|
+
}
|
250716
|
+
bad = badDeployment.url;
|
250717
|
+
}
|
250718
|
+
else {
|
250719
|
+
output.error(`Failed to retrieve ${chalk_1.default.bold('bad')} Deployment: ${bad}`);
|
250720
|
+
return 1;
|
250721
|
+
}
|
250722
|
+
const { projectId } = badDeployment;
|
250723
|
+
if (goodDeployment) {
|
250724
|
+
if (goodDeployment instanceof Error) {
|
250725
|
+
goodDeployment.message += ` "${good}"`;
|
250726
|
+
output.prettyError(goodDeployment);
|
250727
|
+
return 1;
|
250728
|
+
}
|
250729
|
+
good = goodDeployment.url;
|
250730
|
+
}
|
250731
|
+
else {
|
250732
|
+
output.error(`Failed to retrieve ${chalk_1.default.bold('good')} Deployment: ${good}`);
|
250733
|
+
return 1;
|
250734
|
+
}
|
250735
|
+
if (projectId !== goodDeployment.projectId) {
|
250736
|
+
output.error(`Good and Bad deployments must be from the same Project`);
|
250737
|
+
return 1;
|
250738
|
+
}
|
250739
|
+
if (badDeployment.createdAt < goodDeployment.createdAt) {
|
250740
|
+
output.error(`Good deployment must be older than the Bad deployment`);
|
250741
|
+
return 1;
|
250742
|
+
}
|
250743
|
+
if (badDeployment.target !== goodDeployment.target) {
|
250744
|
+
output.error(`Bad deployment target "${badDeployment.target || 'preview'}" does not match good deployment target "${goodDeployment.target || 'preview'}"`);
|
250745
|
+
return 1;
|
250746
|
+
}
|
250747
|
+
// Fetch all the project's "READY" deployments with the pagination API
|
250748
|
+
let deployments = [];
|
250749
|
+
let next = badDeployment.createdAt + 1;
|
250750
|
+
do {
|
250751
|
+
const query = new url_1.URLSearchParams();
|
250752
|
+
query.set('projectId', projectId);
|
250753
|
+
if (badDeployment.target) {
|
250754
|
+
query.set('target', badDeployment.target);
|
250755
|
+
}
|
250756
|
+
query.set('limit', '100');
|
250757
|
+
query.set('state', 'READY');
|
250758
|
+
if (next) {
|
250759
|
+
query.set('until', String(next));
|
250760
|
+
}
|
250761
|
+
const res = await client.fetch(`/v6/deployments?${query}`, {
|
250762
|
+
accountId: badDeployment.ownerId,
|
250763
|
+
});
|
250764
|
+
next = res.pagination.next;
|
250765
|
+
let newDeployments = res.deployments;
|
250766
|
+
// If we have the "good" deployment in this chunk, then we're done
|
250767
|
+
for (let i = 0; i < newDeployments.length; i++) {
|
250768
|
+
if (newDeployments[i].url === good) {
|
250769
|
+
newDeployments = newDeployments.slice(0, i + 1);
|
250770
|
+
next = undefined;
|
250771
|
+
break;
|
250772
|
+
}
|
250773
|
+
}
|
250774
|
+
deployments = deployments.concat(newDeployments);
|
250775
|
+
if (next) {
|
250776
|
+
// Small sleep to avoid rate limiting
|
250777
|
+
await sleep_1.default(100);
|
250778
|
+
}
|
250779
|
+
} while (next);
|
250780
|
+
if (!deployments.length) {
|
250781
|
+
output.error('Cannot bisect because this project does not have any deployments');
|
250782
|
+
return 1;
|
250783
|
+
}
|
250784
|
+
// The first deployment is the one that was marked
|
250785
|
+
// as "bad", so that one does not need to be tested
|
250786
|
+
let lastBad = deployments.shift();
|
250787
|
+
while (deployments.length > 0) {
|
250788
|
+
// Add a blank space before the next step
|
250789
|
+
output.print('\n');
|
250790
|
+
const middleIndex = Math.floor(deployments.length / 2);
|
250791
|
+
const deployment = deployments[middleIndex];
|
250792
|
+
const rem = pluralize_1.default('deployment', deployments.length, true);
|
250793
|
+
const steps = Math.floor(Math.log2(deployments.length));
|
250794
|
+
const pSteps = pluralize_1.default('step', steps, true);
|
250795
|
+
output.log(chalk_1.default.magenta(`${chalk_1.default.bold('Bisecting:')} ${rem} left to test after this (roughly ${pSteps})`), chalk_1.default.magenta);
|
250796
|
+
const testUrl = `https://${deployment.url}${subpath}`;
|
250797
|
+
output.log(`${chalk_1.default.bold('Deployment URL:')} ${link_1.default(testUrl)}`);
|
250798
|
+
output.log(`${chalk_1.default.bold('Date:')} ${format_date_1.default(deployment.createdAt)}`);
|
250799
|
+
const commit = getCommit(deployment);
|
250800
|
+
if (commit) {
|
250801
|
+
const shortSha = commit.sha.substring(0, 7);
|
250802
|
+
const firstLine = commit.message.split('\n')[0];
|
250803
|
+
output.log(`${chalk_1.default.bold('Commit:')} [${shortSha}] ${firstLine}`);
|
250804
|
+
}
|
250805
|
+
let action;
|
250806
|
+
if (run) {
|
250807
|
+
const proc = await execa_1.default(run, [testUrl], {
|
250808
|
+
stdio: 'inherit',
|
250809
|
+
reject: false,
|
250810
|
+
env: {
|
250811
|
+
...process.env,
|
250812
|
+
HOST: deployment.url,
|
250813
|
+
URL: testUrl,
|
250814
|
+
},
|
250815
|
+
});
|
250816
|
+
if (proc instanceof Error && typeof proc.exitCode !== 'number') {
|
250817
|
+
// Script does not exist or is not executable, so exit
|
250818
|
+
output.prettyError(proc);
|
250819
|
+
return 1;
|
250820
|
+
}
|
250821
|
+
const { exitCode } = proc;
|
250822
|
+
let color;
|
250823
|
+
if (exitCode === 0) {
|
250824
|
+
color = chalk_1.default.green;
|
250825
|
+
action = 'good';
|
250826
|
+
}
|
250827
|
+
else if (exitCode === 125) {
|
250828
|
+
action = 'skip';
|
250829
|
+
color = chalk_1.default.grey;
|
250830
|
+
}
|
250831
|
+
else {
|
250832
|
+
action = 'bad';
|
250833
|
+
color = chalk_1.default.red;
|
250834
|
+
}
|
250835
|
+
output.log(`Run script returned exit code ${chalk_1.default.bold(String(exitCode))}: ${color(action)}`);
|
250836
|
+
}
|
250837
|
+
else {
|
250838
|
+
if (openEnabled) {
|
250839
|
+
await open_1.default(testUrl);
|
250840
|
+
}
|
250841
|
+
const answer = await inquirer_1.default.prompt({
|
250842
|
+
type: 'expand',
|
250843
|
+
name: 'action',
|
250844
|
+
message: 'Select an action:',
|
250845
|
+
choices: [
|
250846
|
+
{ key: 'g', name: 'Good', value: 'good' },
|
250847
|
+
{ key: 'b', name: 'Bad', value: 'bad' },
|
250848
|
+
{ key: 's', name: 'Skip', value: 'skip' },
|
250849
|
+
],
|
250850
|
+
});
|
250851
|
+
action = answer.action;
|
250852
|
+
}
|
250853
|
+
if (action === 'good') {
|
250854
|
+
deployments = deployments.slice(0, middleIndex);
|
250855
|
+
}
|
250856
|
+
else if (action === 'bad') {
|
250857
|
+
lastBad = deployment;
|
250858
|
+
deployments = deployments.slice(middleIndex + 1);
|
250859
|
+
}
|
250860
|
+
else if (action === 'skip') {
|
250861
|
+
deployments.splice(middleIndex, 1);
|
250862
|
+
}
|
250863
|
+
}
|
250864
|
+
output.print('\n');
|
250865
|
+
let result = [
|
250866
|
+
chalk_1.default.bold(`The first bad deployment is: ${link_1.default(`https://${lastBad.url}`)}`),
|
250867
|
+
'',
|
250868
|
+
` ${chalk_1.default.bold('Date:')} ${format_date_1.default(lastBad.createdAt)}`,
|
250869
|
+
];
|
250870
|
+
const commit = getCommit(lastBad);
|
250871
|
+
if (commit) {
|
250872
|
+
const shortSha = commit.sha.substring(0, 7);
|
250873
|
+
const firstLine = commit.message.split('\n')[0];
|
250874
|
+
result.push(` ${chalk_1.default.bold('Commit:')} [${shortSha}] ${firstLine}`);
|
250875
|
+
}
|
250876
|
+
result.push(`${chalk_1.default.bold('Inspect:')} ${link_1.default(lastBad.inspectorUrl)}`);
|
250877
|
+
output.print(boxen_1.default(result.join('\n'), { padding: 1 }));
|
250878
|
+
output.print('\n');
|
250879
|
+
return 0;
|
250880
|
+
}
|
250881
|
+
exports.default = main;
|
250882
|
+
function getDeployment(client, hostname) {
|
250883
|
+
const query = new url_1.URLSearchParams();
|
250884
|
+
query.set('url', hostname);
|
250885
|
+
query.set('resolve', '1');
|
250886
|
+
query.set('noState', '1');
|
250887
|
+
return client.fetch(`/v10/deployments/get?${query}`);
|
250888
|
+
}
|
250889
|
+
function getCommit(deployment) {
|
250890
|
+
var _a, _b, _c, _d, _e, _f;
|
250891
|
+
const sha = ((_a = deployment.meta) === null || _a === void 0 ? void 0 : _a.githubCommitSha) ||
|
250892
|
+
((_b = deployment.meta) === null || _b === void 0 ? void 0 : _b.gitlabCommitSha) ||
|
250893
|
+
((_c = deployment.meta) === null || _c === void 0 ? void 0 : _c.bitbucketCommitSha);
|
250894
|
+
if (!sha)
|
250895
|
+
return null;
|
250896
|
+
const message = ((_d = deployment.meta) === null || _d === void 0 ? void 0 : _d.githubCommitMessage) ||
|
250897
|
+
((_e = deployment.meta) === null || _e === void 0 ? void 0 : _e.gitlabCommitMessage) ||
|
250898
|
+
((_f = deployment.meta) === null || _f === void 0 ? void 0 : _f.bitbucketCommitMessage);
|
250899
|
+
return { sha, message };
|
250900
|
+
}
|
250901
|
+
async function prompt(output, message) {
|
250902
|
+
// eslint-disable-next-line no-constant-condition
|
250903
|
+
while (true) {
|
250904
|
+
const { val } = await inquirer_1.default.prompt({
|
250905
|
+
type: 'input',
|
250906
|
+
name: 'val',
|
250907
|
+
message,
|
250908
|
+
});
|
250909
|
+
if (val) {
|
250910
|
+
return val;
|
250911
|
+
}
|
250912
|
+
else {
|
250913
|
+
output.error('A value must be specified');
|
250914
|
+
}
|
250915
|
+
}
|
250916
|
+
}
|
250917
|
+
|
250918
|
+
|
250539
250919
|
/***/ }),
|
250540
250920
|
|
250541
250921
|
/***/ 11004:
|
@@ -251798,6 +252178,7 @@ const help = () => `
|
|
251798
252178
|
${chalk_1.default.dim('Advanced')}
|
251799
252179
|
|
251800
252180
|
rm | remove [id] Removes a deployment
|
252181
|
+
bisect Use binary search to find the deployment that introduced a bug
|
251801
252182
|
domains [name] Manages your domain names
|
251802
252183
|
projects Manages your Projects
|
251803
252184
|
dns [name] Manages your DNS records
|
@@ -254709,6 +255090,7 @@ exports.default = new Map([
|
|
254709
255090
|
['alias', 'alias'],
|
254710
255091
|
['aliases', 'alias'],
|
254711
255092
|
['billing', 'billing'],
|
255093
|
+
['bisect', 'bisect'],
|
254712
255094
|
['build', 'build'],
|
254713
255095
|
['cc', 'billing'],
|
254714
255096
|
['cert', 'certs'],
|
@@ -257427,8 +257809,7 @@ const main = async () => {
|
|
257427
257809
|
// * a path to deploy (as in: `vercel path/`)
|
257428
257810
|
// * a subcommand (as in: `vercel ls`)
|
257429
257811
|
const targetOrSubcommand = argv._[2];
|
257430
|
-
|
257431
|
-
if (isBuildOrDev) {
|
257812
|
+
if (targetOrSubcommand === 'build') {
|
257432
257813
|
console.log(`${chalk_1.default.grey(`${pkg_name_1.getTitleName()} CLI ${pkg_1.default.version} ${targetOrSubcommand} (beta) — https://vercel.com/feedback`)}`);
|
257433
257814
|
}
|
257434
257815
|
else {
|
@@ -257764,6 +258145,9 @@ const main = async () => {
|
|
257764
258145
|
case 'billing':
|
257765
258146
|
func = await Promise.resolve().then(() => __importStar(__webpack_require__(94344)));
|
257766
258147
|
break;
|
258148
|
+
case 'bisect':
|
258149
|
+
func = await Promise.resolve().then(() => __importStar(__webpack_require__(76792)));
|
258150
|
+
break;
|
257767
258151
|
case 'build':
|
257768
258152
|
func = await Promise.resolve().then(() => __importStar(__webpack_require__(11004)));
|
257769
258153
|
break;
|
@@ -258525,7 +258909,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
258525
258909
|
const ERRORS = __importStar(__webpack_require__(60156));
|
258526
258910
|
async function getCertById(client, id) {
|
258527
258911
|
try {
|
258528
|
-
return await client.fetch(`/
|
258912
|
+
return await client.fetch(`/v6/now/certs/${id}`);
|
258529
258913
|
}
|
258530
258914
|
catch (error) {
|
258531
258915
|
if (error.code === 'cert_not_found') {
|
@@ -263666,7 +264050,7 @@ const chalk_1 = __importDefault(__webpack_require__(961));
|
|
263666
264050
|
async function getDomain(client, contextName, domainName) {
|
263667
264051
|
client.output.spinner(`Fetching domain ${domainName} under ${chalk_1.default.bold(contextName)}`);
|
263668
264052
|
try {
|
263669
|
-
const { domain } = await client.fetch(`/
|
264053
|
+
const { domain } = await client.fetch(`/v5/domains/${domainName}`);
|
263670
264054
|
return domain;
|
263671
264055
|
}
|
263672
264056
|
catch (error) {
|
@@ -264109,9 +264493,7 @@ const ERRORS = __importStar(__webpack_require__(60156));
|
|
264109
264493
|
const add_domain_1 = __importDefault(__webpack_require__(41377));
|
264110
264494
|
const maybe_get_domain_by_name_1 = __importDefault(__webpack_require__(38977));
|
264111
264495
|
const purchase_domain_if_available_1 = __importDefault(__webpack_require__(29211));
|
264112
|
-
const verify_domain_1 = __importDefault(__webpack_require__(9603));
|
264113
264496
|
const extract_domain_1 = __importDefault(__webpack_require__(4318));
|
264114
|
-
const is_wildcard_alias_1 = __importDefault(__webpack_require__(72249));
|
264115
264497
|
async function setupDomain(output, client, alias, contextName) {
|
264116
264498
|
const aliasDomain = extract_domain_1.default(alias);
|
264117
264499
|
output.debug(`Trying to fetch domain ${aliasDomain} by name`);
|
@@ -264122,26 +264504,6 @@ async function setupDomain(output, client, alias, contextName) {
|
|
264122
264504
|
if (info) {
|
264123
264505
|
const { name: domain } = info;
|
264124
264506
|
output.debug(`Domain ${domain} found for the given context`);
|
264125
|
-
if (!info.verified || (!info.nsVerifiedAt && is_wildcard_alias_1.default(alias))) {
|
264126
|
-
output.debug(`Domain ${domain} is not verified, trying to perform a verification`);
|
264127
|
-
const verificationResult = await verify_domain_1.default(client, domain, contextName);
|
264128
|
-
if (verificationResult instanceof ERRORS.DomainVerificationFailed) {
|
264129
|
-
output.debug(`Domain ${domain} verification failed`);
|
264130
|
-
return verificationResult;
|
264131
|
-
}
|
264132
|
-
if (!verificationResult.nsVerifiedAt && is_wildcard_alias_1.default(alias)) {
|
264133
|
-
return new ERRORS.DomainNsNotVerifiedForWildcard({
|
264134
|
-
domain,
|
264135
|
-
nsVerification: {
|
264136
|
-
intendedNameservers: verificationResult.intendedNameservers,
|
264137
|
-
nameservers: verificationResult.nameservers,
|
264138
|
-
},
|
264139
|
-
});
|
264140
|
-
}
|
264141
|
-
output.debug(`Domain ${domain} successfuly verified`);
|
264142
|
-
return maybe_get_domain_by_name_1.default(client, contextName, domain);
|
264143
|
-
}
|
264144
|
-
output.debug(`Domain ${domain} is already verified`);
|
264145
264507
|
return info;
|
264146
264508
|
}
|
264147
264509
|
output.debug(`The domain ${aliasDomain} was not found, trying to purchase it`);
|
@@ -264164,35 +264526,12 @@ async function setupDomain(output, client, alias, contextName) {
|
|
264164
264526
|
if (addResult instanceof now_error_1.NowError) {
|
264165
264527
|
return addResult;
|
264166
264528
|
}
|
264167
|
-
if (!addResult.verified) {
|
264168
|
-
const verificationResult = await verify_domain_1.default(client, domain, contextName);
|
264169
|
-
if (verificationResult instanceof ERRORS.DomainVerificationFailed) {
|
264170
|
-
output.debug(`Domain ${domain} was added but it couldn't be verified`);
|
264171
|
-
return verificationResult;
|
264172
|
-
}
|
264173
|
-
output.debug(`Domain ${domain} successfuly added and manually verified`);
|
264174
|
-
return verificationResult;
|
264175
|
-
}
|
264176
264529
|
output.debug(`Domain ${domain} successfuly added and automatically verified`);
|
264177
264530
|
return addResult;
|
264178
264531
|
}
|
264179
264532
|
output.debug(`The domain ${aliasDomain} was successfuly purchased`);
|
264180
264533
|
const purchasedDomain = (await maybe_get_domain_by_name_1.default(client, contextName, aliasDomain));
|
264181
264534
|
const { name: domain } = purchasedDomain;
|
264182
|
-
if (!purchasedDomain.verified) {
|
264183
|
-
const verificationResult = await verify_domain_1.default(client, domain, contextName);
|
264184
|
-
if (verificationResult instanceof ERRORS.DomainVerificationFailed) {
|
264185
|
-
output.debug(`Domain ${domain} was purchased but verification is still pending`);
|
264186
|
-
return new ERRORS.DomainVerificationFailed({
|
264187
|
-
domain: verificationResult.meta.domain,
|
264188
|
-
nsVerification: verificationResult.meta.nsVerification,
|
264189
|
-
txtVerification: verificationResult.meta.txtVerification,
|
264190
|
-
purchased: true,
|
264191
|
-
});
|
264192
|
-
}
|
264193
|
-
output.debug(`Domain ${domain} was purchased and it was manually verified`);
|
264194
|
-
return maybe_get_domain_by_name_1.default(client, contextName, domain);
|
264195
|
-
}
|
264196
264535
|
output.debug(`Domain ${domain} was purchased and it is automatically verified`);
|
264197
264536
|
return maybe_get_domain_by_name_1.default(client, contextName, domain);
|
264198
264537
|
}
|
@@ -264259,66 +264598,6 @@ async function transferInDomain(client, name, authCode, expectedPrice) {
|
|
264259
264598
|
exports.default = transferInDomain;
|
264260
264599
|
|
264261
264600
|
|
264262
|
-
/***/ }),
|
264263
|
-
|
264264
|
-
/***/ 9603:
|
264265
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
264266
|
-
|
264267
|
-
"use strict";
|
264268
|
-
|
264269
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
264270
|
-
if (k2 === undefined) k2 = k;
|
264271
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
264272
|
-
}) : (function(o, m, k, k2) {
|
264273
|
-
if (k2 === undefined) k2 = k;
|
264274
|
-
o[k2] = m[k];
|
264275
|
-
}));
|
264276
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
264277
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
264278
|
-
}) : function(o, v) {
|
264279
|
-
o["default"] = v;
|
264280
|
-
});
|
264281
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
264282
|
-
if (mod && mod.__esModule) return mod;
|
264283
|
-
var result = {};
|
264284
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
264285
|
-
__setModuleDefault(result, mod);
|
264286
|
-
return result;
|
264287
|
-
};
|
264288
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
264289
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
264290
|
-
};
|
264291
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
264292
|
-
const chalk_1 = __importDefault(__webpack_require__(961));
|
264293
|
-
const async_retry_1 = __importDefault(__webpack_require__(15596));
|
264294
|
-
const ERRORS = __importStar(__webpack_require__(60156));
|
264295
|
-
async function verifyDomain(client, domainName, contextName) {
|
264296
|
-
client.output.spinner(`Verifying domain ${domainName} under ${chalk_1.default.bold(contextName)}`);
|
264297
|
-
try {
|
264298
|
-
const { domain } = await performVerifyDomain(client, domainName);
|
264299
|
-
return domain;
|
264300
|
-
}
|
264301
|
-
catch (error) {
|
264302
|
-
if (error.code === 'verification_failed') {
|
264303
|
-
return new ERRORS.DomainVerificationFailed({
|
264304
|
-
purchased: false,
|
264305
|
-
domain: error.name,
|
264306
|
-
nsVerification: error.nsVerification,
|
264307
|
-
txtVerification: error.txtVerification,
|
264308
|
-
});
|
264309
|
-
}
|
264310
|
-
throw error;
|
264311
|
-
}
|
264312
|
-
}
|
264313
|
-
exports.default = verifyDomain;
|
264314
|
-
async function performVerifyDomain(client, domain) {
|
264315
|
-
return async_retry_1.default(async () => client.fetch(`/v4/domains/${encodeURIComponent(domain)}/verify`, {
|
264316
|
-
body: {},
|
264317
|
-
method: 'POST',
|
264318
|
-
}), { retries: 5, maxTimeout: 8000 });
|
264319
|
-
}
|
264320
|
-
|
264321
|
-
|
264322
264601
|
/***/ }),
|
264323
264602
|
|
264324
264603
|
/***/ 41806:
|
@@ -264598,8 +264877,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
264598
264877
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
264599
264878
|
};
|
264600
264879
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
264601
|
-
exports.DNSConflictingRecord = exports.DNSInvalidType = exports.DNSInvalidPort = exports.DNSPermissionDenied = exports.InvalidCert = exports.InvalidAliasInConfig = exports.NoAliasInConfig = exports.FileNotFound = exports.WorkingDirectoryDoesNotExist = exports.CantFindConfig = exports.ConflictingConfigFiles = exports.CantParseJSONFile = exports.CertMissing = exports.AliasInUse = exports.InvalidAlias = exports.DeploymentPermissionDenied = exports.DeploymentFailedAliasImpossible = exports.DeploymentNotReady = exports.DeploymentNotFound = exports.CertConfigurationError = exports.CertError = exports.TooManyRequests = exports.CertOrderNotFound = exports.CertsPermissionDenied = exports.CertNotFound = exports.UserAborted = exports.DomainPurchasePending = exports.DomainPaymentError = exports.UnexpectedDomainPurchaseError = exports.DomainNotTransferable = exports.DomainServiceNotAvailable = exports.DomainNotAvailable = exports.UnsupportedTLD = exports.InvalidDeploymentId = exports.NotDomainOwner = exports.InvalidDomain = exports.
|
264602
|
-
exports.BuildError = exports.ConflictingPathSegment = exports.ConflictingFilePath = exports.MissingBuildScript = exports.AliasDomainConfigured = exports.ProjectNotFound = exports.BuildsRateLimited = exports.DeploymentsRateLimited = exports.MissingDotenvVarsError = exports.LambdaSizeExceededError = exports.NoBuilderCacheError = exports.InvalidMoveToken = exports.InvalidMoveDestination = exports.AccountNotFound = exports.InvalidEmail = exports.DomainMoveConflict =
|
264880
|
+
exports.DomainRemovalConflict = exports.DNSConflictingRecord = exports.DNSInvalidType = exports.DNSInvalidPort = exports.DNSPermissionDenied = exports.InvalidCert = exports.InvalidAliasInConfig = exports.NoAliasInConfig = exports.FileNotFound = exports.WorkingDirectoryDoesNotExist = exports.CantFindConfig = exports.ConflictingConfigFiles = exports.CantParseJSONFile = exports.CertMissing = exports.AliasInUse = exports.InvalidAlias = exports.DeploymentPermissionDenied = exports.DeploymentFailedAliasImpossible = exports.DeploymentNotReady = exports.DeploymentNotFound = exports.CertConfigurationError = exports.CertError = exports.TooManyRequests = exports.CertOrderNotFound = exports.CertsPermissionDenied = exports.CertNotFound = exports.UserAborted = exports.DomainPurchasePending = exports.DomainPaymentError = exports.UnexpectedDomainPurchaseError = exports.DomainNotTransferable = exports.DomainServiceNotAvailable = exports.DomainNotAvailable = exports.UnsupportedTLD = exports.InvalidDeploymentId = exports.NotDomainOwner = exports.InvalidDomain = exports.DomainVerificationFailed = exports.DomainNotVerified = exports.DomainNotFound = exports.DomainRegistrationFailed = exports.InvalidTransferAuthCode = exports.SourceNotFound = exports.DomainExternal = exports.DomainPermissionDenied = exports.DomainAlreadyExists = exports.MissingUser = exports.InvalidToken = exports.TeamDeleted = exports.APIError = void 0;
|
264881
|
+
exports.BuildError = exports.ConflictingPathSegment = exports.ConflictingFilePath = exports.MissingBuildScript = exports.AliasDomainConfigured = exports.ProjectNotFound = exports.BuildsRateLimited = exports.DeploymentsRateLimited = exports.MissingDotenvVarsError = exports.LambdaSizeExceededError = exports.NoBuilderCacheError = exports.InvalidMoveToken = exports.InvalidMoveDestination = exports.AccountNotFound = exports.InvalidEmail = exports.DomainMoveConflict = void 0;
|
264603
264882
|
const bytes_1 = __importDefault(__webpack_require__(1446));
|
264604
264883
|
const build_utils_1 = __webpack_require__(3131);
|
264605
264884
|
const now_error_1 = __webpack_require__(43043);
|
@@ -264787,19 +265066,6 @@ class DomainVerificationFailed extends now_error_1.NowError {
|
|
264787
265066
|
}
|
264788
265067
|
}
|
264789
265068
|
exports.DomainVerificationFailed = DomainVerificationFailed;
|
264790
|
-
/**
|
264791
|
-
* This error is returned when the domain is not verified by nameservers for wildcard alias.
|
264792
|
-
*/
|
264793
|
-
class DomainNsNotVerifiedForWildcard extends now_error_1.NowError {
|
264794
|
-
constructor({ domain, nsVerification, }) {
|
264795
|
-
super({
|
264796
|
-
code: 'DOMAIN_NS_NOT_VERIFIED_FOR_WILDCARD',
|
264797
|
-
meta: { domain, nsVerification },
|
264798
|
-
message: `The domain ${domain} is not verified by nameservers for wildcard alias.`,
|
264799
|
-
});
|
264800
|
-
}
|
264801
|
-
}
|
264802
|
-
exports.DomainNsNotVerifiedForWildcard = DomainNsNotVerifiedForWildcard;
|
264803
265069
|
/**
|
264804
265070
|
* Used when a domain is validated because we tried to add it to an account
|
264805
265071
|
* via API or for any other reason.
|
@@ -271334,7 +271600,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
271334
271600
|
/***/ ((module) => {
|
271335
271601
|
|
271336
271602
|
"use strict";
|
271337
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
271603
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.75\",\"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\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"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\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.13.1-canary.2\",\"@vercel/go\":\"1.2.4-canary.7\",\"@vercel/node\":\"1.12.2-canary.10\",\"@vercel/python\":\"2.1.2-canary.5\",\"@vercel/ruby\":\"1.2.10-canary.3\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.27\",\"vercel-plugin-node\":\"1.12.2-canary.42\"},\"devDependencies\":{\"@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/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@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\",\"@vercel/client\":\"10.2.3-canary.53\",\"@vercel/fetch-retry\":\"5.0.3\",\"@vercel/frameworks\":\"0.5.1-canary.21\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.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\",\"clipboardy\":\"2.1.0\",\"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\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.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-eager\":\"2.0.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\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"28f3bf9ef6e492156eb127c7cbdcbfcfeafdf7e4\"}");
|
271338
271604
|
|
271339
271605
|
/***/ }),
|
271340
271606
|
|
@@ -271350,7 +271616,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
271350
271616
|
/***/ ((module) => {
|
271351
271617
|
|
271352
271618
|
"use strict";
|
271353
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
271619
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.53\",\"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\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@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\":\"2.13.1-canary.2\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"28f3bf9ef6e492156eb127c7cbdcbfcfeafdf7e4\"}");
|
271354
271620
|
|
271355
271621
|
/***/ }),
|
271356
271622
|
|