@vercel/client 17.2.46 → 17.2.48

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.
@@ -85,7 +85,7 @@ async function* checkDeploymentStatus(deployment, clientOptions) {
85
85
  let deploymentResponse;
86
86
  let retriesLeft = RETRY_COUNT;
87
87
  while (true) {
88
- deploymentResponse = await (0, import_utils.fetch)(
88
+ deploymentResponse = await (0, import_utils.fetchApi)(
89
89
  `${apiDeployments}/${deployment.id || deployment.deploymentId}${teamId ? `?teamId=${teamId}` : ""}`,
90
90
  token,
91
91
  { apiUrl, userAgent, agent: clientOptions.agent }
package/dist/continue.js CHANGED
@@ -155,7 +155,7 @@ async function* continueDeployment(options) {
155
155
  async function postContinue(options) {
156
156
  const debug = (0, import_utils.createDebug)(options.debug);
157
157
  debug(`Calling continue deployment endpoint for ${options.deploymentId}`);
158
- const response = await (0, import_utils.fetch)(
158
+ const response = await (0, import_utils.fetchApi)(
159
159
  `/deployments/${options.deploymentId}/continue${options.teamId ? `?teamId=${options.teamId}` : ""}`,
160
160
  options.token,
161
161
  {
package/dist/deploy.js CHANGED
@@ -41,7 +41,7 @@ async function* postDeployment(files, clientOptions, deploymentOptions) {
41
41
  }
42
42
  debug("Sending deployment creation API request");
43
43
  try {
44
- const response = await (0, import_utils.fetch)(
44
+ const response = await (0, import_utils.fetchApi)(
45
45
  `${apiDeployments}${(0, import_query_string.generateQueryString)(clientOptions)}`,
46
46
  clientOptions.token,
47
47
  {
package/dist/upload.js CHANGED
@@ -161,7 +161,7 @@ async function* uploadFiles(options) {
161
161
  const abortController = new AbortController();
162
162
  abortControllers.add(abortController);
163
163
  try {
164
- const res = await (0, import_utils.fetch)(
164
+ const res = await (0, import_utils.fetchApi)(
165
165
  import_utils.API_FILES,
166
166
  options.token,
167
167
  {
@@ -26,7 +26,7 @@ interface FetchOpts extends RequestInit {
26
26
  };
27
27
  userAgent?: string;
28
28
  }
29
- export declare const fetch: (url: string, token: string, opts?: FetchOpts, debugEnabled?: boolean) => Promise<any>;
29
+ export declare const fetchApi: (url: string, token: string, opts?: FetchOpts, debugEnabled?: boolean) => Promise<any>;
30
30
  export interface PreparedFile {
31
31
  file: string;
32
32
  sha?: string;
@@ -32,7 +32,7 @@ __export(utils_exports, {
32
32
  EVENTS: () => EVENTS,
33
33
  buildFileTree: () => buildFileTree,
34
34
  createDebug: () => createDebug,
35
- fetch: () => fetch,
35
+ fetchApi: () => fetchApi,
36
36
  getApiDeploymentsUrl: () => getApiDeploymentsUrl,
37
37
  getVercelIgnore: () => getVercelIgnore,
38
38
  parseVercelConfig: () => parseVercelConfig,
@@ -287,7 +287,7 @@ ${clearRelative(ignoreFile)}`);
287
287
  function clearRelative(str) {
288
288
  return str.replace(/(\n|^)\.\//g, "$1");
289
289
  }
290
- const fetch = async (url, token, opts = {}, debugEnabled) => {
290
+ const fetchApi = async (url, token, opts = {}, debugEnabled) => {
291
291
  semaphore.acquire();
292
292
  const debug = createDebug(debugEnabled);
293
293
  let time;
@@ -357,7 +357,7 @@ function createDebug(debug) {
357
357
  EVENTS,
358
358
  buildFileTree,
359
359
  createDebug,
360
- fetch,
360
+ fetchApi,
361
361
  getApiDeploymentsUrl,
362
362
  getVercelIgnore,
363
363
  parseVercelConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "17.2.46",
3
+ "version": "17.2.48",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -42,9 +42,9 @@
42
42
  "querystring": "^0.2.0",
43
43
  "sleep-promise": "8.0.1",
44
44
  "tar-fs": "1.16.3",
45
- "@vercel/routing-utils": "5.3.3",
46
45
  "@vercel/error-utils": "2.0.3",
47
- "@vercel/build-utils": "13.5.0"
46
+ "@vercel/build-utils": "13.6.0",
47
+ "@vercel/routing-utils": "6.0.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "node ../../utils/build.mjs",