@theholocron/vercel-client 1.31.0 → 1.32.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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "@theholocron/http-client";
2
2
  import { ErrorSink, Logger } from "@theholocron/observability/core";
3
- //#region src/utils.d.ts
3
+ //#region ../../../../../src/utils.d.ts
4
4
  interface VercelClientOptions {
5
5
  /** Vercel API token. */
6
6
  token: string;
@@ -16,7 +16,7 @@ interface VercelClientOptions {
16
16
  errors?: ErrorSink;
17
17
  }
18
18
  //#endregion
19
- //#region src/deployments/deployments.d.ts
19
+ //#region ../../../../../src/deployments/deployments.d.ts
20
20
  type VercelDeploymentState = "INITIALIZING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
21
21
  type VercelDeploymentTarget = "production" | "staging";
22
22
  interface VercelDeployment {
@@ -54,7 +54,7 @@ interface VercelCreateDeploymentInput {
54
54
  target?: VercelDeploymentTarget;
55
55
  }
56
56
  //#endregion
57
- //#region src/domains/domains.d.ts
57
+ //#region ../../../../../src/domains/domains.d.ts
58
58
  interface VercelDomain {
59
59
  name: string;
60
60
  apexName: string;
@@ -108,7 +108,7 @@ interface VercelDomainConfig {
108
108
  recommendedIPv4: VercelDomainConfigRecommendation<string[]>[];
109
109
  }
110
110
  //#endregion
111
- //#region src/env/env.d.ts
111
+ //#region ../../../../../src/env/env.d.ts
112
112
  type VercelEnvTarget = "production" | "preview" | "development";
113
113
  interface VercelEnvVar {
114
114
  id: string;
@@ -119,7 +119,7 @@ interface VercelEnvVarsResponse {
119
119
  envs: VercelEnvVar[];
120
120
  }
121
121
  //#endregion
122
- //#region src/projects/projects.d.ts
122
+ //#region ../../../../../src/projects/projects.d.ts
123
123
  interface VercelProjectLink {
124
124
  type?: string;
125
125
  repoId?: number;
@@ -149,7 +149,7 @@ interface VercelUpdateProjectInput {
149
149
  };
150
150
  }
151
151
  //#endregion
152
- //#region src/user/user.d.ts
152
+ //#region ../../../../../src/user/user.d.ts
153
153
  interface VercelUser {
154
154
  id?: string;
155
155
  username?: string;
@@ -160,7 +160,7 @@ interface VercelUserResponse {
160
160
  user?: VercelUser;
161
161
  }
162
162
  //#endregion
163
- //#region src/index.d.ts
163
+ //#region ../../../../../src/index.d.ts
164
164
  declare function createVercelClient(opts: VercelClientOptions): {
165
165
  deployments: {
166
166
  trigger: (input: VercelTriggerDeploymentInput) => Promise<VercelDeployment>;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRestClient } from "@theholocron/http-client";
2
- //#region src/deployments/deployments.ts
2
+ //#region ../../../../../src/deployments/deployments.ts
3
3
  function deployments(rest) {
4
4
  return {
5
5
  trigger: (input) => rest.request("/v13/deployments", {
@@ -37,7 +37,7 @@ function deployments(rest) {
37
37
  };
38
38
  }
39
39
  //#endregion
40
- //#region src/domains/domains.ts
40
+ //#region ../../../../../src/domains/domains.ts
41
41
  function domains(rest) {
42
42
  return {
43
43
  list: (projectId) => rest.request(`/v9/projects/${encodeURIComponent(projectId)}/domains`),
@@ -56,7 +56,7 @@ function domains(rest) {
56
56
  };
57
57
  }
58
58
  //#endregion
59
- //#region src/env/env.ts
59
+ //#region ../../../../../src/env/env.ts
60
60
  function env(rest) {
61
61
  return {
62
62
  list: (projectId) => rest.request(`/v9/projects/${encodeURIComponent(projectId)}/env`),
@@ -73,7 +73,7 @@ function env(rest) {
73
73
  };
74
74
  }
75
75
  //#endregion
76
- //#region src/projects/projects.ts
76
+ //#region ../../../../../src/projects/projects.ts
77
77
  function projects(rest) {
78
78
  return {
79
79
  list: () => rest.request("/v10/projects"),
@@ -105,12 +105,12 @@ function projects(rest) {
105
105
  };
106
106
  }
107
107
  //#endregion
108
- //#region src/user/user.ts
108
+ //#region ../../../../../src/user/user.ts
109
109
  function user(rest) {
110
110
  return { get: () => rest.request("/v2/user") };
111
111
  }
112
112
  //#endregion
113
- //#region src/utils.ts
113
+ //#region ../../../../../src/utils.ts
114
114
  function createVercelRestClient(opts) {
115
115
  return createRestClient({
116
116
  baseUrl: opts.baseUrl ?? "https://api.vercel.com",
@@ -123,7 +123,7 @@ function createVercelRestClient(opts) {
123
123
  });
124
124
  }
125
125
  //#endregion
126
- //#region src/index.ts
126
+ //#region ../../../../../src/index.ts
127
127
  function createVercelClient(opts) {
128
128
  const rest = createVercelRestClient(opts);
129
129
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/vercel-client",
3
- "version": "1.31.0",
3
+ "version": "1.32.1",
4
4
  "description": "A TypeScript client for the Vercel API",
5
5
  "keywords": [
6
6
  "vercel",
@@ -33,13 +33,13 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@theholocron/observability": "^0.3.0",
36
- "@theholocron/http-client": "^1.31.0"
36
+ "@theholocron/http-client": "^1.32.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@theholocron/cli": "5.0.0-alpha.33",
39
+ "@theholocron/cli": "5.0.0-alpha.79",
40
40
  "@theholocron/eslint-config": "^8.4.3",
41
41
  "@theholocron/tsconfig": "^8.2.0",
42
- "@theholocron/tsdown-config": "^8.2.0",
42
+ "@theholocron/tsdown-config": "^8.6.1",
43
43
  "@theholocron/vitest-config": "^8.2.0",
44
44
  "@types/node": "^26.4.1",
45
45
  "@vitest/coverage-v8": "^5.0.0",
@@ -61,7 +61,7 @@
61
61
  "releases": "https://github.com/theholocron/clients/releases",
62
62
  "wiki": "https://github.com/theholocron/clients/wiki",
63
63
  "scripts": {
64
- "delivery.build": "tsdown",
64
+ "delivery.build": "holocron run delivery.build -- && node ../../scripts/check-bundle-size.mjs",
65
65
  "sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
66
66
  "test:watch": "vitest",
67
67
  "verification.typeSafety": "holocron run verification.typeSafety --",