vercel 50.9.1 → 50.9.3

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.
Files changed (2) hide show
  1. package/dist/index.js +114 -6
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -82811,6 +82811,102 @@ var require_frameworks = __commonJS2({
82811
82811
  }
82812
82812
  ]
82813
82813
  },
82814
+ {
82815
+ name: "Rust",
82816
+ slug: "rust",
82817
+ experimental: true,
82818
+ runtimeFramework: true,
82819
+ logo: "https://api-frameworks.vercel.sh/framework-logos/rust.svg",
82820
+ tagline: "A language empowering everyone to build reliable and efficient software.",
82821
+ description: "A generic Rust application deployed as a serverless function.",
82822
+ website: "https://www.rust-lang.org",
82823
+ useRuntime: { src: "src/main.rs", use: "@vercel/rust" },
82824
+ ignoreRuntimes: ["@vercel/rust"],
82825
+ detectors: {
82826
+ every: [
82827
+ {
82828
+ path: "Cargo.toml"
82829
+ },
82830
+ {
82831
+ path: "src/main.rs"
82832
+ }
82833
+ ]
82834
+ },
82835
+ settings: {
82836
+ installCommand: {
82837
+ placeholder: "None"
82838
+ },
82839
+ buildCommand: {
82840
+ placeholder: "None",
82841
+ value: null
82842
+ },
82843
+ devCommand: {
82844
+ placeholder: "`cargo run`",
82845
+ value: null
82846
+ },
82847
+ outputDirectory: {
82848
+ value: "N/A"
82849
+ }
82850
+ },
82851
+ getOutputDirName: async () => "public",
82852
+ defaultRoutes: [
82853
+ {
82854
+ handle: "filesystem"
82855
+ },
82856
+ {
82857
+ src: "/(.*)",
82858
+ dest: "/src/main"
82859
+ }
82860
+ ]
82861
+ },
82862
+ {
82863
+ name: "Node",
82864
+ slug: "node",
82865
+ experimental: true,
82866
+ runtimeFramework: true,
82867
+ logo: "https://api-frameworks.vercel.sh/framework-logos/node.svg",
82868
+ tagline: "Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.",
82869
+ description: "A generic Node.js application deployed as a serverless function.",
82870
+ website: "https://nodejs.org",
82871
+ useRuntime: { src: "server.ts", use: "@vercel/backends" },
82872
+ ignoreRuntimes: ["@vercel/node"],
82873
+ detectors: {
82874
+ every: [
82875
+ {
82876
+ path: "server.ts"
82877
+ },
82878
+ {
82879
+ path: "package.json"
82880
+ }
82881
+ ]
82882
+ },
82883
+ settings: {
82884
+ installCommand: {
82885
+ placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
82886
+ },
82887
+ buildCommand: {
82888
+ placeholder: "None",
82889
+ value: null
82890
+ },
82891
+ devCommand: {
82892
+ placeholder: "`npm run dev` or `npx ts-node server.ts`",
82893
+ value: null
82894
+ },
82895
+ outputDirectory: {
82896
+ value: "N/A"
82897
+ }
82898
+ },
82899
+ getOutputDirName: async () => "public",
82900
+ defaultRoutes: [
82901
+ {
82902
+ handle: "filesystem"
82903
+ },
82904
+ {
82905
+ src: "/(.*)",
82906
+ dest: "/"
82907
+ }
82908
+ ]
82909
+ },
82814
82910
  {
82815
82911
  name: "Services",
82816
82912
  slug: "services",
@@ -95609,11 +95705,7 @@ Are you sure you want to proceed?`;
95609
95705
  (0, import_node_fetch2.default)(url3, { agent: this.agent, ...opts, headers, body })
95610
95706
  );
95611
95707
  }
95612
- async fetch(url3, opts = {}) {
95613
- const confirmed = await this.confirmMutatingOperation(url3, opts.method);
95614
- if (!confirmed) {
95615
- throw new Error("Operation canceled by user");
95616
- }
95708
+ fetch(url3, opts = {}) {
95617
95709
  return this.retry(async (bail) => {
95618
95710
  const res = await this._fetch(url3, opts);
95619
95711
  printIndications(res);
@@ -132532,6 +132624,13 @@ async function executeApiRequest(client2, endpoint, flags) {
132532
132624
  }
132533
132625
  async function executeSingleRequest(client2, config2, flags) {
132534
132626
  try {
132627
+ const confirmed = await client2.confirmMutatingOperation(
132628
+ config2.url,
132629
+ config2.method
132630
+ );
132631
+ if (!confirmed) {
132632
+ return 1;
132633
+ }
132535
132634
  const response = await client2.fetch(config2.url, {
132536
132635
  method: config2.method,
132537
132636
  body: config2.body,
@@ -132548,6 +132647,13 @@ async function executeSingleRequest(client2, config2, flags) {
132548
132647
  async function executePaginatedRequest(client2, config2, flags) {
132549
132648
  const results = [];
132550
132649
  try {
132650
+ const confirmed = await client2.confirmMutatingOperation(
132651
+ config2.url,
132652
+ config2.method
132653
+ );
132654
+ if (!confirmed) {
132655
+ return 1;
132656
+ }
132551
132657
  for await (const page of client2.fetchPaginated(
132552
132658
  config2.url,
132553
132659
  {
@@ -141340,7 +141446,8 @@ function sortBuilders(builds) {
141340
141446
  );
141341
141447
  frontendRuntimeSet2.delete("@vercel/python");
141342
141448
  frontendRuntimeSet2.delete("@vercel/ruby");
141343
- const toNumber = (build2) => build2.use === "@vercel/python" || build2.use === "@vercel/ruby" ? 1 : frontendRuntimeSet2.has(build2.use) ? 0 : 2;
141449
+ frontendRuntimeSet2.delete("@vercel/rust");
141450
+ const toNumber = (build2) => build2.use === "@vercel/python" || build2.use === "@vercel/ruby" || build2.use === "@vercel/rust" ? 1 : frontendRuntimeSet2.has(build2.use) ? 0 : 2;
141344
141451
  return builds.sort((build1, build2) => {
141345
141452
  return toNumber(build1) - toNumber(build2);
141346
141453
  });
@@ -196741,6 +196848,7 @@ var help2 = () => `
196741
196848
  logs [url] Displays the logs for a deployment
196742
196849
  microfrontends Manages your microfrontends
196743
196850
  projects Manages your Projects
196851
+ redirects [cmd] Manages redirects for your current Project
196744
196852
  rm | remove [id] Removes a deployment
196745
196853
  teams Manages your teams
196746
196854
  upgrade Upgrade the Vercel CLI to the latest version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "50.9.1",
3
+ "version": "50.9.3",
4
4
  "type": "module",
5
5
  "preferGlobal": true,
6
6
  "license": "Apache-2.0",
@@ -28,26 +28,26 @@
28
28
  "esbuild": "0.27.0",
29
29
  "form-data": "^4.0.0",
30
30
  "jose": "5.9.6",
31
- "@vercel/backends": "0.0.23",
32
- "@vercel/detect-agent": "1.1.0",
33
31
  "@vercel/build-utils": "13.2.16",
34
- "@vercel/elysia": "0.1.27",
32
+ "@vercel/backends": "0.0.23",
35
33
  "@vercel/express": "0.1.34",
34
+ "@vercel/elysia": "0.1.27",
35
+ "@vercel/detect-agent": "1.1.0",
36
36
  "@vercel/fastify": "0.1.30",
37
37
  "@vercel/go": "3.3.4",
38
+ "@vercel/h3": "0.1.36",
38
39
  "@vercel/hono": "0.2.30",
39
40
  "@vercel/hydrogen": "1.3.5",
40
- "@vercel/h3": "0.1.36",
41
- "@vercel/koa": "0.1.10",
42
41
  "@vercel/nestjs": "0.2.31",
43
- "@vercel/node": "5.5.28",
42
+ "@vercel/koa": "0.1.10",
44
43
  "@vercel/next": "4.15.18",
44
+ "@vercel/node": "5.5.28",
45
+ "@vercel/python": "6.4.0",
45
46
  "@vercel/redwood": "2.4.9",
46
47
  "@vercel/remix-builder": "5.5.9",
47
- "@vercel/python": "6.3.2",
48
- "@vercel/rust": "1.0.5",
48
+ "@vercel/ruby": "2.2.5",
49
49
  "@vercel/static-build": "2.8.28",
50
- "@vercel/ruby": "2.2.5"
50
+ "@vercel/rust": "1.0.5"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -177,8 +177,8 @@
177
177
  "@vercel-internals/types": "3.0.6",
178
178
  "@vercel/client": "17.2.31",
179
179
  "@vercel/error-utils": "2.0.3",
180
- "@vercel/frameworks": "3.16.0",
181
- "@vercel/fs-detectors": "5.7.18",
180
+ "@vercel/frameworks": "3.16.1",
181
+ "@vercel/fs-detectors": "5.7.19",
182
182
  "@vercel/routing-utils": "5.3.2"
183
183
  },
184
184
  "scripts": {