miniflare
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -279,3 +279,8 @@ "use strict"; | ||
res === null || res === void 0 ? void 0 : res.writeHead(response.status, response.headers.raw()); | ||
res === null || res === void 0 ? void 0 : res.end(await response.buffer()); | ||
if (response.body) { | ||
for await (const chunk of response.body) { | ||
res === null || res === void 0 ? void 0 : res.write(chunk); | ||
} | ||
} | ||
res === null || res === void 0 ? void 0 : res.end(); | ||
} | ||
@@ -282,0 +287,0 @@ catch (e) { |
@@ -52,3 +52,3 @@ import { KVStorage } from "./storage"; | ||
list<Value = unknown>(options?: DurableObjectListOptions): Promise<Map<string, Value>>; | ||
transaction(closure: (txn: DurableObjectTransaction) => Promise<void>): Promise<void>; | ||
transaction<T>(closure: (txn: DurableObjectTransaction) => Promise<T>): Promise<T>; | ||
} |
@@ -207,3 +207,3 @@ "use strict"; | ||
async transaction(closure) { | ||
await tslib_1.__classPrivateFieldGet(this, _DurableObjectStorage_instances, "m", _DurableObjectStorage_transaction).call(this, closure); | ||
return tslib_1.__classPrivateFieldGet(this, _DurableObjectStorage_instances, "m", _DurableObjectStorage_transaction).call(this, closure); | ||
} | ||
@@ -210,0 +210,0 @@ } |
{ | ||
"name": "miniflare", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"formdata-node": "^2.4.0", | ||
"html-rewriter-wasm": "^0.3.1", | ||
"html-rewriter-wasm": "^0.3.2", | ||
"http-cache-semantics": "^4.1.0", | ||
@@ -50,0 +50,0 @@ "ioredis": "^4.27.6", |
@@ -415,3 +415,9 @@ import assert from "assert"; | ||
res?.writeHead(response.status, response.headers.raw()); | ||
res?.end(await response.buffer()); | ||
// Response body may be null if empty | ||
if (response.body) { | ||
for await (const chunk of response.body) { | ||
res?.write(chunk); | ||
} | ||
} | ||
res?.end(); | ||
} catch (e) { | ||
@@ -418,0 +424,0 @@ const youch = new Youch(e, req); |
@@ -344,7 +344,7 @@ import assert from "assert"; | ||
async transaction( | ||
closure: (txn: DurableObjectTransaction) => Promise<void> | ||
): Promise<void> { | ||
await this.#transaction(closure); | ||
async transaction<T>( | ||
closure: (txn: DurableObjectTransaction) => Promise<T> | ||
): Promise<T> { | ||
return this.#transaction(closure); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
457700
8472
Updatedhtml-rewriter-wasm@^0.3.2