@theholocron/holocron-plugin-cloudflare 5.0.0-alpha.129 → 5.0.0-alpha.132

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/README.md CHANGED
@@ -79,7 +79,7 @@ Zone ids are cached per plugin instance for the lifetime of the process.
79
79
 
80
80
  ## `deployment` capability
81
81
 
82
- Manages [Cloudflare Pages](https://developers.cloudflare.com/pages/) projects. Used by `holocron setup` to provision per-PR preview deployments.
82
+ Manages [Cloudflare Pages](https://developers.cloudflare.com/pages/) projects. Used by `holocron repo setup` to provision per-PR preview deployments.
83
83
 
84
84
  | Method | What it does |
85
85
  | ----------------------- | ----------------------------------------------------------------------------------------------------------------------- |
@@ -106,7 +106,7 @@ cache, separate from `dns`'s.
106
106
 
107
107
  ### Preview deployment setup
108
108
 
109
- When `preview: true` (or `preview: { project, domain }`) is set in a repo's deploy config, `holocron setup` calls:
109
+ When `preview: true` (or `preview: { project, domain }`) is set in a repo's deploy config, `holocron repo setup` calls:
110
110
 
111
111
  1. `ensureProject` — creates `<org>-preview` if it doesn't exist
112
112
  2. `ensureCustomDomain` — attaches `*.<domain>` to the project
package/dist/index.mjs CHANGED
@@ -282,9 +282,14 @@ async function verifyToken(token, opts = {}) {
282
282
  };
283
283
  } catch {}
284
284
  try {
285
+ const names = (await client.zones.list()).map((z) => z.name);
286
+ if (names.length === 0) return {
287
+ ok: true,
288
+ subject: "no zones visible"
289
+ };
285
290
  return {
286
291
  ok: true,
287
- subject: `zone: ${(await client.zones.list({ per_page: 1 }))[0]?.name ?? "unknown"}`
292
+ subject: `zones: ${names.length <= 5 ? names.join(", ") : `${names.slice(0, 5).join(", ")} (+${names.length - 5} more)`}`
288
293
  };
289
294
  } catch (err) {
290
295
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-cloudflare",
3
- "version": "5.0.0-alpha.129",
3
+ "version": "5.0.0-alpha.132",
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",
@@ -8,12 +8,12 @@
8
8
  "holocron",
9
9
  "plugin"
10
10
  ],
11
- "homepage": "https://github.com/theholocron/holocron/tree/main/packages/holocron-plugin-cloudflare#readme",
11
+ "homepage": "https://github.com/theholocron/holocron/tree/main/plugins/holocron-plugin-cloudflare#readme",
12
12
  "bugs": "https://github.com/theholocron/holocron/issues",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/theholocron/holocron.git",
16
- "directory": "packages/holocron-plugin-cloudflare"
16
+ "directory": "plugins/holocron-plugin-cloudflare"
17
17
  },
18
18
  "license": "MIT",
19
19
  "author": "Newton Koumantzelis",
@@ -30,9 +30,9 @@
30
30
  "dist"
31
31
  ],
32
32
  "devDependencies": {
33
- "@theholocron/cloudflare-client": "^1.39.0",
33
+ "@theholocron/cloudflare-client": "^1.40.0",
34
34
  "@theholocron/eslint-config": "^8.7.1",
35
- "@theholocron/http-client": "^1.39.0",
35
+ "@theholocron/http-client": "^1.40.0",
36
36
  "@theholocron/misc-utils": "^1.9.2",
37
37
  "@theholocron/tsconfig": "^8.7.1",
38
38
  "@theholocron/tsdown-config": "^8.7.1",
@@ -48,12 +48,12 @@
48
48
  "tsx": "4.23.12",
49
49
  "typescript": "^5.9.3",
50
50
  "vitest": "^4.1.11",
51
- "@theholocron/cli": "5.0.0-alpha.129"
51
+ "@theholocron/cli": "5.0.0-alpha.134"
52
52
  },
53
53
  "peerDependencies": {
54
- "@theholocron/cloudflare-client": "^1.39.0",
54
+ "@theholocron/cloudflare-client": "^1.40.0",
55
55
  "@theholocron/misc-utils": "^1.9.2",
56
- "@theholocron/cli": "5.0.0-alpha.129"
56
+ "@theholocron/cli": "5.0.0-alpha.134"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@theholocron/cloudflare-client": {}