wrangler
Advanced tools
+9
-9
| { | ||
| "name": "wrangler", | ||
| "version": "4.67.0", | ||
| "version": "4.67.1", | ||
| "description": "Command-line interface for all things Cloudflare Workers", | ||
@@ -57,6 +57,6 @@ "keywords": [ | ||
| "unenv": "2.0.0-rc.24", | ||
| "workerd": "1.20260219.0", | ||
| "workerd": "1.20260302.0", | ||
| "@cloudflare/kv-asset-handler": "0.4.2", | ||
| "@cloudflare/unenv-preset": "2.14.0", | ||
| "miniflare": "4.20260219.0" | ||
| "miniflare": "4.20260302.0" | ||
| }, | ||
@@ -67,3 +67,3 @@ "devDependencies": { | ||
| "@cloudflare/types": "6.18.4", | ||
| "@cloudflare/workers-types": "^4.20260219.0", | ||
| "@cloudflare/workers-types": "^4.20260302.0", | ||
| "@cspotcode/source-map-support": "0.8.1", | ||
@@ -94,3 +94,3 @@ "@netlify/build-info": "^10.2.0", | ||
| "am-i-vibing": "^0.1.0", | ||
| "capnweb": "^0.1.0", | ||
| "capnweb": "^0.5.0", | ||
| "chalk": "^5.2.0", | ||
@@ -109,6 +109,6 @@ "chokidar": "^4.0.1", | ||
| "dotenv-expand": "^12.0.2", | ||
| "empathic": "^2.0.0", | ||
| "eslint": "^9.39.1", | ||
| "esprima": "4.0.1", | ||
| "execa": "^6.1.0", | ||
| "find-up": "^6.3.0", | ||
| "get-port": "^7.0.0", | ||
@@ -157,10 +157,10 @@ "glob-to-regexp": "^0.4.1", | ||
| "@cloudflare/eslint-config-shared": "1.2.1", | ||
| "@cloudflare/pages-shared": "^0.13.110", | ||
| "@cloudflare/workers-shared": "0.19.0", | ||
| "@cloudflare/pages-shared": "^0.13.109", | ||
| "@cloudflare/workers-tsconfig": "0.0.0", | ||
| "@cloudflare/workers-utils": "0.11.0", | ||
| "@cloudflare/workers-utils": "0.11.1", | ||
| "@cloudflare/workflows-shared": "0.4.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "@cloudflare/workers-types": "^4.20260219.0" | ||
| "@cloudflare/workers-types": "^4.20260302.0" | ||
| }, | ||
@@ -167,0 +167,0 @@ "peerDependenciesMeta": { |
@@ -25,35 +25,2 @@ import { newWorkersRpcResponse } from "capnweb"; | ||
| /** | ||
| * Here be dragons! capnweb does not currently support ReadableStreams, which Media | ||
| * bindings use for input. As such, Media Bindings cannot be directly used via capnweb, | ||
| * and need to be special cased. | ||
| */ | ||
| function isSpecialCaseMediaBindingRequest(headers: Headers): boolean { | ||
| return headers.has("x-cf-media-input-options"); | ||
| } | ||
| async function evaluateMediaBinding( | ||
| headers: Headers, | ||
| stream: ReadableStream, | ||
| binding: MediaBinding | ||
| ): Promise<Response> { | ||
| const inputOptions = JSON.parse( | ||
| headers.get("x-cf-media-input-options") as string | ||
| ); | ||
| const outputOptions = JSON.parse( | ||
| headers.get("x-cf-media-output-options") as string | ||
| ); | ||
| const result = await binding | ||
| .input(stream) | ||
| .transform(inputOptions) | ||
| .output(outputOptions); | ||
| return new Response(await result.media(), { | ||
| headers: { | ||
| "x-cf-media-content-type": await result.contentType(), | ||
| }, | ||
| }); | ||
| } | ||
| /** | ||
| * For most bindings, we expose them as | ||
@@ -191,9 +158,2 @@ * - RPC stubs directly to capnweb, or | ||
| } | ||
| if (isSpecialCaseMediaBindingRequest(originalHeaders)) { | ||
| return evaluateMediaBinding( | ||
| originalHeaders, | ||
| request.body as ReadableStream, | ||
| fetcher as unknown as MediaBinding | ||
| ); | ||
| } | ||
@@ -200,0 +160,0 @@ return fetcher.fetch( |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
15719341
0.16%13668
5.8%29
3.57%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated