@torpor/adapter-cloudflare 1.0.4 → 1.0.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.
package/dist/index.d.mts CHANGED
@@ -2,5 +2,20 @@ import { Adapter } from "@torpor/build";
2
2
  //#region src/adapter.d.ts
3
3
  declare const _default: Adapter;
4
4
  //#endregion
5
+ //#region src/index.d.ts
6
+ declare global {
7
+ interface TorporEnv {
8
+ /**
9
+ * Cloudflare Pages serves the site's static assets through this
10
+ * binding. Structurally compatible with the `Fetcher` type from
11
+ * `@cloudflare/workers-types`, which the app can reference for the
12
+ * full type.
13
+ */
14
+ ASSETS?: {
15
+ fetch(request: Request): Promise<Response>;
16
+ };
17
+ }
18
+ }
19
+ //#endregion
5
20
  export { _default as cloudflare };
6
21
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/adapter.ts"],"mappings":";;cAUA,UAwBuB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/adapter.ts","../src/index.ts"],"mappings":";;cAUA,UAwBuB;;;QC9BR;YACJ;;;;;;;IAOT;MACC,MAAM,SAAS,UAAU,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torpor/adapter-cloudflare",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A @torpor/build adapter for deploying to Cloudflare Pages",
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,7 +18,7 @@
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
20
  "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
21
- "@torpor/build": "^1.2.0"
21
+ "@torpor/build": "^1.4.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@cloudflare/vite-plugin": "^1.0.0",