@theholocron/holocron-plugin-cloudflare 5.0.0-alpha.220 → 5.0.0-alpha.221

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
@@ -72,6 +72,7 @@ declare class CloudflareWorkers implements Workers {
72
72
  scripts: number;
73
73
  }>;
74
74
  deployScript(name: string, config: DeployScriptConfig): Promise<DeployScriptResult>;
75
+ setSecret(script: string, name: string, value: string): Promise<void>;
75
76
  /** Idempotent create-or-update for one route pattern — shared by both public methods. */
76
77
  private upsertRoute;
77
78
  private resolveZone;
package/dist/index.mjs CHANGED
@@ -224,6 +224,9 @@ var CloudflareWorkers = class {
224
224
  for (const pattern of config.routes ?? []) await this.upsertRoute(pattern, name);
225
225
  return { scriptName: name };
226
226
  }
227
+ async setSecret(script, name, value) {
228
+ await this.client().workers.putSecret(this.accountId, script, name, value);
229
+ }
227
230
  /** Idempotent create-or-update for one route pattern — shared by both public methods. */
228
231
  async upsertRoute(pattern, scriptName) {
229
232
  const hostname = pattern.split("/")[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-cloudflare",
3
- "version": "5.0.0-alpha.220",
3
+ "version": "5.0.0-alpha.221",
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.220"
51
+ "@theholocron/cli": "5.0.0-alpha.221"
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.220"
56
+ "@theholocron/cli": "5.0.0-alpha.221"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@theholocron/cloudflare-client": {}