@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.
Files changed (160) hide show
  1. package/README.md +5 -5
  2. package/dist/vendor/adapters.json +246 -246
  3. package/dist/vendor/bun/BunAddressResolver.js +2 -2
  4. package/dist/vendor/bun/BunChildProcessSpawner.js +6 -6
  5. package/dist/vendor/bun/BunClusterHttp.js +28 -28
  6. package/dist/vendor/bun/BunClusterSocket.js +9 -9
  7. package/dist/vendor/bun/BunCrypto.js +2 -2
  8. package/dist/vendor/bun/BunDatagramSocket.js +1 -1
  9. package/dist/vendor/bun/BunDns.js +2 -2
  10. package/dist/vendor/bun/BunFileSystem.js +3 -3
  11. package/dist/vendor/bun/BunHttpClient.js +1 -1
  12. package/dist/vendor/bun/BunHttpPlatform.js +5 -5
  13. package/dist/vendor/bun/BunHttpServer.js +22 -22
  14. package/dist/vendor/bun/BunHttpServerRequest.js +1 -1
  15. package/dist/vendor/bun/BunMultipart.js +4 -4
  16. package/dist/vendor/bun/BunPath.js +2 -2
  17. package/dist/vendor/bun/BunRedis.js +1 -1
  18. package/dist/vendor/bun/BunRuntime.js +2 -2
  19. package/dist/vendor/bun/BunServices.js +17 -17
  20. package/dist/vendor/bun/BunSink.js +2 -2
  21. package/dist/vendor/bun/BunSocket.js +2 -2
  22. package/dist/vendor/bun/BunSocketServer.js +3 -3
  23. package/dist/vendor/bun/BunStdio.js +4 -4
  24. package/dist/vendor/bun/BunStream.js +3 -3
  25. package/dist/vendor/bun/BunTerminal.js +2 -2
  26. package/dist/vendor/bun/BunWorker.js +1 -1
  27. package/dist/vendor/bun/BunWorkerRunner.js +1 -1
  28. package/dist/vendor/bun/index.js +43 -43
  29. package/dist/vendor/{chunk-KFDBU6RR.js → chunk-226TYKP6.js} +3 -3
  30. package/dist/vendor/{chunk-GJN7MEBF.js → chunk-2ADOI6ZN.js} +2 -2
  31. package/dist/vendor/{chunk-A7AY2JP7.js → chunk-2AP6TO77.js} +5 -5
  32. package/dist/vendor/{chunk-YDY5P7GL.js → chunk-2LGUVSNM.js} +2 -2
  33. package/dist/vendor/{chunk-2ZAGBWTH.js → chunk-3SUO3TTE.js} +1 -1
  34. package/dist/vendor/{chunk-HDV6VIRM.js → chunk-4O4Z52A2.js} +1 -1
  35. package/dist/vendor/{chunk-LNWGIDIG.js → chunk-4YK2MHSO.js} +2 -2
  36. package/dist/vendor/{chunk-F4V5TRY7.js → chunk-6B775XB2.js} +1 -1
  37. package/dist/vendor/{chunk-Y7V6ISZS.js → chunk-6KYVM2ZC.js} +9 -8
  38. package/dist/vendor/{chunk-FFD6R5JZ.js → chunk-6R444NFO.js} +1 -1
  39. package/dist/vendor/{chunk-BY3SDXID.js → chunk-7JOAEKDV.js} +11 -9
  40. package/dist/vendor/{chunk-ZS3VW5QR.js → chunk-7VJC3PHX.js} +1 -1
  41. package/dist/vendor/{chunk-JOQDB2HC.js → chunk-7ZKNPDTP.js} +2 -2
  42. package/dist/vendor/{chunk-5ET7NHI7.js → chunk-ABPRHPJP.js} +1 -1
  43. package/dist/vendor/{chunk-D2ZL4PLZ.js → chunk-AMAL6TRE.js} +2 -2
  44. package/dist/vendor/{chunk-RKVXYKHJ.js → chunk-AW6WQVI7.js} +1 -1
  45. package/dist/vendor/{chunk-UUYTTEDH.js → chunk-BHV44Z6K.js} +1 -1
  46. package/dist/vendor/{chunk-XACFQJY7.js → chunk-BIR74JJK.js} +1 -1
  47. package/dist/vendor/chunk-BTXZUHUI.js +7 -0
  48. package/dist/vendor/{chunk-SD4X5NGU.js → chunk-BVV46N3V.js} +6 -6
  49. package/dist/vendor/{chunk-F772LLZ5.js → chunk-C7UMBJO6.js} +2 -2
  50. package/dist/vendor/{chunk-KHPN5DWT.js → chunk-CN4K2U6M.js} +2 -2
  51. package/dist/vendor/{chunk-ZUUCLHBP.js → chunk-D6XNHJPW.js} +2 -2
  52. package/dist/vendor/{chunk-SCXQLSNW.js → chunk-DHTPLWAP.js} +7 -7
  53. package/dist/vendor/{chunk-N6TK35N5.js → chunk-DWSNOBD4.js} +2 -2
  54. package/dist/vendor/{chunk-A7UXCEJA.js → chunk-DX4VFONH.js} +1 -1
  55. package/dist/vendor/{chunk-PCEVZYXO.js → chunk-EIO7BKW3.js} +4 -4
  56. package/dist/vendor/{chunk-MUEED3C3.js → chunk-FIPFWLCV.js} +1 -1
  57. package/dist/vendor/{chunk-D4HEMNGU.js → chunk-GITB76ZP.js} +2 -2
  58. package/dist/vendor/{chunk-6L2NJEOV.js → chunk-GMORYZG4.js} +2 -2
  59. package/dist/vendor/{chunk-X4YPHWAE.js → chunk-HXGVOKHF.js} +2 -2
  60. package/dist/vendor/{chunk-RQQ5TSCD.js → chunk-HYPKWCVW.js} +1 -1
  61. package/dist/vendor/{chunk-IHV7Z4SW.js → chunk-IJON5WTO.js} +7 -7
  62. package/dist/vendor/{chunk-NQO6V4KI.js → chunk-IXI7RW3A.js} +5 -5
  63. package/dist/vendor/{chunk-4WIQ2XN7.js → chunk-J43O5GFH.js} +2 -2
  64. package/dist/vendor/{chunk-OF3N2FN4.js → chunk-JTST2Z7N.js} +8 -11
  65. package/dist/vendor/{chunk-T5FQGISI.js → chunk-JYD572EF.js} +2 -2
  66. package/dist/vendor/{chunk-UFWLKG4I.js → chunk-K6GWBGJM.js} +2 -2
  67. package/dist/vendor/{chunk-72X6VEVD.js → chunk-KANNAI65.js} +6 -6
  68. package/dist/vendor/{chunk-T332WJRS.js → chunk-KEMBVIRS.js} +4 -4
  69. package/dist/vendor/{chunk-6FSJ2PMW.js → chunk-M2QOSF47.js} +3 -3
  70. package/dist/vendor/{chunk-G4HOH7GK.js → chunk-NGGMPIWR.js} +6 -6
  71. package/dist/vendor/{chunk-WPZDL2D7.js → chunk-NNTJGFLB.js} +1 -1
  72. package/dist/vendor/{chunk-REFJNBQR.js → chunk-NU53DHQR.js} +2 -2
  73. package/dist/vendor/{chunk-R2YON4A6.js → chunk-OAY4MA3I.js} +2 -2
  74. package/dist/vendor/{chunk-IWSDM4CG.js → chunk-OV2KKGBA.js} +2 -2
  75. package/dist/vendor/{chunk-3SL3HKQA.js → chunk-PBM2HJOX.js} +1 -1
  76. package/dist/vendor/{chunk-TBPDCAMH.js → chunk-Q5UCOQNO.js} +2 -2
  77. package/dist/vendor/{chunk-C3PGUWW5.js → chunk-Q7YXUH7M.js} +1 -1
  78. package/dist/vendor/{chunk-ZVJCBTJG.js → chunk-QKYYD3AZ.js} +3 -3
  79. package/dist/vendor/{chunk-R327POEZ.js → chunk-QLI7T34M.js} +2 -2
  80. package/dist/vendor/{chunk-ZNKZXDUD.js → chunk-QR2ZOVOL.js} +2 -2
  81. package/dist/vendor/{chunk-ADP5LRUF.js → chunk-R2PFJKSP.js} +1 -1
  82. package/dist/vendor/{chunk-QGPZPULA.js → chunk-RX5TKFP7.js} +2 -2
  83. package/dist/vendor/{chunk-AWNTTSHL.js → chunk-S3MN5OXB.js} +2 -2
  84. package/dist/vendor/{chunk-RQH5DSBA.js → chunk-T5WDTZCE.js} +2 -2
  85. package/dist/vendor/{chunk-UUQXJRMK.js → chunk-TBMTA5LD.js} +1 -1
  86. package/dist/vendor/{chunk-NUJQMLJP.js → chunk-TCKM3JXD.js} +1 -1
  87. package/dist/vendor/{chunk-S6QUQLBV.js → chunk-UXIG7ALP.js} +2 -2
  88. package/dist/vendor/{chunk-UPIQ52FQ.js → chunk-V577GRCI.js} +18 -6
  89. package/dist/vendor/{chunk-OGZJACUS.js → chunk-VS6VBUH6.js} +3 -3
  90. package/dist/vendor/{chunk-KABHKTVG.js → chunk-WGUQHMX2.js} +2 -2
  91. package/dist/vendor/{chunk-VIWU4EBF.js → chunk-WNS3OER2.js} +2 -2
  92. package/dist/vendor/{chunk-QHR2RC5M.js → chunk-X6FYP2EH.js} +1 -1
  93. package/dist/vendor/{chunk-BUKVIAEM.js → chunk-XAVBQY4D.js} +2 -2
  94. package/dist/vendor/{chunk-RHJ6LV32.js → chunk-XAZH2ZEU.js} +2 -2
  95. package/dist/vendor/{chunk-V2EB7FHY.js → chunk-XDPP24MG.js} +1 -1
  96. package/dist/vendor/{chunk-7NMJM44J.js → chunk-XF3WZCMZ.js} +2 -2
  97. package/dist/vendor/{chunk-PECOFLCU.js → chunk-YJGNV6EV.js} +1 -1
  98. package/dist/vendor/{chunk-PU7QVYND.js → chunk-ZJEHEPDQ.js} +2 -2
  99. package/dist/vendor/cjs/node/NodeHttpClient.d.ts +107 -2
  100. package/dist/vendor/node/NodeAddressResolver.js +2 -2
  101. package/dist/vendor/node/NodeChildProcessSpawner.js +6 -6
  102. package/dist/vendor/node/NodeClusterHttp.js +32 -32
  103. package/dist/vendor/node/NodeClusterSocket.js +15 -15
  104. package/dist/vendor/node/NodeCrypto.js +2 -2
  105. package/dist/vendor/node/NodeDatagramSocket.js +2 -2
  106. package/dist/vendor/node/NodeDns.js +2 -2
  107. package/dist/vendor/node/NodeFileSystem.js +3 -3
  108. package/dist/vendor/node/NodeHttpClient.d.ts +107 -2
  109. package/dist/vendor/node/NodeHttpClient.js +14 -6
  110. package/dist/vendor/node/NodeHttpIncomingMessage.js +4 -4
  111. package/dist/vendor/node/NodeHttpPlatform.js +8 -8
  112. package/dist/vendor/node/NodeHttpServer.js +26 -26
  113. package/dist/vendor/node/NodeHttpServerRequest.js +1 -1
  114. package/dist/vendor/node/NodeMultipart.js +5 -5
  115. package/dist/vendor/node/NodeMultipartParser.js +1 -1
  116. package/dist/vendor/node/NodePath.js +2 -2
  117. package/dist/vendor/node/NodeRedis.js +1 -1
  118. package/dist/vendor/node/NodeRuntime.js +2 -2
  119. package/dist/vendor/node/NodeServices.js +17 -17
  120. package/dist/vendor/node/NodeSink.js +2 -2
  121. package/dist/vendor/node/NodeSocket.js +2 -2
  122. package/dist/vendor/node/NodeSocketServer.js +3 -3
  123. package/dist/vendor/node/NodeStdio.js +4 -4
  124. package/dist/vendor/node/NodeStream.js +3 -3
  125. package/dist/vendor/node/NodeTerminal.js +2 -2
  126. package/dist/vendor/node/NodeWorker.js +1 -1
  127. package/dist/vendor/node/NodeWorkerRunner.js +1 -1
  128. package/dist/vendor/node/Undici.js +1 -1
  129. package/dist/vendor/node/index.js +46 -46
  130. package/dist/vendor/node-shared/NodeAddressResolver.js +1 -1
  131. package/dist/vendor/node-shared/NodeChildProcessSpawner.js +5 -5
  132. package/dist/vendor/node-shared/NodeClusterSocket.js +3 -3
  133. package/dist/vendor/node-shared/NodeCrypto.js +1 -1
  134. package/dist/vendor/node-shared/NodeDatagramSocket.js +1 -1
  135. package/dist/vendor/node-shared/NodeDns.js +1 -1
  136. package/dist/vendor/node-shared/NodeFileSystem.js +2 -2
  137. package/dist/vendor/node-shared/NodeHttpCompression.js +1 -1
  138. package/dist/vendor/node-shared/NodePath.js +1 -1
  139. package/dist/vendor/node-shared/NodeRuntime.js +1 -1
  140. package/dist/vendor/node-shared/NodeSink.js +1 -1
  141. package/dist/vendor/node-shared/NodeSocket.js +1 -1
  142. package/dist/vendor/node-shared/NodeSocketServer.js +2 -2
  143. package/dist/vendor/node-shared/NodeStdio.js +3 -3
  144. package/dist/vendor/node-shared/NodeStream.js +2 -2
  145. package/dist/vendor/node-shared/NodeTerminal.js +1 -1
  146. package/dist/vendor/node-shared/index.js +19 -19
  147. package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +1 -1
  148. package/dist/vendor/node-shared/internal/utils.js +1 -1
  149. package/dist/vendor/platform-bun.js +43 -43
  150. package/dist/vendor/platform-node-shared.js +19 -19
  151. package/dist/vendor/platform-node.js +46 -46
  152. package/docs/README.md +3 -3
  153. package/docs/api.md +1 -1
  154. package/docs/installation.md +3 -3
  155. package/docs/quickstart.md +1 -1
  156. package/package.json +12 -12
  157. package/dist/vendor/chunk-CL4EIDIY.js +0 -7
  158. /package/dist/vendor/{chunk-3WUGYBFU.js → chunk-6QPSLCUZ.js} +0 -0
  159. /package/dist/vendor/{chunk-ASGOJ3XA.js → chunk-LOB26XOO.js} +0 -0
  160. /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.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeWorker.js
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-HDV6VIRM.js";
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.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeCrypto.js
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?: Https.AgentOptions) => Effect.Effect<HttpAgent["Service"], never, Scope.Scope>;
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?: Https.AgentOptions | undefined) => Layer.Layer<HttpAgent>;
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,7 +1,7 @@
1
- import "../chunk-IWSDM4CG.js";
1
+ import "../chunk-OV2KKGBA.js";
2
2
  import {
3
3
  layer
4
- } from "../chunk-RKVXYKHJ.js";
4
+ } from "../chunk-AW6WQVI7.js";
5
5
  import "../chunk-MLKGABMK.js";
