@torpor/adapter-cloudflare 0.0.12 → 0.0.13
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/CHANGELOG.md +7 -0
- package/package.json +2 -2
- package/src/_worker.ts +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@torpor/adapter-cloudflare",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "A @torpor/build adapter for deploying to Cloudflare Pages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"vite": "^6.3.3",
|
|
22
|
-
"@torpor/build": "^0.1.
|
|
22
|
+
"@torpor/build": "^0.1.13"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
package/src/_worker.ts
CHANGED
|
@@ -26,7 +26,8 @@ server.add("*", async (ev: any) => {
|
|
|
26
26
|
|
|
27
27
|
export default {
|
|
28
28
|
async fetch(request: Request, env: any): Promise<any> {
|
|
29
|
-
// Put adapter-specific functionality in the `adapter` property of
|
|
29
|
+
// Put adapter-specific functionality in the `adapter` property of
|
|
30
|
+
// globalThis for now
|
|
30
31
|
// @ts-ignore
|
|
31
32
|
globalThis.adapter = { env };
|
|
32
33
|
|