this repo has no description

update outdated code in sandbox

Changed files
+11 -5
example
hono
internal
worker
sandbox
+8
example/hono/deno.lock
··· 16 "jsr:@std/http" 17 ] 18 }, 19 "@std/encoding@1.0.8": { 20 "integrity": "a6c8f3f933ab1bed66244f435d1dc0fd23a888e07195532122ddc3d5f8f0e6b4" 21 },
··· 16 "jsr:@std/http" 17 ] 18 }, 19 + "@smallweb/sandbox@0.1.1": { 20 + "integrity": "e90d4f3ca3abbc5b765e29ab90f12cc4e6c8754ec4311bc296ccf6240053f3e6", 21 + "dependencies": [ 22 + "jsr:@std/encoding", 23 + "jsr:@std/html", 24 + "jsr:@std/http" 25 + ] 26 + }, 27 "@std/encoding@1.0.8": { 28 "integrity": "a6c8f3f933ab1bed66244f435d1dc0fd23a888e07195532122ddc3d5f8f0e6b4" 29 },
+1 -1
internal/worker/worker.go
··· 26 "github.com/pomdtr/smallweb/internal/utils" 27 ) 28 29 - var sandboxUrl = "jsr:@smallweb/sandbox@0.1.0" 30 31 type Worker struct { 32 App app.App
··· 26 "github.com/pomdtr/smallweb/internal/utils" 27 ) 28 29 + var sandboxUrl = "jsr:@smallweb/sandbox@0.1.1" 30 31 type Worker struct { 32 App app.App
+1 -1
sandbox/deno.json
··· 1 { 2 "name": "@smallweb/sandbox", 3 - "version": "0.1.0", 4 "license": "MIT", 5 "exports": "./mod.ts" 6 }
··· 1 { 2 "name": "@smallweb/sandbox", 3 + "version": "0.1.1", 4 "license": "MIT", 5 "exports": "./mod.ts" 6 }
+1 -3
sandbox/mod.ts
··· 160 Deno.exit(1); 161 } 162 163 - const data = decodeBase64(payload.input) 164 - const blob = new Blob([data]); 165 - await handler.run(payload.args, blob.stream()); 166 } else if (payload.command === "email") { 167 const mod = await import(payload.entrypoint); 168 if (!mod.default || typeof mod.default !== "object") {
··· 160 Deno.exit(1); 161 } 162 163 + await handler.run(payload.args); 164 } else if (payload.command === "email") { 165 const mod = await import(payload.entrypoint); 166 if (!mod.default || typeof mod.default !== "object") {