6
6
  export {
7
7
  layer
@@ -1,12 +1,12 @@
1
- import "../chunk-R327POEZ.js";
1
+ import "../chunk-QLI7T34M.js";
2
2
  import {
3
3
  flattenCommand,
4
4
  layer
5
- } from "../chunk-NQO6V4KI.js";
6
- import "../chunk-UUQXJRMK.js";
7
- import "../chunk-RQH5DSBA.js";
8
- import "../chunk-A7UXCEJA.js";
9
- import "../chunk-2ZAGBWTH.js";
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-72X6VEVD.js";
5
- import "../chunk-Y7V6ISZS.js";
6
- import "../chunk-ZVJCBTJG.js";
7
- import "../chunk-QHR2RC5M.js";
8
- import "../chunk-SCXQLSNW.js";
9
- import "../chunk-KABHKTVG.js";
10
- import "../chunk-D4HEMNGU.js";
11
- import "../chunk-7NMJM44J.js";
12
- import "../chunk-6L2NJEOV.js";
13
- import "../chunk-T332WJRS.js";
14
- import "../chunk-R327POEZ.js";
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-A7AY2JP7.js";
18
- import "../chunk-UPIQ52FQ.js";
19
- import "../chunk-BUKVIAEM.js";
20
- import "../chunk-D2ZL4PLZ.js";
21
- import "../chunk-VIWU4EBF.js";
22
- import "../chunk-AWNTTSHL.js";
23
- import "../chunk-PU7QVYND.js";
24
- import "../chunk-KFDBU6RR.js";
25
- import "../chunk-MUEED3C3.js";
26
- import "../chunk-3SL3HKQA.js";
27
- import "../chunk-OF3N2FN4.js";
28
- import "../chunk-NQO6V4KI.js";
29
- import "../chunk-UUQXJRMK.js";
30
- import "../chunk-RQH5DSBA.js";
31
- import "../chunk-A7UXCEJA.js";
32
- import "../chunk-6FSJ2PMW.js";
33
- import "../chunk-S6QUQLBV.js";
34
- import "../chunk-C3PGUWW5.js";
35
- import "../chunk-HDV6VIRM.js";
36
- import "../chunk-BY3SDXID.js";
37
- import "../chunk-2ZAGBWTH.js";
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-A7AY2JP7.js";
6
- import "../chunk-UPIQ52FQ.js";
7
- import "../chunk-BUKVIAEM.js";
8
- import "../chunk-D2ZL4PLZ.js";
9
- import "../chunk-VIWU4EBF.js";
10
- import "../chunk-AWNTTSHL.js";
11
- import "../chunk-PU7QVYND.js";
12
- import "../chunk-RQH5DSBA.js";
13
- import "../chunk-A7UXCEJA.js";
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-6FSJ2PMW.js";
18
- import "../chunk-S6QUQLBV.js";
19
- import "../chunk-C3PGUWW5.js";
20
- import "../chunk-HDV6VIRM.js";
21
- import "../chunk-BY3SDXID.js";
22
- import "../chunk-2ZAGBWTH.js";
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,7 +1,7 @@
1
1
  import {
2
2
  layer
3
- } from "../chunk-PU7QVYND.js";
4
- import "../chunk-HDV6VIRM.js";
3
+ } from "../chunk-ZJEHEPDQ.js";
4
+ import "../chunk-4O4Z52A2.js";
5
5
  import "../chunk-MLKGABMK.js";
