Socket
Socket
Sign inDemoInstall

miniflare

Package Overview
Dependencies
Maintainers
1
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniflare - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

7

dist/index.js

@@ -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) {

2

dist/kv/do.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc