@theholocron/holocron-plugin-vercel 5.0.0-alpha.231 → 5.0.0-alpha.232
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 +3 -0
- package/dist/index.mjs +11 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -85,6 +85,9 @@ declare function createContext(options?: VercelPluginOptions): PluginContext;
|
|
|
85
85
|
declare function deployment(ctx: PluginContext): Deployment;
|
|
86
86
|
declare function createPlugin(options?: VercelPluginOptions): {
|
|
87
87
|
name: string;
|
|
88
|
+
probes: {
|
|
89
|
+
connection: import("@theholocron/cli").Probe;
|
|
90
|
+
};
|
|
88
91
|
capabilities: {
|
|
89
92
|
deployment: () => Deployment;
|
|
90
93
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, ProviderApiError, createResolveToken } from "@theholocron/cli";
|
|
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
4
|
//#region src/auth.ts
|
|
@@ -206,6 +206,16 @@ function createPlugin(options = {}) {
|
|
|
206
206
|
const ctx = createContext(options);
|
|
207
207
|
return {
|
|
208
208
|
name: "@theholocron/holocron-plugin-vercel",
|
|
209
|
+
probes: { connection: connectionProbe({
|
|
210
|
+
provider: "Vercel",
|
|
211
|
+
url: options.baseUrl ?? "https://api.vercel.com",
|
|
212
|
+
fetch: options.fetch,
|
|
213
|
+
token: () => resolveToken(options),
|
|
214
|
+
verify: (token) => verifyToken(token, {
|
|
215
|
+
baseUrl: options.baseUrl,
|
|
216
|
+
fetch: options.fetch
|
|
217
|
+
})
|
|
218
|
+
}) },
|
|
209
219
|
capabilities: { deployment: () => deployment(ctx) }
|
|
210
220
|
};
|
|
211
221
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-vercel",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.232",
|
|
4
4
|
"description": "Holocron plugin for Vercel. Implements the deployment capability against the Vercel REST API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deployment",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"tsx": "4.23.15",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^4.1.11",
|
|
50
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
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.
|
|
55
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@theholocron/vercel-client": {}
|