@theholocron/holocron-plugin-cloudflare 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
@@ -110,6 +110,9 @@ declare function deployment(ctx: PluginContext): Deployment;
110
110
  declare function workersCapability(ctx: PluginContext): Workers;
111
111
  declare function createPlugin(options?: CloudflarePluginOptions): {
112
112
  name: string;
113
+ probes: {
114
+ connection: import("@theholocron/cli").Probe;
115
+ };
113
116
  capabilities: {
114
117
  deployment?: (() => Deployment) | undefined;
115
118
  workers?: (() => Workers) | undefined;
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 { createCloudflareClient } from "@theholocron/cloudflare-client";
3
3
  import { errorMessage } from "@theholocron/misc-utils";
4
4
  //#region src/auth.ts
@@ -340,6 +340,16 @@ function createPlugin(options = {}) {
340
340
  const ctx = createContext(options);
341
341
  return {
342
342
  name: "@theholocron/holocron-plugin-cloudflare",
343
+ probes: { connection: connectionProbe({
344
+ provider: "Cloudflare",
345
+ url: options.baseUrl ?? "https://api.cloudflare.com",
346
+ fetch: options.fetch,
347
+ token: () => resolveToken(options),
348
+ verify: (token) => verifyToken(token, {
349
+ baseUrl: options.baseUrl,
350
+ fetch: options.fetch
351
+ })
352
+ }) },
343
353
  capabilities: {
344
354
  dns: () => dns(ctx),
345
355
  ...ctx.options.accountId ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-cloudflare",
3
- "version": "5.0.0-alpha.231",
3
+ "version": "5.0.0-alpha.232",
4
4
  "description": "Holocron plugin for Cloudflare. Implements the dns capability against Cloudflare's REST API — zone resolution, DNS record management.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -48,12 +48,12 @@
48
48
  "tsx": "4.23.15",
49
49
  "typescript": "^5.9.3",
50
50
  "vitest": "^4.1.11",
51
- "@theholocron/cli": "5.0.0-alpha.231"
51
+ "@theholocron/cli": "5.0.0-alpha.232"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@theholocron/cloudflare-client": "^1.53.1",
55
55
  "@theholocron/misc-utils": "^1.16.0",
56
- "@theholocron/cli": "5.0.0-alpha.231"
56
+ "@theholocron/cli": "5.0.0-alpha.232"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@theholocron/cloudflare-client": {}