@smthrs/platform-bun 1.0.0-rc.12 → 1.0.0-rc.13
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 +5 -5
- package/dist/vendor/adapters.json +246 -246
- package/dist/vendor/bun/BunAddressResolver.js +2 -2
- package/dist/vendor/bun/BunChildProcessSpawner.js +6 -6
- package/dist/vendor/bun/BunClusterHttp.js +28 -28
- package/dist/vendor/bun/BunClusterSocket.js +9 -9
- package/dist/vendor/bun/BunCrypto.js +2 -2
- package/dist/vendor/bun/BunDatagramSocket.js +1 -1
- package/dist/vendor/bun/BunDns.js +2 -2
- package/dist/vendor/bun/BunFileSystem.js +3 -3
- package/dist/vendor/bun/BunHttpClient.js +1 -1
- package/dist/vendor/bun/BunHttpPlatform.js +5 -5
- package/dist/vendor/bun/BunHttpServer.js +22 -22
- package/dist/vendor/bun/BunHttpServerRequest.js +1 -1
- package/dist/vendor/bun/BunMultipart.js +4 -4
- package/dist/vendor/bun/BunPath.js +2 -2
- package/dist/vendor/bun/BunRedis.js +1 -1
- package/dist/vendor/bun/BunRuntime.js +2 -2
- package/dist/vendor/bun/BunServices.js +17 -17
- package/dist/vendor/bun/BunSink.js +2 -2
- package/dist/vendor/bun/BunSocket.js +2 -2
- package/dist/vendor/bun/BunSocketServer.js +3 -3
- package/dist/vendor/bun/BunStdio.js +4 -4
- package/dist/vendor/bun/BunStream.js +3 -3
- package/dist/vendor/bun/BunTerminal.js +2 -2
- package/dist/vendor/bun/BunWorker.js +1 -1
- package/dist/vendor/bun/BunWorkerRunner.js +1 -1
- package/dist/vendor/bun/index.js +43 -43
- package/dist/vendor/{chunk-KFDBU6RR.js → chunk-226TYKP6.js} +3 -3
- package/dist/vendor/{chunk-GJN7MEBF.js → chunk-2ADOI6ZN.js} +2 -2
- package/dist/vendor/{chunk-A7AY2JP7.js → chunk-2AP6TO77.js} +5 -5
- package/dist/vendor/{chunk-YDY5P7GL.js → chunk-2LGUVSNM.js} +2 -2
- package/dist/vendor/{chunk-2ZAGBWTH.js → chunk-3SUO3TTE.js} +1 -1
- package/dist/vendor/{chunk-HDV6VIRM.js → chunk-4O4Z52A2.js} +1 -1
- package/dist/vendor/{chunk-LNWGIDIG.js → chunk-4YK2MHSO.js} +2 -2
- package/dist/vendor/{chunk-F4V5TRY7.js → chunk-6B775XB2.js} +1 -1
- package/dist/vendor/{chunk-Y7V6ISZS.js → chunk-6KYVM2ZC.js} +9 -8
- package/dist/vendor/{chunk-FFD6R5JZ.js → chunk-6R444NFO.js} +1 -1
- package/dist/vendor/{chunk-BY3SDXID.js → chunk-7JOAEKDV.js} +11 -9
- package/dist/vendor/{chunk-ZS3VW5QR.js → chunk-7VJC3PHX.js} +1 -1
- package/dist/vendor/{chunk-JOQDB2HC.js → chunk-7ZKNPDTP.js} +2 -2
- package/dist/vendor/{chunk-5ET7NHI7.js → chunk-ABPRHPJP.js} +1 -1
- package/dist/vendor/{chunk-D2ZL4PLZ.js → chunk-AMAL6TRE.js} +2 -2
- package/dist/vendor/{chunk-RKVXYKHJ.js → chunk-AW6WQVI7.js} +1 -1
- package/dist/vendor/{chunk-UUYTTEDH.js → chunk-BHV44Z6K.js} +1 -1
- package/dist/vendor/{chunk-XACFQJY7.js → chunk-BIR74JJK.js} +1 -1
- package/dist/vendor/chunk-BTXZUHUI.js +7 -0
- package/dist/vendor/{chunk-SD4X5NGU.js → chunk-BVV46N3V.js} +6 -6
- package/dist/vendor/{chunk-F772LLZ5.js → chunk-C7UMBJO6.js} +2 -2
- package/dist/vendor/{chunk-KHPN5DWT.js → chunk-CN4K2U6M.js} +2 -2
- package/dist/vendor/{chunk-ZUUCLHBP.js → chunk-D6XNHJPW.js} +2 -2
- package/dist/vendor/{chunk-SCXQLSNW.js → chunk-DHTPLWAP.js} +7 -7
- package/dist/vendor/{chunk-N6TK35N5.js → chunk-DWSNOBD4.js} +2 -2
- package/dist/vendor/{chunk-A7UXCEJA.js → chunk-DX4VFONH.js} +1 -1
- package/dist/vendor/{chunk-PCEVZYXO.js → chunk-EIO7BKW3.js} +4 -4
- package/dist/vendor/{chunk-MUEED3C3.js → chunk-FIPFWLCV.js} +1 -1
- package/dist/vendor/{chunk-D4HEMNGU.js → chunk-GITB76ZP.js} +2 -2
- package/dist/vendor/{chunk-6L2NJEOV.js → chunk-GMORYZG4.js} +2 -2
- package/dist/vendor/{chunk-X4YPHWAE.js → chunk-HXGVOKHF.js} +2 -2
- package/dist/vendor/{chunk-RQQ5TSCD.js → chunk-HYPKWCVW.js} +1 -1
- package/dist/vendor/{chunk-IHV7Z4SW.js → chunk-IJON5WTO.js} +7 -7
- package/dist/vendor/{chunk-NQO6V4KI.js → chunk-IXI7RW3A.js} +5 -5
- package/dist/vendor/{chunk-4WIQ2XN7.js → chunk-J43O5GFH.js} +2 -2
- package/dist/vendor/{chunk-OF3N2FN4.js → chunk-JTST2Z7N.js} +8 -11
- package/dist/vendor/{chunk-T5FQGISI.js → chunk-JYD572EF.js} +2 -2
- package/dist/vendor/{chunk-UFWLKG4I.js → chunk-K6GWBGJM.js} +2 -2
- package/dist/vendor/{chunk-72X6VEVD.js → chunk-KANNAI65.js} +6 -6
- package/dist/vendor/{chunk-T332WJRS.js → chunk-KEMBVIRS.js} +4 -4
- package/dist/vendor/{chunk-6FSJ2PMW.js → chunk-M2QOSF47.js} +3 -3
- package/dist/vendor/{chunk-G4HOH7GK.js → chunk-NGGMPIWR.js} +6 -6
- package/dist/vendor/{chunk-WPZDL2D7.js → chunk-NNTJGFLB.js} +1 -1
- package/dist/vendor/{chunk-REFJNBQR.js → chunk-NU53DHQR.js} +2 -2
- package/dist/vendor/{chunk-R2YON4A6.js → chunk-OAY4MA3I.js} +2 -2
- package/dist/vendor/{chunk-IWSDM4CG.js → chunk-OV2KKGBA.js} +2 -2
- package/dist/vendor/{chunk-3SL3HKQA.js → chunk-PBM2HJOX.js} +1 -1
- package/dist/vendor/{chunk-TBPDCAMH.js → chunk-Q5UCOQNO.js} +2 -2
- package/dist/vendor/{chunk-C3PGUWW5.js → chunk-Q7YXUH7M.js} +1 -1
- package/dist/vendor/{chunk-ZVJCBTJG.js → chunk-QKYYD3AZ.js} +3 -3
- package/dist/vendor/{chunk-R327POEZ.js → chunk-QLI7T34M.js} +2 -2
- package/dist/vendor/{chunk-ZNKZXDUD.js → chunk-QR2ZOVOL.js} +2 -2
- package/dist/vendor/{chunk-ADP5LRUF.js → chunk-R2PFJKSP.js} +1 -1
- package/dist/vendor/{chunk-QGPZPULA.js → chunk-RX5TKFP7.js} +2 -2
- package/dist/vendor/{chunk-AWNTTSHL.js → chunk-S3MN5OXB.js} +2 -2
- package/dist/vendor/{chunk-RQH5DSBA.js → chunk-T5WDTZCE.js} +2 -2
- package/dist/vendor/{chunk-UUQXJRMK.js → chunk-TBMTA5LD.js} +1 -1
- package/dist/vendor/{chunk-NUJQMLJP.js → chunk-TCKM3JXD.js} +1 -1
- package/dist/vendor/{chunk-S6QUQLBV.js → chunk-UXIG7ALP.js} +2 -2
- package/dist/vendor/{chunk-UPIQ52FQ.js → chunk-V577GRCI.js} +18 -6
- package/dist/vendor/{chunk-OGZJACUS.js → chunk-VS6VBUH6.js} +3 -3
- package/dist/vendor/{chunk-KABHKTVG.js → chunk-WGUQHMX2.js} +2 -2
- package/dist/vendor/{chunk-VIWU4EBF.js → chunk-WNS3OER2.js} +2 -2
- package/dist/vendor/{chunk-QHR2RC5M.js → chunk-X6FYP2EH.js} +1 -1
- package/dist/vendor/{chunk-BUKVIAEM.js → chunk-XAVBQY4D.js} +2 -2
- package/dist/vendor/{chunk-RHJ6LV32.js → chunk-XAZH2ZEU.js} +2 -2
- package/dist/vendor/{chunk-V2EB7FHY.js → chunk-XDPP24MG.js} +1 -1
- package/dist/vendor/{chunk-7NMJM44J.js → chunk-XF3WZCMZ.js} +2 -2
- package/dist/vendor/{chunk-PECOFLCU.js → chunk-YJGNV6EV.js} +1 -1
- package/dist/vendor/{chunk-PU7QVYND.js → chunk-ZJEHEPDQ.js} +2 -2
- package/dist/vendor/cjs/node/NodeHttpClient.d.ts +107 -2
- package/dist/vendor/node/NodeAddressResolver.js +2 -2
- package/dist/vendor/node/NodeChildProcessSpawner.js +6 -6
- package/dist/vendor/node/NodeClusterHttp.js +32 -32
- package/dist/vendor/node/NodeClusterSocket.js +15 -15
- package/dist/vendor/node/NodeCrypto.js +2 -2
- package/dist/vendor/node/NodeDatagramSocket.js +2 -2
- package/dist/vendor/node/NodeDns.js +2 -2
- package/dist/vendor/node/NodeFileSystem.js +3 -3
- package/dist/vendor/node/NodeHttpClient.d.ts +107 -2
- package/dist/vendor/node/NodeHttpClient.js +14 -6
- package/dist/vendor/node/NodeHttpIncomingMessage.js +4 -4
- package/dist/vendor/node/NodeHttpPlatform.js +8 -8
- package/dist/vendor/node/NodeHttpServer.js +26 -26
- package/dist/vendor/node/NodeHttpServerRequest.js +1 -1
- package/dist/vendor/node/NodeMultipart.js +5 -5
- package/dist/vendor/node/NodeMultipartParser.js +1 -1
- package/dist/vendor/node/NodePath.js +2 -2
- package/dist/vendor/node/NodeRedis.js +1 -1
- package/dist/vendor/node/NodeRuntime.js +2 -2
- package/dist/vendor/node/NodeServices.js +17 -17
- package/dist/vendor/node/NodeSink.js +2 -2
- package/dist/vendor/node/NodeSocket.js +2 -2
- package/dist/vendor/node/NodeSocketServer.js +3 -3
- package/dist/vendor/node/NodeStdio.js +4 -4
- package/dist/vendor/node/NodeStream.js +3 -3
- package/dist/vendor/node/NodeTerminal.js +2 -2
- package/dist/vendor/node/NodeWorker.js +1 -1
- package/dist/vendor/node/NodeWorkerRunner.js +1 -1
- package/dist/vendor/node/Undici.js +1 -1
- package/dist/vendor/node/index.js +46 -46
- package/dist/vendor/node-shared/NodeAddressResolver.js +1 -1
- package/dist/vendor/node-shared/NodeChildProcessSpawner.js +5 -5
- package/dist/vendor/node-shared/NodeClusterSocket.js +3 -3
- package/dist/vendor/node-shared/NodeCrypto.js +1 -1
- package/dist/vendor/node-shared/NodeDatagramSocket.js +1 -1
- package/dist/vendor/node-shared/NodeDns.js +1 -1
- package/dist/vendor/node-shared/NodeFileSystem.js +2 -2
- package/dist/vendor/node-shared/NodeHttpCompression.js +1 -1
- package/dist/vendor/node-shared/NodePath.js +1 -1
- package/dist/vendor/node-shared/NodeRuntime.js +1 -1
- package/dist/vendor/node-shared/NodeSink.js +1 -1
- package/dist/vendor/node-shared/NodeSocket.js +1 -1
- package/dist/vendor/node-shared/NodeSocketServer.js +2 -2
- package/dist/vendor/node-shared/NodeStdio.js +3 -3
- package/dist/vendor/node-shared/NodeStream.js +2 -2
- package/dist/vendor/node-shared/NodeTerminal.js +1 -1
- package/dist/vendor/node-shared/index.js +19 -19
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +1 -1
- package/dist/vendor/node-shared/internal/utils.js +1 -1
- package/dist/vendor/platform-bun.js +43 -43
- package/dist/vendor/platform-node-shared.js +19 -19
- package/dist/vendor/platform-node.js +46 -46
- package/docs/README.md +3 -3
- package/docs/api.md +1 -1
- package/docs/installation.md +3 -3
- package/docs/quickstart.md +1 -1
- package/package.json +12 -12
- package/dist/vendor/chunk-CL4EIDIY.js +0 -7
- /package/dist/vendor/{chunk-3WUGYBFU.js → chunk-6QPSLCUZ.js} +0 -0
- /package/dist/vendor/{chunk-ASGOJ3XA.js → chunk-LOB26XOO.js} +0 -0
- /package/dist/vendor/{chunk-RP3EWS4C.js → chunk-XXVMTKX5.js} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__export
|
|
3
3
|
} from "./chunk-MLKGABMK.js";
|
|
4
4
|
|
|
5
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.5_effect@4.0.5_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeWorker.js
|
|
6
6
|
var NodeWorker_exports = {};
|
|
7
7
|
__export(NodeWorker_exports, {
|
|
8
8
|
layer: () => layer,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4O4Z52A2.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./chunk-MLKGABMK.js";
|
|
7
7
|
|
|
8
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
8
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.5_effect@4.0.5_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
9
9
|
var NodeCrypto_exports = {};
|
|
10
10
|
__export(NodeCrypto_exports, {
|
|
11
11
|
layer: () => layer2
|
|
@@ -63,6 +63,34 @@ declare const Dispatcher_base: Context.ServiceClass<Dispatcher, "@effect/platfor
|
|
|
63
63
|
*/
|
|
64
64
|
export declare class Dispatcher extends Dispatcher_base {
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Acquires a new Undici `Agent` dispatcher configured with the supplied
|
|
68
|
+
* options and destroys it when the enclosing scope is finalized.
|
|
69
|
+
*
|
|
70
|
+
* **When to use**
|
|
71
|
+
*
|
|
72
|
+
* Use to control how the Undici client connects, for example to send every
|
|
73
|
+
* request over a unix domain socket or to present a client certificate.
|
|
74
|
+
*
|
|
75
|
+
* **Details**
|
|
76
|
+
*
|
|
77
|
+
* The options are passed to `new Agent(options)`. Connection settings live
|
|
78
|
+
* under `connect`:
|
|
79
|
+
*
|
|
80
|
+
* - `connect: { socketPath }` dials a unix domain socket (or a Windows named
|
|
81
|
+
* pipe) instead of TCP. The request URL still supplies the `Host` header
|
|
82
|
+
* and path, so any origin such as `http://localhost` works.
|
|
83
|
+
* - `connect: { ca, cert, key, servername, rejectUnauthorized }` configures
|
|
84
|
+
* TLS for `https:` origins, including mutual TLS.
|
|
85
|
+
*
|
|
86
|
+
* `makeUndici` sets `headersTimeout` and `bodyTimeout` on every request, so
|
|
87
|
+
* timeouts given here are overridden. Use `Effect.timeout` instead.
|
|
88
|
+
*
|
|
89
|
+
* @stability unstable
|
|
90
|
+
* @category resource management
|
|
91
|
+
* @since 4.0.5
|
|
92
|
+
*/
|
|
93
|
+
export declare const makeDispatcherOptions: (options?: Undici.Agent.Options | undefined) => Effect.Effect<Undici.Dispatcher, never, Scope.Scope>;
|
|
66
94
|
/**
|
|
67
95
|
* Acquires a new Undici `Agent` dispatcher and destroys it when the enclosing
|
|
68
96
|
* scope is finalized.
|
|
@@ -72,6 +100,19 @@ export declare class Dispatcher extends Dispatcher_base {
|
|
|
72
100
|
* @since 4.0.0
|
|
73
101
|
*/
|
|
74
102
|
export declare const makeDispatcher: Effect.Effect<Undici.Dispatcher, never, Scope.Scope>;
|
|
103
|
+
/**
|
|
104
|
+
* Provides the `Dispatcher` service using a scoped Undici `Agent` configured
|
|
105
|
+
* with the supplied options.
|
|
106
|
+
*
|
|
107
|
+
* **Details**
|
|
108
|
+
*
|
|
109
|
+
* See `makeDispatcherOptions` for the unix socket and TLS settings.
|
|
110
|
+
*
|
|
111
|
+
* @stability unstable
|
|
112
|
+
* @category layers
|
|
113
|
+
* @since 4.0.5
|
|
114
|
+
*/
|
|
115
|
+
export declare const layerDispatcherOptions: (options?: Undici.Agent.Options | undefined) => Layer.Layer<Dispatcher>;
|
|
75
116
|
/**
|
|
76
117
|
* Provides the `Dispatcher` service using a scoped Undici `Agent`.
|
|
77
118
|
*
|
|
@@ -126,6 +167,25 @@ export declare const layerUndiciNoDispatcher: Layer.Layer<Client.HttpClient, nev
|
|
|
126
167
|
* @since 4.0.0
|
|
127
168
|
*/
|
|
128
169
|
export declare const layerUndici: Layer.Layer<Client.HttpClient>;
|
|
170
|
+
/**
|
|
171
|
+
* Provides an Undici-backed `HttpClient` together with a scoped Undici
|
|
172
|
+
* `Agent` dispatcher configured with the supplied options.
|
|
173
|
+
*
|
|
174
|
+
* **When to use**
|
|
175
|
+
*
|
|
176
|
+
* Use to send every request over a unix domain socket with
|
|
177
|
+
* `{ connect: { socketPath } }`, or over TLS with a custom CA and client
|
|
178
|
+
* certificate with `{ connect: { ca, cert, key, servername, rejectUnauthorized } }`.
|
|
179
|
+
*
|
|
180
|
+
* **Details**
|
|
181
|
+
*
|
|
182
|
+
* See `makeDispatcherOptions` for how the options are applied.
|
|
183
|
+
*
|
|
184
|
+
* @stability unstable
|
|
185
|
+
* @category layers
|
|
186
|
+
* @since 4.0.5
|
|
187
|
+
*/
|
|
188
|
+
export declare const layerUndiciOptions: (options?: Undici.Agent.Options | undefined) => Layer.Layer<Client.HttpClient>;
|
|
129
189
|
declare const HttpAgent_base: Context.ServiceClass<HttpAgent, "@effect/platform-node/NodeHttpClient/HttpAgent", {
|
|
130
190
|
readonly http: Http.Agent;
|
|
131
191
|
readonly https: Https.Agent;
|
|
@@ -140,6 +200,32 @@ declare const HttpAgent_base: Context.ServiceClass<HttpAgent, "@effect/platform-
|
|
|
140
200
|
*/
|
|
141
201
|
export declare class HttpAgent extends HttpAgent_base {
|
|
142
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Options for the Node `http` and `https` agents created by `makeAgent`.
|
|
205
|
+
*
|
|
206
|
+
* **Details**
|
|
207
|
+
*
|
|
208
|
+
* Extends `https.AgentOptions` with `socketPath`. Node agents merge their
|
|
209
|
+
* options into every request they create, so:
|
|
210
|
+
*
|
|
211
|
+
* - `socketPath` dials a unix domain socket (or a Windows named pipe) instead
|
|
212
|
+
* of TCP. The request URL still supplies the `Host` header and path.
|
|
213
|
+
* - `ca`, `cert`, `key`, `servername` and `rejectUnauthorized` configure TLS
|
|
214
|
+
* for `https:` URLs, including mutual TLS.
|
|
215
|
+
*
|
|
216
|
+
* Both agents receive the same options.
|
|
217
|
+
*
|
|
218
|
+
* @stability unstable
|
|
219
|
+
* @category models
|
|
220
|
+
* @since 4.0.5
|
|
221
|
+
*/
|
|
222
|
+
export interface HttpAgentOptions extends Https.AgentOptions {
|
|
223
|
+
/**
|
|
224
|
+
* Path of a unix domain socket or Windows named pipe to connect through
|
|
225
|
+
* instead of TCP.
|
|
226
|
+
*/
|
|
227
|
+
readonly socketPath?: string | undefined;
|
|
228
|
+
}
|
|
143
229
|
/**
|
|
144
230
|
* Acquires Node `http` and `https` agents with the supplied options and
|
|
145
231
|
* destroys both agents when the enclosing scope is finalized.
|
|
@@ -148,7 +234,7 @@ export declare class HttpAgent extends HttpAgent_base {
|
|
|
148
234
|
* @category resource management
|
|
149
235
|
* @since 4.0.0
|
|
150
236
|
*/
|
|
151
|
-
export declare const makeAgent: (options?:
|
|
237
|
+
export declare const makeAgent: (options?: HttpAgentOptions) => Effect.Effect<HttpAgent["Service"], never, Scope.Scope>;
|
|
152
238
|
/**
|
|
153
239
|
* Provides the `HttpAgent` service using scoped Node `http` and `https`
|
|
154
240
|
* agents configured with the supplied options.
|
|
@@ -157,7 +243,7 @@ export declare const makeAgent: (options?: Https.AgentOptions) => Effect.Effect<
|
|
|
157
243
|
* @category layers
|
|
158
244
|
* @since 4.0.0
|
|
159
245
|
*/
|
|
160
|
-
export declare const layerAgentOptions: (options?:
|
|
246
|
+
export declare const layerAgentOptions: (options?: HttpAgentOptions | undefined) => Layer.Layer<HttpAgent>;
|
|
161
247
|
/**
|
|
162
248
|
* Provides the `HttpAgent` service using default scoped Node `http` and
|
|
163
249
|
* `https` agents.
|
|
@@ -195,4 +281,23 @@ export declare const layerNodeHttpNoAgent: Layer.Layer<Client.HttpClient, never,
|
|
|
195
281
|
* @since 4.0.0
|
|
196
282
|
*/
|
|
197
283
|
export declare const layerNodeHttp: Layer.Layer<Client.HttpClient>;
|
|
284
|
+
/**
|
|
285
|
+
* Provides a node:http-backed `HttpClient` together with scoped Node `http`
|
|
286
|
+
* and `https` agents configured with the supplied options.
|
|
287
|
+
*
|
|
288
|
+
* **When to use**
|
|
289
|
+
*
|
|
290
|
+
* Use to send every request over a unix domain socket with `{ socketPath }`,
|
|
291
|
+
* or over TLS with a custom CA and client certificate with
|
|
292
|
+
* `{ ca, cert, key, servername, rejectUnauthorized }`.
|
|
293
|
+
*
|
|
294
|
+
* **Details**
|
|
295
|
+
*
|
|
296
|
+
* See `HttpAgentOptions` for how the options are applied.
|
|
297
|
+
*
|
|
298
|
+
* @stability unstable
|
|
299
|
+
* @category layers
|
|
300
|
+
* @since 4.0.5
|
|
301
|
+
*/
|
|
302
|
+
export declare const layerNodeHttpOptions: (options?: HttpAgentOptions | undefined) => Layer.Layer<Client.HttpClient>;
|
|
198
303
|
//# sourceMappingURL=NodeHttpClient.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-QLI7T34M.js";
|
|
2
2
|
import {
|
|
3
3
|
flattenCommand,
|
|
4
4
|
layer
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-IXI7RW3A.js";
|
|
6
|
+
import "../chunk-TBMTA5LD.js";
|
|
7
|
+
import "../chunk-T5WDTZCE.js";
|
|
8
|
+
import "../chunk-DX4VFONH.js";
|
|
9
|
+
import "../chunk-3SUO3TTE.js";
|
|
10
10
|
import "../chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
12
12
|
flattenCommand,
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer,
|
|
3
3
|
layerHttpServer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KANNAI65.js";
|
|
5
|
+
import "../chunk-6KYVM2ZC.js";
|
|
6
|
+
import "../chunk-QKYYD3AZ.js";
|
|
7
|
+
import "../chunk-X6FYP2EH.js";
|
|
8
|
+
import "../chunk-DHTPLWAP.js";
|
|
9
|
+
import "../chunk-WGUQHMX2.js";
|
|
10
|
+
import "../chunk-GITB76ZP.js";
|
|
11
|
+
import "../chunk-XF3WZCMZ.js";
|
|
12
|
+
import "../chunk-GMORYZG4.js";
|
|
13
|
+
import "../chunk-KEMBVIRS.js";
|
|
14
|
+
import "../chunk-QLI7T34M.js";
|
|
15
15
|
import {
|
|
16
16
|
layerK8sHttpClient
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-2AP6TO77.js";
|
|
18
|
+
import "../chunk-V577GRCI.js";
|
|
19
|
+
import "../chunk-XAVBQY4D.js";
|
|
20
|
+
import "../chunk-AMAL6TRE.js";
|
|
21
|
+
import "../chunk-WNS3OER2.js";
|
|
22
|
+
import "../chunk-S3MN5OXB.js";
|
|
23
|
+
import "../chunk-ZJEHEPDQ.js";
|
|
24
|
+
import "../chunk-226TYKP6.js";
|
|
25
|
+
import "../chunk-FIPFWLCV.js";
|
|
26
|
+
import "../chunk-PBM2HJOX.js";
|
|
27
|
+
import "../chunk-JTST2Z7N.js";
|
|
28
|
+
import "../chunk-IXI7RW3A.js";
|
|
29
|
+
import "../chunk-TBMTA5LD.js";
|
|
30
|
+
import "../chunk-T5WDTZCE.js";
|
|
31
|
+
import "../chunk-DX4VFONH.js";
|
|
32
|
+
import "../chunk-M2QOSF47.js";
|
|
33
|
+
import "../chunk-UXIG7ALP.js";
|
|
34
|
+
import "../chunk-Q7YXUH7M.js";
|
|
35
|
+
import "../chunk-4O4Z52A2.js";
|
|
36
|
+
import "../chunk-7JOAEKDV.js";
|
|
37
|
+
import "../chunk-3SUO3TTE.js";
|
|
38
38
|
import "../chunk-MLKGABMK.js";
|
|
39
39
|
export {
|
|
40
40
|
layer,
|
|
@@ -2,24 +2,24 @@ import {
|
|
|
2
2
|
layer,
|
|
3
3
|
layerDispatcherK8s,
|
|
4
4
|
layerK8sHttpClient
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-2AP6TO77.js";
|
|
6
|
+
import "../chunk-V577GRCI.js";
|
|
7
|
+
import "../chunk-XAVBQY4D.js";
|
|
8
|
+
import "../chunk-AMAL6TRE.js";
|
|
9
|
+
import "../chunk-WNS3OER2.js";
|
|
10
|
+
import "../chunk-S3MN5OXB.js";
|
|
11
|
+
import "../chunk-ZJEHEPDQ.js";
|
|
12
|
+
import "../chunk-T5WDTZCE.js";
|
|
13
|
+
import "../chunk-DX4VFONH.js";
|
|
14
14
|
import {
|
|
15
15
|
layerClientProtocol,
|
|
16
16
|
layerSocketServer
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-M2QOSF47.js";
|
|
18
|
+
import "../chunk-UXIG7ALP.js";
|
|
19
|
+
import "../chunk-Q7YXUH7M.js";
|
|
20
|
+
import "../chunk-4O4Z52A2.js";
|
|
21
|
+
import "../chunk-7JOAEKDV.js";
|
|
22
|
+
import "../chunk-3SUO3TTE.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
export {
|
|
25
25
|
layer,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WNS3OER2.js";
|
|
4
|
+
import "../chunk-7JOAEKDV.js";
|
|
5
|
+
import "../chunk-3SUO3TTE.js";
|
|
6
6
|
import "../chunk-MLKGABMK.js";
|
|
7
7
|
export {
|
|
8
8
|
layer
|
|
@@ -63,6 +63,34 @@ declare const Dispatcher_base: Context.ServiceClass<Dispatcher, "@effect/platfor
|
|
|
63
63
|
*/
|
|
64
64
|
export declare class Dispatcher extends Dispatcher_base {
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Acquires a new Undici `Agent` dispatcher configured with the supplied
|
|
68
|
+
* options and destroys it when the enclosing scope is finalized.
|
|
69
|
+
*
|
|
70
|
+
* **When to use**
|
|
71
|
+
*
|
|
72
|
+
* Use to control how the Undici client connects, for example to send every
|
|
73
|
+
* request over a unix domain socket or to present a client certificate.
|
|
74
|
+
*
|
|
75
|
+
* **Details**
|
|
76
|
+
*
|
|
77
|
+
* The options are passed to `new Agent(options)`. Connection settings live
|
|
78
|
+
* under `connect`:
|
|
79
|
+
*
|
|
80
|
+
* - `connect: { socketPath }` dials a unix domain socket (or a Windows named
|
|
81
|
+
* pipe) instead of TCP. The request URL still supplies the `Host` header
|
|
82
|
+
* and path, so any origin such as `http://localhost` works.
|
|
83
|
+
* - `connect: { ca, cert, key, servername, rejectUnauthorized }` configures
|
|
84
|
+
* TLS for `https:` origins, including mutual TLS.
|
|
85
|
+
*
|
|
86
|
+
* `makeUndici` sets `headersTimeout` and `bodyTimeout` on every request, so
|
|
87
|
+
* timeouts given here are overridden. Use `Effect.timeout` instead.
|
|
88
|
+
*
|
|
89
|
+
* @stability unstable
|
|
90
|
+
* @category resource management
|
|
91
|
+
* @since 4.0.5
|
|
92
|
+
*/
|
|
93
|
+
export declare const makeDispatcherOptions: (options?: Undici.Agent.Options | undefined) => Effect.Effect<Undici.Dispatcher, never, Scope.Scope>;
|
|
66
94
|
/**
|
|
67
95
|
* Acquires a new Undici `Agent` dispatcher and destroys it when the enclosing
|
|
68
96
|
* scope is finalized.
|
|
@@ -72,6 +100,19 @@ export declare class Dispatcher extends Dispatcher_base {
|
|
|
72
100
|
* @since 4.0.0
|
|
73
101
|
*/
|
|
74
102
|
export declare const makeDispatcher: Effect.Effect<Undici.Dispatcher, never, Scope.Scope>;
|
|
103
|
+
/**
|
|
104
|
+
* Provides the `Dispatcher` service using a scoped Undici `Agent` configured
|
|
105
|
+
* with the supplied options.
|
|
106
|
+
*
|
|
107
|
+
* **Details**
|
|
108
|
+
*
|
|
109
|
+
* See `makeDispatcherOptions` for the unix socket and TLS settings.
|
|
110
|
+
*
|
|
111
|
+
* @stability unstable
|
|
112
|
+
* @category layers
|
|
113
|
+
* @since 4.0.5
|
|
114
|
+
*/
|
|
115
|
+
export declare const layerDispatcherOptions: (options?: Undici.Agent.Options | undefined) => Layer.Layer<Dispatcher>;
|
|
75
116
|
/**
|
|
76
117
|
* Provides the `Dispatcher` service using a scoped Undici `Agent`.
|
|
77
118
|
*
|
|
@@ -126,6 +167,25 @@ export declare const layerUndiciNoDispatcher: Layer.Layer<Client.HttpClient, nev
|
|
|
126
167
|
* @since 4.0.0
|
|
127
168
|
*/
|
|
128
169
|
export declare const layerUndici: Layer.Layer<Client.HttpClient>;
|
|
170
|
+
/**
|
|
171
|
+
* Provides an Undici-backed `HttpClient` together with a scoped Undici
|
|
172
|
+
* `Agent` dispatcher configured with the supplied options.
|
|
173
|
+
*
|
|
174
|
+
* **When to use**
|
|
175
|
+
*
|
|
176
|
+
* Use to send every request over a unix domain socket with
|
|
177
|
+
* `{ connect: { socketPath } }`, or over TLS with a custom CA and client
|
|
178
|
+
* certificate with `{ connect: { ca, cert, key, servername, rejectUnauthorized } }`.
|
|
179
|
+
*
|
|
180
|
+
* **Details**
|
|
181
|
+
*
|
|
182
|
+
* See `makeDispatcherOptions` for how the options are applied.
|
|
183
|
+
*
|
|
184
|
+
* @stability unstable
|
|
185
|
+
* @category layers
|
|
186
|
+
* @since 4.0.5
|
|
187
|
+
*/
|
|
188
|
+
export declare const layerUndiciOptions: (options?: Undici.Agent.Options | undefined) => Layer.Layer<Client.HttpClient>;
|
|
129
189
|
declare const HttpAgent_base: Context.ServiceClass<HttpAgent, "@effect/platform-node/NodeHttpClient/HttpAgent", {
|
|
130
190
|
readonly http: Http.Agent;
|
|
131
191
|
readonly https: Https.Agent;
|
|
@@ -140,6 +200,32 @@ declare const HttpAgent_base: Context.ServiceClass<HttpAgent, "@effect/platform-
|
|
|
140
200
|
*/
|
|
141
201
|
export declare class HttpAgent extends HttpAgent_base {
|
|
142
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Options for the Node `http` and `https` agents created by `makeAgent`.
|
|
205
|
+
*
|
|
206
|
+
* **Details**
|
|
207
|
+
*
|
|
208
|
+
* Extends `https.AgentOptions` with `socketPath`. Node agents merge their
|
|
209
|
+
* options into every request they create, so:
|
|
210
|
+
*
|
|
211
|
+
* - `socketPath` dials a unix domain socket (or a Windows named pipe) instead
|
|
212
|
+
* of TCP. The request URL still supplies the `Host` header and path.
|
|
213
|
+
* - `ca`, `cert`, `key`, `servername` and `rejectUnauthorized` configure TLS
|
|
214
|
+
* for `https:` URLs, including mutual TLS.
|
|
215
|
+
*
|
|
216
|
+
* Both agents receive the same options.
|
|
217
|
+
*
|
|
218
|
+
* @stability unstable
|
|
219
|
+
* @category models
|
|
220
|
+
* @since 4.0.5
|
|
221
|
+
*/
|
|
222
|
+
export interface HttpAgentOptions extends Https.AgentOptions {
|
|
223
|
+
/**
|
|
224
|
+
* Path of a unix domain socket or Windows named pipe to connect through
|
|
225
|
+
* instead of TCP.
|
|
226
|
+
*/
|
|
227
|
+
readonly socketPath?: string | undefined;
|
|
228
|
+
}
|
|
143
229
|
/**
|
|
144
230
|
* Acquires Node `http` and `https` agents with the supplied options and
|
|
145
231
|
* destroys both agents when the enclosing scope is finalized.
|
|
@@ -148,7 +234,7 @@ export declare class HttpAgent extends HttpAgent_base {
|
|
|
148
234
|
* @category resource management
|
|
149
235
|
* @since 4.0.0
|
|
150
236
|
*/
|
|
151
|
-
export declare const makeAgent: (options?:
|
|
237
|
+
export declare const makeAgent: (options?: HttpAgentOptions) => Effect.Effect<HttpAgent["Service"], never, Scope.Scope>;
|
|
152
238
|
/**
|
|
153
239
|
* Provides the `HttpAgent` service using scoped Node `http` and `https`
|
|
154
240
|
* agents configured with the supplied options.
|
|
@@ -157,7 +243,7 @@ export declare const makeAgent: (options?: Https.AgentOptions) => Effect.Effect<
|
|
|
157
243
|
* @category layers
|
|
158
244
|
* @since 4.0.0
|
|
159
245
|
*/
|
|
160
|
-
export declare const layerAgentOptions: (options?:
|
|
246
|
+
export declare const layerAgentOptions: (options?: HttpAgentOptions | undefined) => Layer.Layer<HttpAgent>;
|
|
161
247
|
/**
|
|
162
248
|
* Provides the `HttpAgent` service using default scoped Node `http` and
|
|
163
249
|
* `https` agents.
|
|
@@ -195,4 +281,23 @@ export declare const layerNodeHttpNoAgent: Layer.Layer<Client.HttpClient, never,
|
|
|
195
281
|
* @since 4.0.0
|
|
196
282
|
*/
|
|
197
283
|
export declare const layerNodeHttp: Layer.Layer<Client.HttpClient>;
|
|
284
|
+
/**
|
|
285
|
+
* Provides a node:http-backed `HttpClient` together with scoped Node `http`
|
|
286
|
+
* and `https` agents configured with the supplied options.
|
|
287
|
+
*
|
|
288
|
+
* **When to use**
|
|
289
|
+
*
|
|
290
|
+
* Use to send every request over a unix domain socket with `{ socketPath }`,
|
|
291
|
+
* or over TLS with a custom CA and client certificate with
|
|
292
|
+
* `{ ca, cert, key, servername, rejectUnauthorized }`.
|
|
293
|
+
*
|
|
294
|
+
* **Details**
|
|
295
|
+
*
|
|
296
|
+
* See `HttpAgentOptions` for how the options are applied.
|
|
297
|
+
*
|
|
298
|
+
* @stability unstable
|
|
299
|
+
* @category layers
|
|
300
|
+
* @since 4.0.5
|
|
301
|
+
*/
|
|
302
|
+
export declare const layerNodeHttpOptions: (options?: HttpAgentOptions | undefined) => Layer.Layer<Client.HttpClient>;
|
|
198
303
|
//# sourceMappingURL=NodeHttpClient.d.ts.map
|
|
@@ -9,20 +9,24 @@ import {
|
|
|
9
9
|
layerAgent,
|
|
10
10
|
layerAgentOptions,
|
|
11
11
|
layerDispatcher,
|
|
12
|
+
layerDispatcherOptions,
|
|
12
13
|
layerNodeHttp,
|
|
13
14
|
layerNodeHttpNoAgent,
|
|
15
|
+
layerNodeHttpOptions,
|
|
14
16
|
layerUndici,
|
|
15
17
|
layerUndiciNoDispatcher,
|
|
18
|
+
layerUndiciOptions,
|
|
16
19
|
makeAgent,
|
|
17
20
|
makeDispatcher,
|
|
21
|
+
makeDispatcherOptions,
|
|
18
22
|
makeNodeHttp,
|
|
19
23
|
makeUndici
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-V577GRCI.js";
|
|
25
|
+
import "../chunk-XAVBQY4D.js";
|
|
26
|
+
import "../chunk-AMAL6TRE.js";
|
|
27
|
+
import "../chunk-S3MN5OXB.js";
|
|
28
|
+
import "../chunk-T5WDTZCE.js";
|
|
29
|
+
import "../chunk-DX4VFONH.js";
|
|
26
30
|
import "../chunk-MLKGABMK.js";
|
|
27
31
|
export {
|
|
28
32
|
Dispatcher,
|
|
@@ -34,13 +38,17 @@ export {
|
|
|
34
38
|
layerAgent,
|
|
35
39
|
layerAgentOptions,
|
|
36
40
|
layerDispatcher,
|
|
41
|
+
layerDispatcherOptions,
|
|
37
42
|
layer as layerFetch,
|
|
38
43
|
layerNodeHttp,
|
|
39
44
|
layerNodeHttpNoAgent,
|
|
45
|
+
layerNodeHttpOptions,
|
|
40
46
|
layerUndici,
|
|
41
47
|
layerUndiciNoDispatcher,
|
|
48
|
+
layerUndiciOptions,
|
|
42
49
|
makeAgent,
|
|
43
50
|
makeDispatcher,
|
|
51
|
+
makeDispatcherOptions,
|
|
44
52
|
makeNodeHttp,
|
|
45
53
|
makeUndici
|
|
46
54
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NodeHttpIncomingMessage
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-AMAL6TRE.js";
|
|
4
|
+
import "../chunk-S3MN5OXB.js";
|
|
5
|
+
import "../chunk-T5WDTZCE.js";
|
|
6
|
+
import "../chunk-DX4VFONH.js";
|
|
7
7
|
import "../chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
NodeHttpIncomingMessage
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer,
|
|
3
3
|
make
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KEMBVIRS.js";
|
|
5
|
+
import "../chunk-WNS3OER2.js";
|
|
6
|
+
import "../chunk-S3MN5OXB.js";
|
|
7
|
+
import "../chunk-PBM2HJOX.js";
|
|
8
|
+
import "../chunk-T5WDTZCE.js";
|
|
9
|
+
import "../chunk-DX4VFONH.js";
|
|
10
|
+
import "../chunk-7JOAEKDV.js";
|
|
11
|
+
import "../chunk-3SUO3TTE.js";
|
|
12
12
|
import "../chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
layer,
|