@theholocron/holocron-plugin-netlify 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 CHANGED
@@ -1,5 +1,5 @@
1
- import { NetlifyClient } from "@theholocron/netlify-client";
2
1
  import { AuthError, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DnsRecordRequest, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
2
+ import { NetlifyClient } from "@theholocron/netlify-client";
3
3
  //#region src/auth.d.ts
4
4
  declare const resolveToken: (input?: ResolveTokenInput) => string;
5
5
  //#endregion
@@ -89,6 +89,9 @@ declare function createContext(options: NetlifyPluginOptions): PluginContext;
89
89
  declare function deployment(ctx: PluginContext): Deployment;
90
90
  declare function createPlugin(options: NetlifyPluginOptions): {
91
91
  name: string;
92
+ probes: {
93
+ connection: import("@theholocron/cli").Probe;
94
+ };
92
95
  capabilities: {
93
96
  deployment: () => Deployment;
94
97
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
+ import { AuthError, connectionProbe, createResolveToken } from "@theholocron/cli";
1
2
  import { createNetlifyClient } from "@theholocron/netlify-client";
2
- import { AuthError, createResolveToken } from "@theholocron/cli";
3
3
  import { ProviderApiError } from "@theholocron/http-client";
4
4
  import { errorMessage } from "@theholocron/misc-utils";
5
5
  //#region src/auth.ts
@@ -171,6 +171,16 @@ function createPlugin(options) {
171
171
  const ctx = createContext(options);
172
172
  return {
173
173
  name: "@theholocron/holocron-plugin-netlify",
174
+ probes: { connection: connectionProbe({
175
+ provider: "Netlify",
176
+ url: options.baseUrl ?? "https://api.netlify.com",
177
+ fetch: options.fetch,
178
+ token: () => resolveToken(options),
179
+ verify: (token) => verifyToken(token, {
180
+ baseUrl: options.baseUrl,
181
+ fetch: options.fetch
182
+ })
183
+ }) },
174
184
  capabilities: { deployment: () => deployment(ctx) }
175
185
  };
176
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-netlify",
3
- "version": "5.0.0-alpha.231",
3
+ "version": "5.0.0-alpha.232",
4
4
  "description": "Holocron plugin for Netlify. Implements the deployment capability against Netlify's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
5
5
  "keywords": [
6
6
  "deployment",
@@ -42,12 +42,12 @@
42
42
  "tsx": "4.23.15",
43
43
  "typescript": "^5.9.3",
44
44
  "vitest": "^4.1.11",
45
- "@theholocron/cli": "5.0.0-alpha.231"
45
+ "@theholocron/cli": "5.0.0-alpha.232"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@theholocron/misc-utils": "^1.16.0",
49
49
  "@theholocron/netlify-client": "^1.43.0",
50
- "@theholocron/cli": "5.0.0-alpha.231"
50
+ "@theholocron/cli": "5.0.0-alpha.232"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "@theholocron/netlify-client": {}