6
6
  export {
7
7
  layer
@@ -1,9 +1,9 @@
1
- import "../chunk-LNWGIDIG.js";
1
+ import "../chunk-4YK2MHSO.js";
2
2
  import {
3
3
  fromSocket,
4
4
  layer,
5
5
  make
6
- } from "../chunk-NUJQMLJP.js";
6
+ } from "../chunk-TCKM3JXD.js";
7
7
  import "../chunk-MLKGABMK.js";
8
8
  export {
9
9
  fromSocket,
@@ -1,9 +1,9 @@
1
- import "../chunk-YDY5P7GL.js";
1
+ import "../chunk-2LGUVSNM.js";
2
2
  import {
3
3
  layer,
4
4
  layerConfig,
5
5
  make
6
- } from "../chunk-ADP5LRUF.js";
6
+ } from "../chunk-R2PFJKSP.js";
7
7
  import "../chunk-MLKGABMK.js";
8
8
  export {
9
9
  layer,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  layer
3
- } from "../chunk-VIWU4EBF.js";
4
- import "../chunk-BY3SDXID.js";
5
- import "../chunk-2ZAGBWTH.js";
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?: Https.AgentOptions) => Effect.Effect<HttpAgent["Service"], never, Scope.Scope>;
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?: Https.AgentOptions | undefined) => Layer.Layer<HttpAgent>;
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-UPIQ52FQ.js";
21
- import "../chunk-BUKVIAEM.js";
22
- import "../chunk-D2ZL4PLZ.js";
23
- import "../chunk-AWNTTSHL.js";
24
- import "../chunk-RQH5DSBA.js";
25
- import "../chunk-A7UXCEJA.js";
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-D2ZL4PLZ.js";
4
- import "../chunk-AWNTTSHL.js";
5
- import "../chunk-RQH5DSBA.js";
6
- import "../chunk-A7UXCEJA.js";
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-T332WJRS.js";
5
- import "../chunk-VIWU4EBF.js";
6
- import "../chunk-AWNTTSHL.js";
7
- import "../chunk-3SL3HKQA.js";
8
- import "../chunk-RQH5DSBA.js";
9
- import "../chunk-A7UXCEJA.js";
10
- import "../chunk-BY3SDXID.js";
11
- import "../chunk-2ZAGBWTH.js";
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,