@powerlines/plugin-cloudflare 0.5.4 → 0.5.7
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/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/components/cloudflare-builtin.cjs +917 -0
- package/dist/components/cloudflare-builtin.d.cts +13 -0
- package/dist/components/cloudflare-builtin.d.cts.map +1 -0
- package/dist/components/cloudflare-builtin.d.mts +13 -0
- package/dist/components/cloudflare-builtin.d.mts.map +1 -0
- package/dist/components/cloudflare-builtin.mjs +915 -0
- package/dist/components/cloudflare-builtin.mjs.map +1 -0
- package/dist/components/env-builtin.cjs +32 -0
- package/dist/components/env-builtin.d.cts +13 -0
- package/dist/components/env-builtin.d.cts.map +1 -0
- package/dist/components/env-builtin.d.mts +13 -0
- package/dist/components/env-builtin.d.mts.map +1 -0
- package/dist/components/env-builtin.mjs +30 -0
- package/dist/components/env-builtin.mjs.map +1 -0
- package/dist/components/index.cjs +8 -0
- package/dist/components/index.d.cts +4 -0
- package/dist/components/index.d.mts +4 -0
- package/dist/components/index.mjs +5 -0
- package/dist/components/worker-entry.cjs +203 -0
- package/dist/components/worker-entry.d.cts +16 -0
- package/dist/components/worker-entry.d.cts.map +1 -0
- package/dist/components/worker-entry.d.mts +16 -0
- package/dist/components/worker-entry.d.mts.map +1 -0
- package/dist/components/worker-entry.mjs +201 -0
- package/dist/components/worker-entry.mjs.map +1 -0
- package/dist/index.cjs +168 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +160 -0
- package/dist/index.mjs.map +1 -0
- 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
- 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
- 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
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +76 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +76 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types/worker-module.cjs +0 -0
- package/dist/types/worker-module.d.cts +35 -0
- package/dist/types/worker-module.d.cts.map +1 -0
- package/dist/types/worker-module.d.mts +35 -0
- package/dist/types/worker-module.d.mts.map +1 -0
- package/dist/types/worker-module.mjs +1 -0
- 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.
|
|
3
|
+
"version": "0.5.7",
|
|
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.
|
|
166
|
-
"@powerlines/plugin-pulumi": "^0.6.
|
|
167
|
-
"@powerlines/plugin-unenv": "^0.1.
|
|
165
|
+
"@powerlines/plugin-env": "^0.16.87",
|
|
166
|
+
"@powerlines/plugin-pulumi": "^0.6.7",
|
|
167
|
+
"@powerlines/plugin-unenv": "^0.1.355",
|
|
168
168
|
"@pulumi/cloudflare": "^6.13.0",
|
|
169
169
|
"@pulumi/pulumi": "^3.226.0",
|
|
170
|
-
"@storm-software/config-tools": "^1.189.
|
|
170
|
+
"@storm-software/config-tools": "^1.189.41",
|
|
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.
|
|
178
|
+
"powerlines": "^0.42.7"
|
|
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.
|
|
184
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
183
|
+
"@powerlines/plugin-alloy": "^0.25.52",
|
|
184
|
+
"@powerlines/plugin-plugin": "^0.12.317",
|
|
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": "
|
|
189
|
+
"gitHead": "8c25b27c36407abbd22351d8a9afba5bce5abc08"
|
|
190
190
|
}
|