vercel 33.3.0 → 33.4.1

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 +52 -23
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -62513,7 +62513,7 @@ var require_package = __commonJS2({
62513
62513
  "../client/package.json"(exports2, module2) {
62514
62514
  module2.exports = {
62515
62515
  name: "@vercel/client",
62516
- version: "13.1.0",
62516
+ version: "13.1.1",
62517
62517
  main: "dist/index.js",
62518
62518
  typings: "dist/index.d.ts",
62519
62519
  homepage: "https://vercel.com",
@@ -62551,6 +62551,7 @@ var require_package = __commonJS2({
62551
62551
  },
62552
62552
  dependencies: {
62553
62553
  "@vercel/build-utils": "7.5.1",
62554
+ "@vercel/error-utils": "2.0.2",
62554
62555
  "@vercel/routing-utils": "3.1.0",
62555
62556
  "@zeit/fetch": "5.2.0",
62556
62557
  "async-retry": "1.2.3",
@@ -68605,6 +68606,7 @@ var require_create_deployment = __commonJS2({
68605
68606
  var import_upload = require_upload();
68606
68607
  var import_utils = require_utils8();
68607
68608
  var import_errors4 = require_errors3();
68609
+ var import_error_utils34 = require_dist2();
68608
68610
  var import_build_utils19 = require("@vercel/build-utils");
68609
68611
  var import_tar_fs2 = __toESM4(require_tar_fs());
68610
68612
  var import_zlib = require("zlib");
@@ -68664,25 +68666,37 @@ var require_create_deployment = __commonJS2({
68664
68666
  }
68665
68667
  const workPath = typeof path11 === "string" ? path11 : path11[0];
68666
68668
  let files;
68667
- if (clientOptions.archive === "tgz") {
68668
- debug3("Packing tarball");
68669
- const tarStream = import_tar_fs2.default.pack(workPath, {
68670
- entries: fileList.map((file) => (0, import_path44.relative)(workPath, file))
68671
- }).pipe((0, import_zlib.createGzip)());
68672
- const tarBuffer = await (0, import_build_utils19.streamToBuffer)(tarStream);
68673
- debug3("Packed tarball");
68674
- files = /* @__PURE__ */ new Map([
68675
- [
68676
- (0, import_hashes.hash)(tarBuffer),
68677
- {
68678
- names: [(0, import_path44.join)(workPath, ".vercel/source.tgz")],
68679
- data: tarBuffer,
68680
- mode: 438
68681
- }
68682
- ]
68683
- ]);
68684
- } else {
68685
- files = await (0, import_hashes.hashes)(fileList);
68669
+ try {
68670
+ if (clientOptions.archive === "tgz") {
68671
+ debug3("Packing tarball");
68672
+ const tarStream = import_tar_fs2.default.pack(workPath, {
68673
+ entries: fileList.map((file) => (0, import_path44.relative)(workPath, file))
68674
+ }).pipe((0, import_zlib.createGzip)());
68675
+ const tarBuffer = await (0, import_build_utils19.streamToBuffer)(tarStream);
68676
+ debug3("Packed tarball");
68677
+ files = /* @__PURE__ */ new Map([
68678
+ [
68679
+ (0, import_hashes.hash)(tarBuffer),
68680
+ {
68681
+ names: [(0, import_path44.join)(workPath, ".vercel/source.tgz")],
68682
+ data: tarBuffer,
68683
+ mode: 438
68684
+ }
68685
+ ]
68686
+ ]);
68687
+ } else {
68688
+ files = await (0, import_hashes.hashes)(fileList);
68689
+ }
68690
+ } catch (err) {
68691
+ if (clientOptions.prebuilt && (0, import_error_utils34.isErrnoException)(err) && err.code === "ENOENT" && err.path) {
68692
+ const errPath = (0, import_path44.relative)(workPath, err.path);
68693
+ err.message = `File does not exist: "${(0, import_path44.relative)(workPath, errPath)}"`;
68694
+ if (errPath.split(import_path44.sep).includes("node_modules")) {
68695
+ err.message = `Please ensure project dependencies have been installed:
68696
+ ${err.message}`;
68697
+ }
68698
+ }
68699
+ throw err;
68686
68700
  }
68687
68701
  debug3(`Yielding a 'hashes-calculated' event with ${files.size} hashes`);
68688
68702
  yield { type: "hashes-calculated", payload: (0, import_hashes.mapToObject)(files) };
@@ -191574,6 +191588,7 @@ async function add5(client2, project, opts, args2, output2) {
191574
191588
  });
191575
191589
  envGitBranch = inputValue || "";
191576
191590
  }
191591
+ const type = opts["--sensitive"] ? "sensitive" : "encrypted";
191577
191592
  const addStamp = stamp_default();
191578
191593
  try {
191579
191594
  output2.spinner("Saving");
@@ -191581,7 +191596,7 @@ async function add5(client2, project, opts, args2, output2) {
191581
191596
  output2,
191582
191597
  client2,
191583
191598
  project.id,
191584
- "encrypted",
191599
+ type,
191585
191600
  envName,
191586
191601
  envValue,
191587
191602
  envTargets,
@@ -191903,7 +191918,16 @@ var init_command10 = __esm({
191903
191918
  required: false
191904
191919
  }
191905
191920
  ],
191906
- options: [],
191921
+ options: [
191922
+ {
191923
+ name: "sensitive",
191924
+ description: "Add a sensitive Environment Variable",
191925
+ shorthand: null,
191926
+ type: "string",
191927
+ deprecated: false,
191928
+ multi: false
191929
+ }
191930
+ ],
191907
191931
  examples: []
191908
191932
  },
191909
191933
  {
@@ -191983,6 +192007,10 @@ var init_command10 = __esm({
191983
192007
  `${packageName} env add DB_PASS production`
191984
192008
  ]
191985
192009
  },
192010
+ {
192011
+ name: "Add a sensitive Environment Variable",
192012
+ value: `${packageName} env add API_TOKEN --sensitive`
192013
+ },
191986
192014
  {
191987
192015
  name: "Add a new variable for a specific Environment and Git Branch",
191988
192016
  value: [
@@ -192036,7 +192064,8 @@ async function main6(client2) {
192036
192064
  "--yes": Boolean,
192037
192065
  "-y": "--yes",
192038
192066
  "--environment": String,
192039
- "--git-branch": String
192067
+ "--git-branch": String,
192068
+ "--sensitive": Boolean
192040
192069
  });
192041
192070
  } catch (error4) {
192042
192071
  handleError(error4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "33.3.0",
3
+ "version": "33.4.1",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -31,7 +31,7 @@
31
31
  "@vercel/redwood": "2.0.6",
32
32
  "@vercel/remix-builder": "2.0.18",
33
33
  "@vercel/ruby": "2.0.5",
34
- "@vercel/static-build": "2.1.0",
34
+ "@vercel/static-build": "2.2.0",
35
35
  "chokidar": "3.3.1"
36
36
  },
37
37
  "devDependencies": {
@@ -79,7 +79,7 @@
79
79
  "@vercel-internals/constants": "1.0.4",
80
80
  "@vercel-internals/get-package-json": "1.0.0",
81
81
  "@vercel-internals/types": "1.0.21",
82
- "@vercel/client": "13.1.0",
82
+ "@vercel/client": "13.1.1",
83
83
  "@vercel/error-utils": "2.0.2",
84
84
  "@vercel/frameworks": "2.0.6",
85
85
  "@vercel/fs-detectors": "5.1.6",