@mark1russell7/service 0.6.4 → 0.6.6
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 +46 -5
- package/build/channel.d.ts +137 -0
- package/build/channel.js +265 -0
- package/build/channel.js.map +1 -0
- package/build/grpc.js +1 -1
- package/build/host.js +1 -1
- package/build/http-client.js +1 -1
- package/build/index.d.ts +27 -2
- package/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/build/{machine-DKWLZOqu.js → machine-p4lENJ86.js} +2 -2
- package/build/{machine-DKWLZOqu.js.map → machine-p4lENJ86.js.map} +1 -1
- package/build/mongodb.js +1 -1
- package/build/pg.js +1 -1
- package/build/rabbitmq.js +1 -1
- package/build/redis.js +1 -1
- package/build/retrier-Nt6r4r6R.js +92 -0
- package/build/retrier-Nt6r4r6R.js.map +1 -0
- package/build/websocket.js +1 -1
- package/package.json +9 -4
- package/build/retrier-Bzkme_yM.js +0 -51
- package/build/retrier-Bzkme_yM.js.map +0 -1
package/build/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { a as isExitCode, c as matchesMessage, i as embeddedProcess, l as nodePr
|
|
|
8
8
|
import { a as runUnit, c as untilAbort, i as retryOf, l as routePatternProblems, n as boundProblems, o as settleWithin, r as flights, s as sleeper, t as tracker } from "./requests-BIq9Tr4P.js";
|
|
9
9
|
import { backoffBand, backoffDelay, backoffProblems } from "./backoff.js";
|
|
10
10
|
import { DRAIN_RULES, O04, O09, O10, O16 } from "./rules.js";
|
|
11
|
-
import { t as retrier } from "./retrier-
|
|
11
|
+
import { i as retryAfterDelay, r as retry, t as retrier } from "./retrier-Nt6r4r6R.js";
|
|
12
12
|
import { a as keyedLimiter, i as limiterStateOf, n as TOKEN_BUCKET_MACHINE, o as memoryStore, r as limiterMachine, t as SLIDING_WINDOW_MACHINE } from "./limiter-CmC4vCjk.js";
|
|
13
13
|
import { convertExact, convertible, rationals, valueIn } from "@mark1russell7/quantity";
|
|
14
14
|
import { replay } from "@mark1russell7/algebra/replay";
|
|
@@ -1903,7 +1903,7 @@ const SERVICE_RULES = [
|
|
|
1903
1903
|
* `Retry-After` of the policy. Otherwise a caller that does not read the header sends again too
|
|
1904
1904
|
* early, and the limiter refuses each early call again.
|
|
1905
1905
|
*
|
|
1906
|
-
* The identifiers O29 and O30 are provisional. The corpus of the law
|
|
1906
|
+
* The identifiers O29 and O30 are provisional. The private corpus of the law (R3, track B) has 28
|
|
1907
1907
|
* rules, O01 to O28. It does not have these two rules yet, thus they take the next two identifiers.
|
|
1908
1908
|
*/
|
|
1909
1909
|
const LIMITER_RULES = [{
|
|
@@ -3505,6 +3505,6 @@ const MACHINES = {
|
|
|
3505
3505
|
watchdog: WATCHDOG_MACHINE
|
|
3506
3506
|
};
|
|
3507
3507
|
//#endregion
|
|
3508
|
-
export { BOUND_RULES, CLOSE_BOUND_RULE, DECLARATION_RULE, DRAIN_RULES, DRAIN_RULE_IDS, DURATION_FRACTIONS, EPISODES_KEPT, EXIT_MACHINE, EXIT_SIGNALS, FORMAT, GATE_MACHINE, LATCH_MACHINE, LAW_STATISTIC, LIMITER_RULES, LOG_LEVELS, MACHINES, NAME_RULE, O04, O09, O10, O16, PLATFORM_MARKS, POLLER_MACHINE, PROCESS_TRIGGERS, PROGRESS_RULE, SERVICE_RULES, SLIDING_WINDOW_MACHINE, STAGES, STOPS, STOP_RULE, TOKEN_BUCKET_MACHINE, UNCAUGHT_ORIGINS, UNIT_BOUND_RULE, WATCHDOG_MACHINE, WINDOW_MACHINE, asDebounce, asWindow, atLeast, backoffBand, backoffDelay, backoffProblems, capKnob, compress, compression, compressionOf, consoleLogger, cooperativeAbortAt, daemon, decide, detectionTime, drainMachine, embeddedProcess, ephemeral, evaluate, failSpan, freeAt, heartbeat, heartbeatDetection, idleSpan, inequalities, isExitCode, isExitSignal, isMessageShape, keyedLimiter, kubernetes, limitRule, limiterMachine, limiterProblems, limiterStateOf, lint, lintStop, localDev, logEvents, longestRetryAfter, matchesMessage, mayReissue, memoryStore, nodeProcess, platformClock, processPortOf, queueDrain, realClock, recoverSpan, redact, redeliverOnce, replay, retrier, retryAfterSeconds, service, serviceBindings, stageRank, symbolsOf, verdictOf, watchdog, workerLoop };
|
|
3508
|
+
export { BOUND_RULES, CLOSE_BOUND_RULE, DECLARATION_RULE, DRAIN_RULES, DRAIN_RULE_IDS, DURATION_FRACTIONS, EPISODES_KEPT, EXIT_MACHINE, EXIT_SIGNALS, FORMAT, GATE_MACHINE, LATCH_MACHINE, LAW_STATISTIC, LIMITER_RULES, LOG_LEVELS, MACHINES, NAME_RULE, O04, O09, O10, O16, PLATFORM_MARKS, POLLER_MACHINE, PROCESS_TRIGGERS, PROGRESS_RULE, SERVICE_RULES, SLIDING_WINDOW_MACHINE, STAGES, STOPS, STOP_RULE, TOKEN_BUCKET_MACHINE, UNCAUGHT_ORIGINS, UNIT_BOUND_RULE, WATCHDOG_MACHINE, WINDOW_MACHINE, asDebounce, asWindow, atLeast, backoffBand, backoffDelay, backoffProblems, capKnob, compress, compression, compressionOf, consoleLogger, cooperativeAbortAt, daemon, decide, detectionTime, drainMachine, embeddedProcess, ephemeral, evaluate, failSpan, freeAt, heartbeat, heartbeatDetection, idleSpan, inequalities, isExitCode, isExitSignal, isMessageShape, keyedLimiter, kubernetes, limitRule, limiterMachine, limiterProblems, limiterStateOf, lint, lintStop, localDev, logEvents, longestRetryAfter, matchesMessage, mayReissue, memoryStore, nodeProcess, platformClock, processPortOf, queueDrain, realClock, recoverSpan, redact, redeliverOnce, replay, retrier, retry, retryAfterDelay, retryAfterSeconds, service, serviceBindings, stageRank, symbolsOf, verdictOf, watchdog, workerLoop };
|
|
3509
3509
|
|
|
3510
3510
|
//# sourceMappingURL=index.js.map
|