@vercel/client 17.3.9 → 17.4.0

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Agent } from 'http';
3
2
  import type { ArchiveFormat, DeploymentEventType } from './types';
4
3
  /**
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { continueDeployment } from './continue';
2
2
  export { checkDeploymentStatus } from './check-deployment-status';
3
3
  export { getVercelIgnore, buildFileTree } from './utils/index';
4
4
  export declare const createDeployment: (clientOptions: import("./types").VercelClientOptions, deploymentOptions?: import("./types").DeploymentOptions) => AsyncIterableIterator<{
5
- type: "hashes-calculated" | "file-count" | "file-uploaded" | "all-files-uploaded" | "created" | "building" | "ready" | "alias-assigned" | "warning" | "error" | "notice" | "tip" | "canceled" | "checks-registered" | "checks-completed" | "checks-running" | "checks-conclusion-succeeded" | "checks-conclusion-failed" | "checks-conclusion-skipped" | "checks-conclusion-canceled" | "checks-v2-failed";
5
+ type: import("./types").DeploymentEventType;
6
6
  payload: any;
7
7
  }>;
8
8
  export * from './errors';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Agent } from 'http';
3
2
  import type { Builder, BuilderFunctions, Images, ProjectSettings, Cron, ExperimentalServices, ExperimentalServiceGroups } from '@vercel/build-utils';
4
3
  import type { Header, Route, Redirect, Rewrite } from '@vercel/routing-utils';
package/dist/upload.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { EventEmitter } from 'node:events';
4
2
  import { DeploymentFile, FilesMap } from './utils/hashes';
5
3
  import type { Agent } from 'http';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  export interface DeploymentFile {
3
2
  names: string[];
4
3
  data?: Buffer;
@@ -37,7 +37,7 @@ var import_crypto = require("crypto");
37
37
  var import_fs_extra = __toESM(require("fs-extra"));
38
38
  var import_async_sema = require("async-sema");
39
39
  function hash(buf) {
40
- return (0, import_crypto.createHash)("sha1").update(buf).digest("hex");
40
+ return (0, import_crypto.createHash)("sha1").update(Uint8Array.from(buf)).digest("hex");
41
41
  }
42
42
  const mapToObject = (map) => {
43
43
  const obj = {};
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import fs from 'fs';
3
2
  type Ignoreable = (path: string, stats: fs.Stats) => boolean;
4
3
  export default function readdir(path: string, ignores: Ignoreable[]): Promise<string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "17.3.9",
3
+ "version": "17.4.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -27,7 +27,6 @@
27
27
  "@types/recursive-readdir": "2.2.0",
28
28
  "@types/tar-fs": "1.16.1",
29
29
  "jest-junit": "16.0.0",
30
- "typescript": "4.9.5",
31
30
  "vitest": "2.0.1"
32
31
  },
33
32
  "dependencies": {
@@ -42,9 +41,9 @@
42
41
  "querystring": "^0.2.0",
43
42
  "sleep-promise": "8.0.1",
44
43
  "tar-fs": "1.16.3",
45
- "@vercel/error-utils": "2.0.3",
46
- "@vercel/build-utils": "13.19.1",
47
- "@vercel/routing-utils": "6.1.1"
44
+ "@vercel/error-utils": "2.1.0",
45
+ "@vercel/build-utils": "13.21.0",
46
+ "@vercel/routing-utils": "6.2.0"
48
47
  },
49
48
  "scripts": {
50
49
  "build": "node ../../utils/build.mjs",