@smthrs/platform-node 1.0.0-rc.5 → 1.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/win32-x64/smithers-jj-export.exe +0 -0
- package/dist/cjs/EgressHttpClient.d.ts +1 -1
- package/dist/cjs/EgressHttpClient.d.ts.map +1 -1
- package/dist/cjs/EgressHttpClient.js +4 -4
- package/dist/cjs/EgressHttpClient.js.map +2 -2
- package/dist/cjs/NodeHost.d.ts +2 -2
- package/dist/cjs/NodeHost.d.ts.map +1 -1
- package/dist/cjs/NodeHost.js.map +2 -2
- package/dist/cjs/ProcessConfinement.js +1 -1
- package/dist/cjs/ProcessConfinement.js.map +2 -2
- package/dist/cjs/ProcessReaper.d.ts +1 -1
- package/dist/cjs/ProcessReaper.d.ts.map +1 -1
- package/dist/cjs/ProcessReaper.js +1 -1
- package/dist/cjs/ProcessReaper.js.map +1 -1
- package/dist/cjs/ScopedProcess.d.ts +2 -2
- package/dist/cjs/ScopedProcess.d.ts.map +1 -1
- package/dist/cjs/ScopedProcess.js +1 -1
- package/dist/cjs/ScopedProcess.js.map +2 -2
- package/dist/cjs/internal/PipedProcess.d.ts +2 -2
- package/dist/cjs/internal/PipedProcess.d.ts.map +1 -1
- package/dist/cjs/internal/PipedProcess.js +2 -2
- package/dist/cjs/internal/PipedProcess.js.map +2 -2
- package/dist/cjs/internal/ProcessCleanup.d.ts +1 -1
- package/dist/cjs/internal/ProcessCleanup.d.ts.map +1 -1
- package/dist/cjs/internal/ProcessCleanup.js.map +1 -1
- package/dist/cjs/internal/ProcessSupervisor.d.ts +2 -2
- package/dist/cjs/internal/ProcessSupervisor.d.ts.map +1 -1
- package/dist/cjs/internal/ProcessSupervisor.js +2 -2
- package/dist/cjs/internal/ProcessSupervisor.js.map +2 -2
- package/dist/esm/EgressHttpClient.d.ts +1 -1
- package/dist/esm/EgressHttpClient.d.ts.map +1 -1
- package/dist/esm/EgressHttpClient.js +4 -4
- package/dist/esm/EgressHttpClient.js.map +1 -1
- package/dist/esm/NodeHost.d.ts +2 -2
- package/dist/esm/NodeHost.d.ts.map +1 -1
- package/dist/esm/NodeHost.js.map +1 -1
- package/dist/esm/ProcessConfinement.js +1 -1
- package/dist/esm/ProcessConfinement.js.map +1 -1
- package/dist/esm/ProcessReaper.d.ts +1 -1
- package/dist/esm/ProcessReaper.d.ts.map +1 -1
- package/dist/esm/ProcessReaper.js +1 -1
- package/dist/esm/ProcessReaper.js.map +1 -1
- package/dist/esm/ScopedProcess.d.ts +2 -2
- package/dist/esm/ScopedProcess.d.ts.map +1 -1
- package/dist/esm/ScopedProcess.js +1 -1
- package/dist/esm/ScopedProcess.js.map +1 -1
- package/dist/esm/internal/PipedProcess.d.ts +2 -2
- package/dist/esm/internal/PipedProcess.d.ts.map +1 -1
- package/dist/esm/internal/PipedProcess.js +2 -2
- package/dist/esm/internal/PipedProcess.js.map +1 -1
- package/dist/esm/internal/ProcessCleanup.d.ts +1 -1
- package/dist/esm/internal/ProcessCleanup.d.ts.map +1 -1
- package/dist/esm/internal/ProcessCleanup.js.map +1 -1
- package/dist/esm/internal/ProcessSupervisor.d.ts +2 -2
- package/dist/esm/internal/ProcessSupervisor.d.ts.map +1 -1
- package/dist/esm/internal/ProcessSupervisor.js +2 -2
- package/dist/esm/internal/ProcessSupervisor.js.map +1 -1
- package/dist/vendor/adapters.json +622 -382
- package/dist/vendor/{chunk-42QKY6T6.js → chunk-2ZAGBWTH.js} +1 -1
- package/dist/vendor/{chunk-3GR5VZ2M.js → chunk-3SL3HKQA.js} +3 -3
- package/dist/vendor/{chunk-VANKHF46.js → chunk-423HXGL6.js} +55 -23
- package/dist/vendor/{chunk-6ME2W7TF.js → chunk-4WIQ2XN7.js} +2 -2
- package/dist/vendor/{chunk-Y35ZAO5U.js → chunk-6FSJ2PMW.js} +8 -8
- package/dist/vendor/{chunk-5ZMHBXIK.js → chunk-6L2NJEOV.js} +11 -4
- package/dist/vendor/{chunk-TFIKFFSC.js → chunk-7NMJM44J.js} +2 -2
- package/dist/vendor/{chunk-OXNGN5H7.js → chunk-A7UXCEJA.js} +1 -1
- package/dist/vendor/chunk-ADP5LRUF.js +274 -0
- package/dist/vendor/{chunk-DS7GF46S.js → chunk-AWNTTSHL.js} +2 -2
- package/dist/vendor/{chunk-IIJ52ZU6.js → chunk-BUKVIAEM.js} +2 -2
- package/dist/vendor/{chunk-BKTBUBQY.js → chunk-BY3SDXID.js} +71 -7
- package/dist/vendor/{chunk-JJ24ARBQ.js → chunk-C3PGUWW5.js} +53 -33
- package/dist/vendor/{chunk-J7A4CZDO.js → chunk-D2ZL4PLZ.js} +8 -7
- package/dist/vendor/{chunk-XDKNKFBW.js → chunk-D4HEMNGU.js} +2 -2
- package/dist/vendor/{chunk-DVOAHXPG.js → chunk-FFD6R5JZ.js} +3 -3
- package/dist/vendor/{chunk-UFH5UUZK.js → chunk-HDV6VIRM.js} +1 -1
- package/dist/vendor/chunk-IWSDM4CG.js +16 -0
- package/dist/vendor/{chunk-KUUXSID7.js → chunk-KABHKTVG.js} +2 -2
- package/dist/vendor/{chunk-B3FZ67QU.js → chunk-KFDBU6RR.js} +4 -3
- package/dist/vendor/chunk-LNWGIDIG.js +20 -0
- package/dist/vendor/{chunk-TXKLEBBL.js → chunk-MUEED3C3.js} +3 -2
- package/dist/vendor/{chunk-EZWY45HP.js → chunk-N6TK35N5.js} +2 -2
- package/dist/vendor/{chunk-QPLDT6A6.js → chunk-NQO6V4KI.js} +29 -13
- package/dist/vendor/{chunk-AMQKOQNT.js → chunk-NTEWGPPG.js} +9 -9
- package/dist/vendor/chunk-NUJQMLJP.js +325 -0
- package/dist/vendor/{chunk-54RLBMTZ.js → chunk-OF3N2FN4.js} +1 -1
- package/dist/vendor/{chunk-RO2R4MJH.js → chunk-PA32ARKD.js} +17 -17
- package/dist/vendor/{chunk-JG5TTWPT.js → chunk-PECOFLCU.js} +3 -3
- package/dist/vendor/{chunk-VZBDV3TV.js → chunk-PU7QVYND.js} +2 -2
- package/dist/vendor/{chunk-2Y7WC4KU.js → chunk-QHR2RC5M.js} +2 -2
- package/dist/vendor/{chunk-QYBKAIA6.js → chunk-R327POEZ.js} +2 -2
- package/dist/vendor/chunk-RKVXYKHJ.js +29 -0
- package/dist/vendor/{chunk-XH4U3JSV.js → chunk-RQH5DSBA.js} +2 -2
- package/dist/vendor/{chunk-DWSHTSVX.js → chunk-S6QUQLBV.js} +5 -5
- package/dist/vendor/{chunk-KOZMM5PZ.js → chunk-UPIQ52FQ.js} +12 -12
- package/dist/vendor/{chunk-EGBNVEEW.js → chunk-UUQXJRMK.js} +1 -1
- package/dist/vendor/{chunk-LEUPYT3Q.js → chunk-UUYTTEDH.js} +1 -1
- package/dist/vendor/{chunk-NBVRTDTV.js → chunk-V2EB7FHY.js} +2 -2
- package/dist/vendor/{chunk-M32LDTW7.js → chunk-VIWU4EBF.js} +2 -2
- package/dist/vendor/{chunk-SIR62W3Y.js → chunk-VWSWEUN5.js} +51 -31
- package/dist/vendor/{chunk-MBSKBQ5D.js → chunk-WPZDL2D7.js} +1 -1
- package/dist/vendor/chunk-YDY5P7GL.js +20 -0
- package/dist/vendor/{chunk-FNZOJHSV.js → chunk-YFD4QFIL.js} +17 -17
- package/dist/vendor/{chunk-GXCHI7BM.js → chunk-ZVJCBTJG.js} +5 -5
- package/dist/vendor/cjs/node/NodeAddressResolver.d.ts +16 -0
- package/dist/vendor/cjs/node/NodeAddressResolver.js +1 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +13 -22
- package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +14 -8
- package/dist/vendor/cjs/node/NodeCrypto.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeDatagramSocket.d.ts +10 -0
- package/dist/vendor/cjs/node/NodeDatagramSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeDns.d.ts +51 -0
- package/dist/vendor/cjs/node/NodeDns.js +1 -0
- package/dist/vendor/cjs/node/NodeFileSystem.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeHttpClient.d.ts +21 -2
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +5 -3
- package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +8 -6
- package/dist/vendor/cjs/node/NodeHttpServer.d.ts +21 -10
- package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +4 -1
- package/dist/vendor/cjs/node/NodeMultipart.d.ts +5 -1
- package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +9 -1
- package/dist/vendor/cjs/node/NodePath.d.ts +3 -0
- package/dist/vendor/cjs/node/NodeRedis.d.ts +5 -1
- package/dist/vendor/cjs/node/NodeRuntime.d.ts +3 -0
- package/dist/vendor/cjs/node/NodeServices.d.ts +4 -1
- package/dist/vendor/cjs/node/NodeSink.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeSocket.d.ts +10 -3
- package/dist/vendor/cjs/node/NodeSocketServer.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeStdio.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeStream.d.ts +1 -0
- package/dist/vendor/cjs/node/NodeTerminal.d.ts +6 -3
- package/dist/vendor/cjs/node/NodeWorker.d.ts +3 -1
- package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +2 -1
- package/dist/vendor/cjs/node/Undici.d.ts +3 -0
- package/dist/vendor/cjs/node/index.d.ts +40 -0
- package/dist/vendor/cjs/node-shared/NodeAddressResolver.d.ts +13 -0
- package/dist/vendor/cjs/node-shared/NodeAddressResolver.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.d.ts +12 -3
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +17 -4
- package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +3 -0
- package/dist/vendor/cjs/node-shared/NodeDatagramSocket.d.ts +246 -0
- package/dist/vendor/cjs/node-shared/NodeDatagramSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeDns.d.ts +221 -0
- package/dist/vendor/cjs/node-shared/NodeDns.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.d.ts +1 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +5 -1
- package/dist/vendor/cjs/node-shared/NodePath.d.ts +3 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +4 -0
- package/dist/vendor/cjs/node-shared/NodeSink.d.ts +4 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +11 -1
- package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +8 -1
- package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +1 -0
- package/dist/vendor/cjs/node-shared/NodeStream.d.ts +15 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +6 -4
- package/dist/vendor/cjs/node-shared/index.d.ts +29 -0
- package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.d.ts +1 -1
- package/dist/vendor/cjs/platform-node-shared.d.ts +29 -0
- package/dist/vendor/cjs/platform-node.d.ts +40 -0
- package/dist/vendor/node/NodeAddressResolver.d.ts +16 -0
- package/dist/vendor/node/NodeAddressResolver.js +8 -0
- package/dist/vendor/node/NodeChildProcessSpawner.d.ts +1 -0
- package/dist/vendor/node/NodeChildProcessSpawner.js +6 -6
- package/dist/vendor/node/NodeClusterHttp.d.ts +13 -22
- package/dist/vendor/node/NodeClusterHttp.js +32 -32
- package/dist/vendor/node/NodeClusterSocket.d.ts +14 -8
- package/dist/vendor/node/NodeClusterSocket.js +15 -15
- package/dist/vendor/node/NodeCrypto.d.ts +1 -0
- package/dist/vendor/node/NodeCrypto.js +2 -2
- package/dist/vendor/node/NodeDatagramSocket.d.ts +10 -0
- package/dist/vendor/node/NodeDatagramSocket.js +12 -0
- package/dist/vendor/node/NodeDns.d.ts +51 -0
- package/dist/vendor/node/NodeDns.js +12 -0
- package/dist/vendor/node/NodeFileSystem.d.ts +1 -0
- package/dist/vendor/node/NodeFileSystem.js +3 -3
- package/dist/vendor/node/NodeHttpClient.d.ts +21 -2
- package/dist/vendor/node/NodeHttpClient.js +6 -6
- package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +5 -3
- package/dist/vendor/node/NodeHttpIncomingMessage.js +4 -4
- package/dist/vendor/node/NodeHttpPlatform.d.ts +8 -6
- package/dist/vendor/node/NodeHttpPlatform.js +8 -8
- package/dist/vendor/node/NodeHttpServer.d.ts +21 -10
- package/dist/vendor/node/NodeHttpServer.js +26 -26
- package/dist/vendor/node/NodeHttpServerRequest.d.ts +4 -1
- package/dist/vendor/node/NodeHttpServerRequest.js +1 -1
- package/dist/vendor/node/NodeMultipart.d.ts +5 -1
- package/dist/vendor/node/NodeMultipart.js +5 -5
- package/dist/vendor/node/NodeMultipartParser.d.ts +9 -1
- package/dist/vendor/node/NodeMultipartParser.js +1 -1
- package/dist/vendor/node/NodePath.d.ts +3 -0
- package/dist/vendor/node/NodePath.js +2 -2
- package/dist/vendor/node/NodeRedis.d.ts +5 -1
- package/dist/vendor/node/NodeRedis.js +1 -1
- package/dist/vendor/node/NodeRuntime.d.ts +3 -0
- package/dist/vendor/node/NodeRuntime.js +2 -2
- package/dist/vendor/node/NodeServices.d.ts +4 -1
- package/dist/vendor/node/NodeServices.js +17 -17
- package/dist/vendor/node/NodeSink.d.ts +1 -0
- package/dist/vendor/node/NodeSink.js +2 -2
- package/dist/vendor/node/NodeSocket.d.ts +10 -3
- package/dist/vendor/node/NodeSocket.js +2 -2
- package/dist/vendor/node/NodeSocketServer.d.ts +1 -0
- package/dist/vendor/node/NodeSocketServer.js +3 -3
- package/dist/vendor/node/NodeStdio.d.ts +1 -0
- package/dist/vendor/node/NodeStdio.js +4 -4
- package/dist/vendor/node/NodeStream.d.ts +1 -0
- package/dist/vendor/node/NodeStream.js +3 -3
- package/dist/vendor/node/NodeTerminal.d.ts +6 -3
- package/dist/vendor/node/NodeTerminal.js +2 -2
- package/dist/vendor/node/NodeWorker.d.ts +3 -1
- package/dist/vendor/node/NodeWorker.js +1 -1
- package/dist/vendor/node/NodeWorkerRunner.d.ts +2 -1
- package/dist/vendor/node/NodeWorkerRunner.js +1 -1
- package/dist/vendor/node/Undici.d.ts +3 -0
- package/dist/vendor/node/Undici.js +1 -1
- package/dist/vendor/node/index.d.ts +40 -0
- package/dist/vendor/node/index.js +70 -55
- package/dist/vendor/node-shared/NodeAddressResolver.d.ts +13 -0
- package/dist/vendor/node-shared/NodeAddressResolver.js +7 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.d.ts +12 -3
- package/dist/vendor/node-shared/NodeChildProcessSpawner.js +5 -5
- package/dist/vendor/node-shared/NodeClusterSocket.d.ts +17 -4
- package/dist/vendor/node-shared/NodeClusterSocket.js +3 -3
- package/dist/vendor/node-shared/NodeCrypto.d.ts +3 -0
- package/dist/vendor/node-shared/NodeCrypto.js +1 -1
- package/dist/vendor/node-shared/NodeDatagramSocket.d.ts +246 -0
- package/dist/vendor/node-shared/NodeDatagramSocket.js +11 -0
- package/dist/vendor/node-shared/NodeDns.d.ts +221 -0
- package/dist/vendor/node-shared/NodeDns.js +31 -0
- package/dist/vendor/node-shared/NodeFileSystem.d.ts +1 -0
- package/dist/vendor/node-shared/NodeFileSystem.js +2 -2
- package/dist/vendor/node-shared/NodeHttpCompression.d.ts +5 -1
- package/dist/vendor/node-shared/NodeHttpCompression.js +1 -1
- package/dist/vendor/node-shared/NodePath.d.ts +3 -0
- package/dist/vendor/node-shared/NodePath.js +1 -1
- package/dist/vendor/node-shared/NodeRuntime.d.ts +4 -0
- package/dist/vendor/node-shared/NodeRuntime.js +1 -1
- package/dist/vendor/node-shared/NodeSink.d.ts +4 -0
- package/dist/vendor/node-shared/NodeSink.js +1 -1
- package/dist/vendor/node-shared/NodeSocket.d.ts +11 -1
- package/dist/vendor/node-shared/NodeSocket.js +1 -1
- package/dist/vendor/node-shared/NodeSocketServer.d.ts +8 -1
- package/dist/vendor/node-shared/NodeSocketServer.js +2 -2
- package/dist/vendor/node-shared/NodeStdio.d.ts +1 -0
- package/dist/vendor/node-shared/NodeStdio.js +3 -3
- package/dist/vendor/node-shared/NodeStream.d.ts +15 -0
- package/dist/vendor/node-shared/NodeStream.js +2 -2
- package/dist/vendor/node-shared/NodeTerminal.d.ts +6 -4
- package/dist/vendor/node-shared/NodeTerminal.js +1 -1
- package/dist/vendor/node-shared/index.d.ts +29 -0
- package/dist/vendor/node-shared/index.js +34 -22
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.d.ts +1 -1
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +1 -1
- package/dist/vendor/node-shared/internal/utils.js +1 -1
- package/dist/vendor/platform-node-shared.d.ts +29 -0
- package/dist/vendor/platform-node-shared.js +34 -22
- package/dist/vendor/platform-node.d.ts +40 -0
- package/dist/vendor/platform-node.js +70 -55
- package/docs/README.md +2 -2
- package/docs/api.md +2 -2
- package/docs/concepts/host-bundle.md +2 -2
- package/docs/installation.md +8 -9
- package/docs/quickstart.md +2 -2
- package/package.json +12 -12
- package/src/EgressHttpClient.ts +4 -4
- package/src/NodeHost.ts +2 -2
- package/src/ProcessConfinement.ts +1 -1
- package/src/ProcessReaper.ts +2 -2
- package/src/ScopedProcess.ts +2 -2
- package/src/internal/PipedProcess.ts +2 -2
- package/src/internal/ProcessCleanup.ts +1 -1
- package/src/internal/ProcessSupervisor.ts +2 -2
- /package/dist/vendor/{chunk-M7CLUILA.js → chunk-3WUGYBFU.js} +0 -0
- /package/dist/vendor/{chunk-ZJMRMY57.js → chunk-ASGOJ3XA.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer as layer2
|
|
3
|
+
} from "./chunk-NTEWGPPG.js";
|
|
4
|
+
import {
|
|
5
|
+
layer
|
|
6
|
+
} from "./chunk-423HXGL6.js";
|
|
1
7
|
import {
|
|
2
8
|
persisted,
|
|
3
9
|
stream
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
layer as layer2
|
|
7
|
-
} from "./chunk-AMQKOQNT.js";
|
|
10
|
+
} from "./chunk-ZVJCBTJG.js";
|
|
8
11
|
import {
|
|
9
12
|
NodeWS
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-C3PGUWW5.js";
|
|
11
14
|
import {
|
|
12
15
|
NodeHttpIncomingMessage
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
layer
|
|
16
|
-
} from "./chunk-VANKHF46.js";
|
|
16
|
+
} from "./chunk-D2ZL4PLZ.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./chunk-MLKGABMK.js";
|
|
20
20
|
|
|
21
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
21
|
+
// ../../../../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/NodeHttpServer.js
|
|
22
22
|
var NodeHttpServer_exports = {};
|
|
23
23
|
__export(NodeHttpServer_exports, {
|
|
24
24
|
layer: () => layer4,
|
|
@@ -35,23 +35,25 @@ import * as Config from "effect/Config";
|
|
|
35
35
|
import * as Context from "effect/Context";
|
|
36
36
|
import * as Duration from "effect/Duration";
|
|
37
37
|
import * as Effect from "effect/Effect";
|
|
38
|
+
import * as Exit from "effect/Exit";
|
|
38
39
|
import * as Fiber from "effect/Fiber";
|
|
39
40
|
import { flow } from "effect/Function";
|
|
41
|
+
import * as Cookies from "effect/http/Cookies";
|
|
42
|
+
import * as Etag from "effect/http/Etag";
|
|
43
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
44
|
+
import * as HttpEffect from "effect/http/HttpEffect";
|
|
45
|
+
import * as HttpIncomingMessage from "effect/http/HttpIncomingMessage";
|
|
46
|
+
import * as HttpServer from "effect/http/HttpServer";
|
|
47
|
+
import { causeResponse, ClientAbort, HttpServerError, RequestParseError, ResponseError, ServeError } from "effect/http/HttpServerError";
|
|
48
|
+
import * as Request from "effect/http/HttpServerRequest";
|
|
49
|
+
import { HttpServerRequest } from "effect/http/HttpServerRequest";
|
|
50
|
+
import * as Response from "effect/http/HttpServerResponse";
|
|
40
51
|
import * as Latch from "effect/Latch";
|
|
41
52
|
import * as Layer from "effect/Layer";
|
|
53
|
+
import * as NetAddress from "effect/net/NetAddress";
|
|
42
54
|
import * as Scope from "effect/Scope";
|
|
55
|
+
import * as Socket from "effect/socket/Socket";
|
|
43
56
|
import * as Stream from "effect/Stream";
|
|
44
|
-
import * as Cookies from "effect/unstable/http/Cookies";
|
|
45
|
-
import * as Etag from "effect/unstable/http/Etag";
|
|
46
|
-
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
47
|
-
import * as HttpEffect from "effect/unstable/http/HttpEffect";
|
|
48
|
-
import * as HttpIncomingMessage from "effect/unstable/http/HttpIncomingMessage";
|
|
49
|
-
import * as HttpServer from "effect/unstable/http/HttpServer";
|
|
50
|
-
import { causeResponse, ClientAbort, HttpServerError, RequestParseError, ResponseError, ServeError } from "effect/unstable/http/HttpServerError";
|
|
51
|
-
import * as Request from "effect/unstable/http/HttpServerRequest";
|
|
52
|
-
import { HttpServerRequest } from "effect/unstable/http/HttpServerRequest";
|
|
53
|
-
import * as NetAddress from "effect/unstable/net/NetAddress";
|
|
54
|
-
import * as Socket from "effect/unstable/socket/Socket";
|
|
55
57
|
import * as Http from "node:http";
|
|
56
58
|
import { Readable } from "node:stream";
|
|
57
59
|
import { pipeline } from "node:stream/promises";
|
|
@@ -111,11 +113,10 @@ var make2 = /* @__PURE__ */ Effect.fnUntraced(function* (evaluate, options) {
|
|
|
111
113
|
middleware,
|
|
112
114
|
scope: scope3
|
|
113
115
|
});
|
|
114
|
-
yield* Scope.addFinalizerExit(serveScope, () => {
|
|
116
|
+
yield* Scope.addFinalizerExit(serveScope, () => Effect.ensuring(preemptiveShutdown, Effect.sync(() => {
|
|
115
117
|
server.off("request", handler);
|
|
116
118
|
server.off("upgrade", upgradeHandler);
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
+
})));
|
|
119
120
|
server.on("request", handler);
|
|
120
121
|
server.on("upgrade", upgradeHandler);
|
|
121
122
|
})
|
|
@@ -143,12 +144,11 @@ var makeUpgradeHandler = (lazyWss, httpEffect, options) => {
|
|
|
143
144
|
return Effect.withFiber((parent) => {
|
|
144
145
|
const services = parent.context;
|
|
145
146
|
return Effect.succeed(function handler(nodeRequest, socket, head) {
|
|
146
|
-
let upgraded = false;
|
|
147
147
|
let nodeResponse_ = void 0;
|
|
148
148
|
const nodeResponse = () => {
|
|
149
149
|
if (nodeResponse_ === void 0) {
|
|
150
150
|
nodeResponse_ = new Http.ServerResponse(nodeRequest);
|
|
151
|
-
if (upgraded) {
|
|
151
|
+
if (request.upgraded || socket.destroyed) {
|
|
152
152
|
nodeResponse_.end();
|
|
153
153
|
} else {
|
|
154
154
|
nodeResponse_.assignSocket(socket);
|
|
@@ -159,11 +159,23 @@ var makeUpgradeHandler = (lazyWss, httpEffect, options) => {
|
|
|
159
159
|
}
|
|
160
160
|
return nodeResponse_;
|
|
161
161
|
};
|
|
162
|
-
const upgradeEffect = Socket.fromWebSocket(Effect.flatMap(lazyWss, (wss) => Effect.acquireRelease(Effect.callback((resume) =>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
const upgradeEffect = Socket.fromWebSocket(Effect.flatMap(lazyWss, (wss) => Effect.acquireRelease(Effect.callback((resume) => {
|
|
163
|
+
const onClose = () => resume(Effect.fail(new Socket.SocketError({
|
|
164
|
+
reason: new Socket.SocketOpenError({
|
|
165
|
+
kind: "Unknown",
|
|
166
|
+
cause: new Error("The socket closed before the upgrade")
|
|
167
|
+
})
|
|
168
|
+
})));
|
|
169
|
+
if (socket.destroyed) return onClose();
|
|
170
|
+
socket.once("close", onClose);
|
|
171
|
+
wss.handleUpgrade(nodeRequest, socket, head, (ws) => {
|
|
172
|
+
socket.off("close", onClose);
|
|
173
|
+
request.upgraded = true;
|
|
174
|
+
resume(Effect.succeed(ws));
|
|
175
|
+
});
|
|
176
|
+
}), (ws, exit) => Effect.sync(() => ws.close(closeCode(exit))))));
|
|
177
|
+
const request = new ServerRequestImpl(nodeRequest, nodeResponse, upgradeEffect);
|
|
178
|
+
const context = Context.add(services, HttpServerRequest, request);
|
|
167
179
|
const fiber = Fiber.runIn(Effect.runForkWith(context)(handledApp), options.scope);
|
|
168
180
|
socket.on("error", () => {
|
|
169
181
|
});
|
|
@@ -179,6 +191,7 @@ var ServerRequestImpl = class _ServerRequestImpl extends NodeHttpIncomingMessage
|
|
|
179
191
|
[Request.TypeId];
|
|
180
192
|
response;
|
|
181
193
|
upgradeEffect;
|
|
194
|
+
upgraded = false;
|
|
182
195
|
url;
|
|
183
196
|
headersOverride;
|
|
184
197
|
constructor(source, response, upgradeEffect, url = source.url, headersOverride, remoteAddressOverride) {
|
|
@@ -257,7 +270,14 @@ var layerTest = /* @__PURE__ */ HttpServer.layerTestClient.pipe(/* @__PURE__ */
|
|
|
257
270
|
})))), /* @__PURE__ */ Layer.provideMerge(/* @__PURE__ */ layer4(Http.createServer, {
|
|
258
271
|
port: 0
|
|
259
272
|
})));
|
|
273
|
+
var closeCode = (exit) => Exit.isSuccess(exit) ? 1e3 : Cause.hasInterruptsOnly(exit.cause) ? 1001 : 1011;
|
|
274
|
+
var upgradedResponse = /* @__PURE__ */ Response.empty({
|
|
275
|
+
status: 101
|
|
276
|
+
});
|
|
260
277
|
var handleResponse = (request, response) => {
|
|
278
|
+
if (request.upgraded) {
|
|
279
|
+
return Effect.succeed(upgradedResponse);
|
|
280
|
+
}
|
|
261
281
|
const nodeResponse = request.resolvedResponse;
|
|
262
282
|
if (nodeResponse.writableEnded) {
|
|
263
283
|
return Effect.void;
|
|
@@ -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.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeHttpServerRequest.js
|
|
6
6
|
var NodeHttpServerRequest_exports = {};
|
|
7
7
|
__export(NodeHttpServerRequest_exports, {
|
|
8
8
|
toIncomingMessage: () => toIncomingMessage,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer,
|
|
3
|
+
layerConfig,
|
|
4
|
+
make
|
|
5
|
+
} from "./chunk-ADP5LRUF.js";
|
|
6
|
+
import {
|
|
7
|
+
__export
|
|
8
|
+
} from "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// ../../../../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/NodeDns.js
|
|
11
|
+
var NodeDns_exports = {};
|
|
12
|
+
__export(NodeDns_exports, {
|
|
13
|
+
layer: () => layer,
|
|
14
|
+
layerConfig: () => layerConfig,
|
|
15
|
+
make: () => make
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
NodeDns_exports
|
|
20
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layerClientProtocol,
|
|
3
3
|
layerSocketServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
layer
|
|
7
|
-
} from "./chunk-VZBDV3TV.js";
|
|
4
|
+
} from "./chunk-6FSJ2PMW.js";
|
|
8
5
|
import {
|
|
9
6
|
Dispatcher,
|
|
10
7
|
layerUndiciNoDispatcher,
|
|
11
8
|
makeDispatcher
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UPIQ52FQ.js";
|
|
10
|
+
import {
|
|
11
|
+
layer
|
|
12
|
+
} from "./chunk-PU7QVYND.js";
|
|
13
13
|
import {
|
|
14
14
|
layer as layer2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VIWU4EBF.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./chunk-MLKGABMK.js";
|
|
19
19
|
|
|
20
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
20
|
+
// ../../../../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/NodeClusterSocket.js
|
|
21
21
|
var NodeClusterSocket_exports = {};
|
|
22
22
|
__export(NodeClusterSocket_exports, {
|
|
23
23
|
layer: () => layer7,
|
|
@@ -26,19 +26,19 @@ __export(NodeClusterSocket_exports, {
|
|
|
26
26
|
layerK8sHttpClient: () => layerK8sHttpClient,
|
|
27
27
|
layerSocketServer: () => layerSocketServer
|
|
28
28
|
});
|
|
29
|
+
import * as K8sHttpClient from "effect/cluster/K8sHttpClient";
|
|
30
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
31
|
+
import * as RunnerHealth from "effect/cluster/RunnerHealth";
|
|
32
|
+
import * as Runners from "effect/cluster/Runners";
|
|
33
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
34
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
35
|
+
import * as SocketRunner from "effect/cluster/SocketRunner";
|
|
36
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage";
|
|
37
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage";
|
|
29
38
|
import * as Effect from "effect/Effect";
|
|
30
39
|
import * as FileSystem from "effect/FileSystem";
|
|
31
40
|
import * as Layer from "effect/Layer";
|
|
32
|
-
import * as
|
|
33
|
-
import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
|
|
34
|
-
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth";
|
|
35
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
36
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
37
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
38
|
-
import * as SocketRunner from "effect/unstable/cluster/SocketRunner";
|
|
39
|
-
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage";
|
|
40
|
-
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage";
|
|
41
|
-
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
41
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization";
|
|
42
42
|
var layer7 = (options) => {
|
|
43
43
|
const layer8 = options?.clientOnly ? Layer.provide(SocketRunner.layerClientOnly, layerClientProtocol) : Layer.provide(SocketRunner.layer, [layerSocketServer, layerClientProtocol]);
|
|
44
44
|
const runnerHealth = options?.clientOnly ? Layer.empty : options?.runnerHealth === "k8s" ? RunnerHealth.layerK8s(options.runnerHealthK8s).pipe(Layer.provide(layerK8sHttpClient)) : RunnerHealth.layerPing.pipe(Layer.provide(Runners.layerRpc), Layer.provide(layerClientProtocol));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QHR2RC5M.js";
|
|
4
4
|
import {
|
|
5
5
|
fromReadable,
|
|
6
6
|
toUint8Array
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RQH5DSBA.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-MLKGABMK.js";
|
|
11
11
|
|
|
12
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
12
|
+
// ../../../../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/NodeMultipart.js
|
|
13
13
|
var NodeMultipart_exports = {};
|
|
14
14
|
__export(NodeMultipart_exports, {
|
|
15
15
|
fileToReadable: () => fileToReadable,
|
|
@@ -17,10 +17,10 @@ __export(NodeMultipart_exports, {
|
|
|
17
17
|
stream: () => stream
|
|
18
18
|
});
|
|
19
19
|
import * as Effect from "effect/Effect";
|
|
20
|
+
import * as Multipart from "effect/http/Multipart";
|
|
21
|
+
import * as MultipartParser from "effect/http/MultipartParser";
|
|
20
22
|
import * as Inspectable from "effect/Inspectable";
|
|
21
23
|
import * as Stream from "effect/Stream";
|
|
22
|
-
import * as Multipart from "effect/unstable/http/Multipart";
|
|
23
|
-
import * as MultipartParser from "effect/unstable/http/MultipartParser";
|
|
24
24
|
import * as NFS from "node:fs";
|
|
25
25
|
import * as NodeStreamP from "node:stream/promises";
|
|
26
26
|
var stream = (source, headers) => Multipart.makeConfig(headers).pipe(Effect.map((config) => fromReadable({
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `NodeAddressResolver` module provides the Node.js `AddressResolver`
|
|
3
|
+
* service for Effect programs.
|
|
4
|
+
*
|
|
5
|
+
* IPv6 literals with a named zone such as `fe80::1%eth0` get their scope ID
|
|
6
|
+
* from `os.networkInterfaces()`, listed each time a named zone is resolved.
|
|
7
|
+
*
|
|
8
|
+
* @stability experimental
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* @stability experimental
|
|
13
|
+
* @since 4.0.0
|
|
14
|
+
*/
|
|
15
|
+
export * from "../node-shared/NodeAddressResolver.js";
|
|
16
|
+
//# sourceMappingURL=NodeAddressResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeAddressResolver.js")
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* storage, and optional client-only mode from the supplied options.
|
|
7
|
-
* `layerHttpServer` provides the Node HTTP server used by cluster runners, and
|
|
8
|
-
* this module re-exports the Kubernetes HTTP client layer used by runner health
|
|
9
|
-
* checks.
|
|
10
|
-
*
|
|
11
|
-
* @since 4.0.0
|
|
12
|
-
*/
|
|
1
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
2
|
+
import * as Runners from "effect/cluster/Runners";
|
|
3
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
4
|
+
import type { Sharding } from "effect/cluster/Sharding";
|
|
5
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
13
6
|
import type * as Config from "effect/Config";
|
|
7
|
+
import type * as Etag from "effect/http/Etag";
|
|
8
|
+
import type { HttpPlatform } from "effect/http/HttpPlatform";
|
|
9
|
+
import type { HttpServer } from "effect/http/HttpServer";
|
|
10
|
+
import type { ServeError } from "effect/http/HttpServerError";
|
|
14
11
|
import * as Layer from "effect/Layer";
|
|
15
|
-
import
|
|
16
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
17
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
18
|
-
import type { Sharding } from "effect/unstable/cluster/Sharding";
|
|
19
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
20
|
-
import type * as Etag from "effect/unstable/http/Etag";
|
|
21
|
-
import type { HttpPlatform } from "effect/unstable/http/HttpPlatform";
|
|
22
|
-
import type { HttpServer } from "effect/unstable/http/HttpServer";
|
|
23
|
-
import type { ServeError } from "effect/unstable/http/HttpServerError";
|
|
24
|
-
import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
12
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
25
13
|
import type { NodeServices } from "./NodeServices.ts";
|
|
26
14
|
export {
|
|
27
15
|
/**
|
|
28
16
|
* Provides the Kubernetes HTTP client layer used by Kubernetes runner health checks.
|
|
29
17
|
*
|
|
18
|
+
* @stability unstable
|
|
30
19
|
* @category re-exports
|
|
31
20
|
* @since 4.0.0
|
|
32
21
|
*/
|
|
@@ -36,6 +25,7 @@ layerK8sHttpClient } from "./NodeClusterSocket.ts";
|
|
|
36
25
|
* transport, RPC serialization, message storage, runner health checks, and
|
|
37
26
|
* optional client-only mode.
|
|
38
27
|
*
|
|
28
|
+
* @stability unstable
|
|
39
29
|
* @category layers
|
|
40
30
|
* @since 4.0.0
|
|
41
31
|
*/
|
|
@@ -56,6 +46,7 @@ export declare const layer: <const ClientOnly extends boolean = false, const Sto
|
|
|
56
46
|
* Provides the HTTP server and Node HTTP services used by cluster runners,
|
|
57
47
|
* listening on `ShardingConfig.runnerListenAddress` or `runnerAddress`.
|
|
58
48
|
*
|
|
49
|
+
* @stability unstable
|
|
59
50
|
* @category layers
|
|
60
51
|
* @since 4.0.0
|
|
61
52
|
*/
|
|
@@ -8,25 +8,27 @@
|
|
|
8
8
|
* Kubernetes-aware Undici dispatcher and HTTP client layers for runner health
|
|
9
9
|
* checks.
|
|
10
10
|
*
|
|
11
|
+
* @stability unstable
|
|
11
12
|
* @since 4.0.0
|
|
12
13
|
*/
|
|
13
14
|
import { layerClientProtocol, layerSocketServer } from "../node-shared/NodeClusterSocket.js";
|
|
15
|
+
import * as K8sHttpClient from "effect/cluster/K8sHttpClient";
|
|
16
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
17
|
+
import * as Runners from "effect/cluster/Runners";
|
|
18
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
19
|
+
import type { Sharding } from "effect/cluster/Sharding";
|
|
20
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
14
21
|
import type { ConfigError } from "effect/Config";
|
|
15
22
|
import * as Layer from "effect/Layer";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
19
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
20
|
-
import type { Sharding } from "effect/unstable/cluster/Sharding";
|
|
21
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
22
|
-
import type * as SocketServer from "effect/unstable/socket/SocketServer";
|
|
23
|
-
import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
23
|
+
import type * as SocketServer from "effect/socket/SocketServer";
|
|
24
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
24
25
|
import * as NodeHttpClient from "./NodeHttpClient.ts";
|
|
25
26
|
export {
|
|
26
27
|
/**
|
|
27
28
|
* Provides the cluster `RpcClientProtocol` using the shared socket client
|
|
28
29
|
* implementation.
|
|
29
30
|
*
|
|
31
|
+
* @stability unstable
|
|
30
32
|
* @category re-exports
|
|
31
33
|
* @since 4.0.0
|
|
32
34
|
*/
|
|
@@ -35,6 +37,7 @@ layerClientProtocol,
|
|
|
35
37
|
* Provides the socket server used by Node cluster runners through the shared
|
|
36
38
|
* socket server implementation.
|
|
37
39
|
*
|
|
40
|
+
* @stability unstable
|
|
38
41
|
* @category re-exports
|
|
39
42
|
* @since 4.0.0
|
|
40
43
|
*/
|
|
@@ -44,6 +47,7 @@ layerSocketServer };
|
|
|
44
47
|
* serialization, message storage, runner health checks, and optional
|
|
45
48
|
* client-only mode.
|
|
46
49
|
*
|
|
50
|
+
* @stability unstable
|
|
47
51
|
* @category layers
|
|
48
52
|
* @since 4.0.0
|
|
49
53
|
*/
|
|
@@ -64,6 +68,7 @@ export declare const layer: <const ClientOnly extends boolean = false, const Sto
|
|
|
64
68
|
* account CA certificate when it is available and falling back to the default
|
|
65
69
|
* dispatcher otherwise.
|
|
66
70
|
*
|
|
71
|
+
* @stability unstable
|
|
67
72
|
* @category layers
|
|
68
73
|
* @since 4.0.0
|
|
69
74
|
*/
|
|
@@ -72,6 +77,7 @@ export declare const layerDispatcherK8s: Layer.Layer<NodeHttpClient.Dispatcher>;
|
|
|
72
77
|
* Provides a `K8sHttpClient` backed by the Undici HTTP client and the
|
|
73
78
|
* Kubernetes-aware dispatcher.
|
|
74
79
|
*
|
|
80
|
+
* @stability unstable
|
|
75
81
|
* @category layers
|
|
76
82
|
* @since 4.0.0
|
|
77
83
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeDatagramSocket.js")
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `NodeDns` module provides the Node.js `Dns` service for Effect programs.
|
|
3
|
+
*
|
|
4
|
+
* Address lookups use the operating system resolver through `dns.lookup`, so
|
|
5
|
+
* they also read the hosts file. Record queries and reverse lookups share one
|
|
6
|
+
* `dns.Resolver`. Node.js cannot cancel a single query or address lookup, so
|
|
7
|
+
* interrupting one discards its result but lets the underlying work finish: a
|
|
8
|
+
* query runs until it is answered or times out, and a `getaddrinfo` call keeps
|
|
9
|
+
* a libuv thread pool worker busy until it returns.
|
|
10
|
+
*
|
|
11
|
+
* @stability experimental
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
*/
|
|
14
|
+
export type {
|
|
15
|
+
/**
|
|
16
|
+
* Options for the Node.js `Dns` service: name servers, timeout, and tries
|
|
17
|
+
* for record queries and reverse lookups.
|
|
18
|
+
*
|
|
19
|
+
* @stability experimental
|
|
20
|
+
* @category re-exports
|
|
21
|
+
* @since 4.0.0
|
|
22
|
+
*/
|
|
23
|
+
Options } from "../node-shared/NodeDns.js";
|
|
24
|
+
export {
|
|
25
|
+
/**
|
|
26
|
+
* Layer that provides the Node.js `Dns` service using the system resolver
|
|
27
|
+
* configuration.
|
|
28
|
+
*
|
|
29
|
+
* @stability experimental
|
|
30
|
+
* @category re-exports
|
|
31
|
+
* @since 4.0.0
|
|
32
|
+
*/
|
|
33
|
+
layer,
|
|
34
|
+
/**
|
|
35
|
+
* Creates a layer that provides the Node.js `Dns` service with options read
|
|
36
|
+
* from configuration.
|
|
37
|
+
*
|
|
38
|
+
* @stability experimental
|
|
39
|
+
* @category re-exports
|
|
40
|
+
* @since 4.0.0
|
|
41
|
+
*/
|
|
42
|
+
layerConfig,
|
|
43
|
+
/**
|
|
44
|
+
* Creates a Node.js `Dns` service whose resolver lives as long as the scope.
|
|
45
|
+
*
|
|
46
|
+
* @stability experimental
|
|
47
|
+
* @category re-exports
|
|
48
|
+
* @since 4.0.0
|
|
49
|
+
*/
|
|
50
|
+
make } from "../node-shared/NodeDns.js";
|
|
51
|
+
//# sourceMappingURL=NodeDns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeDns.js")
|