posipaki 0.44.0 → 0.45.1
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.
- package/dist/{hooks-Dpbe39oa.d.ts → hooks-DO-efRM_.d.ts} +2 -2
- package/dist/{hooks-Dpbe39oa.d.ts.map → hooks-DO-efRM_.d.ts.map} +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/plugins/debug-logger.d.ts +2 -2
- package/dist/plugins/tree-introspection.d.ts +2 -2
- package/dist/{process-CoEKoY5f.d.ts → process-eCAv2tIS.d.ts} +2 -2
- package/dist/{process-CoEKoY5f.d.ts.map → process-eCAv2tIS.d.ts.map} +1 -1
- package/dist/remote/gateway-cli.js +1162 -50
- package/dist/remote/gateway-cli.js.map +1 -1
- package/dist/remote/index.d.ts +4 -232
- package/dist/remote/index.d.ts.map +1 -1
- package/dist/remote/index.js +2 -2
- package/dist/remote/index.js.map +1 -1
- package/dist/remote/node.d.ts +29 -54
- package/dist/remote/node.d.ts.map +1 -1
- package/dist/remote/node.js +128 -128
- package/dist/remote/node.js.map +1 -1
- package/dist/testing/index.d.ts +4 -4
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/{types-CuabnerI.d.ts → types-U3NvKgpg.d.ts} +10 -1
- package/dist/{types-CuabnerI.d.ts.map → types-U3NvKgpg.d.ts.map} +1 -1
- package/dist/{version-B6eNJRZD.js → version-COXVfzR6.js} +2 -2
- package/dist/{version-B6eNJRZD.js.map → version-COXVfzR6.js.map} +1 -1
- package/dist/{websocket-DecgMfb3.js → websocket-CAyMntP1.js} +1107 -85
- package/dist/websocket-CAyMntP1.js.map +1 -0
- package/dist/websocket-DT8zKD34.d.ts +836 -0
- package/dist/websocket-DT8zKD34.d.ts.map +1 -0
- package/dist/xfetch.d.ts +2 -2
- package/package.json +1 -1
- package/dist/websocket-DecgMfb3.js.map +0 -1
- package/dist/websocket-sGQcEDbm.d.ts +0 -310
- package/dist/websocket-sGQcEDbm.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Message, c as SenderInfo, i as FrameChannel, m as AsyncProcess, n as ExitMessage, o as ProcessCtx, p as AnyProcess, r as ForkSite, t as AsyncProcessFn } from "./types-
|
|
1
|
+
import { a as Message, c as SenderInfo, i as FrameChannel, m as AsyncProcess, n as ExitMessage, o as ProcessCtx, p as AnyProcess, r as ForkSite, t as AsyncProcessFn } from "./types-U3NvKgpg.js";
|
|
2
2
|
//#region src/actor-types.d.ts
|
|
3
3
|
type ActorMessages<M extends Message> = {
|
|
4
4
|
__tag_messages: M;
|
|
@@ -222,4 +222,4 @@ type Hook<T, I extends unknown[], O> = (this: T, ...args: I) => O;
|
|
|
222
222
|
declare function callHook<T, I extends unknown[], O>(fn: Hook<T, I, O> | undefined, eh: ((e: unknown) => unknown) | undefined, thisArg: T, ...args: I): Promise<O | undefined>;
|
|
223
223
|
//#endregion
|
|
224
224
|
export { stopPropagation as S, PluginTransform as _, chainHook as a, SpawnedFrom as b, ActorContext as c, ActorPlugin as d, HandlerFn as f, PROPAGATE_SENTINEL as g, MethodOptions as h, callHook as i, ActorDefinition as l, HookResult as m, ActorReflection as n, mergeConfigs as o, HandlerOptions as p, Hook as r, ActorConfig as s, ActorDecorated as t, ActorMessages as u, ReflectionOptions as v, propagateError as x, STOP_SENTINEL as y };
|
|
225
|
-
//# sourceMappingURL=hooks-
|
|
225
|
+
//# sourceMappingURL=hooks-DO-efRM_.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-
|
|
1
|
+
{"version":3,"file":"hooks-DO-efRM_.d.ts","names":[],"sources":["../src/actor-types.ts","../src/hooks.ts"],"mappings":";;KAmBY,cAAc,UAAU;EAClC,gBAAgB;;UAED;GACd,cAAc;;KAEL,UAAU,cAAc,YAClC,KAAK,OACL,QAAQ,sBACE;KACA,eAAe,cAAc,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MAEd,QAAQ,aAAa,GAAG,YAAY,IAAI,IAAI,IAAI,IAAI;EAEvD,KAAK,WAAW,MAAM,YAAY,gBAAgB,OAAO;;;;;;KASjD,eAAe,KAAK,UAAU,kBAClC,YACA,qBACA,cAAc,eACd,eAAe,eACf,gBAAgB,qBAChB,gBACA,0BAA0B,qBAE9B,aACE,MACA,eACA,OACA,QACA,SACA,iBAAiB,eAAe,SAAS,WAAW,eAAe,QACnE,oBAAoB;;;;;;;;;;;;;;;UC3UT;;;UAGA,wBAAwB;;;;;;;;;;;;;;;iBAkBzB,UAAU,OAAO,yBAC/B,YAAY,MAAM,UAAU,MAAM,UAAU,aAAa,QAAQ,0BACjE,SAAS,MAAM,UAAU,MAAM,UAAU,aAAa,QAAQ,eAC5D,MAAM,UAAU,MAAM,UAAU,aAAa,QAAQ;;;;;;;;;;;;;;;;;;;iBA6BzC,aAAa,UAAU,WACrC,MAAM,GACN,SAAS,QAAQ,KAAK,SAAS,eAAe,MAC7C;KA0BS,KAAK,GAAG,qBAAqB,MAAM,MAAM,MAAM,MAAM,MAAM;iBAEjD,SAAS,GAAG,qBAAqB,GACrD,IAAI,KAAK,GAAG,GAAG,gBACf,MAAM,qCACN,SAAS,MACN,MAAM,IACR,QAAQ"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as stopPropagation, _ as PluginTransform, a as chainHook, d as ActorPlugin, g as PROPAGATE_SENTINEL, i as callHook, m as HookResult, n as ActorReflection, o as mergeConfigs, r as Hook, t as ActorDecorated, x as propagateError, y as STOP_SENTINEL } from "./hooks-
|
|
1
|
+
import { S as stopPropagation, _ as PluginTransform, a as chainHook, d as ActorPlugin, g as PROPAGATE_SENTINEL, i as callHook, m as HookResult, n as ActorReflection, o as mergeConfigs, r as Hook, t as ActorDecorated, x as propagateError, y as STOP_SENTINEL } from "./hooks-DO-efRM_.js";
|
|
2
2
|
export { ActorDecorated, type ActorPlugin, ActorReflection, Hook, type HookResult, PROPAGATE_SENTINEL, type PluginTransform, STOP_SENTINEL, callHook, chainHook, mergeConfigs, propagateError, stopPropagation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Message, c as SenderInfo, d as WithSender, f as WithoutSender, g as spawnAsync, h as runDispatchAsync, l as SenderOrigin, m as AsyncProcess, n as ExitMessage, o as ProcessCtx, p as AnyProcess, s as ProcessFn, t as AsyncProcessFn, u as StopMessage } from "./types-
|
|
2
|
-
import { S as stopPropagation, _ as PluginTransform, a as chainHook, b as SpawnedFrom, c as ActorContext, d as ActorPlugin, f as HandlerFn, h as MethodOptions, i as callHook, l as ActorDefinition, m as HookResult, n as ActorReflection, o as mergeConfigs, p as HandlerOptions, s as ActorConfig, t as ActorDecorated, u as ActorMessages, v as ReflectionOptions, x as propagateError } from "./hooks-
|
|
3
|
-
import { n as spawn, t as Process } from "./process-
|
|
1
|
+
import { a as Message, c as SenderInfo, d as WithSender, f as WithoutSender, g as spawnAsync, h as runDispatchAsync, l as SenderOrigin, m as AsyncProcess, n as ExitMessage, o as ProcessCtx, p as AnyProcess, s as ProcessFn, t as AsyncProcessFn, u as StopMessage } from "./types-U3NvKgpg.js";
|
|
2
|
+
import { S as stopPropagation, _ as PluginTransform, a as chainHook, b as SpawnedFrom, c as ActorContext, d as ActorPlugin, f as HandlerFn, h as MethodOptions, i as callHook, l as ActorDefinition, m as HookResult, n as ActorReflection, o as mergeConfigs, p as HandlerOptions, s as ActorConfig, t as ActorDecorated, u as ActorMessages, v as ReflectionOptions, x as propagateError } from "./hooks-DO-efRM_.js";
|
|
3
|
+
import { n as spawn, t as Process } from "./process-eCAv2tIS.js";
|
|
4
4
|
//#region src/util.d.ts
|
|
5
5
|
type ReducerClosure<M> = (msg: M) => void;
|
|
6
6
|
type ReadyFn = () => boolean;
|
|
@@ -20,7 +20,7 @@ declare function defineActor<Args, InternalState, InMsg extends Message, OutMsg
|
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/version.d.ts
|
|
22
22
|
/** posipaki's release version. Must equal package.json's `version`. */
|
|
23
|
-
declare const LIB_VERSION = "0.
|
|
23
|
+
declare const LIB_VERSION = "0.45.1";
|
|
24
24
|
//#endregion
|
|
25
25
|
export { type ActorConfig, type ActorContext, type ActorDecorated, type ActorDefinition, type ActorPlugin, type ActorReflection, type AnyProcess, AsyncProcess, type AsyncProcessFn, type ExitMessage, type HandlerFn, type HandlerOptions, type HookResult, LIB_VERSION, type Message, type MethodOptions, type PluginTransform, Process, type ProcessCtx, type ProcessFn, type SenderInfo, type SenderOrigin, type SpawnedFrom, type StopMessage, type WithSender, type WithoutSender, asyncify, callHook, chainHook, defineActor, defineMessages, mergeConfigs, propagateError, runDispatch, runDispatchAsync, spawn, spawnAsync, stopPropagation };
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { i as runDispatch } from "./util-Brtfgv68.js";
|
|
|
2
2
|
import { a as spawnAsync, i as runDispatchAsync, o as asyncify, t as AsyncProcess } from "./process.async-B1FqZyD1.js";
|
|
3
3
|
import { n as chainHook, o as propagateError, r as mergeConfigs, s as stopPropagation, t as callHook } from "./hooks-CgXhmY4r.js";
|
|
4
4
|
import { n as defineMessages, t as defineActor } from "./define-actor-DR1P1PA5.js";
|
|
5
|
-
import { t as LIB_VERSION } from "./version-
|
|
5
|
+
import { t as LIB_VERSION } from "./version-COXVfzR6.js";
|
|
6
6
|
//#region src/process.ts
|
|
7
7
|
/** @deprecated Use {@link spawnAsync} instead. */
|
|
8
8
|
function spawn(fn, pname, tp) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Message, c as SenderInfo } from "../types-
|
|
2
|
-
import { d as ActorPlugin } from "../hooks-
|
|
1
|
+
import { a as Message, c as SenderInfo } from "../types-U3NvKgpg.js";
|
|
2
|
+
import { d as ActorPlugin } from "../hooks-DO-efRM_.js";
|
|
3
3
|
//#region src/plugins/debug-logger.d.ts
|
|
4
4
|
declare module "../index" {
|
|
5
5
|
interface ActorDecorated {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as AnyProcess } from "../types-
|
|
2
|
-
import { d as ActorPlugin } from "../hooks-
|
|
1
|
+
import { p as AnyProcess } from "../types-U3NvKgpg.js";
|
|
2
|
+
import { d as ActorPlugin } from "../hooks-DO-efRM_.js";
|
|
3
3
|
//#region src/plugins/tree-introspection.d.ts
|
|
4
4
|
declare module "../index" {
|
|
5
5
|
interface ActorReflection {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Message, c as SenderInfo, m as AsyncProcess, n as ExitMessage, s as ProcessFn } from "./types-
|
|
1
|
+
import { a as Message, c as SenderInfo, m as AsyncProcess, n as ExitMessage, s as ProcessFn } from "./types-U3NvKgpg.js";
|
|
2
2
|
//#region src/process.d.ts
|
|
3
3
|
/** @deprecated Use {@link spawnAsync} instead. */
|
|
4
4
|
declare function spawn<A, S, IM extends Message = Message, OM extends Message = ExitMessage>(fn: ProcessFn<A, S, IM, OM>, pname: string, tp?: (m: OM, from: SenderInfo) => void): (a: A) => Process<A, S, IM, OM>;
|
|
@@ -11,4 +11,4 @@ declare class Process<A, S, IM extends Message, OM extends Message> extends Asyn
|
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
export { spawn as n, Process as t };
|
|
14
|
-
//# sourceMappingURL=process-
|
|
14
|
+
//# sourceMappingURL=process-eCAv2tIS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-
|
|
1
|
+
{"version":3,"file":"process-eCAv2tIS.d.ts","names":[],"sources":["../src/process.ts"],"mappings":";;;iBAQgB,MAAM,GAAG,GAAG,WAAW,UAAU,SAAS,WAAW,UAAU,aAC7E,IAAI,UAAU,GAAG,GAAG,IAAI,KACxB,eACA,MAAM,GAAG,IAAI,MAAM,uBACjB,GAAG,MAAM,QAAQ,GAAG,GAAG,IAAI;;;cAMzB,QAAQ,GAAG,GAAG,WAAW,SAAS,WAAW,iBAAiB,aAAa,GAAG,GAAG,IAAI;EACzF,YAAY,IAAI,UAAU,GAAG,GAAG,IAAI,KAAK,eAAe,MAAM,GAAG,IAAI,MAAM;EAI3E,MAAM,GAAG;EAIT,QAAQ"}
|