@cloudflare/pages-shared 0.0.11 → 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.
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetch as miniflareFetch,
|
|
3
|
-
Headers as MiniflareHeaders,
|
|
4
|
-
Request as MiniflareRequest,
|
|
5
|
-
Response as MiniflareResponse,
|
|
6
|
-
} from "@miniflare/tre";
|
|
7
1
|
import { polyfill } from ".";
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
export default async () => {
|
|
4
|
+
const mf = await import("@miniflare/tre");
|
|
5
|
+
|
|
6
|
+
polyfill({
|
|
7
|
+
fetch: mf.fetch,
|
|
8
|
+
Headers: mf.Headers,
|
|
9
|
+
Request: mf.Request,
|
|
10
|
+
Response: mf.Response,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetch as miniflareFetch,
|
|
3
|
-
Headers as MiniflareHeaders,
|
|
4
|
-
Request as MiniflareRequest,
|
|
5
|
-
Response as MiniflareResponse,
|
|
6
|
-
} from "@miniflare/core";
|
|
7
1
|
import { polyfill } from ".";
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
export default async () => {
|
|
4
|
+
const mf = await import("@miniflare/core");
|
|
5
|
+
|
|
6
|
+
polyfill({
|
|
7
|
+
fetch: mf.fetch,
|
|
8
|
+
Headers: mf.Headers,
|
|
9
|
+
Request: mf.Request,
|
|
10
|
+
Response: mf.Response,
|
|
11
|
+
});
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/pages-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/cloudflare/wrangler2.git",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@miniflare/core": "2.
|
|
45
|
+
"@miniflare/core": "2.11.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@miniflare/cache": "2.
|
|
49
|
-
"@miniflare/html-rewriter": "2.
|
|
48
|
+
"@miniflare/cache": "2.11.0",
|
|
49
|
+
"@miniflare/html-rewriter": "2.11.0",
|
|
50
50
|
"@types/service-worker-mock": "^2.0.1",
|
|
51
51
|
"concurrently": "^7.3.0",
|
|
52
52
|
"glob": "^8.0.3",
|