@mcp-b/do-runtime 0.2.2 → 0.2.3

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.
@@ -35,6 +35,7 @@
35
35
  */
36
36
  type IoAwaiter = {
37
37
  awaitIo<T>(promise: Promise<T>): Promise<T>;
38
+ awaitIo<T, R>(promise: Promise<T>, func: (value: T) => R | PromiseLike<R>): Promise<R>;
38
39
  };
39
40
  /** Wrap a host-provided request so consuming or streaming its body resumes gated. */
40
41
  export declare function gateRequestBody(ctx: IoAwaiter, request: Request): Request;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/do-runtime",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Cloudflare's Durable Object runtime (workerd), ported to TypeScript: actors with input/output gates, SQLite storage, facets and alarms, running in the browser and in Node.",
5
5
  "keywords": [
6
6
  "actors",