@theholocron/holocron-plugin-cloudflare 5.0.0-alpha.450 → 5.0.0-alpha.452

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
@@ -128,6 +128,11 @@ export interface CloudflarePluginOptions extends ResolveTokenInput {
128
128
  * optional for DNS-only use.
129
129
  */
130
130
  accountId?: string;
131
+ /**
132
+ * The zone the organization's own DNS lives in. The `token` probe reads this one zone when no zone is named on the
133
+ * command line; without it the probe reads the first few zones of the account.
134
+ */
135
+ zone?: string;
131
136
  /** Override base URL for tests. */
132
137
  baseUrl?: string;
133
138
  /** The `fetch` to use instead of the global one, for tests. */
package/dist/index.mjs CHANGED
@@ -550,10 +550,11 @@ function tokenProbe(ctx) {
550
550
  });
551
551
  for (const row of rotationRows) probe.say(row);
552
552
  };
553
+ const named = wanted.length > 0 ? wanted : ctx.options.zone ? [ctx.options.zone] : [];
553
554
  const tried = [];
554
555
  let zones = [];
555
556
  const zoneOutcome = await reach(async () => {
556
- zones = wanted.length > 0 ? (await Promise.all(wanted.map((name) => client.zones.list({ name })))).flat() : await client.zones.list({ per_page: MAX_ZONES });
557
+ zones = named.length > 0 ? (await Promise.all(named.map((name) => client.zones.list({ name })))).flat() : await client.zones.list({ per_page: MAX_ZONES });
557
558
  return zones.map((z) => ({ name: z.name }));
558
559
  }, "zones");
559
560
  tried.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-cloudflare",
3
- "version": "5.0.0-alpha.450",
3
+ "version": "5.0.0-alpha.452",
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",
@@ -40,24 +40,24 @@
40
40
  "eslint": "^10.14.0",
41
41
  "eslint-plugin-n": "^18.5.0",
42
42
  "globals": "^17.14.0",
43
- "tsdown": "^0.23.5",
43
+ "tsdown": "^0.23.7",
44
44
  "tsx": "4.23.15",
45
45
  "typescript": "^5.9.3",
46
46
  "vitest": "^5.1.0",
47
- "@theholocron/cli": "5.0.0-alpha.450",
48
- "@theholocron/cloudflare-client": "^1.58.0-alpha.35",
47
+ "@theholocron/cli": "5.0.0-alpha.452",
49
48
  "@theholocron/eslint-config": "^8.9.0-alpha.17",
49
+ "@theholocron/cloudflare-client": "^1.58.0-alpha.35",
50
50
  "@theholocron/http-client": "^1.58.0-alpha.35",
51
- "@theholocron/kyber": "5.0.0-alpha.450",
52
- "@theholocron/vitest-config": "^8.9.0-alpha.17",
53
51
  "@theholocron/misc-utils": "^1.17.0-alpha.4",
54
- "@theholocron/tsdown-config": "^8.9.0-alpha.17",
55
- "@theholocron/tsconfig": "^8.9.0-alpha.17"
52
+ "@theholocron/kyber": "5.0.0-alpha.452",
53
+ "@theholocron/tsconfig": "^8.9.0-alpha.17",
54
+ "@theholocron/vitest-config": "^8.9.0-alpha.17",
55
+ "@theholocron/tsdown-config": "^8.9.0-alpha.17"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@theholocron/cloudflare-client": "^1.53.1",
59
59
  "@theholocron/misc-utils": "^1.16.0",
60
- "@theholocron/cli": "5.0.0-alpha.450"
60
+ "@theholocron/cli": "5.0.0-alpha.452"
61
61
  },
62
62
  "peerDependenciesMeta": {
63
63
  "@theholocron/cloudflare-client": {}