@theholocron/holocron-plugin-vercel 5.0.0-alpha.245 → 5.0.0-alpha.247

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,16 +1,13 @@
1
1
  import { AuthError, DeployFunctionConfig, DeployFunctionResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DnsRecordRequest, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
2
2
  import { VercelClient, VercelClient as VercelClient$1, VercelClientOptions, createVercelClient } from "@theholocron/vercel-client";
3
- //#region src/auth.d.ts
4
- declare const resolveToken: (input?: ResolveTokenInput) => string;
5
- //#endregion
6
- //#region src/capabilities/deployment.d.ts
3
+ export declare const resolveToken: (input?: ResolveTokenInput) => string;
7
4
  interface DeploymentOptions {
8
5
  /** Optional framework hint passed to project creates. Defaults to "nextjs". */
9
6
  defaultFramework?: string;
10
7
  /** Custom domain that `holocron repo setup` should attach to this project. */
11
8
  domain?: string;
12
9
  }
13
- declare class VercelDeployment implements Deployment {
10
+ export declare class VercelDeployment implements Deployment {
14
11
  private readonly client;
15
12
  readonly key: "deployment";
16
13
  readonly providerName = "vercel";
@@ -56,16 +53,12 @@ declare class VercelDeployment implements Deployment {
56
53
  ensureCustomDomain(projectId: string, hostname: string): Promise<DnsRecordRequest | null>;
57
54
  private getProjectByName;
58
55
  }
59
- //#endregion
60
- //#region src/verify-token.d.ts
61
56
  interface VerifyTokenOptions {
62
57
  baseUrl?: string;
63
58
  fetch?: typeof fetch;
64
59
  }
65
- declare function verifyToken(token: string, opts?: VerifyTokenOptions): Promise<VerifyTokenResult$1>;
66
- //#endregion
67
- //#region src/index.d.ts
68
- interface VercelPluginOptions extends ResolveTokenInput {
60
+ export declare function verifyToken(token: string, opts?: VerifyTokenOptions): Promise<VerifyTokenResult$1>;
61
+ export interface VercelPluginOptions extends ResolveTokenInput {
69
62
  /** Vercel team id. Set when working with a team-owned project. */
70
63
  teamId?: string;
71
64
  /** Default framework slug for new project creates. Defaults to "nextjs". */
@@ -77,13 +70,13 @@ interface VercelPluginOptions extends ResolveTokenInput {
77
70
  /** Override `fetch` for tests. */
78
71
  fetch?: typeof fetch;
79
72
  }
80
- interface PluginContext {
73
+ export interface PluginContext {
81
74
  options: VercelPluginOptions;
82
75
  client: () => VercelClient;
83
76
  }
84
- declare function createContext(options?: VercelPluginOptions): PluginContext;
85
- declare function deployment(ctx: PluginContext): Deployment;
86
- declare function createPlugin(options?: VercelPluginOptions): {
77
+ export declare function createContext(options?: VercelPluginOptions): PluginContext;
78
+ export declare function deployment(ctx: PluginContext): Deployment;
79
+ export declare function createPlugin(options?: VercelPluginOptions): {
87
80
  name: string;
88
81
  probes: {
89
82
  connection: import("@theholocron/cli").Probe;
@@ -96,6 +89,5 @@ declare function createPlugin(options?: VercelPluginOptions): {
96
89
  * One-line hint printed by `holocron auth set vercel` when no token
97
90
  * is supplied or the supplied token is rejected.
98
91
  */
99
- declare const AUTH_HINT: string;
100
- //#endregion
101
- export { AUTH_HINT, AuthError, PluginContext, type ResolveTokenInput, type VercelClient, type VercelClientOptions, VercelDeployment, VercelPluginOptions, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, createContext, createPlugin, createVercelClient, deployment, resolveToken, verifyToken };
92
+ export declare const AUTH_HINT: string;
93
+ export { AuthError, type ResolveTokenInput, type VercelClient, type VercelClientOptions, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, createVercelClient };
package/dist/index.mjs CHANGED
@@ -1,15 +1,14 @@
1
1
  import { AuthError, ProviderApiError, connectionProbe, createResolveToken } from "@theholocron/cli";
2
2
  import { createVercelClient } from "@theholocron/vercel-client";
3
3
  import { errorMessage } from "@theholocron/misc-utils";
4
- //#region src/auth.ts
4
+ // src/auth.ts
5
5
  const resolveToken = createResolveToken({
6
6
  envName: "HOLOCRON_VERCEL_TOKEN",
7
7
  vendorEnvName: "VERCEL_TOKEN",
8
8
  keyringService: "vercel",
9
9
  errorMessage: "no Vercel token found. Pass --token <PAT>, set HOLOCRON_VERCEL_TOKEN / VERCEL_TOKEN, or run: holocron auth set vercel <PAT>"
10
10
  });
11
- //#endregion
12
- //#region src/capabilities/deployment.ts
11
+ // src/capabilities/deployment.ts
13
12
  var VercelDeployment = class {
14
13
  client;
15
14
  key = "deployment";
@@ -161,8 +160,7 @@ function normalizeState(s) {
161
160
  case "CANCELED": return "cancelled";
162
161
  }
163
162
  }
164
- //#endregion
165
- //#region src/verify-token.ts
163
+ // src/verify-token.ts
166
164
  async function verifyToken(token, opts = {}) {
167
165
  const client = createVercelClient({
168
166
  token,
@@ -182,8 +180,7 @@ async function verifyToken(token, opts = {}) {
182
180
  };
183
181
  }
184
182
  }
185
- //#endregion
186
- //#region src/index.ts
183
+ // src/index.ts
187
184
  function createContext(options = {}) {
188
185
  let client;
189
186
  return {
@@ -224,5 +221,4 @@ function createPlugin(options = {}) {
224
221
  * is supplied or the supplied token is rejected.
225
222
  */
226
223
  const AUTH_HINT = "generate a Vercel Personal Access Token at https://vercel.com/account/tokens (scope: Full Account for team ops), then run: holocron auth set vercel <PAT>";
227
- //#endregion
228
224
  export { AUTH_HINT, AuthError, VercelDeployment, createContext, createPlugin, createVercelClient, deployment, resolveToken, verifyToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-vercel",
3
- "version": "5.0.0-alpha.245",
3
+ "version": "5.0.0-alpha.247",
4
4
  "description": "Holocron plugin for Vercel. Implements the deployment capability against the Vercel REST API.",
5
5
  "keywords": [
6
6
  "deployment",
@@ -38,21 +38,21 @@
38
38
  "@theholocron/vercel-client": "^1.43.1",
39
39
  "@theholocron/vitest-config": "^8.8.2",
40
40
  "@types/node": "^26",
41
- "@vitest/coverage-v8": "^4.1.11",
41
+ "@vitest/coverage-v8": "^5.0.5",
42
42
  "@vitest/eslint-plugin": "^1.6.27",
43
43
  "eslint": "^10.8.1",
44
44
  "eslint-plugin-n": "^18.3.0",
45
45
  "globals": "^17.11.0",
46
- "tsdown": "^0.22.14",
46
+ "tsdown": "^0.23.3",
47
47
  "tsx": "4.23.15",
48
48
  "typescript": "^5.9.3",
49
- "vitest": "^4.1.11",
50
- "@theholocron/cli": "5.0.0-alpha.245"
49
+ "vitest": "^5.0.5",
50
+ "@theholocron/cli": "5.0.0-alpha.247"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@theholocron/misc-utils": "^1.16.0",
54
54
  "@theholocron/vercel-client": "^1.43.1",
55
- "@theholocron/cli": "5.0.0-alpha.245"
55
+ "@theholocron/cli": "5.0.0-alpha.247"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@theholocron/vercel-client": {}