@powerlines/plugin-cloudflare 0.5.4 → 0.5.6

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.
Files changed (54) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +3 -0
  3. package/dist/components/cloudflare-builtin.cjs +917 -0
  4. package/dist/components/cloudflare-builtin.d.cts +13 -0
  5. package/dist/components/cloudflare-builtin.d.cts.map +1 -0
  6. package/dist/components/cloudflare-builtin.d.mts +13 -0
  7. package/dist/components/cloudflare-builtin.d.mts.map +1 -0
  8. package/dist/components/cloudflare-builtin.mjs +915 -0
  9. package/dist/components/cloudflare-builtin.mjs.map +1 -0
  10. package/dist/components/env-builtin.cjs +32 -0
  11. package/dist/components/env-builtin.d.cts +13 -0
  12. package/dist/components/env-builtin.d.cts.map +1 -0
  13. package/dist/components/env-builtin.d.mts +13 -0
  14. package/dist/components/env-builtin.d.mts.map +1 -0
  15. package/dist/components/env-builtin.mjs +30 -0
  16. package/dist/components/env-builtin.mjs.map +1 -0
  17. package/dist/components/index.cjs +8 -0
  18. package/dist/components/index.d.cts +4 -0
  19. package/dist/components/index.d.mts +4 -0
  20. package/dist/components/index.mjs +5 -0
  21. package/dist/components/worker-entry.cjs +203 -0
  22. package/dist/components/worker-entry.d.cts +16 -0
  23. package/dist/components/worker-entry.d.cts.map +1 -0
  24. package/dist/components/worker-entry.d.mts +16 -0
  25. package/dist/components/worker-entry.d.mts.map +1 -0
  26. package/dist/components/worker-entry.mjs +201 -0
  27. package/dist/components/worker-entry.mjs.map +1 -0
  28. package/dist/index.cjs +168 -0
  29. package/dist/index.d.cts +20 -0
  30. package/dist/index.d.cts.map +1 -0
  31. package/dist/index.d.mts +20 -0
  32. package/dist/index.d.mts.map +1 -0
  33. package/dist/index.mjs +160 -0
  34. package/dist/index.mjs.map +1 -0
  35. package/dist/node_modules/.pnpm/@cloudflare_unenv-preset@2.15.0_unenv@2.0.0-rc.24/node_modules/@cloudflare/unenv-preset/dist/index.cjs +370 -0
  36. package/dist/node_modules/.pnpm/@cloudflare_unenv-preset@2.15.0_unenv@2.0.0-rc.24/node_modules/@cloudflare/unenv-preset/dist/index.mjs +367 -0
  37. package/dist/node_modules/.pnpm/@cloudflare_unenv-preset@2.15.0_unenv@2.0.0-rc.24/node_modules/@cloudflare/unenv-preset/dist/index.mjs.map +1 -0
  38. package/dist/types/index.cjs +0 -0
  39. package/dist/types/index.d.cts +3 -0
  40. package/dist/types/index.d.mts +3 -0
  41. package/dist/types/index.mjs +1 -0
  42. package/dist/types/plugin.cjs +0 -0
  43. package/dist/types/plugin.d.cts +76 -0
  44. package/dist/types/plugin.d.cts.map +1 -0
  45. package/dist/types/plugin.d.mts +76 -0
  46. package/dist/types/plugin.d.mts.map +1 -0
  47. package/dist/types/plugin.mjs +1 -0
  48. package/dist/types/worker-module.cjs +0 -0
  49. package/dist/types/worker-module.d.cts +35 -0
  50. package/dist/types/worker-module.d.cts.map +1 -0
  51. package/dist/types/worker-module.d.mts +35 -0
  52. package/dist/types/worker-module.d.mts.map +1 -0
  53. package/dist/types/worker-module.mjs +1 -0
  54. package/package.json +9 -9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-module.d.cts","names":[],"sources":["../../src/types/worker-module.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CACjC,IAAA,CAAK,iBAAA,2DAEL,OAAA,CAAQ,IAAA,CAAK,gBAAA;;AAHf;;;;;EAUI,IAAA;EAPW;;;;;;;;;;;;EAqBX,OAAA;AAAA;AAAA,UAGa,YAAA;EACf,QAAA,GAAW,oBAAA;EACX,OAAA,EAAS,eAAA;AAAA;AAAA"}
