rsbuild-plugin-cloudflare 0.0.6 → 0.0.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.
@@ -0,0 +1,8 @@
1
+ import { randomUUID } from "node:crypto";
2
+ // ../../workers-sdk/packages/vite-plugin-cloudflare/src/constants.ts
3
+ const ROUTER_WORKER_NAME = "__router-worker__";
4
+ const ASSET_WORKER_NAME = "__asset-worker__";
5
+ const VITE_PROXY_WORKER_NAME = "__vite_proxy_worker__";
6
+ const PROXY_SHARED_SECRET = randomUUID();
7
+ const kRequestType = Symbol("kRequestType");
8
+ export { kRequestType as a, VITE_PROXY_WORKER_NAME as i, PROXY_SHARED_SECRET as n, ROUTER_WORKER_NAME as r, ASSET_WORKER_NAME as t };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { ParsedCloudflareConfig, ParsedWorkerConfig } from "@cloudflare/config";
2
2
  import { RsbuildPlugin } from "@rsbuild/core";
3
-
4
- //#region ../../workers-sdk/packages/vite-plugin-cloudflare/src/plugin-config.d.ts
5
-
6
3
  /** Parsed configuration with the entry Worker required by the Vite plugin. */
7
4
  type CloudflareConfig = Omit<ParsedCloudflareConfig, "worker"> & {
8
5
  worker: ParsedWorkerConfig;
@@ -93,8 +90,6 @@ interface PluginConfig$1 extends EntryWorkerOptions {
93
90
  types?: TypeGenerationOptions;
94
91
  experimental?: Experimental;
95
92
  }
96
- //#endregion
97
- //#region src/index.d.ts
98
93
  /** Options for the Rsbuild environment that builds a Worker. */
99
94
  interface RsbuildEnvironmentOptions {
100
95
  /**
@@ -130,5 +125,4 @@ interface PluginConfig extends RsbuildWorkerOptions<Omit<PluginConfig$1, "tunnel
130
125
  * @returns An Rsbuild plugin.
131
126
  */
132
127
  declare function cloudflare(options?: PluginConfig): RsbuildPlugin;
133
- //#endregion
134
128
  export { type CloudflareConfig, PluginConfig, type WorkerConfig, cloudflare };