brass-runtime 1.18.0 → 1.18.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/agent/cli/main.cjs +30 -30
- package/dist/agent/cli/main.js +2 -2
- package/dist/agent/cli/main.mjs +2 -2
- package/dist/agent/index.cjs +3 -3
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/agent/index.mjs +2 -2
- package/dist/{chunk-PSEU65ND.js → chunk-22HZQG5F.js} +6 -6
- package/dist/{chunk-SSQJKDN3.cjs → chunk-2JHJ4YHS.cjs} +227 -117
- package/dist/{chunk-IFRBVMWJ.cjs → chunk-2OW6IFY2.cjs} +19 -19
- package/dist/{chunk-YTX2JYYP.cjs → chunk-5LC7V2OZ.cjs} +18 -18
- package/dist/{chunk-7TXQJFZX.cjs → chunk-5RZ7YITF.cjs} +13 -13
- package/dist/{chunk-OT2TESZU.mjs → chunk-6V2AWT4R.mjs} +1 -1
- package/dist/{chunk-BG5RNEA2.js → chunk-7DU7IQHK.js} +3 -3
- package/dist/{chunk-QCOLAHU3.mjs → chunk-7GBJYOX7.mjs} +5 -5
- package/dist/{chunk-ITG6I7ZS.js → chunk-7VQLEN37.js} +1 -1
- package/dist/{chunk-QZ6QFJNM.mjs → chunk-B5FKOLTB.mjs} +3 -3
- package/dist/{chunk-RREBJX2S.mjs → chunk-BC6Q6BCO.mjs} +1 -1
- package/dist/{chunk-KRYP6CAE.mjs → chunk-COOW7BJX.mjs} +2 -2
- package/dist/{chunk-ELLF55ER.mjs → chunk-EEN5OTCR.mjs} +1 -1
- package/dist/{chunk-3PFZGP23.cjs → chunk-EICAJDNX.cjs} +13 -13
- package/dist/{chunk-5XADBMSU.cjs → chunk-ELIECDYN.cjs} +5 -5
- package/dist/{chunk-2QNREG6K.mjs → chunk-H626ZTDZ.mjs} +211 -101
- package/dist/{chunk-JH4GI3DW.js → chunk-IPSMXUWA.js} +1 -1
- package/dist/{chunk-2SLT3X6G.cjs → chunk-J6DUHITE.cjs} +6 -6
- package/dist/{chunk-OI4ESUMC.mjs → chunk-JWIEMBE6.mjs} +6 -6
- package/dist/{chunk-N6QNSTWD.cjs → chunk-KNTJ7FQB.cjs} +5 -5
- package/dist/{chunk-W6WR37HN.js → chunk-LSYQ3C2M.js} +2 -2
- package/dist/{chunk-AADFFVYS.js → chunk-OW5VHAOE.js} +1 -1
- package/dist/{chunk-G5JTCFMI.mjs → chunk-RBHNOKH4.mjs} +2 -2
- package/dist/{chunk-IBRHSH5H.js → chunk-S4HXADU4.js} +1 -1
- package/dist/{chunk-XSAHV5HQ.js → chunk-TTSPIU3U.js} +211 -101
- package/dist/{chunk-S4HHFUYP.js → chunk-UAKAF32U.js} +2 -2
- package/dist/{chunk-R6WDSZA6.mjs → chunk-WCBNXPN6.mjs} +1 -1
- package/dist/{chunk-AJMKZXRB.cjs → chunk-WGE2FEZE.cjs} +2 -2
- package/dist/{chunk-LXBU5E77.cjs → chunk-WI7GZF3B.cjs} +16 -16
- package/dist/{chunk-H5GYX7RZ.js → chunk-WUDHOZIH.js} +113 -5
- package/dist/{chunk-KHACHFBQ.cjs → chunk-WVSZOPGQ.cjs} +54 -54
- package/dist/{chunk-VIFA4DPN.cjs → chunk-XPIMJQYS.cjs} +193 -85
- package/dist/{chunk-3PHU7FWS.js → chunk-YGR2IN4R.js} +5 -5
- package/dist/{chunk-ITZQ526U.mjs → chunk-YWLLH27R.mjs} +2 -2
- package/dist/{chunk-4YQHPIWJ.js → chunk-YZ5LQ32F.js} +2 -2
- package/dist/{chunk-Z3PSSXP3.mjs → chunk-Z3ZZMQUZ.mjs} +113 -5
- package/dist/core/index.cjs +13 -7
- package/dist/core/index.d.ts +6 -6
- package/dist/core/index.js +12 -6
- package/dist/core/index.mjs +12 -6
- package/dist/{defaultClient-DhpCQW9m.d.ts → defaultClient-Cid0JoUR.d.ts} +29 -4
- package/dist/{effect-CtUDl5M5.d.ts → effect-DnGUuhw6.d.ts} +22 -1
- package/dist/http/index.cjs +52 -48
- package/dist/http/index.d.ts +8 -8
- package/dist/http/index.js +10 -6
- package/dist/http/index.mjs +10 -6
- package/dist/http/testing.cjs +8 -8
- package/dist/http/testing.d.ts +4 -4
- package/dist/http/testing.js +4 -4
- package/dist/http/testing.mjs +4 -4
- package/dist/index.cjs +91 -85
- package/dist/index.d.ts +7 -7
- package/dist/index.js +13 -7
- package/dist/index.mjs +13 -7
- package/dist/{layer-BalPI6cN.d.ts → layer-D2LFcBVx.d.ts} +1 -1
- package/dist/observability/index.cjs +9 -9
- package/dist/observability/index.d.ts +7 -7
- package/dist/observability/index.js +8 -8
- package/dist/observability/index.mjs +8 -8
- package/dist/perf/cli.cjs +25 -25
- package/dist/perf/cli.js +10 -10
- package/dist/perf/cli.mjs +10 -10
- package/dist/perf/index.cjs +12 -12
- package/dist/perf/index.js +10 -10
- package/dist/perf/index.mjs +10 -10
- package/dist/{server-C1zVmqE6.d.ts → server-Bf1zNYZk.d.ts} +4 -4
- package/dist/{stream-Bb4FTejt.d.ts → stream-I7bkvF7a.d.ts} +1 -1
- package/dist/{tracer-DzfuE6um.d.ts → tracer-DF83nLn6.d.ts} +2 -2
- package/dist/{tracing-BABA5arE.d.ts → tracing-CWV4gT0u.d.ts} +1 -1
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Async,
|
|
2
|
-
import { Z as ZStream } from './stream-
|
|
3
|
-
import { l as Schedule, r as ScheduleObserver, d as CircuitBreakerError } from './layer-
|
|
1
|
+
import { A as Async, D as AsyncWithPromise } from './effect-DnGUuhw6.js';
|
|
2
|
+
import { Z as ZStream } from './stream-I7bkvF7a.js';
|
|
3
|
+
import { l as Schedule, r as ScheduleObserver, d as CircuitBreakerError } from './layer-D2LFcBVx.js';
|
|
4
4
|
import { SchemaIssue, JsonSchemaLike, AnyJsonSchemaLike, InferJsonSchema } from './schema/index.js';
|
|
5
5
|
|
|
6
6
|
type HttpRetryScheduleInput = {
|
|
@@ -159,6 +159,8 @@ declare class HttpConcurrencyPool {
|
|
|
159
159
|
private nextSubjectId;
|
|
160
160
|
constructor(config?: HttpPoolConfig);
|
|
161
161
|
acquire(key: string, signal: AbortSignal): Promise<HttpPoolLease>;
|
|
162
|
+
/** Try synchronous acquire. Returns lease directly or undefined if contended. */
|
|
163
|
+
tryAcquireSync(key: string, signal: AbortSignal): HttpPoolLease | undefined;
|
|
162
164
|
stats(): HttpPoolStats;
|
|
163
165
|
private acquireJs;
|
|
164
166
|
private acquireWasm;
|
|
@@ -501,6 +503,12 @@ declare class AdaptiveLimiter {
|
|
|
501
503
|
* Rejects with PoolRejected if the queue is full, or PoolTimeout if the queue timeout expires.
|
|
502
504
|
*/
|
|
503
505
|
acquire(key: string, signal: AbortSignal, options?: AdaptiveAcquireOptions): Promise<AdaptiveLease>;
|
|
506
|
+
/**
|
|
507
|
+
* Try to acquire a concurrency slot synchronously.
|
|
508
|
+
* Returns a lease directly if under the limit, or undefined if contended/aborted/destroyed.
|
|
509
|
+
* This avoids Promise.resolve() allocation and microtask scheduling on the uncontended path.
|
|
510
|
+
*/
|
|
511
|
+
tryAcquireSync(key: string, signal: AbortSignal): AdaptiveLease | undefined;
|
|
504
512
|
/**
|
|
505
513
|
* Get stats for a specific key, or aggregate stats if no key is provided.
|
|
506
514
|
*/
|
|
@@ -633,6 +641,18 @@ type HttpTransportContext = {
|
|
|
633
641
|
};
|
|
634
642
|
type HttpTransport = (context: HttpTransportContext) => Async<unknown, HttpError, HttpWireResponse>;
|
|
635
643
|
type HttpStreamTransport = (context: HttpTransportContext) => Async<unknown, HttpError, HttpWireResponseStream>;
|
|
644
|
+
/**
|
|
645
|
+
* Marker interface for promise-based transports that support the direct path.
|
|
646
|
+
*/
|
|
647
|
+
interface PromiseTransportMarker {
|
|
648
|
+
readonly __promiseTransport: true;
|
|
649
|
+
readonly requestDirect: (context: HttpTransportContext) => Promise<HttpWireResponse>;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Type guard that checks whether a transport function carries the
|
|
653
|
+
* `__promiseTransport` marker, indicating it supports the direct promise path.
|
|
654
|
+
*/
|
|
655
|
+
declare function isPromiseTransportDirect(transport: HttpTransport): transport is HttpTransport & PromiseTransportMarker;
|
|
636
656
|
type HttpTransportTiming = {
|
|
637
657
|
readonly startedAt: number;
|
|
638
658
|
readonly durationMs: number;
|
|
@@ -817,6 +837,11 @@ declare const decorate: (run: HttpClientFn, stats?: () => HttpClientStats, metad
|
|
|
817
837
|
declare const withMiddleware: (mw: HttpMiddleware) => (c: HttpClient) => HttpClient;
|
|
818
838
|
declare const normalizeHeadersInit: (h: any) => Record<string, string> | undefined;
|
|
819
839
|
declare function makeHttpStream(cfg?: MakeHttpConfig): HttpClientStream;
|
|
840
|
+
/**
|
|
841
|
+
* Shared no-op AbortSignal used when no external signal is present.
|
|
842
|
+
* This avoids allocating a new AbortController per request in the common case.
|
|
843
|
+
*/
|
|
844
|
+
declare const noopSignal: AbortSignal;
|
|
820
845
|
declare function makeHttp(cfg?: MakeHttpConfig): HttpClient;
|
|
821
846
|
declare const withRetryStream: (p: RetryPolicy) => (next: HttpClientStream) => HttpClientStream;
|
|
822
847
|
|
|
@@ -1620,4 +1645,4 @@ declare const defaultHttpClientPreset: DefaultHttpClientPreset;
|
|
|
1620
1645
|
*/
|
|
1621
1646
|
declare function makeDefaultHttpClient(config?: DefaultHttpClientConfig): DefaultHttpClient;
|
|
1622
1647
|
|
|
1623
|
-
export { type DefaultHttpClientFeatures as $, type AdaptiveLimiterStats as A, type BatchConfig as B, type CompressionConfig as C, type DefaultHttpClient as D, type AdaptiveLimiterPreset as E, type HttpPoolConfig as F, type AdaptiveAcquireOptions as G, type HttpRequest as H, type AdaptiveBaselineStrategy as I, type AdaptiveHeadroomContext as J, type AdaptiveHeadroomMode as K, type LifecycleClientConfig as L, type AdaptiveHeadroomStrategy as M, type AdaptiveLease as N, type AdaptiveLimiterDiagnostics as O, type PrewarmResult as P, type AdaptiveLimiterKeySnapshot as Q, type RequestCompressionConfig as R, type AdaptiveQueueLoadShedding as S, type AdaptiveQueueStrategy as T, type AdaptiveReleaseInfo as U, type BatchFunction as V, type CachePolicyResult as W, type CompressionStats as X, type DecompressResult as Y, type Decompressor as Z, type DefaultGetJson as _, type HttpClient as a, abortErrorForSignal as a$, type DefaultPostJson as a0, type Dx as a1, type HttpBody as a2, type HttpClientStream as a3, type HttpClientStreamFn as a4, HttpConcurrencyPool as a5, type HttpErrorHandlers as a6, type HttpInit as a7, type HttpJsonInit as a8, type HttpMeta as a9, type PerRequestRetryOverride as aA, type PrewarmEvent as aB, type PrewarmEventType as aC, type PrewarmOriginStatus as aD, type PrewarmResultStatus as aE, type PromiseHttpTransportBodyBuilder as aF, type PromiseHttpTransportBodySelector as aG, type PromiseHttpTransportConfig as aH, type PromiseHttpTransportConfigWithSignal as aI, type PromiseHttpTransportFluentResponseBuilder as aJ, type PromiseHttpTransportRequestConfigBuilder as aK, type PromiseHttpTransportRequestConfigContext as aL, type PromiseHttpTransportRequestConfigMapper as aM, type PromiseHttpTransportResponse as aN, type PromiseHttpTransportResponseInfo as aO, type PromiseHttpTransportResponseInfoMapper as aP, type PromiseHttpTransportStartBuilder as aQ, type RequestCompressionStats as aR, type ResolveHttpRequestPolicyOptions as aS, type ResolvedConfig as aT, type RetryEvent as aU, type RetryScheduleInput as aV, type RetryableHttpErrorOptions as aW, SUPPORTED_ENCODINGS as aX, type SupportedEncoding as aY, type ToHttpErrorOptions as aZ, type ValidationError as a_, type HttpPolicyPreset as aa, type HttpPolicyPresets as ab, type HttpPoolKeyResolver as ac, type HttpPoolKeyStats as ad, type HttpPoolLease as ae, type HttpPoolStats as af, type HttpPostJsonBodyInit as ag, type HttpPostJsonInit as ah, type HttpPostJsonSchemaBodyInit as ai, type HttpRequestPolicy as aj, type HttpRequestPolicyRef as ak, type HttpRequestRetryOverride as al, type HttpResponse as am, type HttpResponseWithMeta as an, type HttpRetryScheduleInput as ao, type HttpStreamTransport as ap, type HttpTransportContext as aq, type HttpTransportTiming as ar, type HttpWireResponseStream as as, type HttpWireWithMeta as at, type JsonDecodeResult as au, type KnownHttpError as av, type KnownHttpErrorTag as aw, type LifecycleRequestOptions as ax, type LimitChangeEvent as ay, type MakeHttpConfig as az, type HttpWireResponse as b, adaptiveLimiterPresets as b0, backoffDelayMs as b1, decodeJsonBody as b2, decodeJsonBodyEffect as b3, decorate as b4, defaultHttpClientPreset as b5, defaultRetryOnError as b6, defaultRetryOnStatus as b7, defaultRetryableMethods as b8, defineHttpPolicyPresets as b9,
|
|
1648
|
+
export { type DefaultHttpClientFeatures as $, type AdaptiveLimiterStats as A, type BatchConfig as B, type CompressionConfig as C, type DefaultHttpClient as D, type AdaptiveLimiterPreset as E, type HttpPoolConfig as F, type AdaptiveAcquireOptions as G, type HttpRequest as H, type AdaptiveBaselineStrategy as I, type AdaptiveHeadroomContext as J, type AdaptiveHeadroomMode as K, type LifecycleClientConfig as L, type AdaptiveHeadroomStrategy as M, type AdaptiveLease as N, type AdaptiveLimiterDiagnostics as O, type PrewarmResult as P, type AdaptiveLimiterKeySnapshot as Q, type RequestCompressionConfig as R, type AdaptiveQueueLoadShedding as S, type AdaptiveQueueStrategy as T, type AdaptiveReleaseInfo as U, type BatchFunction as V, type CachePolicyResult as W, type CompressionStats as X, type DecompressResult as Y, type Decompressor as Z, type DefaultGetJson as _, type HttpClient as a, abortErrorForSignal as a$, type DefaultPostJson as a0, type Dx as a1, type HttpBody as a2, type HttpClientStream as a3, type HttpClientStreamFn as a4, HttpConcurrencyPool as a5, type HttpErrorHandlers as a6, type HttpInit as a7, type HttpJsonInit as a8, type HttpMeta as a9, type PerRequestRetryOverride as aA, type PrewarmEvent as aB, type PrewarmEventType as aC, type PrewarmOriginStatus as aD, type PrewarmResultStatus as aE, type PromiseHttpTransportBodyBuilder as aF, type PromiseHttpTransportBodySelector as aG, type PromiseHttpTransportConfig as aH, type PromiseHttpTransportConfigWithSignal as aI, type PromiseHttpTransportFluentResponseBuilder as aJ, type PromiseHttpTransportRequestConfigBuilder as aK, type PromiseHttpTransportRequestConfigContext as aL, type PromiseHttpTransportRequestConfigMapper as aM, type PromiseHttpTransportResponse as aN, type PromiseHttpTransportResponseInfo as aO, type PromiseHttpTransportResponseInfoMapper as aP, type PromiseHttpTransportStartBuilder as aQ, type RequestCompressionStats as aR, type ResolveHttpRequestPolicyOptions as aS, type ResolvedConfig as aT, type RetryEvent as aU, type RetryScheduleInput as aV, type RetryableHttpErrorOptions as aW, SUPPORTED_ENCODINGS as aX, type SupportedEncoding as aY, type ToHttpErrorOptions as aZ, type ValidationError as a_, type HttpPolicyPreset as aa, type HttpPolicyPresets as ab, type HttpPoolKeyResolver as ac, type HttpPoolKeyStats as ad, type HttpPoolLease as ae, type HttpPoolStats as af, type HttpPostJsonBodyInit as ag, type HttpPostJsonInit as ah, type HttpPostJsonSchemaBodyInit as ai, type HttpRequestPolicy as aj, type HttpRequestPolicyRef as ak, type HttpRequestRetryOverride as al, type HttpResponse as am, type HttpResponseWithMeta as an, type HttpRetryScheduleInput as ao, type HttpStreamTransport as ap, type HttpTransportContext as aq, type HttpTransportTiming as ar, type HttpWireResponseStream as as, type HttpWireWithMeta as at, type JsonDecodeResult as au, type KnownHttpError as av, type KnownHttpErrorTag as aw, type LifecycleRequestOptions as ax, type LimitChangeEvent as ay, type MakeHttpConfig as az, type HttpWireResponse as b, adaptiveLimiterPresets as b0, backoffDelayMs as b1, decodeJsonBody as b2, decodeJsonBodyEffect as b3, decorate as b4, defaultHttpClientPreset as b5, defaultRetryOnError as b6, defaultRetryOnStatus as b7, defaultRetryableMethods as b8, defineHttpPolicyPresets as b9, makeFetchStreamTransport as bA, makeFetchTransport as bB, makeHttp as bC, makeHttpStream as bD, makeJsonParseValidationError as bE, makePromiseHttpTransport as bF, matchHttpError as bG, noopSignal as bH, normalizeHeadersInit as bI, normalizeHttpError as bJ, normalizeHttpHeaders as bK, normalizeRetryBudget as bL, promiseHttpTransport as bM, resolveConfig as bN, resolveHttpPoolKey as bO, resolveHttpRequestPolicyPresets as bP, retryAfterMs as bQ, toHttpError as bR, validateConfig as bS, validatedJson as bT, validatedJsonResponse as bU, withBatch as bV, withHttpPolicyPresets as bW, withHttpRequestPolicy as bX, withMiddleware as bY, withRetry as bZ, withRetryStream as b_, encodeJsonBodyEffect as ba, formatHttpError as bb, getHttpRequestPolicy as bc, headersOf as bd, httpClient as be, httpClientStream as bf, httpClientWithMeta as bg, httpErrorStatus as bh, httpPolicy as bi, isAbortError as bj, isAbortHttpError as bk, isCircuitBreakerOpen as bl, isExternalAbortError as bm, isExternalTimeoutError as bn, isFetchHttpError as bo, isHttpError as bp, isKnownHttpError as bq, isPromiseTransportDirect as br, isRetryableHttpError as bs, isRetryableHttpStatus as bt, isTaggedHttpError as bu, isTimeoutHttpError as bv, isValidationError as bw, linkAbortSignals as bx, makeAdaptiveLimiterConfig as by, makeDefaultHttpClient as bz, type HttpError as c, type HttpMiddleware as d, type DefaultHttpClientConfig as e, type CompressionMiddlewareResult as f, type RequestCompressionMiddlewareResult as g, type HttpTransport as h, AdaptiveLimiter as i, type LifecycleClient as j, type LifecycleEvent as k, type HttpClientStats as l, type LifecycleEventType as m, type LifecycleStats as n, type PrewarmStatusSnapshot as o, type PrewarmConfig as p, type HttpClientFn as q, type PrewarmOriginState as r, type HttpMethod as s, type DefaultHttpClientPreset as t, type DedupConfig as u, type CacheConfig as v, type PriorityConfig as w, type RetryPolicy as x, type PrewarmLifecycleConfig as y, type AdaptiveLimiterConfig as z };
|
|
@@ -759,6 +759,7 @@ declare class Runtime<R> {
|
|
|
759
759
|
capabilities(): RuntimeCapabilities;
|
|
760
760
|
shutdown(): Promise<void> | void;
|
|
761
761
|
unsafeRunAsync<E, A>(effect: Async<R, E, A>, cb: (exit: Exit<E, A>) => void): void;
|
|
762
|
+
private static exitToError;
|
|
762
763
|
toPromise<E, A>(effect: Async<R, E, A>): Promise<A>;
|
|
763
764
|
private tryRunNativeTopLevel;
|
|
764
765
|
unsafeRun<E, A>(effect: Async<R, E, A>): void;
|
|
@@ -785,6 +786,16 @@ type AbortablePromiseFinish = {
|
|
|
785
786
|
readonly durationMs: number;
|
|
786
787
|
readonly error?: unknown;
|
|
787
788
|
};
|
|
789
|
+
/**
|
|
790
|
+
* Duck-typed timer wheel interface for use in AbortablePromiseOptions.
|
|
791
|
+
* Avoids importing from `src/http/timerWheel.ts` to prevent circular dependencies.
|
|
792
|
+
* Any object with a compatible `schedule` method can be used.
|
|
793
|
+
*/
|
|
794
|
+
interface AbortablePromiseTimerWheel {
|
|
795
|
+
schedule(timeoutMs: number, cb: () => void): {
|
|
796
|
+
cancel(): void;
|
|
797
|
+
};
|
|
798
|
+
}
|
|
788
799
|
type AbortablePromiseOptions = {
|
|
789
800
|
/** Logical label used by diagnostics. Keep it low-cardinality: e.g. `http:GET:https://api.foo.com`. */
|
|
790
801
|
readonly label?: string;
|
|
@@ -794,6 +805,8 @@ type AbortablePromiseOptions = {
|
|
|
794
805
|
readonly timeoutReason?: () => unknown;
|
|
795
806
|
readonly onStart?: (label: string) => void;
|
|
796
807
|
readonly onFinish?: (finish: AbortablePromiseFinish) => void;
|
|
808
|
+
/** Optional timer wheel for efficient timeout scheduling. When provided, uses wheel.schedule() instead of setTimeout. */
|
|
809
|
+
readonly timerWheel?: AbortablePromiseTimerWheel;
|
|
797
810
|
};
|
|
798
811
|
type AbortablePromiseLabelStats = {
|
|
799
812
|
readonly label: string;
|
|
@@ -815,6 +828,14 @@ type AbortablePromiseStats = {
|
|
|
815
828
|
readonly lateSettlements: number;
|
|
816
829
|
readonly byLabel: AbortablePromiseLabelStats[];
|
|
817
830
|
};
|
|
831
|
+
/**
|
|
832
|
+
* Enable or disable per-label tracking for abortable promise diagnostics.
|
|
833
|
+
* When disabled (default), only global integer counters are incremented on the hot path,
|
|
834
|
+
* avoiding Map allocations entirely. Returns the previous enabled state.
|
|
835
|
+
*/
|
|
836
|
+
declare function setAbortablePromisePerLabelTracking(enabled: boolean): boolean;
|
|
837
|
+
declare const recordAbortablePromiseStart: (label: string) => void;
|
|
838
|
+
declare const recordAbortablePromiseFinish: (label: string, outcome: AbortablePromiseOutcome) => void;
|
|
818
839
|
declare function abortablePromiseStats(): AbortablePromiseStats;
|
|
819
840
|
declare function resetAbortablePromiseStats(): void;
|
|
820
841
|
/**
|
|
@@ -1159,4 +1180,4 @@ declare function uninterruptibleMask<R, E, A>(body: (restore: RestoreInterruptib
|
|
|
1159
1180
|
declare function orElseOptional<R, E, A, R2, A2>(fa: ZIO<R, Option<E>, A>, that: () => ZIO<R2, Option<E>, A2>): ZIO<R & R2, Option<E>, A | A2>;
|
|
1160
1181
|
declare const end: <E>() => ZIO<unknown, Option<E>, never>;
|
|
1161
1182
|
|
|
1162
|
-
export { type
|
|
1183
|
+
export { type FiberContext as $, Async as A, type Baggage as B, type AsyncRegisterRef as C, type AsyncWithPromise as D, Exit as E, type FiberEngine as F, type RingLike as G, type CancelToken as H, type Canceler as I, type JSONValue as J, Cause as K, type CausePrettyOptions as L, type ContextNode as M, type NodeId as N, type Option as O, type CustomHostAction as P, type DbHostAction as Q, type RuntimeHooks as R, Scope as S, type TraceContext as T, type DecodeRef as U, DefaultHostExecutor as V, type WasmEngineRuntime as W, type EngineKind as X, type EngineSelection as Y, type ZIO as Z, type EngineSelectionMode as _, type RuntimeOptions as a, ctxToObject as a$, type FiberEngineKind as a0, type FiberInfo as a1, type FiberReadyQueue as a2, type FiberReadyQueueOptions as a3, type FiberReadyQueueStats as a4, type FiberRunState as a5, type FlatMapRef as a6, type FoldFailureRef as a7, type FoldSuccessRef as a8, type HostAction as a9, type SchedulerEngine as aA, type SchedulerLaneMode as aB, type SchedulerOptions as aC, type SchedulerStats as aD, type SchedulerStatsData as aE, type ScopeId as aF, type ScopeInfo as aG, type Some as aH, type SyncRef as aI, type Task as aJ, WasmFiberEngine as aK, type WasmFiberEngineOptions as aL, abortablePromiseStats as aM, acquireRelease as aN, asyncEffect as aO, asyncCatchAll as aP, asyncFail as aQ, asyncFlatMap as aR, asyncFold as aS, asyncInterruptible as aT, asyncMap as aU, asyncMapError as aV, asyncSucceed as aW, asyncSync as aX, asyncTotal as aY, catchAll as aZ, ctxExtend as a_, type HostActionKind as aa, type HostActionResult as ab, type HostExecutionContext as ac, type HostExecutor as ad, HostRegistry as ae, type HostRegistryStats as af, type HttpHostAction as ag, type Interrupted as ah, type InterruptibilityMode as ai, type Joiner as aj, type LaneStatsData as ak, type None as al, NoopHooks as am, ProgramBuilder as an, type ProgramPatch as ao, PushStatus as ap, type QueueHostAction as aq, type ReadyQueueScheduleKind as ar, type RestoreInterruptibility as as, RingBuffer as at, type RingBufferEngine as au, type RingBufferStatsData as av, type RuntimeCapabilities as aw, type RuntimeEngineMode as ax, type ScheduleResult as ay, Scheduler as az, Runtime as b, emptyContext as b0, end as b1, engineStats as b2, fail as b3, flatMap as b4, fork as b5, formatCause as b6, fromPromiseAbortable as b7, getBenchmarkBudget as b8, getCurrentFiber as b9, setBenchmarkBudget as bA, some as bB, succeed as bC, sync as bD, toPromise as bE, toPromiseByCaller as bF, uninterruptible as bG, uninterruptibleMask as bH, unit as bI, unsafeGetCurrentRuntime as bJ, unsafeRunAsync as bK, unsafeRunFoldWithEnv as bL, withAsyncPromise as bM, withCurrentFiber as bN, withScope as bO, withScopeAsync as bP, globalScheduler as ba, inferCallerLaneFromStack as bb, interruptible as bc, isCause as bd, laneTag as be, linkAbortController as bf, makeBoundedRingBuffer as bg, makeCancelToken as bh, makeFiberReadyQueue as bi, makeRuntimeEventRecord as bj, map as bk, mapAsync as bl, mapError as bm, mapTryAsync as bn, none as bo, orElseOptional as bp, prettyCause as bq, recordAbortablePromiseFinish as br, recordAbortablePromiseStart as bs, resetAbortablePromiseStats as bt, runtimeCapabilities as bu, runtimeEventRecordContext as bv, runtimeForCaller as bw, sanitizeLaneKey as bx, selectedEngineStats as by, setAbortablePromisePerLabelTracking as bz, type RingBufferOptions as c, type RuntimeEvent as d, type RuntimeEmitContext as e, type RuntimeEventRecord as f, type RuntimeSpanLink as g, RuntimeRegistry as h, RuntimeFiber as i, type FiberEngineStats as j, type Fiber as k, type FiberId as l, type FiberStatus as m, type WasmBridge as n, type OpcodeProgram as o, type FiberId$1 as p, type EngineEvent as q, type RefId as r, type OpcodeNode as s, type EngineStats as t, type AbortablePromiseFinish as u, type AbortablePromiseLabelStats as v, type AbortablePromiseOptions as w, type AbortablePromiseOutcome as x, type AbortablePromiseStats as y, type AbortablePromiseTimerWheel as z };
|
package/dist/http/index.cjs
CHANGED
|
@@ -5,8 +5,8 @@ var _chunk7TKI527Dcjs = require('../chunk-7TKI527D.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
8
|
+
var _chunkWI7GZF3Bcjs = require('../chunk-WI7GZF3B.cjs');
|
|
9
|
+
require('../chunk-WGE2FEZE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -103,23 +103,25 @@ require('../chunk-AJMKZXRB.cjs');
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
var _chunkXPIMJQYScjs = require('../chunk-XPIMJQYS.cjs');
|
|
107
109
|
|
|
108
110
|
|
|
109
111
|
var _chunkL6VB5N7Qcjs = require('../chunk-L6VB5N7Q.cjs');
|
|
110
|
-
require('../chunk-
|
|
112
|
+
require('../chunk-EICAJDNX.cjs');
|
|
111
113
|
require('../chunk-SA6HUJVI.cjs');
|
|
112
114
|
|
|
113
115
|
|
|
114
116
|
|
|
115
117
|
|
|
116
118
|
|
|
117
|
-
var
|
|
119
|
+
var _chunk5RZ7YITFcjs = require('../chunk-5RZ7YITF.cjs');
|
|
118
120
|
|
|
119
121
|
|
|
120
122
|
|
|
121
123
|
|
|
122
|
-
var
|
|
124
|
+
var _chunk2JHJ4YHScjs = require('../chunk-2JHJ4YHS.cjs');
|
|
123
125
|
|
|
124
126
|
|
|
125
127
|
|
|
@@ -178,7 +180,7 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
|
|
|
178
180
|
return;
|
|
179
181
|
}
|
|
180
182
|
if (signal.aborted) {
|
|
181
|
-
cb({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(
|
|
183
|
+
cb({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkXPIMJQYScjs.abortErrorForSignal.call(void 0, signal)) });
|
|
182
184
|
return;
|
|
183
185
|
}
|
|
184
186
|
const started = nowMs();
|
|
@@ -195,12 +197,12 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
|
|
|
195
197
|
const fail = (error) => {
|
|
196
198
|
finish({
|
|
197
199
|
_tag: "Failure",
|
|
198
|
-
cause: _chunkMVGUEJ5Zcjs.Cause.fail(
|
|
200
|
+
cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkXPIMJQYScjs.normalizeHttpError.call(void 0, error, { signal }))
|
|
199
201
|
});
|
|
200
202
|
};
|
|
201
203
|
const options = {
|
|
202
204
|
method: request.method,
|
|
203
|
-
headers:
|
|
205
|
+
headers: _chunkXPIMJQYScjs.Request.headers.get(request),
|
|
204
206
|
agent: isHttps ? httpsAgent : httpAgent,
|
|
205
207
|
signal
|
|
206
208
|
};
|
|
@@ -216,7 +218,7 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
|
|
|
216
218
|
value: {
|
|
217
219
|
status: _nullishCoalesce(response.statusCode, () => ( 0)),
|
|
218
220
|
statusText: _nullishCoalesce(response.statusMessage, () => ( "")),
|
|
219
|
-
headers:
|
|
221
|
+
headers: _chunkXPIMJQYScjs.normalizeHttpHeaders.call(void 0, response.headers),
|
|
220
222
|
bodyText: Buffer.concat(chunks, byteLength).toString("utf8"),
|
|
221
223
|
ms: Math.round(nowMs() - started)
|
|
222
224
|
}
|
|
@@ -226,7 +228,7 @@ function runNodeRequest(context, config, httpAgent, httpsAgent) {
|
|
|
226
228
|
});
|
|
227
229
|
abort = () => {
|
|
228
230
|
nodeRequest.destroy(isError(signal.reason) ? signal.reason : void 0);
|
|
229
|
-
finish({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(
|
|
231
|
+
finish({ _tag: "Failure", cause: _chunkMVGUEJ5Zcjs.Cause.fail(_chunkXPIMJQYScjs.abortErrorForSignal.call(void 0, signal)) });
|
|
230
232
|
};
|
|
231
233
|
signal.addEventListener("abort", abort, { once: true });
|
|
232
234
|
nodeRequest.on("error", fail);
|
|
@@ -272,7 +274,7 @@ function makeNodeHttpProxyClient(config = {}) {
|
|
|
272
274
|
nodeTransport,
|
|
273
275
|
...clientConfig
|
|
274
276
|
} = config;
|
|
275
|
-
return
|
|
277
|
+
return _chunkXPIMJQYScjs.makeDefaultHttpClient.call(void 0, {
|
|
276
278
|
...clientConfig,
|
|
277
279
|
preset,
|
|
278
280
|
transport: _nullishCoalesce(transport, () => ( makeNodeHttpTransport(nodeTransport)))
|
|
@@ -288,8 +290,8 @@ var resolveFinalUrl = (baseUrl, url) => {
|
|
|
288
290
|
}
|
|
289
291
|
};
|
|
290
292
|
var createHttpCore = (cfg = {}) => {
|
|
291
|
-
const wire =
|
|
292
|
-
const withPromise = (eff) => _chunkMVGUEJ5Zcjs.withAsyncPromise.call(void 0, (e, env) =>
|
|
293
|
+
const wire = _chunkXPIMJQYScjs.makeHttp.call(void 0, cfg);
|
|
294
|
+
const withPromise = (eff) => _chunkMVGUEJ5Zcjs.withAsyncPromise.call(void 0, (e, env) => _chunk2JHJ4YHScjs.toPromise.call(void 0, e, env))(eff);
|
|
293
295
|
const requestRaw = (req) => wire(req);
|
|
294
296
|
const toResponse = (w, body) => ({
|
|
295
297
|
status: w.status,
|
|
@@ -298,7 +300,7 @@ var createHttpCore = (cfg = {}) => {
|
|
|
298
300
|
body
|
|
299
301
|
});
|
|
300
302
|
const decodeResponse = (w, validator, schemaName) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
301
|
-
|
|
303
|
+
_chunkXPIMJQYScjs.decodeJsonBodyEffect.call(void 0, w.bodyText, validator, { schemaName }),
|
|
302
304
|
(body) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, toResponse(w, body))
|
|
303
305
|
);
|
|
304
306
|
return {
|
|
@@ -306,7 +308,7 @@ var createHttpCore = (cfg = {}) => {
|
|
|
306
308
|
wire,
|
|
307
309
|
withPromise,
|
|
308
310
|
requestRaw,
|
|
309
|
-
buildReq:
|
|
311
|
+
buildReq: _chunkXPIMJQYScjs.buildHttpRequest,
|
|
310
312
|
toResponse,
|
|
311
313
|
decodeResponse
|
|
312
314
|
};
|
|
@@ -324,17 +326,17 @@ function httpClient(cfg = {}) {
|
|
|
324
326
|
};
|
|
325
327
|
const getJson = ((url, init) => {
|
|
326
328
|
const base = core.buildReq("GET", url, init);
|
|
327
|
-
const req =
|
|
329
|
+
const req = _chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base);
|
|
328
330
|
return core.withPromise(_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, requestRaw(req), (w) => core.decodeResponse(w, _optionalChain([init, 'optionalAccess', _ => _.schema]), _optionalChain([init, 'optionalAccess', _2 => _2.schemaName]))));
|
|
329
331
|
});
|
|
330
332
|
const postJson = ((url, bodyObj, init) => {
|
|
331
333
|
return core.withPromise(
|
|
332
334
|
_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
333
|
-
|
|
335
|
+
_chunkXPIMJQYScjs.encodeJsonBodyEffect.call(void 0, bodyObj, _optionalChain([init, 'optionalAccess', _3 => _3.bodySchema]), { schemaName: _optionalChain([init, 'optionalAccess', _4 => _4.bodySchemaName]) }),
|
|
334
336
|
(bodyText) => {
|
|
335
337
|
const base = core.buildReq("POST", url, init, bodyText);
|
|
336
|
-
const req =
|
|
337
|
-
|
|
338
|
+
const req = _chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "content-type", "application/json")(
|
|
339
|
+
_chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base)
|
|
338
340
|
);
|
|
339
341
|
return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, requestRaw(req), (w) => core.decodeResponse(w, _optionalChain([init, 'optionalAccess', _5 => _5.schema]), _optionalChain([init, 'optionalAccess', _6 => _6.schemaName])));
|
|
340
342
|
}
|
|
@@ -349,7 +351,7 @@ function httpClient(cfg = {}) {
|
|
|
349
351
|
getJson,
|
|
350
352
|
postJson,
|
|
351
353
|
with: (mw) => make(wire.with(mw)),
|
|
352
|
-
withRetry: (p) => make(wire.with(
|
|
354
|
+
withRetry: (p) => make(wire.with(_chunkXPIMJQYScjs.withRetry.call(void 0, p))),
|
|
353
355
|
wire,
|
|
354
356
|
stats: () => wire.stats()
|
|
355
357
|
};
|
|
@@ -385,11 +387,11 @@ function httpClientWithMeta(cfg = {}) {
|
|
|
385
387
|
const startedAt = Date.now();
|
|
386
388
|
return core.withPromise(
|
|
387
389
|
_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
388
|
-
|
|
390
|
+
_chunkXPIMJQYScjs.encodeJsonBodyEffect.call(void 0, bodyObj, _optionalChain([init, 'optionalAccess', _7 => _7.bodySchema]), { schemaName: _optionalChain([init, 'optionalAccess', _8 => _8.bodySchemaName]) }),
|
|
389
391
|
(bodyText) => {
|
|
390
392
|
const base = core.buildReq("POST", url, init, bodyText);
|
|
391
|
-
const req =
|
|
392
|
-
|
|
393
|
+
const req = _chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "content-type", "application/json")(
|
|
394
|
+
_chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base)
|
|
393
395
|
);
|
|
394
396
|
return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
395
397
|
core.requestRaw(req),
|
|
@@ -419,7 +421,7 @@ function httpClientWithMeta(cfg = {}) {
|
|
|
419
421
|
};
|
|
420
422
|
const getJson = (url, init) => {
|
|
421
423
|
const base = core.buildReq("GET", url, init);
|
|
422
|
-
const req =
|
|
424
|
+
const req = _chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "accept", "application/json")(base);
|
|
423
425
|
const startedAt = Date.now();
|
|
424
426
|
return core.withPromise(
|
|
425
427
|
_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
@@ -451,13 +453,13 @@ function httpClientWithMeta(cfg = {}) {
|
|
|
451
453
|
};
|
|
452
454
|
}
|
|
453
455
|
function httpClientStream(cfg = {}) {
|
|
454
|
-
const wire =
|
|
456
|
+
const wire = _chunkXPIMJQYScjs.makeHttpStream.call(void 0, cfg);
|
|
455
457
|
const make = (w) => {
|
|
456
|
-
const withPromise = (eff) => _chunkMVGUEJ5Zcjs.withAsyncPromise.call(void 0, (e, env) =>
|
|
458
|
+
const withPromise = (eff) => _chunkMVGUEJ5Zcjs.withAsyncPromise.call(void 0, (e, env) => _chunk2JHJ4YHScjs.toPromise.call(void 0, e, env))(eff);
|
|
457
459
|
const request = (req) => withPromise(w(req));
|
|
458
460
|
const getStream = (url, init) => {
|
|
459
461
|
const base = { method: "GET", url, init };
|
|
460
|
-
const req =
|
|
462
|
+
const req = _chunkXPIMJQYScjs.setHeaderIfMissing.call(void 0, "accept", "*/*")(base);
|
|
461
463
|
return request(req);
|
|
462
464
|
};
|
|
463
465
|
return {
|
|
@@ -465,7 +467,7 @@ function httpClientStream(cfg = {}) {
|
|
|
465
467
|
getStream,
|
|
466
468
|
get: getStream,
|
|
467
469
|
with: (mw) => make(mw(w)),
|
|
468
|
-
withRetry: (p) => make(
|
|
470
|
+
withRetry: (p) => make(_chunkXPIMJQYScjs.withRetryStream.call(void 0, p)(w)),
|
|
469
471
|
wire: w,
|
|
470
472
|
stats: () => w.stats()
|
|
471
473
|
};
|
|
@@ -563,7 +565,7 @@ function resolveAdaptiveLimiter(config, next) {
|
|
|
563
565
|
function resolveAdaptiveLimiterKey(config, limiter, req) {
|
|
564
566
|
if (!limiter) return void 0;
|
|
565
567
|
if (config.adaptiveLimiterKey) return config.adaptiveLimiterKey(req);
|
|
566
|
-
const poolKey =
|
|
568
|
+
const poolKey = _chunkXPIMJQYScjs.getHttpRequestPolicy.call(void 0, req).poolKey;
|
|
567
569
|
if (poolKey) return poolKey;
|
|
568
570
|
if (limiter.keyResolver === "global") return "global";
|
|
569
571
|
try {
|
|
@@ -614,11 +616,11 @@ function withLogging(logger) {
|
|
|
614
616
|
logger({ phase: "request", req });
|
|
615
617
|
} catch (e5) {
|
|
616
618
|
}
|
|
617
|
-
const startedAt =
|
|
619
|
+
const startedAt = _chunkXPIMJQYScjs.now.call(void 0, );
|
|
618
620
|
return _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
619
621
|
next(req),
|
|
620
622
|
(error) => {
|
|
621
|
-
const durationMs = Math.round(
|
|
623
|
+
const durationMs = Math.round(_chunkXPIMJQYScjs.now.call(void 0, ) - startedAt);
|
|
622
624
|
try {
|
|
623
625
|
logger({ phase: "error", req, error, durationMs });
|
|
624
626
|
} catch (e6) {
|
|
@@ -626,7 +628,7 @@ function withLogging(logger) {
|
|
|
626
628
|
return _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, error);
|
|
627
629
|
},
|
|
628
630
|
(res) => {
|
|
629
|
-
const durationMs = Math.round(
|
|
631
|
+
const durationMs = Math.round(_chunkXPIMJQYScjs.now.call(void 0, ) - startedAt);
|
|
630
632
|
try {
|
|
631
633
|
logger({ phase: "response", req, res, durationMs });
|
|
632
634
|
} catch (e7) {
|
|
@@ -882,7 +884,7 @@ function prewarmConnections(config = {}) {
|
|
|
882
884
|
const fetchImpl = _nullishCoalesce(config.fetchImpl, () => ( globalThis.fetch));
|
|
883
885
|
const method = _nullishCoalesce(config.method, () => ( "HEAD"));
|
|
884
886
|
const targets = resolveTargets(config);
|
|
885
|
-
return
|
|
887
|
+
return _chunk2JHJ4YHScjs.fromPromiseAbortable.call(void 0,
|
|
886
888
|
async (signal) => {
|
|
887
889
|
if (typeof fetchImpl !== "function" || targets.length === 0) {
|
|
888
890
|
return { attempted: 0, warmed: 0, failed: 0, skipped: targets.length, attempts: [] };
|
|
@@ -1090,10 +1092,10 @@ function makeBuilder(config) {
|
|
|
1090
1092
|
prewarm: (layer = {}) => setLayer("prewarm", layer),
|
|
1091
1093
|
noPrewarm: () => setLayer("prewarm", false),
|
|
1092
1094
|
adaptiveLimiter: (layer = {}) => setLayer("adaptiveLimiter", layer),
|
|
1093
|
-
adaptiveLimiterPreset: (preset, overrides = {}) => setLayer("adaptiveLimiter",
|
|
1094
|
-
conservativeLimiter: (overrides = {}) => setLayer("adaptiveLimiter",
|
|
1095
|
-
balancedLimiter: (overrides = {}) => setLayer("adaptiveLimiter",
|
|
1096
|
-
aggressiveLimiter: (overrides = {}) => setLayer("adaptiveLimiter",
|
|
1095
|
+
adaptiveLimiterPreset: (preset, overrides = {}) => setLayer("adaptiveLimiter", _chunkXPIMJQYScjs.makeAdaptiveLimiterConfig.call(void 0, preset, overrides)),
|
|
1096
|
+
conservativeLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkXPIMJQYScjs.makeAdaptiveLimiterConfig.call(void 0, "conservative", overrides)),
|
|
1097
|
+
balancedLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkXPIMJQYScjs.makeAdaptiveLimiterConfig.call(void 0, "balanced", overrides)),
|
|
1098
|
+
aggressiveLimiter: (overrides = {}) => setLayer("adaptiveLimiter", _chunkXPIMJQYScjs.makeAdaptiveLimiterConfig.call(void 0, "aggressive", overrides)),
|
|
1097
1099
|
noAdaptiveLimiter: () => setLayer("adaptiveLimiter", false),
|
|
1098
1100
|
pool: (layer = {}) => setLayer("pool", layer),
|
|
1099
1101
|
noPool: () => setLayer("pool", false),
|
|
@@ -1102,8 +1104,8 @@ function makeBuilder(config) {
|
|
|
1102
1104
|
middleware,
|
|
1103
1105
|
use: middleware,
|
|
1104
1106
|
configure: (next) => makeBuilder(mergeConfig(config, next)),
|
|
1105
|
-
build: () =>
|
|
1106
|
-
buildWire: () =>
|
|
1107
|
+
build: () => _chunkXPIMJQYScjs.makeDefaultHttpClient.call(void 0, freezeConfig(config)),
|
|
1108
|
+
buildWire: () => _chunkXPIMJQYScjs.makeDefaultHttpClient.call(void 0, freezeConfig(config)).wire
|
|
1107
1109
|
});
|
|
1108
1110
|
}
|
|
1109
1111
|
function httpClientBuilder(config = {}) {
|
|
@@ -1171,7 +1173,7 @@ function makeRuntimeHealthRoute(options = {}) {
|
|
|
1171
1173
|
"GET",
|
|
1172
1174
|
path,
|
|
1173
1175
|
() => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
1174
|
-
|
|
1176
|
+
_chunkWI7GZF3Bcjs.makeRuntimeHealth.call(void 0, healthOptions),
|
|
1175
1177
|
(report) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, healthReportToServerResponse(report))
|
|
1176
1178
|
)
|
|
1177
1179
|
);
|
|
@@ -1194,7 +1196,7 @@ function withResponseHeader(name, value) {
|
|
|
1194
1196
|
);
|
|
1195
1197
|
}
|
|
1196
1198
|
function healthReportToServerResponse(report) {
|
|
1197
|
-
return healthHttpResponseToServerResponse(
|
|
1199
|
+
return healthHttpResponseToServerResponse(_chunkWI7GZF3Bcjs.healthToHttpResponse.call(void 0, report));
|
|
1198
1200
|
}
|
|
1199
1201
|
function healthHttpResponseToServerResponse(response) {
|
|
1200
1202
|
return {
|
|
@@ -1257,7 +1259,7 @@ function makeNodeHttpServer(options) {
|
|
|
1257
1259
|
});
|
|
1258
1260
|
}
|
|
1259
1261
|
function nodeHttpServerResource(options) {
|
|
1260
|
-
return
|
|
1262
|
+
return _chunk5RZ7YITFcjs.resource.call(void 0,
|
|
1261
1263
|
makeNodeHttpServer(options),
|
|
1262
1264
|
(handle) => _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (_env, cb) => {
|
|
1263
1265
|
handle.close().then(() => cb({ _tag: "Success", value: void 0 })).catch(() => cb({ _tag: "Success", value: void 0 }));
|
|
@@ -1438,7 +1440,7 @@ async function handleNodeRequest(req, res, router, options) {
|
|
|
1438
1440
|
target: serverRequest.target,
|
|
1439
1441
|
headers: serverRequest.headers
|
|
1440
1442
|
};
|
|
1441
|
-
const response = options.observability ? (await
|
|
1443
|
+
const response = options.observability ? (await _chunkWI7GZF3Bcjs.runObservedHttpServerEffect.call(void 0,
|
|
1442
1444
|
options.observability,
|
|
1443
1445
|
observedInput,
|
|
1444
1446
|
effect,
|
|
@@ -1448,7 +1450,7 @@ async function handleNodeRequest(req, res, router, options) {
|
|
|
1448
1450
|
},
|
|
1449
1451
|
options.env,
|
|
1450
1452
|
options.runtimeOptions
|
|
1451
|
-
)).value : await (_nullishCoalesce(options.runtime, () => ( new (0,
|
|
1453
|
+
)).value : await (_nullishCoalesce(options.runtime, () => ( new (0, _chunk2JHJ4YHScjs.Runtime)({
|
|
1452
1454
|
env: _nullishCoalesce(options.env, () => ( {})),
|
|
1453
1455
|
..._nullishCoalesce(options.runtimeOptions, () => ( {}))
|
|
1454
1456
|
})))).toPromise(effect);
|
|
@@ -1534,7 +1536,7 @@ function closeNodeServer(server, options) {
|
|
|
1534
1536
|
return new Promise((resolve, reject) => {
|
|
1535
1537
|
const startedAt = Date.now();
|
|
1536
1538
|
const schedule = _nullishCoalesce(options.shutdownPollSchedule, () => ( defaultShutdownPollSchedule(_nullishCoalesce(options.gracefulShutdownMs, () => ( 5e3)))));
|
|
1537
|
-
const driver =
|
|
1539
|
+
const driver = _chunk5RZ7YITFcjs.makeScheduleDriver.call(void 0, schedule, { name: _nullishCoalesce(schedule.name, () => ( "http.server.shutdown")), startedAtMs: startedAt });
|
|
1538
1540
|
let finished = false;
|
|
1539
1541
|
const done = (error) => {
|
|
1540
1542
|
if (finished) return;
|
|
@@ -1568,7 +1570,7 @@ function closeNodeServer(server, options) {
|
|
|
1568
1570
|
}
|
|
1569
1571
|
function defaultShutdownPollSchedule(maxMs) {
|
|
1570
1572
|
const intervalMs = 25;
|
|
1571
|
-
return
|
|
1573
|
+
return _chunk5RZ7YITFcjs.take.call(void 0, _chunk5RZ7YITFcjs.fixed.call(void 0, intervalMs), Math.max(1, Math.ceil(Math.max(0, maxMs) / intervalMs)));
|
|
1572
1574
|
}
|
|
1573
1575
|
function matchRoute(routes, method, path) {
|
|
1574
1576
|
const requestedMethod = method.toUpperCase();
|
|
@@ -1839,4 +1841,6 @@ function escapeRegExp(value) {
|
|
|
1839
1841
|
|
|
1840
1842
|
|
|
1841
1843
|
|
|
1842
|
-
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
exports.AdaptiveLimiter = _chunkXPIMJQYScjs.AdaptiveLimiter; exports.ConfigValidationError = _chunkUUMKZJRJcjs.ConfigValidationError; exports.DEFAULT_CACHE_RELEVANT_HEADERS = _chunkXPIMJQYScjs.DEFAULT_CACHE_RELEVANT_HEADERS; exports.EmaComputer = _chunkXPIMJQYScjs.EmaComputer; exports.HttpClientService = _chunkXPIMJQYScjs.HttpClientService; exports.HttpConcurrencyPool = _chunkXPIMJQYScjs.HttpConcurrencyPool; exports.HttpServer = HttpServer; exports.LRUCache = _chunkXPIMJQYScjs.LRUCache; exports.LatencyWindow = _chunkXPIMJQYScjs.LatencyWindow; exports.LifecycleStatsTracker = _chunkXPIMJQYScjs.LifecycleStatsTracker; exports.PriorityQueue = _chunkXPIMJQYScjs.PriorityQueue; exports.SEPARATOR = _chunkXPIMJQYScjs.SEPARATOR; exports.SUPPORTED_ENCODINGS = _chunkXPIMJQYScjs.SUPPORTED_ENCODINGS; exports.Schema = _chunkUUMKZJRJcjs.Schema; exports.SchemaValidationException = _chunkUUMKZJRJcjs.SchemaValidationException; exports.abortErrorForSignal = _chunkXPIMJQYScjs.abortErrorForSignal; exports.adaptiveLimiterPresets = _chunkXPIMJQYScjs.adaptiveLimiterPresets; exports.backoffDelayMs = _chunkXPIMJQYScjs.backoffDelayMs; exports.clampPriority = _chunkXPIMJQYScjs.clampPriority; exports.computeCacheKey = _chunkXPIMJQYScjs.computeCacheKey; exports.computeGradient = _chunkXPIMJQYScjs.computeGradient; exports.computeNewLimit = _chunkXPIMJQYScjs.computeNewLimit; exports.decodeJsonBody = _chunkXPIMJQYScjs.decodeJsonBody; exports.decodeJsonBodyEffect = _chunkXPIMJQYScjs.decodeJsonBodyEffect; exports.decorate = _chunkXPIMJQYScjs.decorate; exports.defaultHttpClientPreset = _chunkXPIMJQYScjs.defaultHttpClientPreset; exports.defaultRetryOnError = _chunkXPIMJQYScjs.defaultRetryOnError; exports.defaultRetryOnStatus = _chunkXPIMJQYScjs.defaultRetryOnStatus; exports.defaultRetryableMethods = _chunkXPIMJQYScjs.defaultRetryableMethods; exports.defineHttpPolicyPresets = _chunkXPIMJQYScjs.defineHttpPolicyPresets; exports.detectPlatform = _chunkXPIMJQYScjs.detectPlatform; exports.empty = empty; exports.encodeJsonBodyEffect = _chunkXPIMJQYScjs.encodeJsonBodyEffect; exports.executeProbe = _chunkXPIMJQYScjs.executeProbe; exports.formatConfigError = _chunkUUMKZJRJcjs.formatConfigError; exports.formatHttpError = _chunkXPIMJQYScjs.formatHttpError; exports.formatIssues = _chunkUUMKZJRJcjs.formatIssues; exports.getHttpRequestPolicy = _chunkXPIMJQYScjs.getHttpRequestPolicy; exports.headersOf = _chunkXPIMJQYScjs.headersOf; exports.httpBuilder = httpBuilder; exports.httpClient = httpClient; exports.httpClientBuilder = httpClientBuilder; exports.httpClientStream = httpClientStream; exports.httpClientWithMeta = httpClientWithMeta; exports.httpErrorStatus = _chunkXPIMJQYScjs.httpErrorStatus; exports.httpPolicy = _chunkXPIMJQYScjs.httpPolicy; exports.httpRoute = httpRoute; exports.isAbortError = _chunkXPIMJQYScjs.isAbortError; exports.isAbortHttpError = _chunkXPIMJQYScjs.isAbortHttpError; exports.isCircuitBreakerOpen = _chunkXPIMJQYScjs.isCircuitBreakerOpen; exports.isConfigValidationError = _chunkUUMKZJRJcjs.isConfigValidationError; exports.isExternalAbortError = _chunkXPIMJQYScjs.isExternalAbortError; exports.isExternalTimeoutError = _chunkXPIMJQYScjs.isExternalTimeoutError; exports.isFetchHttpError = _chunkXPIMJQYScjs.isFetchHttpError; exports.isHttpError = _chunkXPIMJQYScjs.isHttpError; exports.isKnownHttpError = _chunkXPIMJQYScjs.isKnownHttpError; exports.isPromiseTransportDirect = _chunkXPIMJQYScjs.isPromiseTransportDirect; exports.isRetryableHttpError = _chunkXPIMJQYScjs.isRetryableHttpError; exports.isRetryableHttpStatus = _chunkXPIMJQYScjs.isRetryableHttpStatus; exports.isSchema = _chunkUUMKZJRJcjs.isSchema; exports.isTaggedHttpError = _chunkXPIMJQYScjs.isTaggedHttpError; exports.isTimeoutHttpError = _chunkXPIMJQYScjs.isTimeoutHttpError; exports.isValidationError = _chunkXPIMJQYScjs.isValidationError; exports.json = json; exports.linkAbortSignals = _chunkXPIMJQYScjs.linkAbortSignals; exports.makeAdaptiveLimiterConfig = _chunkXPIMJQYScjs.makeAdaptiveLimiterConfig; exports.makeBudgetSemaphore = _chunkXPIMJQYScjs.makeBudgetSemaphore; exports.makeCompressionMiddleware = _chunkXPIMJQYScjs.makeCompressionMiddleware; exports.makeConnectionStateMap = _chunkXPIMJQYScjs.makeConnectionStateMap; exports.makeDefaultHttpClient = _chunkXPIMJQYScjs.makeDefaultHttpClient; exports.makeDefaultHttpClientLayer = _chunkXPIMJQYScjs.makeDefaultHttpClientLayer; exports.makeFetchStreamTransport = _chunkXPIMJQYScjs.makeFetchStreamTransport; exports.makeFetchTransport = _chunkXPIMJQYScjs.makeFetchTransport; exports.makeHttp = _chunkXPIMJQYScjs.makeHttp; exports.makeHttpClient = _chunkXPIMJQYScjs.makeHttpClient; exports.makeHttpClientBuilder = makeHttpClientBuilder; exports.makeHttpRouter = makeHttpRouter; exports.makeHttpServerResource = makeHttpServerResource; exports.makeHttpStream = _chunkXPIMJQYScjs.makeHttpStream; exports.makeJsonParseValidationError = _chunkXPIMJQYScjs.makeJsonParseValidationError; exports.makeLifecycleClient = _chunkXPIMJQYScjs.makeLifecycleClient; exports.makeNodeHttpProxyClient = makeNodeHttpProxyClient; exports.makeNodeHttpServer = makeNodeHttpServer; exports.makeNodeHttpServerResource = makeNodeHttpServerResource; exports.makeNodeHttpTransport = makeNodeHttpTransport; exports.makePrewarmManager = _chunkXPIMJQYScjs.makePrewarmManager; exports.makePromiseHttpTransport = _chunkXPIMJQYScjs.makePromiseHttpTransport; exports.makeRequestCompressionMiddleware = _chunkXPIMJQYScjs.makeRequestCompressionMiddleware; exports.makeResponseCompressionMiddleware = _chunkXPIMJQYScjs.makeResponseCompressionMiddleware; exports.makeRuntimeHealthRoute = makeRuntimeHealthRoute; exports.makeRuntimeReadinessRoute = makeRuntimeReadinessRoute; exports.makeSchemaIssue = _chunkUUMKZJRJcjs.makeSchemaIssue; exports.matchHttpError = _chunkXPIMJQYScjs.matchHttpError; exports.nodeHttpServerResource = nodeHttpServerResource; exports.noopSignal = _chunkXPIMJQYScjs.noopSignal; exports.normalizeHeadersInit = _chunkXPIMJQYScjs.normalizeHeadersInit; exports.normalizeHttpError = _chunkXPIMJQYScjs.normalizeHttpError; exports.normalizeHttpHeaders = _chunkXPIMJQYScjs.normalizeHttpHeaders; exports.normalizeRetryBudget = _chunkXPIMJQYScjs.normalizeRetryBudget; exports.parseCacheKey = _chunkXPIMJQYScjs.parseCacheKey; exports.parseConfig = _chunkUUMKZJRJcjs.parseConfig; exports.prewarmConnections = prewarmConnections; exports.prewarmHttpConnections = prewarmHttpConnections; exports.promiseHttpTransport = _chunkXPIMJQYScjs.promiseHttpTransport; exports.resolveConfig = _chunkXPIMJQYScjs.resolveConfig; exports.resolveHttpPoolKey = _chunkXPIMJQYScjs.resolveHttpPoolKey; exports.resolveHttpRequestPolicyPresets = _chunkXPIMJQYScjs.resolveHttpRequestPolicyPresets; exports.retryAfterMs = _chunkXPIMJQYScjs.retryAfterMs; exports.route = route; exports.runtimeHealthRoute = runtimeHealthRoute; exports.runtimeReadinessRoute = runtimeReadinessRoute; exports.s = _chunkUUMKZJRJcjs.s; exports.schema = _chunkUUMKZJRJcjs.schema; exports.text = text; exports.toHttpError = _chunkXPIMJQYScjs.toHttpError; exports.validateConfig = _chunkXPIMJQYScjs.validateConfig; exports.validateFetchAvailable = _chunkXPIMJQYScjs.validateFetchAvailable; exports.validateOrigin = _chunkXPIMJQYScjs.validateOrigin; exports.validateValue = _chunkUUMKZJRJcjs.validateValue; exports.validatedJson = _chunkXPIMJQYScjs.validatedJson; exports.validatedJsonResponse = _chunkXPIMJQYScjs.validatedJsonResponse; exports.withAuth = withAuth; exports.withBatch = _chunkXPIMJQYScjs.withBatch; exports.withCache = _chunkXPIMJQYScjs.withCache; exports.withCircuitBreaker = withCircuitBreaker; exports.withConnectionPrewarming = withConnectionPrewarming; exports.withDedup = _chunkXPIMJQYScjs.withDedup; exports.withHttpPolicyPresets = _chunkXPIMJQYScjs.withHttpPolicyPresets; exports.withHttpRequestPolicy = _chunkXPIMJQYScjs.withHttpRequestPolicy; exports.withLogging = withLogging; exports.withMiddleware = _chunkXPIMJQYScjs.withMiddleware; exports.withPriority = _chunkXPIMJQYScjs.withPriority; exports.withRequestBatching = withRequestBatching; exports.withResponseHeader = withResponseHeader; exports.withResponseTransform = withResponseTransform; exports.withRetry = _chunkXPIMJQYScjs.withRetry; exports.withRetryStream = _chunkXPIMJQYScjs.withRetryStream; exports.withTracing = withTracing;
|
package/dist/http/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { C as CompressionConfig, f as CompressionMiddlewareResult, R as RequestCompressionConfig, g as RequestCompressionMiddlewareResult, e as DefaultHttpClientConfig, h as HttpTransport, D as DefaultHttpClient, i as AdaptiveLimiter, H as HttpRequest, d as HttpMiddleware, L as LifecycleClientConfig, j as LifecycleClient, b as HttpWireResponse, c as HttpError, k as LifecycleEvent, l as HttpClientStats, m as LifecycleEventType, n as LifecycleStats, P as PrewarmResult, o as PrewarmStatusSnapshot, p as PrewarmConfig, q as HttpClientFn, r as PrewarmOriginState, s as HttpMethod, t as DefaultHttpClientPreset, u as DedupConfig$1, B as BatchConfig, v as CacheConfig$1, w as PriorityConfig$1, x as RetryPolicy, y as PrewarmLifecycleConfig, z as AdaptiveLimiterConfig, E as AdaptiveLimiterPreset, F as HttpPoolConfig } from '../defaultClient-
|
|
2
|
-
export { G as AdaptiveAcquireOptions, I as AdaptiveBaselineStrategy, J as AdaptiveHeadroomContext, K as AdaptiveHeadroomMode, M as AdaptiveHeadroomStrategy, N as AdaptiveLease, O as AdaptiveLimiterDiagnostics, Q as AdaptiveLimiterKeySnapshot, A as AdaptiveLimiterStats, S as AdaptiveQueueLoadShedding, T as AdaptiveQueueStrategy, U as AdaptiveReleaseInfo, V as BatchFunction, W as CachePolicyResult, X as CompressionStats, Y as DecompressResult, Z as Decompressor, _ as DefaultGetJson, $ as DefaultHttpClientFeatures, a0 as DefaultPostJson, a1 as Dx, a2 as HttpBody, a as HttpClient, a3 as HttpClientStream, a4 as HttpClientStreamFn, a5 as HttpConcurrencyPool, a6 as HttpErrorHandlers, a7 as HttpInit, a8 as HttpJsonInit, a9 as HttpMeta, aa as HttpPolicyPreset, ab as HttpPolicyPresets, ac as HttpPoolKeyResolver, ad as HttpPoolKeyStats, ae as HttpPoolLease, af as HttpPoolStats, ag as HttpPostJsonBodyInit, ah as HttpPostJsonInit, ai as HttpPostJsonSchemaBodyInit, aj as HttpRequestPolicy, ak as HttpRequestPolicyRef, al as HttpRequestRetryOverride, am as HttpResponse, an as HttpResponseWithMeta, ao as HttpRetryScheduleInput, ap as HttpStreamTransport, aq as HttpTransportContext, ar as HttpTransportTiming, as as HttpWireResponseStream, at as HttpWireWithMeta, au as JsonDecodeResult, av as KnownHttpError, aw as KnownHttpErrorTag, ax as LifecycleRequestOptions, ay as LimitChangeEvent, az as MakeHttpConfig, aA as PerRequestRetryOverride, aB as PrewarmEvent, aC as PrewarmEventType, aD as PrewarmOriginStatus, aE as PrewarmResultStatus, aF as PromiseHttpTransportBodyBuilder, aG as PromiseHttpTransportBodySelector, aH as PromiseHttpTransportConfig, aI as PromiseHttpTransportConfigWithSignal, aJ as PromiseHttpTransportFluentResponseBuilder, aK as PromiseHttpTransportRequestConfigBuilder, aL as PromiseHttpTransportRequestConfigContext, aM as PromiseHttpTransportRequestConfigMapper, aN as PromiseHttpTransportResponse, aO as PromiseHttpTransportResponseInfo, aP as PromiseHttpTransportResponseInfoMapper, aQ as PromiseHttpTransportStartBuilder, aR as RequestCompressionStats, aS as ResolveHttpRequestPolicyOptions, aT as ResolvedConfig, aU as RetryEvent, aV as RetryScheduleInput, aW as RetryableHttpErrorOptions, aX as SUPPORTED_ENCODINGS, aY as SupportedEncoding, aZ as ToHttpErrorOptions, a_ as ValidationError, a$ as abortErrorForSignal, b0 as adaptiveLimiterPresets, b1 as backoffDelayMs, b2 as decodeJsonBody, b3 as decodeJsonBodyEffect, b4 as decorate, b5 as defaultHttpClientPreset, b6 as defaultRetryOnError, b7 as defaultRetryOnStatus, b8 as defaultRetryableMethods, b9 as defineHttpPolicyPresets, ba as encodeJsonBodyEffect, bb as formatHttpError, bc as getHttpRequestPolicy, bd as headersOf, be as httpClient, bf as httpClientStream, bg as httpClientWithMeta, bh as httpErrorStatus, bi as httpPolicy, bj as isAbortError, bk as isAbortHttpError, bl as isCircuitBreakerOpen, bm as isExternalAbortError, bn as isExternalTimeoutError, bo as isFetchHttpError, bp as isHttpError, bq as isKnownHttpError, br as
|
|
1
|
+
import { C as CompressionConfig, f as CompressionMiddlewareResult, R as RequestCompressionConfig, g as RequestCompressionMiddlewareResult, e as DefaultHttpClientConfig, h as HttpTransport, D as DefaultHttpClient, i as AdaptiveLimiter, H as HttpRequest, d as HttpMiddleware, L as LifecycleClientConfig, j as LifecycleClient, b as HttpWireResponse, c as HttpError, k as LifecycleEvent, l as HttpClientStats, m as LifecycleEventType, n as LifecycleStats, P as PrewarmResult, o as PrewarmStatusSnapshot, p as PrewarmConfig, q as HttpClientFn, r as PrewarmOriginState, s as HttpMethod, t as DefaultHttpClientPreset, u as DedupConfig$1, B as BatchConfig, v as CacheConfig$1, w as PriorityConfig$1, x as RetryPolicy, y as PrewarmLifecycleConfig, z as AdaptiveLimiterConfig, E as AdaptiveLimiterPreset, F as HttpPoolConfig } from '../defaultClient-Cid0JoUR.js';
|
|
2
|
+
export { G as AdaptiveAcquireOptions, I as AdaptiveBaselineStrategy, J as AdaptiveHeadroomContext, K as AdaptiveHeadroomMode, M as AdaptiveHeadroomStrategy, N as AdaptiveLease, O as AdaptiveLimiterDiagnostics, Q as AdaptiveLimiterKeySnapshot, A as AdaptiveLimiterStats, S as AdaptiveQueueLoadShedding, T as AdaptiveQueueStrategy, U as AdaptiveReleaseInfo, V as BatchFunction, W as CachePolicyResult, X as CompressionStats, Y as DecompressResult, Z as Decompressor, _ as DefaultGetJson, $ as DefaultHttpClientFeatures, a0 as DefaultPostJson, a1 as Dx, a2 as HttpBody, a as HttpClient, a3 as HttpClientStream, a4 as HttpClientStreamFn, a5 as HttpConcurrencyPool, a6 as HttpErrorHandlers, a7 as HttpInit, a8 as HttpJsonInit, a9 as HttpMeta, aa as HttpPolicyPreset, ab as HttpPolicyPresets, ac as HttpPoolKeyResolver, ad as HttpPoolKeyStats, ae as HttpPoolLease, af as HttpPoolStats, ag as HttpPostJsonBodyInit, ah as HttpPostJsonInit, ai as HttpPostJsonSchemaBodyInit, aj as HttpRequestPolicy, ak as HttpRequestPolicyRef, al as HttpRequestRetryOverride, am as HttpResponse, an as HttpResponseWithMeta, ao as HttpRetryScheduleInput, ap as HttpStreamTransport, aq as HttpTransportContext, ar as HttpTransportTiming, as as HttpWireResponseStream, at as HttpWireWithMeta, au as JsonDecodeResult, av as KnownHttpError, aw as KnownHttpErrorTag, ax as LifecycleRequestOptions, ay as LimitChangeEvent, az as MakeHttpConfig, aA as PerRequestRetryOverride, aB as PrewarmEvent, aC as PrewarmEventType, aD as PrewarmOriginStatus, aE as PrewarmResultStatus, aF as PromiseHttpTransportBodyBuilder, aG as PromiseHttpTransportBodySelector, aH as PromiseHttpTransportConfig, aI as PromiseHttpTransportConfigWithSignal, aJ as PromiseHttpTransportFluentResponseBuilder, aK as PromiseHttpTransportRequestConfigBuilder, aL as PromiseHttpTransportRequestConfigContext, aM as PromiseHttpTransportRequestConfigMapper, aN as PromiseHttpTransportResponse, aO as PromiseHttpTransportResponseInfo, aP as PromiseHttpTransportResponseInfoMapper, aQ as PromiseHttpTransportStartBuilder, aR as RequestCompressionStats, aS as ResolveHttpRequestPolicyOptions, aT as ResolvedConfig, aU as RetryEvent, aV as RetryScheduleInput, aW as RetryableHttpErrorOptions, aX as SUPPORTED_ENCODINGS, aY as SupportedEncoding, aZ as ToHttpErrorOptions, a_ as ValidationError, a$ as abortErrorForSignal, b0 as adaptiveLimiterPresets, b1 as backoffDelayMs, b2 as decodeJsonBody, b3 as decodeJsonBodyEffect, b4 as decorate, b5 as defaultHttpClientPreset, b6 as defaultRetryOnError, b7 as defaultRetryOnStatus, b8 as defaultRetryableMethods, b9 as defineHttpPolicyPresets, ba as encodeJsonBodyEffect, bb as formatHttpError, bc as getHttpRequestPolicy, bd as headersOf, be as httpClient, bf as httpClientStream, bg as httpClientWithMeta, bh as httpErrorStatus, bi as httpPolicy, bj as isAbortError, bk as isAbortHttpError, bl as isCircuitBreakerOpen, bm as isExternalAbortError, bn as isExternalTimeoutError, bo as isFetchHttpError, bp as isHttpError, bq as isKnownHttpError, br as isPromiseTransportDirect, bs as isRetryableHttpError, bt as isRetryableHttpStatus, bu as isTaggedHttpError, bv as isTimeoutHttpError, bw as isValidationError, bx as linkAbortSignals, by as makeAdaptiveLimiterConfig, bz as makeDefaultHttpClient, bA as makeFetchStreamTransport, bB as makeFetchTransport, bC as makeHttp, bD as makeHttpStream, bE as makeJsonParseValidationError, bF as makePromiseHttpTransport, bG as matchHttpError, bH as noopSignal, bI as normalizeHeadersInit, bJ as normalizeHttpError, bK as normalizeHttpHeaders, bL as normalizeRetryBudget, bM as promiseHttpTransport, bN as resolveConfig, bO as resolveHttpPoolKey, bP as resolveHttpRequestPolicyPresets, bQ as retryAfterMs, bR as toHttpError, bS as validateConfig, bT as validatedJson, bU as validatedJsonResponse, bV as withBatch, bW as withHttpPolicyPresets, bX as withHttpRequestPolicy, bY as withMiddleware, bZ as withRetry, b_ as withRetryStream } from '../defaultClient-Cid0JoUR.js';
|
|
3
3
|
import { Agent, Server } from 'node:http';
|
|
4
4
|
import { Agent as Agent$1 } from 'node:https';
|
|
5
|
-
import { c as CircuitBreakerConfig, l as Schedule, a as LayerContext, S as ServiceTag, L as Layer } from '../layer-
|
|
6
|
-
import { T as Tracer, R as Resource } from '../tracing-
|
|
7
|
-
import { A as Async, b as Runtime, a as RuntimeOptions } from '../effect-
|
|
5
|
+
import { c as CircuitBreakerConfig, l as Schedule, a as LayerContext, S as ServiceTag, L as Layer } from '../layer-D2LFcBVx.js';
|
|
6
|
+
import { T as Tracer, R as Resource } from '../tracing-CWV4gT0u.js';
|
|
7
|
+
import { A as Async, b as Runtime, a as RuntimeOptions } from '../effect-DnGUuhw6.js';
|
|
8
8
|
import { AddressInfo } from 'node:net';
|
|
9
|
-
import { O as Observability, q as HttpServerObservabilityOptions, $ as RuntimeHealthOptions } from '../server-
|
|
9
|
+
import { O as Observability, q as HttpServerObservabilityOptions, $ as RuntimeHealthOptions } from '../server-Bf1zNYZk.js';
|
|
10
10
|
import { AnyJsonSchemaLike, InferJsonSchema } from '../schema/index.js';
|
|
11
11
|
export { AnySchema, ConfigValidationError, InferObject, InferSchema, JsonSchemaLike, JsonValidator, JsonValidatorResult, NumberSchemaOptions, ObjectSchemaOptions, Schema, SchemaIssue, SchemaPathPart, SchemaResult, SchemaShape, SchemaValidationException, StringSchemaOptions, formatConfigError, formatIssues, isConfigValidationError, isSchema, makeSchemaIssue, parseConfig, s, schema, validateValue } from '../schema/index.js';
|
|
12
|
-
import '../stream-
|
|
13
|
-
import '../tracer-
|
|
12
|
+
import '../stream-I7bkvF7a.js';
|
|
13
|
+
import '../tracer-DF83nLn6.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A fixed-size circular buffer that stores latency samples and supports
|