@@ -0,0 +1,35 @@
1
+ import { WorkersRouteArgs, WorkersScriptArgs } from "@pulumi/cloudflare";
2
+ import { ExportedHandler } from "@cloudflare/workers-types";
3
+
4
+ //#region src/types/worker-module.d.ts
5
+ type WorkerModuleMetadata = Partial<Omit<WorkersScriptArgs, "accountId" | "scriptName" | "contentFile" | "entry">> & Partial<Omit<WorkersRouteArgs, "zoneId" | "script" | "pattern" | "entry">> & {
6
+ /**
7
+ * The name of the Cloudflare Worker script to deploy - used in URLs and route configuration.
8
+ *
9
+ * @remarks
10
+ * If no value is provided, the {@link Config.name} configuration value will be used.
11
+ */
12
+ name?: string;
13
+ /**
14
+ * A routing pattern to associate with the deployed Worker script.
15
+ *
16
+ * @remarks
17
+ * This is required for the Worker script to be accessible via a public URL. The plugin will replace the string `{domain}` in the pattern with the value of the `domain` configuration option, if provided. If no pattern is provided, a default pattern will be generated based on the script name and plugin mode (e.g. `https://{scriptName}.{mode}.worker-script.{domain}`).
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Example pattern for: "worker-script.my-example-domain.com"
22
+ * pattern: "worker-script.{domain}"
23
+ * ```
24
+ */
25
+ pattern?: string;
26
+ };
27
+ interface WorkerModule {
28
+ metadata?: WorkerModuleMetadata;
29
+ default: ExportedHandler;
30
+ }
31
+ declare type __ΩWorkerModuleMetadata = any[];
32
+ declare type __ΩWorkerModule = any[];
33
+ //#endregion
34
+ export { WorkerModule, WorkerModuleMetadata, __ΩWorkerModule, __ΩWorkerModuleMetadata };
35
+ //# sourceMappingURL=worker-module.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-module.d.mts","names":[],"sources":["../../src/types/worker-module.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CACjC,IAAA,CAAK,iBAAA,2DAEL,OAAA,CAAQ,IAAA,CAAK,gBAAA;;AAHf;;;;;EAUI,IAAA;EAPW;;;;;;;;;;;;EAqBX,OAAA;AAAA;AAAA,UAGa,YAAA;EACf,QAAA,GAAW,oBAAA;EACX,OAAA,EAAS,eAAA;AAAA;AAAA"}
@@ -0,0 +1 @@
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-cloudflare",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "private": false,
5
5
  "description": "A Powerlines plugin that provides integration with Cloudflare services.",
6
6
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
@@ -162,12 +162,12 @@
162
162
  "@alloy-js/core": "0.23.0-dev.8",
163
163
  "@alloy-js/typescript": "0.23.0-dev.4",
164
164
  "@cloudflare/workers-types": "^4.20260317.1",
165
- "@powerlines/plugin-env": "^0.16.84",
166
- "@powerlines/plugin-pulumi": "^0.6.4",
167
- "@powerlines/plugin-unenv": "^0.1.352",
165
+ "@powerlines/plugin-env": "^0.16.86",
166
+ "@powerlines/plugin-pulumi": "^0.6.6",
167
+ "@powerlines/plugin-unenv": "^0.1.354",
168
168
  "@pulumi/cloudflare": "^6.13.0",
169
169
  "@pulumi/pulumi": "^3.226.0",
170
- "@storm-software/config-tools": "^1.189.39",
170
+ "@storm-software/config-tools": "^1.189.40",
171
171
  "@stryke/hash": "^0.13.16",
172
172
  "@stryke/helpers": "^0.10.6",
173
173
  "@stryke/path": "^0.27.2",
@@ -175,16 +175,16 @@
175
175
  "@stryke/type-checks": "^0.5.41",
176
176
  "@stryke/types": "^0.11.1",
177
177
  "defu": "^6.1.4",
178
- "powerlines": "^0.42.4"
178
+ "powerlines": "^0.42.6"
179
179
  },
180
180
  "devDependencies": {
181
181
  "@cloudflare/unenv-preset": "^2.15.0",
182
182
  "@cloudflare/workers-types": "^4.20260317.1",
183
- "@powerlines/plugin-alloy": "^0.25.49",
184
- "@powerlines/plugin-plugin": "^0.12.314",
183
+ "@powerlines/plugin-alloy": "^0.25.51",
184
+ "@powerlines/plugin-plugin": "^0.12.316",
185
185
  "@types/node": "^25.5.0"
186
186
  },
187
187
  "publishConfig": { "access": "public" },
188
188
  "inlinedDependencies": { "@cloudflare/unenv-preset": "2.15.0" },
189
- "gitHead": "c3243c1ec0fbacb4afd4bd3db20432f443334076"
189
+ "gitHead": "af94c1952c9f2d293dac72a2d0ed3627be8d807d"
190
190
  }