@powerlines/plugin-cloudflare 0.6.190 → 0.6.191
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 +14 -0
- package/dist/_virtual/_rolldown/runtime.mjs +18 -0
- package/dist/components/cloudflare-builtin.cjs +8 -1
- package/dist/components/cloudflare-builtin.mjs +3 -1
- package/dist/components/cloudflare-builtin.mjs.map +1 -1
- package/dist/components/cloudflare-builtin.test.cjs +16 -0
- package/dist/components/cloudflare-builtin.test.d.cts +1 -0
- package/dist/components/cloudflare-builtin.test.d.mts +1 -0
- package/dist/components/cloudflare-builtin.test.mjs +18 -0
- package/dist/components/cloudflare-builtin.test.mjs.map +1 -0
- package/dist/components/env-builtin.cjs +8 -1
- package/dist/components/env-builtin.mjs +3 -1
- package/dist/components/env-builtin.mjs.map +1 -1
- package/dist/components/env-builtin.test.cjs +16 -0
- package/dist/components/env-builtin.test.d.cts +1 -0
- package/dist/components/env-builtin.test.d.mts +1 -0
- package/dist/components/env-builtin.test.mjs +18 -0
- package/dist/components/env-builtin.test.mjs.map +1 -0
- package/dist/components/worker-entry.cjs +8 -1
- package/dist/components/worker-entry.mjs +3 -1
- package/dist/components/worker-entry.mjs.map +1 -1
- package/dist/components/worker-entry.test.cjs +16 -0
- package/dist/components/worker-entry.test.d.cts +1 -0
- package/dist/components/worker-entry.test.d.mts +1 -0
- package/dist/components/worker-entry.test.mjs +18 -0
- package/dist/components/worker-entry.test.mjs.map +1 -0
- package/dist/helpers/constants.test.cjs +18 -0
- package/dist/helpers/constants.test.d.cts +1 -0
- package/dist/helpers/constants.test.d.mts +1 -0
- package/dist/helpers/constants.test.mjs +20 -0
- package/dist/helpers/constants.test.mjs.map +1 -0
- package/dist/helpers/wrangler.cjs +9 -1
- package/dist/helpers/wrangler.mjs +3 -1
- package/dist/helpers/wrangler.mjs.map +1 -1
- package/dist/helpers/wrangler.test.cjs +16 -0
- package/dist/helpers/wrangler.test.d.cts +1 -0
- package/dist/helpers/wrangler.test.d.mts +1 -0
- package/dist/helpers/wrangler.test.mjs +18 -0
- package/dist/helpers/wrangler.test.mjs.map +1 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +1487 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +1473 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +889 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +888 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +1614 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +1594 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +923 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +922 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +391 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +386 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +82 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +82 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +1358 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +1357 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +561 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +559 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +37 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +38 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +197 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +181 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +29 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +27 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +374 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +374 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +38 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +37 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +2978 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +2973 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +939 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +940 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +87 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +87 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +6 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +6 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +54 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +52 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +2696 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +2697 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +47 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +45 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +1 -0
- package/dist/types/wrangler.cjs +15 -1
- package/dist/types/wrangler.d.cts.map +1 -1
- package/dist/types/wrangler.d.mts.map +1 -1
- package/dist/types/wrangler.mjs +10 -1
- package/dist/types/wrangler.mjs.map +1 -1
- package/dist/types/wrangler.test.cjs +16 -0
- package/dist/types/wrangler.test.d.cts +1 -0
- package/dist/types/wrangler.test.d.mts +1 -0
- package/dist/types/wrangler.test.mjs +18 -0
- package/dist/types/wrangler.test.mjs.map +1 -0
- package/package.json +114 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.BX5Fg8C4.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.1_@types+node@25.9.1_@vitest+coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js"],"sourcesContent":["import { getSafeTimers } from '@vitest/utils/timers';\n\nconst NAME_WORKER_STATE = \"__vitest_worker__\";\nclass EnvironmentTeardownError extends Error {\n\tname = \"EnvironmentTeardownError\";\n}\nfunction getWorkerState() {\n\t// @ts-expect-error untyped global\n\tconst workerState = globalThis[NAME_WORKER_STATE];\n\tif (!workerState) throw new Error(\"Vitest failed to access its internal state.\\n\\nOne of the following is possible:\\n- \\\"vitest\\\" is imported directly without running \\\"vitest\\\" command\\n- \\\"vitest\\\" is imported inside \\\"globalSetup\\\" (to fix this, use \\\"setupFiles\\\" instead, because \\\"globalSetup\\\" runs in a different context)\\n- \\\"vitest\\\" is imported inside Vite / Vitest config file\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n\");\n\treturn workerState;\n}\nfunction getSafeWorkerState() {\n\t// @ts-expect-error untyped global\n\treturn globalThis[NAME_WORKER_STATE];\n}\nfunction provideWorkerState(context, state) {\n\tObject.defineProperty(context, NAME_WORKER_STATE, {\n\t\tvalue: state,\n\t\tconfigurable: true,\n\t\twritable: true,\n\t\tenumerable: false\n\t});\n\treturn state;\n}\nfunction isChildProcess() {\n\treturn typeof process !== \"undefined\" && !!process.send;\n}\nfunction resetModules(modules, resetMocks = false) {\n\tconst skipPaths = [\n\t\t/\\/vitest\\/dist\\//,\n\t\t/vitest-virtual-\\w+\\/dist/,\n\t\t/@vitest\\/dist/,\n\t\t...!resetMocks ? [/^mock:/] : []\n\t];\n\tmodules.idToModuleMap.forEach((node, path) => {\n\t\tif (skipPaths.some((re) => re.test(path))) return;\n\t\tnode.promise = void 0;\n\t\tnode.exports = void 0;\n\t\tnode.evaluated = false;\n\t\tnode.importers.clear();\n\t});\n}\nfunction waitNextTick() {\n\tconst { setTimeout } = getSafeTimers();\n\treturn new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n\tawait waitNextTick();\n\tconst state = getWorkerState();\n\tconst promises = [];\n\tconst resolvingCount = state.resolvingModules.size;\n\tfor (const [_, mod] of state.evaluatedModules.idToModuleMap) if (mod.promise && !mod.evaluated) promises.push(mod.promise);\n\tif (!promises.length && !resolvingCount) return;\n\tawait Promise.allSettled(promises);\n\tawait waitForImportsToResolve();\n}\n\nexport { EnvironmentTeardownError as E, getSafeWorkerState as a, getWorkerState as g, isChildProcess as i, provideWorkerState as p, resetModules as r, waitForImportsToResolve as w };\n"],"x_google_ignoreList":[0],"mappings":";;;;AAKA,SAAA,iBAAA;CAEE,MAAM,cAAa,WAAQ;CAC5B,IAAK,CAAC,aAAa,MAAC,IAAA,MAAW,6cAAkB;CACjD,OAAK;AACN;AAcA,SAAA,iBAAA;CACA,OAAS,OAAA,YAAiB,eAAA,CAAA,CAAA,QAAA;AAC1B;AACA,SAAA,aAAA,SAAA,aAAA,OAAA;CACA,MAAQ,YAAC;EAAY;EAAoB;EAAU;EAAA,GAAA,CAAA,aAAA,CAAA,QAAA,IAAA,CAAA;CAAA;CAClD,QAAM,cAAY,SAAA,MAAA,SAAA;EACf,IAAC,UAAa,MAAE,OAAA,GAAA,KAAA,IAAA,CAAA,GAAA;EACjB,KAAM,UAAU,KAAI;EACnB,KAAA,UAAa,KAAA;EACb,KAAE,YAAe;EACnB,KAAA,UAAA,MAAA;CACD,CAAA;AACD;AACA,SAAO,eAAgB;CACrB,MAAK,EACL,eACI,cAAW;CACf,OAAC,IAAA,SAAA,YAAA,WAAA,SAAA,CAAA,CAAA;AACH;AACA,eAAS,0BAAe;CACvB,MAAO,aAAa;CACpB,MAAO,QAAI,eAAmB;CAC/B,MAAA,WAAA,CAAA;CACA,MAAM,iBAAS,MAAA,iBAA0B;CACxC,KAAM,MAAA,CAAA,GAAA,QAAc,MAAA,iBAAA,eAAA,IAAA,IAAA,WAAA,CAAA,IAAA,WAAA,SAAA,KAAA,IAAA,OAAA;CACpB,IAAK,CAAC,SAAQ,UAAA,CAAA,gBAAgB;CAC9B,MAAM,QAAS,WAAI,QAAA;CACnB,MAAM,wBAAuB;AAC9B"}
|
package/dist/types/wrangler.cjs
CHANGED
|
@@ -8,6 +8,14 @@ let zod = require("zod");
|
|
|
8
8
|
zod = require_runtime.__toESM(zod, 1);
|
|
9
9
|
|
|
10
10
|
//#region src/types/wrangler.ts
|
|
11
|
+
var wrangler_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
12
|
+
JsonSchema: () => JsonSchema,
|
|
13
|
+
LiteralSchema: () => LiteralSchema,
|
|
14
|
+
PathSchema: () => PathSchema,
|
|
15
|
+
defaultWranglerConfig: () => defaultWranglerConfig,
|
|
16
|
+
isCyclic: () => isCyclic,
|
|
17
|
+
parseWithRootPath: () => parseWithRootPath
|
|
18
|
+
});
|
|
11
19
|
const LiteralSchema = zod.union([
|
|
12
20
|
zod.string(),
|
|
13
21
|
zod.number(),
|
|
@@ -169,4 +177,10 @@ exports.LiteralSchema = LiteralSchema;
|
|
|
169
177
|
exports.PathSchema = PathSchema;
|
|
170
178
|
exports.defaultWranglerConfig = defaultWranglerConfig;
|
|
171
179
|
exports.isCyclic = isCyclic;
|
|
172
|
-
exports.parseWithRootPath = parseWithRootPath;
|
|
180
|
+
exports.parseWithRootPath = parseWithRootPath;
|
|
181
|
+
Object.defineProperty(exports, 'wrangler_exports', {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () {
|
|
184
|
+
return wrangler_exports;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrangler.d.cts","names":[],"sources":["../../src/types/wrangler.ts"],"mappings":";;;;;KAyBY,iBAAA,WAA4B,EAAA,CAAG,QAAA,gBACzC,CAAA,SAAU,EAAA,CAAG,QAAA,GAAW,EAAA,CAAG,KAAA,CAAM,CAAA;AAAA,cAGtB,aAAA,EAAa,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA,EAAA,CAAA,CAAA,OAAA;AAAA,KAMd,OAAA,GAAU,CAAA,CAAE,KAAK,QAAQ,aAAA;AAAA,KACzB,IAAA,GAAO,OAAA;EAAA,CAAa,GAAA,WAAc,IAAA;AAAA,IAAS,IAAA;AAAA,cAC1C,UAAA,EAAY,CAAA,CAAE,OAAO,CAAC,IAAA;AAAA,iBASb,iBAAA,WAA4B,EAAA,CAAG,QAAA,
|
|
1
|
+
{"version":3,"file":"wrangler.d.cts","names":[],"sources":["../../src/types/wrangler.ts"],"mappings":";;;;;KAyBY,iBAAA,WAA4B,EAAA,CAAG,QAAA,gBACzC,CAAA,SAAU,EAAA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|
package/dist/types/wrangler.mjs
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
1
2
|
import assert from "node:assert";
|
|
2
3
|
import path from "node:path";
|
|
3
4
|
import * as z from "zod";
|
|
4
5
|
|
|
5
6
|
//#region src/types/wrangler.ts
|
|
7
|
+
var wrangler_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
JsonSchema: () => JsonSchema,
|
|
9
|
+
LiteralSchema: () => LiteralSchema,
|
|
10
|
+
PathSchema: () => PathSchema,
|
|
11
|
+
defaultWranglerConfig: () => defaultWranglerConfig,
|
|
12
|
+
isCyclic: () => isCyclic,
|
|
13
|
+
parseWithRootPath: () => parseWithRootPath
|
|
14
|
+
});
|
|
6
15
|
const LiteralSchema = z.union([
|
|
7
16
|
z.string(),
|
|
8
17
|
z.number(),
|
|
@@ -159,5 +168,5 @@ const defaultWranglerConfig = {
|
|
|
159
168
|
};
|
|
160
169
|
|
|
161
170
|
//#endregion
|
|
162
|
-
export { JsonSchema, LiteralSchema, PathSchema, defaultWranglerConfig, isCyclic, parseWithRootPath };
|
|
171
|
+
export { JsonSchema, LiteralSchema, PathSchema, defaultWranglerConfig, isCyclic, parseWithRootPath, wrangler_exports };
|
|
163
172
|
//# sourceMappingURL=wrangler.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrangler.mjs","names":[],"sources":["../../src/types/wrangler.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport assert from \"node:assert\";\nimport path from \"node:path\";\n\nimport type { Unstable_Config, Unstable_RawConfig } from \"wrangler\";\nimport * as z from \"zod\";\nimport * as z4 from \"zod/v4/core\";\n\nexport type OptionalZodTypeOf<T extends z4.$ZodType | undefined> =\n T extends z4.$ZodType ? z4.infer<T> : undefined;\n\n// https://github.com/colinhacks/zod/blob/59768246aa57133184b2cf3f7c2a1ba5c3ab08c3/README.md?plain=1#L1302-L1317\nexport const LiteralSchema = z.union([\n z.string(),\n z.number(),\n z.boolean(),\n z.null()\n]);\nexport type Literal = z.infer<typeof LiteralSchema>;\nexport type Json = Literal | { [key: string]: Json } | Json[];\nexport const JsonSchema: z.ZodType<Json> = z.lazy(() =>\n z.union([\n LiteralSchema,\n z.array(JsonSchema),\n z.record(z.string(), JsonSchema)\n ])\n);\n\nlet rootPath: string | undefined;\nexport async function parseWithRootPath<Z extends z4.$ZodType>(\n newRootPath: string,\n schema: Z,\n payload: z4.ParsePayload<any>,\n ctx: z.core.ParseContextInternal\n) {\n rootPath = newRootPath;\n try {\n return await schema._zod.parse(payload, ctx);\n } finally {\n rootPath = undefined;\n }\n}\nexport const PathSchema = z.string().transform(p => {\n assert(\n rootPath !== undefined,\n \"Expected `PathSchema` to be parsed within `parseWithRootPath()`\"\n );\n return path.resolve(rootPath, p);\n});\n\nexport function isCyclic(value: unknown, seen = new Set<unknown>()) {\n if (typeof value !== \"object\" || value === null) return false;\n for (const child of Object.values(value)) {\n if (seen.has(child)) return true;\n seen.add(child);\n if (isCyclic(child, seen)) return true;\n seen.delete(child);\n }\n return false;\n}\n\nexport type WranglerUserConfig = Unstable_RawConfig;\n\n/**\n * This is the static type definition for the configuration object.\n *\n * It reflects a normalized and validated version of the configuration that you can write in a Wrangler configuration file,\n * and optionally augment with arguments passed directly to wrangler.\n *\n * For more information about the configuration object, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration\n *\n * @remarks\n * - Fields that are only specified in `ConfigFields` and not `Environment` can only appear\n * in the top level config and should not appear in any environments.\n * - Fields that are specified in `PagesConfigFields` are only relevant for Pages projects\n * - All top level fields in config and environments are optional in the Wrangler configuration file.\n */\n\nexport type WranglerResolvedConfig = Unstable_Config;\n\nexport const defaultWranglerConfig: WranglerResolvedConfig = {\n /* COMPUTED_FIELDS */\n configPath: undefined,\n userConfigPath: undefined,\n topLevelName: undefined,\n definedEnvironments: undefined,\n targetEnvironment: undefined,\n\n /*= =================================================== */\n /* Fields supported by both Workers & Pages */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n pages_build_output_dir: undefined,\n send_metrics: undefined,\n dev: {\n ip: process.platform === \"win32\" ? \"127.0.0.1\" : \"localhost\",\n port: undefined, // the default of 8787 is set at runtime\n inspector_port: undefined, // the default of 9229 is set at runtime\n inspector_ip: undefined, // the default of 127.0.0.1 is set at runtime\n local_protocol: \"http\",\n upstream_protocol: \"http\",\n host: undefined,\n // Note this one is also workers only\n enable_containers: true,\n container_engine: undefined,\n generate_types: false\n },\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n name: undefined,\n compatibility_date: undefined,\n compatibility_flags: [],\n limits: undefined,\n placement: undefined,\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n vars: {},\n durable_objects: { bindings: [] },\n kv_namespaces: [],\n queues: {\n producers: [],\n consumers: [] // WORKERS SUPPORT ONLY!!\n },\n r2_buckets: [],\n d1_databases: [],\n vectorize: [],\n hyperdrive: [],\n workflows: [],\n secrets_store_secrets: [],\n services: [],\n analytics_engine_datasets: [],\n ai: undefined,\n images: undefined,\n stream: undefined,\n media: undefined,\n version_metadata: undefined,\n unsafe_hello_world: [],\n ratelimits: [],\n worker_loaders: [],\n\n /*= =================================================== */\n /* Fields supported by Workers only */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n legacy_env: true,\n site: undefined,\n wasm_modules: undefined,\n text_blobs: undefined,\n data_blobs: undefined,\n keep_vars: undefined,\n alias: undefined,\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n account_id: undefined,\n main: undefined,\n find_additional_modules: undefined,\n preserve_file_names: undefined,\n base_dir: undefined,\n workers_dev: undefined,\n preview_urls: undefined,\n route: undefined,\n routes: undefined,\n tsconfig: undefined,\n jsx_factory: \"React.createElement\",\n jsx_fragment: \"React.Fragment\",\n migrations: [],\n triggers: {\n crons: undefined\n },\n rules: [],\n build: { command: undefined, watch_dir: \"./src\", cwd: undefined },\n no_bundle: undefined,\n minify: undefined,\n keep_names: undefined,\n dispatch_namespaces: [],\n first_party_worker: undefined,\n logfwdr: { bindings: [] },\n logpush: undefined,\n upload_source_maps: undefined,\n assets: undefined,\n observability: { enabled: true },\n cache: undefined,\n /** The default here is undefined so that we can delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable. */\n compliance_region: undefined,\n python_modules: { exclude: [\"**/*.pyc\"] },\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n define: {},\n cloudchamber: {},\n containers: undefined,\n send_email: [],\n browser: undefined,\n unsafe: {},\n mtls_certificates: [],\n tail_consumers: undefined,\n streaming_tail_consumers: undefined,\n pipelines: [],\n vpc_services: [],\n ai_search_namespaces: []\n} as unknown as WranglerResolvedConfig;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrangler.mjs","names":[],"sources":["../../src/types/wrangler.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport assert from \"node:assert\";\nimport path from \"node:path\";\n\nimport type { Unstable_Config, Unstable_RawConfig } from \"wrangler\";\nimport * as z from \"zod\";\nimport * as z4 from \"zod/v4/core\";\n\nexport type OptionalZodTypeOf<T extends z4.$ZodType | undefined> =\n T extends z4.$ZodType ? z4.infer<T> : undefined;\n\n// https://github.com/colinhacks/zod/blob/59768246aa57133184b2cf3f7c2a1ba5c3ab08c3/README.md?plain=1#L1302-L1317\nexport const LiteralSchema = z.union([\n z.string(),\n z.number(),\n z.boolean(),\n z.null()\n]);\nexport type Literal = z.infer<typeof LiteralSchema>;\nexport type Json = Literal | { [key: string]: Json } | Json[];\nexport const JsonSchema: z.ZodType<Json> = z.lazy(() =>\n z.union([\n LiteralSchema,\n z.array(JsonSchema),\n z.record(z.string(), JsonSchema)\n ])\n);\n\nlet rootPath: string | undefined;\nexport async function parseWithRootPath<Z extends z4.$ZodType>(\n newRootPath: string,\n schema: Z,\n payload: z4.ParsePayload<any>,\n ctx: z.core.ParseContextInternal\n) {\n rootPath = newRootPath;\n try {\n return await schema._zod.parse(payload, ctx);\n } finally {\n rootPath = undefined;\n }\n}\nexport const PathSchema = z.string().transform(p => {\n assert(\n rootPath !== undefined,\n \"Expected `PathSchema` to be parsed within `parseWithRootPath()`\"\n );\n return path.resolve(rootPath, p);\n});\n\nexport function isCyclic(value: unknown, seen = new Set<unknown>()) {\n if (typeof value !== \"object\" || value === null) return false;\n for (const child of Object.values(value)) {\n if (seen.has(child)) return true;\n seen.add(child);\n if (isCyclic(child, seen)) return true;\n seen.delete(child);\n }\n return false;\n}\n\nexport type WranglerUserConfig = Unstable_RawConfig;\n\n/**\n * This is the static type definition for the configuration object.\n *\n * It reflects a normalized and validated version of the configuration that you can write in a Wrangler configuration file,\n * and optionally augment with arguments passed directly to wrangler.\n *\n * For more information about the configuration object, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration\n *\n * @remarks\n * - Fields that are only specified in `ConfigFields` and not `Environment` can only appear\n * in the top level config and should not appear in any environments.\n * - Fields that are specified in `PagesConfigFields` are only relevant for Pages projects\n * - All top level fields in config and environments are optional in the Wrangler configuration file.\n */\n\nexport type WranglerResolvedConfig = Unstable_Config;\n\nexport const defaultWranglerConfig: WranglerResolvedConfig = {\n /* COMPUTED_FIELDS */\n configPath: undefined,\n userConfigPath: undefined,\n topLevelName: undefined,\n definedEnvironments: undefined,\n targetEnvironment: undefined,\n\n /*= =================================================== */\n /* Fields supported by both Workers & Pages */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n pages_build_output_dir: undefined,\n send_metrics: undefined,\n dev: {\n ip: process.platform === \"win32\" ? \"127.0.0.1\" : \"localhost\",\n port: undefined, // the default of 8787 is set at runtime\n inspector_port: undefined, // the default of 9229 is set at runtime\n inspector_ip: undefined, // the default of 127.0.0.1 is set at runtime\n local_protocol: \"http\",\n upstream_protocol: \"http\",\n host: undefined,\n // Note this one is also workers only\n enable_containers: true,\n container_engine: undefined,\n generate_types: false\n },\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n name: undefined,\n compatibility_date: undefined,\n compatibility_flags: [],\n limits: undefined,\n placement: undefined,\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n vars: {},\n durable_objects: { bindings: [] },\n kv_namespaces: [],\n queues: {\n producers: [],\n consumers: [] // WORKERS SUPPORT ONLY!!\n },\n r2_buckets: [],\n d1_databases: [],\n vectorize: [],\n hyperdrive: [],\n workflows: [],\n secrets_store_secrets: [],\n services: [],\n analytics_engine_datasets: [],\n ai: undefined,\n images: undefined,\n stream: undefined,\n media: undefined,\n version_metadata: undefined,\n unsafe_hello_world: [],\n ratelimits: [],\n worker_loaders: [],\n\n /*= =================================================== */\n /* Fields supported by Workers only */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n legacy_env: true,\n site: undefined,\n wasm_modules: undefined,\n text_blobs: undefined,\n data_blobs: undefined,\n keep_vars: undefined,\n alias: undefined,\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n account_id: undefined,\n main: undefined,\n find_additional_modules: undefined,\n preserve_file_names: undefined,\n base_dir: undefined,\n workers_dev: undefined,\n preview_urls: undefined,\n route: undefined,\n routes: undefined,\n tsconfig: undefined,\n jsx_factory: \"React.createElement\",\n jsx_fragment: \"React.Fragment\",\n migrations: [],\n triggers: {\n crons: undefined\n },\n rules: [],\n build: { command: undefined, watch_dir: \"./src\", cwd: undefined },\n no_bundle: undefined,\n minify: undefined,\n keep_names: undefined,\n dispatch_namespaces: [],\n first_party_worker: undefined,\n logfwdr: { bindings: [] },\n logpush: undefined,\n upload_source_maps: undefined,\n assets: undefined,\n observability: { enabled: true },\n cache: undefined,\n /** The default here is undefined so that we can delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable. */\n compliance_region: undefined,\n python_modules: { exclude: [\"**/*.pyc\"] },\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n define: {},\n cloudchamber: {},\n containers: undefined,\n send_email: [],\n browser: undefined,\n unsafe: {},\n mtls_certificates: [],\n tail_consumers: undefined,\n streaming_tail_consumers: undefined,\n pipelines: [],\n vpc_services: [],\n ai_search_namespaces: []\n} as unknown as WranglerResolvedConfig;\n"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAY,gBAAgB,EAAA,MAAK;CAAA,EAAA,OAAA;CAAA,EAAA,OAAA;CAAA,EAAA,QAAA;CAAA,EAAA,KAAA;AAAA,CAAA;;;;;;AAEjC,IAAA;AACA,eAAgB,kBAAwB,aAAS,QAAA,SAAA,KAAA;;CAE/C,IAAC;SACI,MAAM,OAAA,KAAgB,MAAE,SAAM,GAAA;CACnC,UAAU;EACR,WAAQ;CACV;AACF;AACA,MAAE,aAAA,EAAA,OAAA,EAAA,WAAA,MAAA;CACF,OAAO,aAAe,QAAQ,iEAAqB;CACnD,OAAO,KAAK,QAAO,UAAa,CAAA;AAChC,CAAA;AACA,SAAU,SAAA,OAAA,uBAAA,IAAA,IAAA,GAAA;CACR,IAAE,OAAA,UAAa,YAAA,UAAA,MAAA,OAAA;CACf,KAAI,MAAM,SAAU,OAAC,OAAA,KAAA,GAAA;EACnB,IAAE,KAAO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ACN;CACA,OAAA;;CAEA,mBAAa;CACb,gBAAc,EACd,SAAO,CAAA,UAAS,EAChB;;CAEA,QAAA,CAAA;CACA,cAAc,CAAC;CACf,YAAY;CACZ,YAAU,CAAA;CACV,SAAS;CACT,QAAC,CAAA;CACD,mBAAS,CAAA;CACT,gBAAgB;CAChB,0BAAoB;CACpB,WAAQ,CAAA;CACR,cAAY,CAAA;CACZ,sBAAsB,CAAC;AACzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_types_wrangler = require('./wrangler.cjs');
|
|
2
|
+
const require_chunk_artifact = require('../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
3
|
+
const require_test_DNmyFkvJ = require('../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
|
|
4
|
+
|
|
5
|
+
//#region src/types/wrangler.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-cloudflare/src/types/wrangler.ts", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_types_wrangler.wrangler_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_types_wrangler.wrangler_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_types_wrangler.wrangler_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { wrangler_exports } from "./wrangler.mjs";
|
|
2
|
+
import { describe, it } from "../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
3
|
+
import { globalExpect } from "../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/wrangler.test.ts
|
|
6
|
+
describe("plugins/plugin-cloudflare/src/types/wrangler.ts", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(wrangler_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof wrangler_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(wrangler_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=wrangler.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrangler.test.mjs","names":[],"sources":["../../src/types/wrangler.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./wrangler\";\n\ndescribe(\"plugins/plugin-cloudflare/src/types/wrangler.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,gBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,gBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-cloudflare",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.191",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin that provides integration with Cloudflare services.",
|
|
6
6
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -82,6 +82,20 @@
|
|
|
82
82
|
"default": "./dist/components/cloudflare-builtin.mjs"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
"./components/cloudflare-builtin.test": {
|
|
86
|
+
"require": {
|
|
87
|
+
"types": "./dist/components/cloudflare-builtin.test.d.cts",
|
|
88
|
+
"default": "./dist/components/cloudflare-builtin.test.cjs"
|
|
89
|
+
},
|
|
90
|
+
"import": {
|
|
91
|
+
"types": "./dist/components/cloudflare-builtin.test.d.mts",
|
|
92
|
+
"default": "./dist/components/cloudflare-builtin.test.mjs"
|
|
93
|
+
},
|
|
94
|
+
"default": {
|
|
95
|
+
"types": "./dist/components/cloudflare-builtin.test.d.mts",
|
|
96
|
+
"default": "./dist/components/cloudflare-builtin.test.mjs"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
85
99
|
"./components/env-builtin": {
|
|
86
100
|
"require": {
|
|
87
101
|
"types": "./dist/components/env-builtin.d.cts",
|
|
@@ -96,6 +110,20 @@
|
|
|
96
110
|
"default": "./dist/components/env-builtin.mjs"
|
|
97
111
|
}
|
|
98
112
|
},
|
|
113
|
+
"./components/env-builtin.test": {
|
|
114
|
+
"require": {
|
|
115
|
+
"types": "./dist/components/env-builtin.test.d.cts",
|
|
116
|
+
"default": "./dist/components/env-builtin.test.cjs"
|
|
117
|
+
},
|
|
118
|
+
"import": {
|
|
119
|
+
"types": "./dist/components/env-builtin.test.d.mts",
|
|
120
|
+
"default": "./dist/components/env-builtin.test.mjs"
|
|
121
|
+
},
|
|
122
|
+
"default": {
|
|
123
|
+
"types": "./dist/components/env-builtin.test.d.mts",
|
|
124
|
+
"default": "./dist/components/env-builtin.test.mjs"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
99
127
|
"./components/worker-entry": {
|
|
100
128
|
"require": {
|
|
101
129
|
"types": "./dist/components/worker-entry.d.cts",
|
|
@@ -110,6 +138,20 @@
|
|
|
110
138
|
"default": "./dist/components/worker-entry.mjs"
|
|
111
139
|
}
|
|
112
140
|
},
|
|
141
|
+
"./components/worker-entry.test": {
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./dist/components/worker-entry.test.d.cts",
|
|
144
|
+
"default": "./dist/components/worker-entry.test.cjs"
|
|
145
|
+
},
|
|
146
|
+
"import": {
|
|
147
|
+
"types": "./dist/components/worker-entry.test.d.mts",
|
|
148
|
+
"default": "./dist/components/worker-entry.test.mjs"
|
|
149
|
+
},
|
|
150
|
+
"default": {
|
|
151
|
+
"types": "./dist/components/worker-entry.test.d.mts",
|
|
152
|
+
"default": "./dist/components/worker-entry.test.mjs"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
113
155
|
"./helpers/constants": {
|
|
114
156
|
"require": {
|
|
115
157
|
"types": "./dist/helpers/constants.d.cts",
|
|
@@ -124,6 +166,20 @@
|
|
|
124
166
|
"default": "./dist/helpers/constants.mjs"
|
|
125
167
|
}
|
|
126
168
|
},
|
|
169
|
+
"./helpers/constants.test": {
|
|
170
|
+
"require": {
|
|
171
|
+
"types": "./dist/helpers/constants.test.d.cts",
|
|
172
|
+
"default": "./dist/helpers/constants.test.cjs"
|
|
173
|
+
},
|
|
174
|
+
"import": {
|
|
175
|
+
"types": "./dist/helpers/constants.test.d.mts",
|
|
176
|
+
"default": "./dist/helpers/constants.test.mjs"
|
|
177
|
+
},
|
|
178
|
+
"default": {
|
|
179
|
+
"types": "./dist/helpers/constants.test.d.mts",
|
|
180
|
+
"default": "./dist/helpers/constants.test.mjs"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
127
183
|
"./helpers/wrangler": {
|
|
128
184
|
"require": {
|
|
129
185
|
"types": "./dist/helpers/wrangler.d.cts",
|
|
@@ -138,6 +194,20 @@
|
|
|
138
194
|
"default": "./dist/helpers/wrangler.mjs"
|
|
139
195
|
}
|
|
140
196
|
},
|
|
197
|
+
"./helpers/wrangler.test": {
|
|
198
|
+
"require": {
|
|
199
|
+
"types": "./dist/helpers/wrangler.test.d.cts",
|
|
200
|
+
"default": "./dist/helpers/wrangler.test.cjs"
|
|
201
|
+
},
|
|
202
|
+
"import": {
|
|
203
|
+
"types": "./dist/helpers/wrangler.test.d.mts",
|
|
204
|
+
"default": "./dist/helpers/wrangler.test.mjs"
|
|
205
|
+
},
|
|
206
|
+
"default": {
|
|
207
|
+
"types": "./dist/helpers/wrangler.test.d.mts",
|
|
208
|
+
"default": "./dist/helpers/wrangler.test.mjs"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
141
211
|
"./package.json": "./package.json",
|
|
142
212
|
"./types": {
|
|
143
213
|
"require": {
|
|
@@ -194,6 +264,20 @@
|
|
|
194
264
|
"types": "./dist/types/wrangler.d.mts",
|
|
195
265
|
"default": "./dist/types/wrangler.mjs"
|
|
196
266
|
}
|
|
267
|
+
},
|
|
268
|
+
"./types/wrangler.test": {
|
|
269
|
+
"require": {
|
|
270
|
+
"types": "./dist/types/wrangler.test.d.cts",
|
|
271
|
+
"default": "./dist/types/wrangler.test.cjs"
|
|
272
|
+
},
|
|
273
|
+
"import": {
|
|
274
|
+
"types": "./dist/types/wrangler.test.d.mts",
|
|
275
|
+
"default": "./dist/types/wrangler.test.mjs"
|
|
276
|
+
},
|
|
277
|
+
"default": {
|
|
278
|
+
"types": "./dist/types/wrangler.test.d.mts",
|
|
279
|
+
"default": "./dist/types/wrangler.test.mjs"
|
|
280
|
+
}
|
|
197
281
|
}
|
|
198
282
|
},
|
|
199
283
|
"main": "./dist/index.cjs",
|
|
@@ -209,31 +293,44 @@
|
|
|
209
293
|
"dependencies": {
|
|
210
294
|
"@alloy-js/core": "^0.23.1",
|
|
211
295
|
"@alloy-js/typescript": "^0.23.0",
|
|
212
|
-
"@powerlines/schema": "
|
|
213
|
-
"@powerlines/plugin-env": "0.16.
|
|
214
|
-
"@powerlines/plugin-pulumi": "
|
|
215
|
-
"@powerlines/plugin-unenv": "
|
|
296
|
+
"@powerlines/schema": "0.11.72",
|
|
297
|
+
"@powerlines/plugin-env": "0.16.292",
|
|
298
|
+
"@powerlines/plugin-pulumi": "0.6.191",
|
|
299
|
+
"@powerlines/plugin-unenv": "0.1.539",
|
|
216
300
|
"@pulumi/cloudflare": "^6.17.0",
|
|
217
301
|
"@pulumi/pulumi": "^3.244.0",
|
|
218
|
-
"@storm-software/config-tools": "^1.190.
|
|
219
|
-
"@stryke/hash": "^0.13.
|
|
220
|
-
"@stryke/helpers": "^0.10.
|
|
221
|
-
"@stryke/path": "^0.29.
|
|
222
|
-
"@stryke/string-format": "^0.17.
|
|
223
|
-
"@stryke/type-checks": "^0.6.
|
|
224
|
-
"@stryke/types": "^0.12.
|
|
302
|
+
"@storm-software/config-tools": "^1.190.37",
|
|
303
|
+
"@stryke/hash": "^0.13.33",
|
|
304
|
+
"@stryke/helpers": "^0.10.20",
|
|
305
|
+
"@stryke/path": "^0.29.7",
|
|
306
|
+
"@stryke/string-format": "^0.17.22",
|
|
307
|
+
"@stryke/type-checks": "^0.6.13",
|
|
308
|
+
"@stryke/types": "^0.12.8",
|
|
225
309
|
"defu": "^6.1.7",
|
|
226
|
-
"powerlines": "
|
|
310
|
+
"powerlines": "0.47.89"
|
|
227
311
|
},
|
|
228
312
|
"devDependencies": {
|
|
229
313
|
"@cloudflare/unenv-preset": "^2.16.1",
|
|
230
|
-
"@cloudflare/workers-types": "^4.
|
|
231
|
-
"@powerlines/plugin-alloy": "0.26.
|
|
232
|
-
"@powerlines/plugin-plugin": "
|
|
314
|
+
"@cloudflare/workers-types": "^4.20260530.1",
|
|
315
|
+
"@powerlines/plugin-alloy": "0.26.181",
|
|
316
|
+
"@powerlines/plugin-plugin": "0.12.501",
|
|
233
317
|
"@types/node": "^25.9.1",
|
|
234
318
|
"wrangler": "^4.95.0",
|
|
235
319
|
"zod": "^4.4.3"
|
|
236
320
|
},
|
|
237
321
|
"publishConfig": { "access": "public" },
|
|
238
|
-
"
|
|
322
|
+
"inlinedDependencies": {
|
|
323
|
+
"@jridgewell/sourcemap-codec": "1.5.5",
|
|
324
|
+
"@vitest/expect": "4.1.7",
|
|
325
|
+
"@vitest/pretty-format": "4.1.7",
|
|
326
|
+
"@vitest/runner": "4.1.7",
|
|
327
|
+
"@vitest/snapshot": "4.1.7",
|
|
328
|
+
"@vitest/spy": "4.1.7",
|
|
329
|
+
"@vitest/utils": "4.1.7",
|
|
330
|
+
"chai": "6.2.2",
|
|
331
|
+
"magic-string": "0.30.21",
|
|
332
|
+
"tinyrainbow": "3.1.0",
|
|
333
|
+
"vitest": "4.1.7"
|
|
334
|
+
},
|
|
335
|
+
"gitHead": "0b8ebdde5e6e57b8a983e447e0fbb94469a5bd1a"
|
|
239
336
|
}
|