vercel 47.0.4 → 47.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +94 -10
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -61278,7 +61278,8 @@ function isOAuthAuth(authConfig) {
|
|
|
61278
61278
|
return authConfig.type === "oauth";
|
|
61279
61279
|
}
|
|
61280
61280
|
function isValidAccessToken(authConfig) {
|
|
61281
|
-
|
|
61281
|
+
const nowInSeconds = Math.floor(Date.now() / 1e3);
|
|
61282
|
+
return "token" in authConfig && (authConfig.expiresAt ?? 0) >= nowInSeconds;
|
|
61282
61283
|
}
|
|
61283
61284
|
function hasRefreshToken(authConfig) {
|
|
61284
61285
|
return "refreshToken" in authConfig;
|
|
@@ -94419,6 +94420,15 @@ var init_telemetry = __esm({
|
|
|
94419
94420
|
value: this.redactedValue
|
|
94420
94421
|
});
|
|
94421
94422
|
}
|
|
94423
|
+
trackLoginState(state) {
|
|
94424
|
+
if (state === "started")
|
|
94425
|
+
this.loginAttempt = (0, import_node_crypto.randomUUID)();
|
|
94426
|
+
if (this.loginAttempt) {
|
|
94427
|
+
this.track({ key: `login:attempt:${this.loginAttempt}`, value: state });
|
|
94428
|
+
}
|
|
94429
|
+
if (state !== "started")
|
|
94430
|
+
this.loginAttempt = void 0;
|
|
94431
|
+
}
|
|
94422
94432
|
trackCliFlagHelp(command, subcommands) {
|
|
94423
94433
|
let subcommand;
|
|
94424
94434
|
if (subcommands) {
|
|
@@ -115762,14 +115772,14 @@ var require_frameworks = __commonJS2({
|
|
|
115762
115772
|
]
|
|
115763
115773
|
},
|
|
115764
115774
|
{
|
|
115765
|
-
name: "Nuxt
|
|
115775
|
+
name: "Nuxt",
|
|
115766
115776
|
slug: "nuxtjs",
|
|
115767
115777
|
demo: "https://nuxtjs-template.vercel.app",
|
|
115768
115778
|
logo: "https://api-frameworks.vercel.sh/framework-logos/nuxt.svg",
|
|
115769
115779
|
screenshot: "https://assets.vercel.com/image/upload/v1647366075/front/import/nuxtjs.png",
|
|
115770
|
-
tagline: "Nuxt
|
|
115771
|
-
description: "A Nuxt
|
|
115772
|
-
website: "https://
|
|
115780
|
+
tagline: "Nuxt is the open source framework that makes full-stack development with Vue.js intuitive.",
|
|
115781
|
+
description: "A Nuxt app, bootstrapped with create-nuxt-app.",
|
|
115782
|
+
website: "https://nuxt.com",
|
|
115773
115783
|
sort: 2,
|
|
115774
115784
|
envPrefix: "NUXT_ENV_",
|
|
115775
115785
|
supersedes: ["nitro"],
|
|
@@ -115783,6 +115793,9 @@ var require_frameworks = __commonJS2({
|
|
|
115783
115793
|
},
|
|
115784
115794
|
{
|
|
115785
115795
|
matchPackage: "nuxt-edge"
|
|
115796
|
+
},
|
|
115797
|
+
{
|
|
115798
|
+
matchPackage: "nuxt-nightly"
|
|
115786
115799
|
}
|
|
115787
115800
|
]
|
|
115788
115801
|
},
|
|
@@ -115795,7 +115808,7 @@ var require_frameworks = __commonJS2({
|
|
|
115795
115808
|
value: "nuxt build"
|
|
115796
115809
|
},
|
|
115797
115810
|
devCommand: {
|
|
115798
|
-
value: "nuxt"
|
|
115811
|
+
value: "nuxt dev"
|
|
115799
115812
|
},
|
|
115800
115813
|
outputDirectory: {
|
|
115801
115814
|
value: "dist"
|
|
@@ -116241,6 +116254,49 @@ var require_frameworks = __commonJS2({
|
|
|
116241
116254
|
}
|
|
116242
116255
|
]
|
|
116243
116256
|
},
|
|
116257
|
+
{
|
|
116258
|
+
name: "FastAPI (Experimental)",
|
|
116259
|
+
slug: "fastapi",
|
|
116260
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/fastapi.svg",
|
|
116261
|
+
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fastapi.svg",
|
|
116262
|
+
tagline: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
|
|
116263
|
+
description: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
|
|
116264
|
+
website: "https://fastapi.tiangolo.com",
|
|
116265
|
+
useRuntime: { src: "main.py", use: "@vercel/python" },
|
|
116266
|
+
detectors: {
|
|
116267
|
+
every: [
|
|
116268
|
+
{
|
|
116269
|
+
path: "requirements.txt",
|
|
116270
|
+
matchContent: "fastapi"
|
|
116271
|
+
}
|
|
116272
|
+
]
|
|
116273
|
+
},
|
|
116274
|
+
settings: {
|
|
116275
|
+
installCommand: {
|
|
116276
|
+
placeholder: "`pip install -r requirements.txt`"
|
|
116277
|
+
},
|
|
116278
|
+
buildCommand: {
|
|
116279
|
+
placeholder: "None",
|
|
116280
|
+
value: null
|
|
116281
|
+
},
|
|
116282
|
+
devCommand: {
|
|
116283
|
+
value: "uvicorn main:app --reload --port $PORT"
|
|
116284
|
+
},
|
|
116285
|
+
outputDirectory: {
|
|
116286
|
+
value: "N/A"
|
|
116287
|
+
}
|
|
116288
|
+
},
|
|
116289
|
+
getOutputDirName: async () => "",
|
|
116290
|
+
defaultRoutes: [
|
|
116291
|
+
{
|
|
116292
|
+
handle: "filesystem"
|
|
116293
|
+
},
|
|
116294
|
+
{
|
|
116295
|
+
src: "/(.*)",
|
|
116296
|
+
dest: "/main"
|
|
116297
|
+
}
|
|
116298
|
+
]
|
|
116299
|
+
},
|
|
116244
116300
|
{
|
|
116245
116301
|
name: "FastHTML (Experimental)",
|
|
116246
116302
|
slug: "fasthtml",
|
|
@@ -119088,6 +119144,16 @@ var require_detect_builders = __commonJS2({
|
|
|
119088
119144
|
builders.push(...apiBuilders);
|
|
119089
119145
|
}
|
|
119090
119146
|
if (frontendBuilder) {
|
|
119147
|
+
if (frontendBuilder?.use === "@vercel/express") {
|
|
119148
|
+
builders.push({
|
|
119149
|
+
src: "public/**/*",
|
|
119150
|
+
use: "@vercel/static",
|
|
119151
|
+
config: {
|
|
119152
|
+
zeroConfig: true,
|
|
119153
|
+
outputDirectory: "public"
|
|
119154
|
+
}
|
|
119155
|
+
});
|
|
119156
|
+
}
|
|
119091
119157
|
builders.push(frontendBuilder);
|
|
119092
119158
|
if (hasNextApiFiles && apiBuilders.some((b) => (0, import_is_official_runtime.isOfficialRuntime)("node", b.use))) {
|
|
119093
119159
|
warnings.push({
|
|
@@ -179456,12 +179522,22 @@ var init_login2 = __esm({
|
|
|
179456
179522
|
"use strict";
|
|
179457
179523
|
init_telemetry();
|
|
179458
179524
|
LoginTelemetryClient = class extends TelemetryClient {
|
|
179525
|
+
/**
|
|
179526
|
+
* Tracks the state of the login process.
|
|
179527
|
+
* - `started` when the user initiates the login process.
|
|
179528
|
+
* - `canceled` when the user cancels the login process.
|
|
179529
|
+
* - `error` when the user encounters an error during the login process.
|
|
179530
|
+
* - `success` when the user successfully logs in.
|
|
179531
|
+
*/
|
|
179532
|
+
trackState(...args2) {
|
|
179533
|
+
this.trackLoginState(...args2);
|
|
179534
|
+
}
|
|
179459
179535
|
};
|
|
179460
179536
|
}
|
|
179461
179537
|
});
|
|
179462
179538
|
|
|
179463
179539
|
// src/commands/login/future.ts
|
|
179464
|
-
async function login2(client2) {
|
|
179540
|
+
async function login2(client2, telemetry2) {
|
|
179465
179541
|
const deviceAuthorizationResponse = await deviceAuthorizationRequest();
|
|
179466
179542
|
output_manager_default.debug(
|
|
179467
179543
|
`'Device Authorization response:', ${await deviceAuthorizationResponse.clone().text()}`
|
|
@@ -179469,6 +179545,7 @@ async function login2(client2) {
|
|
|
179469
179545
|
const [deviceAuthorizationError, deviceAuthorization] = await processDeviceAuthorizationResponse(deviceAuthorizationResponse);
|
|
179470
179546
|
if (deviceAuthorizationError) {
|
|
179471
179547
|
printError(deviceAuthorizationError);
|
|
179548
|
+
telemetry2.trackState("error");
|
|
179472
179549
|
return 1;
|
|
179473
179550
|
}
|
|
179474
179551
|
const {
|
|
@@ -179482,7 +179559,10 @@ async function login2(client2) {
|
|
|
179482
179559
|
const rl = import_node_readline.default.createInterface({
|
|
179483
179560
|
input: process.stdin,
|
|
179484
179561
|
output: process.stdout
|
|
179485
|
-
}).on("SIGINT", () =>
|
|
179562
|
+
}).on("SIGINT", () => {
|
|
179563
|
+
telemetry2.trackState("canceled");
|
|
179564
|
+
process.exit(0);
|
|
179565
|
+
});
|
|
179486
179566
|
rl.question(
|
|
179487
179567
|
`
|
|
179488
179568
|
Visit ${import_chalk107.default.bold(
|
|
@@ -179571,9 +179651,12 @@ async function login2(client2) {
|
|
|
179571
179651
|
error3 = await pollForToken();
|
|
179572
179652
|
output_manager_default.stopSpinner();
|
|
179573
179653
|
rl.close();
|
|
179574
|
-
if (!error3)
|
|
179654
|
+
if (!error3) {
|
|
179655
|
+
telemetry2.trackState("success");
|
|
179575
179656
|
return 0;
|
|
179657
|
+
}
|
|
179576
179658
|
printError(error3);
|
|
179659
|
+
telemetry2.trackState("error");
|
|
179577
179660
|
return 1;
|
|
179578
179661
|
}
|
|
179579
179662
|
var import_node_readline, import_chalk107, open6, import_ansi_escapes6;
|
|
@@ -179617,7 +179700,8 @@ async function login3(client2) {
|
|
|
179617
179700
|
}
|
|
179618
179701
|
if (parsedArgs.flags["--future"]) {
|
|
179619
179702
|
telemetry2.trackCliFlagFuture("login");
|
|
179620
|
-
|
|
179703
|
+
telemetry2.trackState("started");
|
|
179704
|
+
return await login2(client2, telemetry2);
|
|
179621
179705
|
}
|
|
179622
179706
|
if (parsedArgs.flags["--help"]) {
|
|
179623
179707
|
telemetry2.trackCliFlagHelp("login");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "47.0.
|
|
3
|
+
"version": "47.0.6",
|
|
4
4
|
"preferGlobal": true,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "The command-line interface for Vercel",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"@vercel/detect-agent": "0.2.0",
|
|
27
27
|
"@vercel/fun": "1.1.6",
|
|
28
28
|
"@vercel/go": "3.2.3",
|
|
29
|
-
"@vercel/express": "0.0.
|
|
30
|
-
"@vercel/hono": "0.0.
|
|
29
|
+
"@vercel/express": "0.0.14",
|
|
30
|
+
"@vercel/hono": "0.0.22",
|
|
31
31
|
"@vercel/hydrogen": "1.2.4",
|
|
32
32
|
"@vercel/next": "4.12.4",
|
|
33
|
-
"@vercel/node": "5.3.
|
|
33
|
+
"@vercel/node": "5.3.21",
|
|
34
34
|
"@vercel/python": "5.0.0",
|
|
35
35
|
"@vercel/redwood": "2.3.6",
|
|
36
36
|
"@vercel/remix-builder": "5.4.12",
|
|
37
37
|
"@vercel/ruby": "2.2.1",
|
|
38
|
-
"@vercel/static-build": "2.7.
|
|
38
|
+
"@vercel/static-build": "2.7.23",
|
|
39
39
|
"chokidar": "4.0.0",
|
|
40
40
|
"jose": "5.9.6"
|
|
41
41
|
},
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@vercel/client": "16.0.1",
|
|
86
86
|
"@vercel/detect-agent": "0.2.0",
|
|
87
87
|
"@vercel/error-utils": "2.0.3",
|
|
88
|
-
"@vercel/frameworks": "3.8.
|
|
89
|
-
"@vercel/fs-detectors": "5.5.
|
|
88
|
+
"@vercel/frameworks": "3.8.4",
|
|
89
|
+
"@vercel/fs-detectors": "5.5.2",
|
|
90
90
|
"@vercel/routing-utils": "5.1.1",
|
|
91
91
|
"@vitest/expect": "2.1.3",
|
|
92
92
|
"ajv": "6.12.3",
|