@mark1russell7/service 0.5.1 → 0.5.2
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/README.md +1 -0
- package/build/{builder-QVxu1WcL.d.ts → builder-BzjhWk2E.d.ts} +2 -2
- package/build/http.d.ts +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.js +28 -1
- package/build/index.js.map +1 -1
- package/build/{lifecycle-DtJZW09J.d.ts → lifecycle-DjEpgpRk.d.ts} +17 -2
- package/build/redis.d.ts +2 -2
- package/build/testing.d.ts +2 -2
- package/package.json +2 -2
|
@@ -115,6 +115,21 @@ interface ProcessHost {
|
|
|
115
115
|
declare const processPortOf: (find: () => ProcessHost | undefined) => ProcessPort;
|
|
116
116
|
/** This port is the process of Node. */
|
|
117
117
|
declare const nodeProcess: ProcessPort;
|
|
118
|
+
/** An embedded process port records the exit code of a lifecycle that does not own its process. */
|
|
119
|
+
interface EmbeddedProcess extends ProcessPort {
|
|
120
|
+
/** This code is the code of the exit request of the lifecycle, or null before that request. */
|
|
121
|
+
readonly exitCode: number | null;
|
|
122
|
+
/** This promise ends with the exit code when the lifecycle asks for its exit. */
|
|
123
|
+
readonly exited: Promise<number>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* This function gives a process port for a lifecycle in a process that another part owns. That
|
|
127
|
+
* part is a script, a test of an application, or a library entry. The port adds no handler of a signal or of
|
|
128
|
+
* a trigger, it does not hold the process, and its `exit` only records the code. The caller stops
|
|
129
|
+
* the lifecycle with `life.shutdown()`. A process with a service of its own gives its parts to
|
|
130
|
+
* that service, and does not use this port.
|
|
131
|
+
*/
|
|
132
|
+
declare const embeddedProcess: () => EmbeddedProcess;
|
|
118
133
|
//#endregion
|
|
119
134
|
//#region src/routes.d.ts
|
|
120
135
|
/**
|
|
@@ -680,5 +695,5 @@ interface Lifecycle {
|
|
|
680
695
|
keepAlive(): boolean;
|
|
681
696
|
}
|
|
682
697
|
//#endregion
|
|
683
|
-
export { failSpan as $, LifecycleEvent as A, Gate as B, ProbeAnswer as C, Outcome as D, CheckFn as E, CooperativeFloor as F, Step as G, Phase as H, Coupling as I, Poll as J, Transport as K, Dependency as L, Recorder as M, Check as N, Result as O, Controller as P, asWindow as Q, ExitCodes as R, HealthVerdict as S,
|
|
684
|
-
//# sourceMappingURL=lifecycle-
|
|
698
|
+
export { failSpan as $, LifecycleEvent as A, Gate as B, ProbeAnswer as C, Operation as Ct, Outcome as D, CheckFn as E, CooperativeFloor as F, Step as G, Phase as H, Coupling as I, Poll as J, Transport as K, Dependency as L, Recorder as M, Check as N, Result as O, Controller as P, asWindow as Q, ExitCodes as R, HealthVerdict as S, Idempotency as St, StartOptions as T, RepeatSignal as U, MessageTrigger as V, ServiceDescription as W, Timing as X, Span as Y, asDebounce as Z, RequestOptions as _, isExitSignal as _t, PhaseContext as a, EXIT_SIGNALS as at, CheckVerdict as b, nodeProcess as bt, STAGES as c, ExitTrigger as ct, TransportImpl as d, PROCESS_TRIGGERS as dt, heartbeatDetection as et, cooperativeAbortAt as f, ProcessHost as ft, RequestFn as g, isExitCode as gt, RequestEvent as h, embeddedProcess as ht, LifecycleState as i, RouteRequest as it, MachineName as j, Trace as k, ShutdownOptions as l, HostStream as lt, RequestEnd as m, ProcessTrigger as mt, HealthServer as n, OperationOf as nt, PhaseWork as o, EmbeddedProcess as ot, stageRank as p, ProcessPort as pt, FailsBy as q, Lifecycle as r, RoutePattern as rt, RunOptions as s, ExitSignal as st, DependencyHandle as t, recoverSpan as tt, Stage as u, MessageShape as ut, RequestStream as v, isMessageShape as vt, ProbeKind as w, mayReissue as wt, Health as x, processPortOf as xt, RequestWork as y, matchesMessage as yt, FORMAT as z };
|
|
699
|
+
//# sourceMappingURL=lifecycle-DjEpgpRk.d.ts.map
|
package/build/redis.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Backoff } from "./backoff-B-jGWVDm.js";
|
|
2
2
|
import { n as Clock } from "./clock-D-38uH_z.js";
|
|
3
|
-
import { B as Gate, E as CheckFn, G as Step, J as Poll, L as Dependency, M as Recorder, N as Check, W as ServiceDescription, et as heartbeatDetection, t as DependencyHandle
|
|
4
|
-
import { n as ServiceBuilder } from "./builder-
|
|
3
|
+
import { B as Gate, Ct as Operation, E as CheckFn, G as Step, J as Poll, L as Dependency, M as Recorder, N as Check, W as ServiceDescription, et as heartbeatDetection, t as DependencyHandle } from "./lifecycle-DjEpgpRk.js";
|
|
4
|
+
import { n as ServiceBuilder } from "./builder-BzjhWk2E.js";
|
|
5
5
|
import { Extent, Quantity } from "@mark1russell7/quantity";
|
|
6
6
|
import { Machine } from "@mark1russell7/algebra";
|
|
7
7
|
//#region src/redis/connection.d.ts
|
package/build/testing.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as Clock } from "./clock-D-38uH_z.js";
|
|
2
|
-
import { D as Outcome, E as CheckFn,
|
|
3
|
-
import { n as ServiceBuilder } from "./builder-
|
|
2
|
+
import { D as Outcome, E as CheckFn, ct as ExitTrigger, d as TransportImpl, pt as ProcessPort, r as Lifecycle, st as ExitSignal } from "./lifecycle-DjEpgpRk.js";
|
|
3
|
+
import { n as ServiceBuilder } from "./builder-BzjhWk2E.js";
|
|
4
4
|
//#region src/fakes.d.ts
|
|
5
5
|
/** A fake clock moves only when a test tells it to. */
|
|
6
6
|
interface FakeClock extends Clock {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/service",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"description": "A service declared as data before it starts, and its runtime: checks on jittered loops, a latch for each policy, probes from the cache, the startup in its sequence, and a staged, capped drain. The timer-ordering law checks the declaration. Its clock, heartbeat and backoff also work alone, in a browser too.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"service",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@mark1russell7/cue": "github:mark1russell7/cue",
|
|
88
|
-
"@mark1russell7/harness": "^0.11.
|
|
88
|
+
"@mark1russell7/harness": "^0.11.4",
|
|
89
89
|
"@types/node": "^26.6.4",
|
|
90
90
|
"ioredis": "6.0.0",
|
|
91
91
|
"testcontainers": "12.2.0",
|