wrangler 3.72.3 → 3.73.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.73.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -62,12 +62,12 @@
|
|
62
62
|
"resolve.exports": "^2.0.2",
|
63
63
|
"selfsigned": "^2.0.1",
|
64
64
|
"source-map": "^0.6.1",
|
65
|
-
"unenv": "npm:unenv-nightly@
|
65
|
+
"unenv": "npm:unenv-nightly@2.0.0-1724863496.70db6f1",
|
66
66
|
"workerd": "1.20240821.1",
|
67
67
|
"xxhash-wasm": "^1.0.1",
|
68
68
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
69
|
-
"
|
70
|
-
"
|
69
|
+
"miniflare": "3.20240821.0",
|
70
|
+
"@cloudflare/workers-shared": "0.4.1"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@cloudflare/types": "^6.18.4",
|
@@ -152,8 +152,8 @@
|
|
152
152
|
"xdg-app-paths": "^8.3.0",
|
153
153
|
"yargs": "^17.7.2",
|
154
154
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
155
|
-
"@cloudflare/eslint-config-worker": "1.1.0",
|
156
155
|
"@cloudflare/cli": "1.1.1",
|
156
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
157
157
|
"@cloudflare/pages-shared": "^0.11.53",
|
158
158
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
159
159
|
},
|
@@ -9,7 +9,21 @@ const scheduled: Middleware = async (request, env, _ctx, middlewareCtx) => {
|
|
9
9
|
|
10
10
|
return new Response("Ran scheduled event");
|
11
11
|
}
|
12
|
-
|
12
|
+
|
13
|
+
const resp = await middlewareCtx.next(request, env);
|
14
|
+
|
15
|
+
// If you open the `/__scheduled` page in a browser, the browser will automatically make a request to `/favicon.ico`.
|
16
|
+
// For scheduled Workers _without_ a fetch handler, this will result in a 500 response that clutters the log with unhelpful error messages.
|
17
|
+
// To avoid this, inject a 404 response to favicon.ico loads on the `/__scheduled` page
|
18
|
+
if (
|
19
|
+
request.headers.get("referer")?.endsWith("/__scheduled") &&
|
20
|
+
url.pathname === "/favicon.ico" &&
|
21
|
+
resp.status === 500
|
22
|
+
) {
|
23
|
+
return new Response(null, { status: 404 });
|
24
|
+
}
|
25
|
+
|
26
|
+
return resp;
|
13
27
|
};
|
14
28
|
|
15
29
|
export default scheduled;
|
@@ -23,11 +23,11 @@
|
|
23
23
|
* this Worker is.
|
24
24
|
*/
|
25
25
|
type Env = {
|
26
|
-
|
26
|
+
ASSET_WORKER: Fetcher;
|
27
27
|
};
|
28
28
|
|
29
29
|
export default {
|
30
30
|
async fetch(request: Request, env: Env) {
|
31
|
-
return env.
|
31
|
+
return env.ASSET_WORKER.fetch(request);
|
32
32
|
},
|
33
33
|
};
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -975,7 +975,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
975
975
|
modified_on: string;
|
976
976
|
short_id: string;
|
977
977
|
build_image_major_version: number;
|
978
|
-
kv_namespaces?: any;
|
979
978
|
source?: {
|
980
979
|
type: "github" | "gitlab";
|
981
980
|
config: {
|
@@ -990,6 +989,7 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
|
|
990
989
|
preview_branch_excludes?: string[] | undefined;
|
991
990
|
};
|
992
991
|
} | undefined;
|
992
|
+
kv_namespaces?: any;
|
993
993
|
env_vars?: any;
|
994
994
|
durable_object_namespaces?: any;
|
995
995
|
is_skipped?: boolean | undefined;
|