vercel-cli 48.1.6__py3-none-any.whl → 48.2.0__py3-none-any.whl

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.

Potentially problematic release.


This version of vercel-cli might be problematic. Click here for more details.

@@ -33381,6 +33381,14 @@ var init_command19 = __esm({
33381
33381
  type: String,
33382
33382
  deprecated: false
33383
33383
  },
33384
+ {
33385
+ name: "status",
33386
+ description: "Filter deployments by their status. Can be comma-separated for multiple statuses (e.g.: `--status BUILDING,READY`)",
33387
+ argument: "STATUS",
33388
+ shorthand: "s",
33389
+ type: String,
33390
+ deprecated: false
33391
+ },
33384
33392
  nextOption,
33385
33393
  // this can be deprecated someday
33386
33394
  { name: "prod", shorthand: null, type: Boolean, deprecated: false },
@@ -33403,6 +33411,14 @@ var init_command19 = __esm({
33403
33411
  {
33404
33412
  name: "Paginate deployments for a project, where `1584722256178` is the time in milliseconds since the UNIX epoch",
33405
33413
  value: `${packageName} list my-app --next 1584722256178`
33414
+ },
33415
+ {
33416
+ name: "Filter deployments by status",
33417
+ value: `${packageName} list --status READY`
33418
+ },
33419
+ {
33420
+ name: "Filter deployments by multiple statuses",
33421
+ value: `${packageName} list --status BUILDING,ERROR`
33406
33422
  }
33407
33423
  ]
33408
33424
  };
@@ -116302,7 +116318,7 @@ var require_frameworks = __commonJS2({
116302
116318
  tagline: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
116303
116319
  description: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
116304
116320
  website: "https://fastapi.tiangolo.com",
116305
- useRuntime: { src: "main.py", use: "@vercel/python" },
116321
+ useRuntime: { src: "index.py", use: "@vercel/python" },
116306
116322
  detectors: {
116307
116323
  some: [
116308
116324
  {
@@ -116328,20 +116344,21 @@ var require_frameworks = __commonJS2({
116328
116344
  value: null
116329
116345
  },
116330
116346
  devCommand: {
116331
- value: "uvicorn main:app --reload --port $PORT"
116347
+ placeholder: "None",
116348
+ value: null
116332
116349
  },
116333
116350
  outputDirectory: {
116334
116351
  value: "N/A"
116335
116352
  }
116336
116353
  },
116337
- getOutputDirName: async () => "",
116354
+ getOutputDirName: async () => "public",
116338
116355
  defaultRoutes: [
116339
116356
  {
116340
116357
  handle: "filesystem"
116341
116358
  },
116342
116359
  {
116343
116360
  src: "/(.*)",
116344
- dest: "/main"
116361
+ dest: "/"
116345
116362
  }
116346
116363
  ]
116347
116364
  },
@@ -116756,6 +116773,7 @@ var require_frameworks = __commonJS2({
116756
116773
  name: "Express",
116757
116774
  slug: "express",
116758
116775
  logo: "https://api-frameworks.vercel.sh/framework-logos/express.svg",
116776
+ demo: "https://express-vercel-example-demo.vercel.app/",
116759
116777
  darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/express-dark.svg",
116760
116778
  tagline: "Fast, unopinionated, minimalist web framework for Node.js",
116761
116779
  description: "Fast, unopinionated, minimalist web framework for Node.js",
@@ -119377,7 +119395,7 @@ var require_detect_builders = __commonJS2({
119377
119395
  builders.push(...apiBuilders);
119378
119396
  }
119379
119397
  if (frontendBuilder) {
119380
- if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono") {
119398
+ if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python") {
119381
119399
  builders.push({
119382
119400
  src: "public/**/*",
119383
119401
  use: "@vercel/static",
@@ -168230,6 +168248,22 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
168230
168248
  if (buildConfig.config?.framework === "hono" || buildConfig.config?.framework === "express" || buildConfig.config?.framework === "h3") {
168231
168249
  src = "package.json";
168232
168250
  }
168251
+ if (buildConfig.config?.framework === "fastapi") {
168252
+ const candidateDirs = ["", "src", "app"];
168253
+ const candidateNames = ["app", "index", "server", "main"];
168254
+ const candidates = [];
168255
+ for (const dir of candidateDirs) {
168256
+ for (const name of candidateNames) {
168257
+ candidates.push(dir ? `${dir}/${name}.py` : `${name}.py`);
168258
+ }
168259
+ }
168260
+ if (!fileList.includes(src)) {
168261
+ const existing = candidates.filter((p) => fileList.includes(p));
168262
+ if (existing.length > 0) {
168263
+ src = existing[0];
168264
+ }
168265
+ }
168266
+ }
168233
168267
  const mapToEntrypoint = /* @__PURE__ */ new Map();
168234
168268
  const extensionless = devServer.getExtensionlessFile(src);
168235
168269
  if (extensionless) {
@@ -179731,6 +179765,14 @@ var init_list7 = __esm({
179731
179765
  this.trackCliFlag("confirm");
179732
179766
  }
179733
179767
  }
179768
+ trackCliOptionStatus(status3) {
179769
+ if (status3) {
179770
+ this.trackCliOption({
179771
+ option: "status",
179772
+ value: this.redactedValue
179773
+ });
179774
+ }
179775
+ }
179734
179776
  trackCliArgumentApp(app) {
179735
179777
  if (app) {
179736
179778
  this.trackCliArgument({
@@ -179789,6 +179831,7 @@ async function list5(client2) {
179789
179831
  telemetry2.trackCliOptionMeta(parsedArgs.flags["--meta"]);
179790
179832
  telemetry2.trackCliOptionNext(parsedArgs.flags["--next"]);
179791
179833
  telemetry2.trackCliOptionPolicy(parsedArgs.flags["--policy"]);
179834
+ telemetry2.trackCliOptionStatus(parsedArgs.flags["--status"]);
179792
179835
  if ("--confirm" in parsedArgs.flags) {
179793
179836
  telemetry2.trackCliFlagConfirm(parsedArgs.flags["--confirm"]);
179794
179837
  warn("`--confirm` is deprecated, please use `--yes` instead");
@@ -179801,6 +179844,29 @@ async function list5(client2) {
179801
179844
  flagName: "environment",
179802
179845
  flags: parsedArgs.flags
179803
179846
  });
179847
+ const statusFlag = parsedArgs.flags["--status"];
179848
+ let status3;
179849
+ if (statusFlag) {
179850
+ const validStatuses = [
179851
+ "BUILDING",
179852
+ "ERROR",
179853
+ "INITIALIZING",
179854
+ "QUEUED",
179855
+ "READY",
179856
+ "CANCELED"
179857
+ ];
179858
+ const statusValues = statusFlag.split(",").map((s) => s.trim().toUpperCase());
179859
+ const invalidStatuses = statusValues.filter(
179860
+ (s) => !validStatuses.includes(s)
179861
+ );
179862
+ if (invalidStatuses.length > 0) {
179863
+ error3(
179864
+ `Invalid status values: ${invalidStatuses.join(", ")}. Valid values are: ${validStatuses.join(", ")}`
179865
+ );
179866
+ return 1;
179867
+ }
179868
+ status3 = statusValues.join(",");
179869
+ }
179804
179870
  let project;
179805
179871
  let pagination;
179806
179872
  let contextName = "";
@@ -179889,6 +179955,9 @@ async function list5(client2) {
179889
179955
  if (target) {
179890
179956
  query.set("target", target);
179891
179957
  }
179958
+ if (status3) {
179959
+ query.set("state", status3);
179960
+ }
179892
179961
  for await (const chunk of client2.fetchPaginated(`/v6/deployments?${query}`)) {
179893
179962
  deployments.push(...chunk.deployments);
179894
179963
  pagination = chunk.pagination;
@@ -18,9 +18,9 @@
18
18
  }
19
19
  },
20
20
  "node_modules/@vercel/python": {
21
- "version": "5.0.5",
22
- "resolved": "https://registry.npmjs.org/@vercel/python/-/python-5.0.5.tgz",
23
- "integrity": "sha512-XLG/fDe2hflzNtSWuoASTo+N2c4hl6SbcufvBRYa7BnBQK9t4ZH1IEu+vJkq2AUoVczp5JEYLEXkIGm8KBtoeg==",
21
+ "version": "5.0.7",
22
+ "resolved": "https://registry.npmjs.org/@vercel/python/-/python-5.0.7.tgz",
23
+ "integrity": "sha512-hswxQErqha3aLxPqdisPEN2WpN422OMbxK1O2DA8saPi1opRh1SjD9kFaPu74iY9H0lIjN+evQpBVeCFmn6n2g==",
24
24
  "license": "Apache-2.0"
25
25
  }
26
26
  }