alchemy 0.56.0 → 0.57.0
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/bin/alchemy.js +14201 -14162
- package/bin/commands/create.ts +7 -7
- package/bin/commands/deploy.ts +2 -2
- package/bin/commands/destroy.ts +2 -2
- package/bin/commands/dev.ts +2 -2
- package/bin/commands/init.ts +6 -6
- package/bin/commands/login.ts +3 -3
- package/bin/commands/run.ts +2 -2
- package/bin/services/execute-alchemy.ts +3 -3
- package/bin/trpc.ts +49 -0
- package/lib/apply.d.ts.map +1 -1
- package/lib/apply.js +3 -4
- package/lib/apply.js.map +1 -1
- package/lib/cloudflare/{astro.d.ts → astro/astro.d.ts} +6 -5
- package/lib/cloudflare/astro/astro.d.ts.map +1 -0
- package/lib/cloudflare/astro/astro.js +91 -0
- package/lib/cloudflare/astro/astro.js.map +1 -0
- package/lib/cloudflare/astro/plugin.d.ts +4 -0
- package/lib/cloudflare/astro/plugin.d.ts.map +1 -0
- package/lib/cloudflare/astro/plugin.js +10 -0
- package/lib/cloudflare/astro/plugin.js.map +1 -0
- package/lib/cloudflare/cloudflare-env-proxy.d.ts +4 -0
- package/lib/cloudflare/cloudflare-env-proxy.d.ts.map +1 -0
- package/lib/cloudflare/cloudflare-env-proxy.js +34 -0
- package/lib/cloudflare/cloudflare-env-proxy.js.map +1 -0
- package/lib/cloudflare/compatibility-date.gen.d.ts +1 -1
- package/lib/cloudflare/compatibility-date.gen.js +1 -1
- package/lib/cloudflare/d1-local-migrations.js +1 -1
- package/lib/cloudflare/d1-local-migrations.js.map +1 -1
- package/lib/cloudflare/index.d.ts +8 -8
- package/lib/cloudflare/index.d.ts.map +1 -1
- package/lib/cloudflare/index.js +8 -8
- package/lib/cloudflare/index.js.map +1 -1
- package/lib/cloudflare/miniflare/miniflare-controller.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/miniflare-controller.js +2 -1
- package/lib/cloudflare/miniflare/miniflare-controller.js.map +1 -1
- package/lib/cloudflare/miniflare/paths.d.ts +5 -0
- package/lib/cloudflare/miniflare/paths.d.ts.map +1 -0
- package/lib/cloudflare/miniflare/paths.js +35 -0
- package/lib/cloudflare/miniflare/paths.js.map +1 -0
- package/lib/cloudflare/{nuxt.d.ts → nuxt/nuxt.d.ts} +4 -4
- package/lib/cloudflare/nuxt/nuxt.d.ts.map +1 -0
- package/lib/cloudflare/{nuxt.js → nuxt/nuxt.js} +8 -13
- package/lib/cloudflare/nuxt/nuxt.js.map +1 -0
- package/lib/cloudflare/nuxt/plugin.d.ts +4 -0
- package/lib/cloudflare/nuxt/plugin.d.ts.map +1 -0
- package/lib/cloudflare/nuxt/plugin.js +14 -0
- package/lib/cloudflare/nuxt/plugin.js.map +1 -0
- package/lib/cloudflare/oauth.js +2 -2
- package/lib/cloudflare/oauth.js.map +1 -1
- package/lib/cloudflare/orange.d.ts +3 -3
- package/lib/cloudflare/orange.d.ts.map +1 -1
- package/lib/cloudflare/orange.js +11 -21
- package/lib/cloudflare/orange.js.map +1 -1
- package/lib/cloudflare/react-router/plugin.d.ts +4 -0
- package/lib/cloudflare/react-router/plugin.d.ts.map +1 -0
- package/lib/cloudflare/react-router/plugin.js +11 -0
- package/lib/cloudflare/react-router/plugin.js.map +1 -0
- package/lib/cloudflare/react-router/react-router.d.ts +17 -0
- package/lib/cloudflare/react-router/react-router.d.ts.map +1 -0
- package/lib/cloudflare/react-router/react-router.js +21 -0
- package/lib/cloudflare/react-router/react-router.js.map +1 -0
- package/lib/cloudflare/redwood/plugin.d.ts +4 -0
- package/lib/cloudflare/redwood/plugin.d.ts.map +1 -0
- package/lib/cloudflare/redwood/plugin.js +19 -0
- package/lib/cloudflare/redwood/plugin.js.map +1 -0
- package/lib/cloudflare/{redwood.d.ts → redwood/redwood.d.ts} +5 -5
- package/lib/cloudflare/redwood/redwood.d.ts.map +1 -0
- package/lib/cloudflare/{redwood.js → redwood/redwood.js} +12 -13
- package/lib/cloudflare/redwood/redwood.js.map +1 -0
- package/lib/cloudflare/sveltekit/plugin.d.ts +4 -0
- package/lib/cloudflare/sveltekit/plugin.d.ts.map +1 -0
- package/lib/cloudflare/sveltekit/plugin.js +11 -0
- package/lib/cloudflare/sveltekit/plugin.js.map +1 -0
- package/lib/cloudflare/{sveltekit.d.ts → sveltekit/sveltekit.d.ts} +5 -5
- package/lib/cloudflare/sveltekit/sveltekit.d.ts.map +1 -0
- package/lib/cloudflare/{sveltekit.js → sveltekit/sveltekit.js} +4 -4
- package/lib/cloudflare/sveltekit/sveltekit.js.map +1 -0
- package/lib/cloudflare/{local-dev-cloudflare-shim.d.ts → tanstack-start/plugin.d.ts} +3 -2
- package/lib/cloudflare/tanstack-start/plugin.d.ts.map +1 -0
- package/lib/cloudflare/{local-dev-cloudflare-shim.js → tanstack-start/plugin.js} +6 -9
- package/lib/cloudflare/tanstack-start/plugin.js.map +1 -0
- package/lib/cloudflare/{tanstack-start.d.ts → tanstack-start/tanstack-start.d.ts} +5 -5
- package/lib/cloudflare/tanstack-start/tanstack-start.d.ts.map +1 -0
- package/lib/cloudflare/tanstack-start/tanstack-start.js +11 -0
- package/lib/cloudflare/tanstack-start/tanstack-start.js.map +1 -0
- package/lib/cloudflare/vite/plugin.d.ts +4 -0
- package/lib/cloudflare/vite/plugin.d.ts.map +1 -0
- package/lib/cloudflare/vite/plugin.js +23 -0
- package/lib/cloudflare/vite/plugin.js.map +1 -0
- package/lib/cloudflare/{vite.d.ts → vite/vite.d.ts} +4 -4
- package/lib/cloudflare/vite/vite.d.ts.map +1 -0
- package/lib/cloudflare/vite/vite.js +19 -0
- package/lib/cloudflare/vite/vite.js.map +1 -0
- package/lib/cloudflare/website.d.ts +92 -70
- package/lib/cloudflare/website.d.ts.map +1 -1
- package/lib/cloudflare/website.js +225 -94
- package/lib/cloudflare/website.js.map +1 -1
- package/lib/cloudflare/worker-bundle.d.ts +1 -1
- package/lib/cloudflare/worker-bundle.d.ts.map +1 -1
- package/lib/cloudflare/worker-bundle.js +23 -13
- package/lib/cloudflare/worker-bundle.js.map +1 -1
- package/lib/cloudflare/worker-stub.d.ts.map +1 -1
- package/lib/cloudflare/worker-stub.js +3 -6
- package/lib/cloudflare/worker-stub.js.map +1 -1
- package/lib/cloudflare/worker.d.ts +2 -7
- package/lib/cloudflare/worker.d.ts.map +1 -1
- package/lib/cloudflare/worker.js +5 -124
- package/lib/cloudflare/worker.js.map +1 -1
- package/lib/cloudflare/wrangler.json.d.ts +6 -0
- package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
- package/lib/cloudflare/wrangler.json.js +23 -6
- package/lib/cloudflare/wrangler.json.js.map +1 -1
- package/lib/env.d.ts +2 -2
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +5 -6
- package/lib/env.js.map +1 -1
- package/lib/random/index.d.ts +2 -0
- package/lib/random/index.d.ts.map +1 -0
- package/lib/random/index.js +2 -0
- package/lib/random/index.js.map +1 -0
- package/lib/random/random-string.d.ts +87 -0
- package/lib/random/random-string.d.ts.map +1 -0
- package/lib/random/random-string.js +72 -0
- package/lib/random/random-string.js.map +1 -0
- package/lib/runtime/bind.d.ts +1 -1
- package/lib/runtime/bind.d.ts.map +1 -1
- package/lib/runtime/bind.js.map +1 -1
- package/lib/scope.d.ts +0 -1
- package/lib/scope.d.ts.map +1 -1
- package/lib/scope.js +1 -2
- package/lib/scope.js.map +1 -1
- package/lib/secret.d.ts +2 -2
- package/lib/secret.d.ts.map +1 -1
- package/lib/secret.js +2 -2
- package/lib/secret.js.map +1 -1
- package/lib/state/cloudflare-state-store.js +1 -1
- package/lib/state/cloudflare-state-store.js.map +1 -1
- package/lib/state/dofs-state-store/index.js +1 -1
- package/lib/state/dofs-state-store/index.js.map +1 -1
- package/lib/util/detect-package-manager.d.ts +1 -0
- package/lib/util/detect-package-manager.d.ts.map +1 -1
- package/lib/util/detect-package-manager.js +10 -0
- package/lib/util/detect-package-manager.js.map +1 -1
- package/lib/util/telemetry/client.d.ts +1 -1
- package/lib/util/telemetry/client.d.ts.map +1 -1
- package/lib/util/telemetry/client.js +22 -1
- package/lib/util/telemetry/client.js.map +1 -1
- package/lib/util/telemetry/constants.d.ts.map +1 -1
- package/lib/util/telemetry/constants.js +2 -3
- package/lib/util/telemetry/constants.js.map +1 -1
- package/lib/util/telemetry/context.d.ts +1 -1
- package/lib/util/telemetry/context.d.ts.map +1 -1
- package/lib/util/telemetry/types.d.ts +7 -3
- package/lib/util/telemetry/types.d.ts.map +1 -1
- package/lib/vercel/api.d.ts.map +1 -1
- package/lib/vercel/api.js +1 -1
- package/lib/vercel/api.js.map +1 -1
- package/package.json +41 -3
- package/src/apply.ts +3 -7
- package/src/cloudflare/{astro.ts → astro/astro.ts} +46 -29
- package/src/cloudflare/astro/plugin.ts +11 -0
- package/src/cloudflare/cloudflare-env-proxy.ts +50 -0
- package/src/cloudflare/compatibility-date.gen.ts +1 -1
- package/src/cloudflare/d1-local-migrations.ts +1 -1
- package/src/cloudflare/index.ts +8 -8
- package/src/cloudflare/miniflare/miniflare-controller.ts +2 -1
- package/src/cloudflare/miniflare/paths.ts +52 -0
- package/src/cloudflare/{nuxt.ts → nuxt/nuxt.ts} +11 -16
- package/src/cloudflare/nuxt/plugin.ts +18 -0
- package/src/cloudflare/oauth.ts +2 -2
- package/src/cloudflare/orange.ts +13 -23
- package/src/cloudflare/react-router/plugin.ts +13 -0
- package/src/cloudflare/react-router/react-router.ts +41 -0
- package/src/cloudflare/redwood/plugin.ts +20 -0
- package/src/cloudflare/{redwood.ts → redwood/redwood.ts} +16 -19
- package/src/cloudflare/sveltekit/plugin.ts +12 -0
- package/src/cloudflare/{sveltekit.ts → sveltekit/sveltekit.ts} +9 -8
- package/src/cloudflare/{local-dev-cloudflare-shim.ts → tanstack-start/plugin.ts} +8 -9
- package/src/cloudflare/tanstack-start/tanstack-start.ts +24 -0
- package/src/cloudflare/vite/plugin.ts +30 -0
- package/src/cloudflare/vite/vite.ts +34 -0
- package/src/cloudflare/website.ts +379 -204
- package/src/cloudflare/worker-bundle.ts +27 -13
- package/src/cloudflare/worker-stub.ts +11 -14
- package/src/cloudflare/worker.ts +8 -155
- package/src/cloudflare/wrangler.json.ts +32 -4
- package/src/env.ts +8 -9
- package/src/random/index.ts +1 -0
- package/src/random/random-string.ts +126 -0
- package/src/runtime/bind.ts +2 -2
- package/src/scope.ts +1 -3
- package/src/secret.ts +4 -8
- package/src/state/cloudflare-state-store.ts +2 -2
- package/src/state/dofs-state-store/index.ts +1 -1
- package/src/util/detect-package-manager.ts +11 -0
- package/src/util/telemetry/client.ts +25 -2
- package/src/util/telemetry/constants.ts +2 -4
- package/src/util/telemetry/context.ts +1 -1
- package/src/util/telemetry/types.ts +8 -2
- package/src/vercel/api.ts +2 -4
- package/templates/astro/alchemy.run.ts +1 -3
- package/templates/astro/astro.config.mjs +2 -2
- package/templates/nuxt/alchemy.run.ts +1 -3
- package/templates/nuxt/nuxt.config.ts +4 -5
- package/templates/nuxt/package.json +0 -1
- package/templates/react-router/alchemy.run.ts +1 -4
- package/templates/react-router/vite.config.ts +2 -2
- package/templates/rwsdk/alchemy.run.ts +0 -1
- package/templates/rwsdk/package.json +0 -2
- package/templates/rwsdk/vite.config.mts +2 -2
- package/templates/sveltekit/alchemy.run.ts +1 -3
- package/templates/sveltekit/svelte.config.js +2 -2
- package/templates/tanstack-start/vite.config.ts +2 -2
- package/templates/vite/alchemy.run.ts +1 -1
- package/templates/vite/vite.config.ts +4 -5
- package/workers/cloudflare-state-store.js +12 -14
- package/lib/cloudflare/astro.d.ts.map +0 -1
- package/lib/cloudflare/astro.js +0 -69
- package/lib/cloudflare/astro.js.map +0 -1
- package/lib/cloudflare/local-dev-cloudflare-shim.d.ts.map +0 -1
- package/lib/cloudflare/local-dev-cloudflare-shim.js.map +0 -1
- package/lib/cloudflare/nuxt.d.ts.map +0 -1
- package/lib/cloudflare/nuxt.js.map +0 -1
- package/lib/cloudflare/react-router.d.ts +0 -17
- package/lib/cloudflare/react-router.d.ts.map +0 -1
- package/lib/cloudflare/react-router.js +0 -35
- package/lib/cloudflare/react-router.js.map +0 -1
- package/lib/cloudflare/redwood.d.ts.map +0 -1
- package/lib/cloudflare/redwood.js.map +0 -1
- package/lib/cloudflare/sveltekit.d.ts.map +0 -1
- package/lib/cloudflare/sveltekit.js.map +0 -1
- package/lib/cloudflare/tanstack-start.d.ts.map +0 -1
- package/lib/cloudflare/tanstack-start.js +0 -21
- package/lib/cloudflare/tanstack-start.js.map +0 -1
- package/lib/cloudflare/vite.d.ts.map +0 -1
- package/lib/cloudflare/vite.js +0 -20
- package/lib/cloudflare/vite.js.map +0 -1
- package/src/cloudflare/react-router.ts +0 -56
- package/src/cloudflare/tanstack-start.ts +0 -35
- package/src/cloudflare/vite.ts +0 -35
- package/templates/react-router/wrangler.jsonc +0 -6
- package/templates/rwsdk/wrangler.jsonc +0 -31
- package/templates/sveltekit/wrangler.jsonc +0 -7
- package/templates/tanstack-start/wrangler.jsonc +0 -7
- package/templates/typescript/index.ts +0 -1
- package/templates/vite/wrangler.jsonc +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Assets } from "
|
|
2
|
-
import type { Bindings } from "
|
|
3
|
-
import { type
|
|
4
|
-
import type { Worker } from "
|
|
5
|
-
export interface SvelteKitProps<B extends Bindings> extends
|
|
1
|
+
import type { Assets } from "../assets.ts";
|
|
2
|
+
import type { Bindings } from "../bindings.ts";
|
|
3
|
+
import { type ViteProps } from "../vite/vite.ts";
|
|
4
|
+
import type { Worker } from "../worker.ts";
|
|
5
|
+
export interface SvelteKitProps<B extends Bindings> extends ViteProps<B> {
|
|
6
6
|
}
|
|
7
7
|
export type SvelteKit<B extends Bindings> = B extends {
|
|
8
8
|
ASSETS: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sveltekit.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/sveltekit/sveltekit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;CAAG;AAG3E,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GACjE,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,SAAS,CAAC,CAAC,SAAS,QAAQ,EAChD,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GACjC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAoBvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
-
import {
|
|
2
|
+
import { Vite } from "../vite/vite.js";
|
|
3
3
|
/**
|
|
4
4
|
* Deploy a SvelteKit application to Cloudflare Workers with automatically configured defaults.
|
|
5
5
|
*
|
|
@@ -44,13 +44,13 @@ export async function SvelteKit(id, props) {
|
|
|
44
44
|
throw new Error(`SvelteKit compatibility date must be >= 2024-09-23 for nodejs_compat support, got ${props.compatibilityDate}`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return await Vite(id, {
|
|
48
48
|
...props,
|
|
49
|
-
|
|
50
|
-
main: props?.main ?? join(".svelte-kit", "cloudflare", "_worker.js"),
|
|
49
|
+
entrypoint: props?.entrypoint ?? join(".svelte-kit", "cloudflare", "_worker.js"),
|
|
51
50
|
assets: props?.assets ?? join(".svelte-kit", "cloudflare"),
|
|
52
51
|
compatibilityFlags: ["nodejs_compat", ...(props?.compatibilityFlags ?? [])],
|
|
53
52
|
compatibilityDate: props?.compatibilityDate,
|
|
53
|
+
wrangler: { secrets: true },
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
//# sourceMappingURL=sveltekit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sveltekit.js","sourceRoot":"","sources":["../../../src/cloudflare/sveltekit/sveltekit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,IAAI,EAAkB,MAAM,iBAAiB,CAAC;AAUvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,EAAU,EACV,KAAkC;IAElC,IAAI,KAAK,EAAE,iBAAiB,EAAE,CAAC;QAC7B,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,YAAY,GAAG,OAAO,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,qFAAqF,KAAK,CAAC,iBAAiB,EAAE,CAC/G,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,EAAE,EAAE;QACpB,GAAG,KAAK;QACR,UAAU,EACR,KAAK,EAAE,UAAU,IAAI,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC;QACtE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC;QAC1D,kBAAkB,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,KAAK,EAAE,kBAAkB,IAAI,EAAE,CAAC,CAAC;QAC3E,iBAAiB,EAAE,KAAK,EAAE,iBAAiB;QAC3C,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GetPlatformProxyOptions } from "wrangler";
|
|
1
2
|
/**
|
|
2
3
|
* TanStackStart server functions and middleware run in Node.js intead of Miniflare when using `vite dev`.
|
|
3
4
|
*
|
|
@@ -5,11 +6,11 @@
|
|
|
5
6
|
*
|
|
6
7
|
* @see https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack/#using-cloudflare-bindings
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
+
export default function alchemy(options?: GetPlatformProxyOptions): {
|
|
9
10
|
readonly name: "cloudflare-workers-dev-shim";
|
|
10
11
|
readonly apply: "serve";
|
|
11
12
|
readonly enforce: "pre";
|
|
12
13
|
readonly resolveId: (id: string) => "cloudflare:workers" | undefined;
|
|
13
14
|
readonly load: (id: string) => string | undefined;
|
|
14
15
|
};
|
|
15
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGxD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,GAAE,uBAA4B;;;;6BAKnD,MAAM;wBAGX,MAAM;EAWlB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dedent } from "
|
|
1
|
+
import { dedent } from "../../util/dedent.js";
|
|
2
2
|
/**
|
|
3
3
|
* TanStackStart server functions and middleware run in Node.js intead of Miniflare when using `vite dev`.
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ import { dedent } from "../util/dedent.js";
|
|
|
6
6
|
*
|
|
7
7
|
* @see https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack/#using-cloudflare-bindings
|
|
8
8
|
*/
|
|
9
|
-
export function
|
|
9
|
+
export default function alchemy(options = {}) {
|
|
10
10
|
return {
|
|
11
11
|
name: "cloudflare-workers-dev-shim",
|
|
12
12
|
apply: "serve", // dev‑only
|
|
@@ -17,15 +17,12 @@ export function cloudflareWorkersDevEnvironmentShim() {
|
|
|
17
17
|
},
|
|
18
18
|
load(id) {
|
|
19
19
|
if (id === "cloudflare:workers") {
|
|
20
|
-
const processEnv = JSON.stringify(process.env);
|
|
21
|
-
// @see https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy
|
|
22
20
|
return dedent `
|
|
23
|
-
import {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
`.trim();
|
|
21
|
+
import { getCloudflareEnvProxy } from "alchemy/cloudflare";
|
|
22
|
+
export const env = await getCloudflareEnvProxy(${JSON.stringify(options)});
|
|
23
|
+
`;
|
|
27
24
|
}
|
|
28
25
|
},
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,UAAmC,EAAE;IACnE,OAAO;QACL,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE,OAAO,EAAE,WAAW;QAC3B,OAAO,EAAE,KAAK;QACd,SAAS,CAAC,EAAU;YAClB,IAAI,EAAE,KAAK,oBAAoB;gBAAE,OAAO,EAAE,CAAC,CAAC,0BAA0B;QACxE,CAAC;QACD,IAAI,CAAC,EAAU;YACb,IAAI,EAAE,KAAK,oBAAoB,EAAE,CAAC;gBAChC,OAAO,MAAM,CAAA;;2DAEsC,IAAI,CAAC,SAAS,CAC7D,OAAO,CACR;SACF,CAAC;YACJ,CAAC;QACH,CAAC;KACO,CAAC;AACb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Assets } from "
|
|
2
|
-
import type { Bindings } from "
|
|
3
|
-
import { type
|
|
4
|
-
import type { Worker } from "
|
|
5
|
-
export interface TanStackStartProps<B extends Bindings> extends
|
|
1
|
+
import type { Assets } from "../assets.ts";
|
|
2
|
+
import type { Bindings } from "../bindings.ts";
|
|
3
|
+
import { type ViteProps } from "../vite/vite.ts";
|
|
4
|
+
import type { Worker } from "../worker.ts";
|
|
5
|
+
export interface TanStackStartProps<B extends Bindings> extends ViteProps<B> {
|
|
6
6
|
}
|
|
7
7
|
export type TanStackStart<B extends Bindings> = B extends {
|
|
8
8
|
ASSETS: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tanstack-start.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/tanstack-start.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;CAAG;AAG/E,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GACrE,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,aAAa,CAAC,CAAC,SAAS,QAAQ,EACpD,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACrC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAQ3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vite } from "../vite/vite.js";
|
|
2
|
+
export async function TanStackStart(id, props) {
|
|
3
|
+
return await Vite(id, {
|
|
4
|
+
...props,
|
|
5
|
+
noBundle: true,
|
|
6
|
+
entrypoint: props?.entrypoint ?? ".output/server/index.mjs",
|
|
7
|
+
compatibilityFlags: ["nodejs_compat", ...(props?.compatibilityFlags ?? [])],
|
|
8
|
+
assets: props?.assets ?? ".output/public",
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=tanstack-start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tanstack-start.js","sourceRoot":"","sources":["../../../src/cloudflare/tanstack-start/tanstack-start.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAkB,MAAM,iBAAiB,CAAC;AAUvD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,EAAU,EACV,KAAsC;IAEtC,OAAO,MAAM,IAAI,CAAC,EAAE,EAAE;QACpB,GAAG,KAAK;QACR,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK,EAAE,UAAU,IAAI,0BAA0B;QAC3D,kBAAkB,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,KAAK,EAAE,kBAAkB,IAAI,EAAE,CAAC,CAAC;QAC3E,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,gBAAgB;KAC1C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAQxE,QAAA,MAAM,OAAO,GAAI,SAAS,YAAY,iCAmBrC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { DEFAULT_PERSIST_PATH, validateConfigPath, validatePersistPath, } from "../miniflare/paths.js";
|
|
4
|
+
const alchemy = (config) => {
|
|
5
|
+
const persistState = config?.persistState ?? {
|
|
6
|
+
path: validatePersistPath(typeof config?.persistState === "object"
|
|
7
|
+
? config.persistState.path
|
|
8
|
+
: DEFAULT_PERSIST_PATH),
|
|
9
|
+
};
|
|
10
|
+
if (typeof persistState === "object" && persistState.path.endsWith("v3")) {
|
|
11
|
+
persistState.path = path.dirname(persistState.path);
|
|
12
|
+
}
|
|
13
|
+
return cloudflare({
|
|
14
|
+
...config,
|
|
15
|
+
configPath: validateConfigPath(config?.configPath),
|
|
16
|
+
persistState,
|
|
17
|
+
experimental: config?.experimental ?? {
|
|
18
|
+
remoteBindings: true,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export default alchemy;
|
|
23
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/cloudflare/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,yBAAyB,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,OAAO,GAAG,CAAC,MAAqB,EAAE,EAAE;IACxC,MAAM,YAAY,GAAG,MAAM,EAAE,YAAY,IAAI;QAC3C,IAAI,EAAE,mBAAmB,CACvB,OAAO,MAAM,EAAE,YAAY,KAAK,QAAQ;YACtC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI;YAC1B,CAAC,CAAC,oBAAoB,CACzB;KACF,CAAC;IACF,IAAI,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACzE,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,UAAU,CAAC;QAChB,GAAG,MAAM;QACT,UAAU,EAAE,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC;QAClD,YAAY;QACZ,YAAY,EAAE,MAAM,EAAE,YAAY,IAAI;YACpC,cAAc,EAAE,IAAI;SACrB;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Assets } from "
|
|
2
|
-
import type { Bindings } from "
|
|
3
|
-
import { type WebsiteProps } from "
|
|
4
|
-
import type { Worker } from "
|
|
1
|
+
import type { Assets } from "../assets.ts";
|
|
2
|
+
import type { Bindings } from "../bindings.ts";
|
|
3
|
+
import { type WebsiteProps } from "../website.ts";
|
|
4
|
+
import type { Worker } from "../worker.ts";
|
|
5
5
|
export interface ViteProps<B extends Bindings> extends Omit<WebsiteProps<B>, "spa"> {
|
|
6
6
|
}
|
|
7
7
|
export type Vite<B extends Bindings> = B extends {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../src/cloudflare/vite/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,QAAQ,CAC3C,SAAQ,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;CAAG;AAEzC,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC5D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,IAAI,CAAC,CAAC,SAAS,QAAQ,EAC3C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAiBlB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getPackageManagerRunner } from "../../util/detect-package-manager.js";
|
|
2
|
+
import { Website } from "../website.js";
|
|
3
|
+
export async function Vite(id, props) {
|
|
4
|
+
const runner = await getPackageManagerRunner();
|
|
5
|
+
return await Website(id, {
|
|
6
|
+
...props,
|
|
7
|
+
spa: true,
|
|
8
|
+
assets: typeof props.assets === "string"
|
|
9
|
+
? { directory: props.assets }
|
|
10
|
+
: {
|
|
11
|
+
...(props.assets ?? {}),
|
|
12
|
+
directory: props.assets?.directory ??
|
|
13
|
+
(props.entrypoint || props.script ? "dist/client" : "dist"),
|
|
14
|
+
},
|
|
15
|
+
build: props.build ?? `${runner} vite build`,
|
|
16
|
+
dev: props.dev ?? `${runner} vite dev`,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=vite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.js","sourceRoot":"","sources":["../../../src/cloudflare/vite/vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,OAAO,EAAE,OAAO,EAAqB,MAAM,eAAe,CAAC;AAU3D,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,EAAU,EACV,KAAmB;IAEnB,MAAM,MAAM,GAAG,MAAM,uBAAuB,EAAE,CAAC;IAC/C,OAAO,MAAM,OAAO,CAAC,EAAE,EAAE;QACvB,GAAG,KAAK;QACR,GAAG,EAAE,IAAI;QACT,MAAM,EACJ,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;YAC9B,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE;YAC7B,CAAC,CAAC;gBACE,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;gBACvB,SAAS,EACP,KAAK,CAAC,MAAM,EAAE,SAAS;oBACvB,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;aAC9D;QACP,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,GAAG,MAAM,aAAa;QAC5C,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,GAAG,MAAM,WAAW;KACvC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,78 +1,71 @@
|
|
|
1
1
|
import { Assets } from "./assets.ts";
|
|
2
2
|
import type { Bindings } from "./bindings.ts";
|
|
3
|
-
import {
|
|
3
|
+
import { type AssetsConfig, Worker, type WorkerProps } from "./worker.ts";
|
|
4
4
|
import { type WranglerJsonSpec } from "./wrangler.json.ts";
|
|
5
|
-
export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "
|
|
5
|
+
export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "assets" | "dev"> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Configuration for the build command
|
|
8
8
|
*
|
|
9
|
-
* If
|
|
9
|
+
* If not provided, the build is assumed to have already happened.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
11
|
+
build?: string | {
|
|
12
|
+
/**
|
|
13
|
+
* The command to run to build the site
|
|
14
|
+
*/
|
|
15
|
+
command: string;
|
|
16
|
+
/**
|
|
17
|
+
* Additional environment variables to set when running the build command
|
|
18
|
+
*/
|
|
19
|
+
env?: Record<string, string>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to memoize the command (only re-run if the command changes)
|
|
22
|
+
*
|
|
23
|
+
* When set to `true`, the command will only be re-executed if the command string changes.
|
|
24
|
+
*
|
|
25
|
+
* When set to an object with `patterns`, the command will be re-executed if either:
|
|
26
|
+
* 1. The command string changes, or
|
|
27
|
+
* 2. The contents of any files matching the glob patterns change
|
|
28
|
+
*
|
|
29
|
+
* ⚠️ **Important Note**: When using memoization with build commands, the build outputs
|
|
30
|
+
* will not be produced if the command is memoized. This is because the command is not
|
|
31
|
+
* actually executed when memoized. Consider disabling memoization in CI environments:
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Disable memoization in CI to ensure build outputs are always produced
|
|
35
|
+
* await Website("my-website", {
|
|
36
|
+
* command: "vite build",
|
|
37
|
+
* memoize: process.env.CI ? false : {
|
|
38
|
+
* patterns: ["./src/**"]
|
|
39
|
+
* }
|
|
40
|
+
* });
|
|
41
|
+
*
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
memoize?: boolean | {
|
|
45
|
+
patterns: string[];
|
|
46
|
+
};
|
|
42
47
|
};
|
|
43
48
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @default id
|
|
49
|
+
* Configuration for the dev command
|
|
47
50
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
dev?: string | {
|
|
52
|
+
/**
|
|
53
|
+
* The command to run to start the dev server
|
|
54
|
+
*/
|
|
55
|
+
command: string;
|
|
56
|
+
/**
|
|
57
|
+
* Additional environment variables to set when running the dev command
|
|
58
|
+
*/
|
|
59
|
+
env?: Record<string, string>;
|
|
60
|
+
};
|
|
55
61
|
/**
|
|
56
|
-
* The directory containing
|
|
62
|
+
* The directory containing static assets
|
|
57
63
|
*
|
|
58
|
-
* @default
|
|
64
|
+
* @default dist
|
|
59
65
|
*/
|
|
60
66
|
assets?: string | ({
|
|
61
|
-
|
|
67
|
+
directory?: string;
|
|
62
68
|
} & AssetsConfig);
|
|
63
|
-
/**
|
|
64
|
-
* @default process.cwd()
|
|
65
|
-
*/
|
|
66
|
-
cwd?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Write a wrangler.jsonc file
|
|
69
|
-
*
|
|
70
|
-
* @default - no wrangler.jsonc file is written
|
|
71
|
-
*/
|
|
72
|
-
wrangler?: boolean | string | {
|
|
73
|
-
path?: string;
|
|
74
|
-
main?: string;
|
|
75
|
-
};
|
|
76
69
|
/**
|
|
77
70
|
* Configures default routing to support client-side routing for Single Page Applications (SPA)
|
|
78
71
|
*
|
|
@@ -80,15 +73,21 @@ export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "
|
|
|
80
73
|
*/
|
|
81
74
|
spa?: boolean;
|
|
82
75
|
/**
|
|
83
|
-
*
|
|
76
|
+
* Configuration for the wrangler.json file
|
|
84
77
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
78
|
+
wrangler?: {
|
|
79
|
+
/**
|
|
80
|
+
* Path to the wrangler.json file
|
|
81
|
+
*
|
|
82
|
+
* @default .alchemy/local/wrangler.jsonc
|
|
83
|
+
*/
|
|
84
|
+
path?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The main entry point for the worker
|
|
87
|
+
*
|
|
88
|
+
* @default worker.entrypoint
|
|
89
|
+
*/
|
|
90
|
+
main?: string;
|
|
92
91
|
/**
|
|
93
92
|
* Hook to modify the wrangler.json object before it's written
|
|
94
93
|
*
|
|
@@ -99,7 +98,30 @@ export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "
|
|
|
99
98
|
* @param spec - The generated wrangler.json specification
|
|
100
99
|
* @returns The modified wrangler.json specification
|
|
101
100
|
*/
|
|
102
|
-
|
|
101
|
+
transform?: (spec: WranglerJsonSpec) => WranglerJsonSpec | Promise<WranglerJsonSpec>;
|
|
102
|
+
/**
|
|
103
|
+
* Whether to include secrets in the wrangler.json file
|
|
104
|
+
*
|
|
105
|
+
* @default true if no path is specified, false otherwise
|
|
106
|
+
*/
|
|
107
|
+
secrets?: boolean;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* The command to run to build the site.
|
|
111
|
+
* @deprecated Use `build` or `build.command` instead
|
|
112
|
+
*/
|
|
113
|
+
command?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Additional environment variables to set when running the build command.
|
|
116
|
+
* @deprecated Use `build.env` instead
|
|
117
|
+
*/
|
|
118
|
+
commandEnv?: Record<string, string>;
|
|
119
|
+
/**
|
|
120
|
+
* Whether to memoize the command (only re-run if the command changes)
|
|
121
|
+
* @deprecated Use `build.memoize` instead
|
|
122
|
+
*/
|
|
123
|
+
memoize?: boolean | {
|
|
124
|
+
patterns: string[];
|
|
103
125
|
};
|
|
104
126
|
}
|
|
105
127
|
export type Website<B extends Bindings> = B extends {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/cloudflare/website.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/cloudflare/website.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,QAAQ,CAC9C,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EACF,MAAM,GACN;QACE;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG;YAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC;KAC5C,CAAC;IACN;;OAEG;IACH,GAAG,CAAC,EACA,MAAM,GACN;QACE;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,CAAC;IACN;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,YAAY,CAAC,CAAC;IAC1D;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;;;;;;;WASG;QACH,SAAS,CAAC,EAAE,CACV,IAAI,EAAE,gBAAgB,KACnB,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAClD;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IAEF;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAC5C;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC/D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,OAAO,CAAC,CAAC,SAAS,QAAQ,EAC9C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,uBAgLvB"}
|