@smthrs/platform-node 1.0.0-rc.4 → 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/darwin-arm64/smithers-jj-export +0 -0
- package/bin/darwin-x64/smithers-jj-export +0 -0
- package/bin/linux-arm64/smithers-jj-export +0 -0
- package/bin/linux-x64/smithers-jj-export +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
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeDatagramSocket.js
|
|
6
|
+
var NodeDatagramSocket_exports = {};
|
|
7
|
+
__export(NodeDatagramSocket_exports, {
|
|
8
|
+
fromSocket: () => fromSocket,
|
|
9
|
+
layer: () => layer,
|
|
10
|
+
make: () => make
|
|
11
|
+
});
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Layer from "effect/Layer";
|
|
14
|
+
import * as NetAddress from "effect/net/NetAddress";
|
|
15
|
+
import * as DatagramSocket from "effect/socket/DatagramSocket";
|
|
16
|
+
import * as Dgram from "node:dgram";
|
|
17
|
+
import * as Dns from "node:dns";
|
|
18
|
+
import * as Net from "node:net";
|
|
19
|
+
import * as Os from "node:os";
|
|
20
|
+
var make = (options = {}) => DatagramSocket.makeFromBackingSocket((events) => open(options, events), options);
|
|
21
|
+
var fromSocket = (acquire, options = {}) => DatagramSocket.makeFromBackingSocket((events) => Effect.flatMap(acquire, (socket) => adopt(socket, options, events)), options);
|
|
22
|
+
var layer = (options) => Layer.effect(DatagramSocket.DatagramSocket, make(options));
|
|
23
|
+
var noScopeIds = /* @__PURE__ */ new Map();
|
|
24
|
+
var interfaceScopeIds = () => {
|
|
25
|
+
if (process.platform === "win32") return noScopeIds;
|
|
26
|
+
try {
|
|
27
|
+
return NetAddress.scopeIdsFromInterfaces(Object.entries(Os.networkInterfaces()));
|
|
28
|
+
} catch {
|
|
29
|
+
return noScopeIds;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var scopeIdsFor = (family) => family === "ipv6" ? interfaceScopeIds() : noScopeIds;
|
|
33
|
+
var familyOfLiteral = (address) => {
|
|
34
|
+
if (typeof address !== "string") return NetAddress.isIpv4Address(address) ? "ipv4" : "ipv6";
|
|
35
|
+
const version = Net.isIP(address);
|
|
36
|
+
return version === 4 ? "ipv4" : version === 6 ? "ipv6" : void 0;
|
|
37
|
+
};
|
|
38
|
+
var formatEndpoint = (endpoint, scopeIds) => NetAddress.isInetAddress(endpoint) ? NetAddress.formatNativeHost(endpoint, scopeIds) : endpoint.address === void 0 || typeof endpoint.address === "string" ? endpoint.address : NetAddress.formatIp(endpoint.address);
|
|
39
|
+
var resolve = (address, family, onError, next) => {
|
|
40
|
+
if (typeof address !== "string") return next(void 0);
|
|
41
|
+
const literal = familyOfLiteral(address);
|
|
42
|
+
if (literal !== void 0) return next({
|
|
43
|
+
host: address,
|
|
44
|
+
family: literal
|
|
45
|
+
});
|
|
46
|
+
try {
|
|
47
|
+
Dns.lookup(address, {
|
|
48
|
+
all: true,
|
|
49
|
+
family: family === "ipv4" ? 4 : family === "ipv6" ? 6 : 0
|
|
50
|
+
}, (error, results) => {
|
|
51
|
+
if (error) return onError(error);
|
|
52
|
+
const result = results.find((result2) => result2.family === 4) ?? results[0];
|
|
53
|
+
if (result === void 0) return onError(new Error(`${address} has no addresses`));
|
|
54
|
+
next({
|
|
55
|
+
host: result.address,
|
|
56
|
+
family: result.family === 6 ? "ipv6" : "ipv4"
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
} catch (error) {
|
|
60
|
+
onError(error);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var planOpen = (options, scopeIdsOf, onLookupError, next) => {
|
|
64
|
+
const {
|
|
65
|
+
bind: bind2,
|
|
66
|
+
remote
|
|
67
|
+
} = options;
|
|
68
|
+
const fixed = options.family ?? (bind2?.address === void 0 ? void 0 : familyOfLiteral(bind2.address));
|
|
69
|
+
resolve(remote?.address, fixed, onLookupError, (resolvedRemote) => {
|
|
70
|
+
const remoteFamily = resolvedRemote?.family ?? (remote === void 0 ? void 0 : familyOfLiteral(remote.address));
|
|
71
|
+
resolve(bind2?.address, fixed ?? remoteFamily, onLookupError, (resolvedBind) => {
|
|
72
|
+
const family = fixed ?? remoteFamily ?? resolvedBind?.family ?? "ipv4";
|
|
73
|
+
const scopeIds = scopeIdsOf(family);
|
|
74
|
+
next({
|
|
75
|
+
family,
|
|
76
|
+
scopeIds,
|
|
77
|
+
bindHost: resolvedBind?.host ?? (bind2 === void 0 ? void 0 : formatEndpoint(bind2, scopeIds)) ?? (family === "ipv6" ? "::" : "0.0.0.0"),
|
|
78
|
+
remote: remote === void 0 ? void 0 : {
|
|
79
|
+
host: resolvedRemote?.host ?? formatEndpoint(remote, scopeIds),
|
|
80
|
+
port: remote.port
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
var resolvePeer = (peer, family, scopeIds, onLookupError, next) => {
|
|
87
|
+
if (peer === void 0) return next(void 0);
|
|
88
|
+
if (typeof peer.address !== "string") return next({
|
|
89
|
+
host: formatEndpoint(peer, scopeIds),
|
|
90
|
+
port: peer.port
|
|
91
|
+
});
|
|
92
|
+
resolve(peer.address, family, onLookupError, (resolved) => next({
|
|
93
|
+
host: resolved.host,
|
|
94
|
+
port: peer.port
|
|
95
|
+
}));
|
|
96
|
+
};
|
|
97
|
+
var errorCode = (error) => typeof error === "object" && error !== null ? error.code : void 0;
|
|
98
|
+
var openError = (error, kind) => {
|
|
99
|
+
if (kind === void 0) {
|
|
100
|
+
const code = errorCode(error);
|
|
101
|
+
kind = code === "EADDRINUSE" ? "AddressInUse" : code === "EADDRNOTAVAIL" ? "AddressNotAvailable" : code === "EACCES" || code === "EPERM" ? "PermissionDenied" : "Unknown";
|
|
102
|
+
}
|
|
103
|
+
return new DatagramSocket.DatagramSocketError({
|
|
104
|
+
reason: new DatagramSocket.DatagramSocketOpenError({
|
|
105
|
+
kind,
|
|
106
|
+
cause: error
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
var ioKind = (error) => {
|
|
111
|
+
switch (errorCode(error)) {
|
|
112
|
+
case "EMSGSIZE":
|
|
113
|
+
return "MessageTooLarge";
|
|
114
|
+
case "EHOSTUNREACH":
|
|
115
|
+
case "ENETUNREACH":
|
|
116
|
+
case "EHOSTDOWN":
|
|
117
|
+
case "ENETDOWN":
|
|
118
|
+
return "Unreachable";
|
|
119
|
+
case "ECONNREFUSED":
|
|
120
|
+
return "ConnectionRefused";
|
|
121
|
+
case "EACCES":
|
|
122
|
+
case "EPERM":
|
|
123
|
+
return "PermissionDenied";
|
|
124
|
+
default:
|
|
125
|
+
return "Unknown";
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
var closedError = () => new DatagramSocket.DatagramSocketError({
|
|
129
|
+
reason: new DatagramSocket.DatagramSocketClosedError()
|
|
130
|
+
});
|
|
131
|
+
var ioWriteError = (error, kind = ioKind(error)) => new DatagramSocket.DatagramSocketError({
|
|
132
|
+
reason: new DatagramSocket.DatagramSocketWriteError({
|
|
133
|
+
kind,
|
|
134
|
+
cause: error
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
var readError = (error, kind = ioKind(error)) => new DatagramSocket.DatagramSocketError({
|
|
138
|
+
reason: new DatagramSocket.DatagramSocketReadError({
|
|
139
|
+
kind,
|
|
140
|
+
cause: error
|
|
141
|
+
})
|
|
142
|
+
});
|
|
143
|
+
var immediateLookup = (hostname, family, callback2) => callback2(null, hostname, family === 6 ? 6 : 4);
|
|
144
|
+
var writeError = (error) => errorCode(error) === "ERR_SOCKET_DGRAM_NOT_RUNNING" ? closedError() : ioWriteError(error);
|
|
145
|
+
var open = (options, events) => (
|
|
146
|
+
// Core lets uncancellable lookups finish and closes abandoned sockets.
|
|
147
|
+
Effect.callback((resume) => {
|
|
148
|
+
planOpen({
|
|
149
|
+
family: options.family,
|
|
150
|
+
bind: options.bind,
|
|
151
|
+
remote: options.connect ?? options.peer
|
|
152
|
+
}, scopeIdsFor, (error) => resume(Effect.fail(openError(error, "AddressNotAvailable"))), (plan) => bind(options, events, plan, resume));
|
|
153
|
+
})
|
|
154
|
+
);
|
|
155
|
+
var bind = (options, events, {
|
|
156
|
+
bindHost: host,
|
|
157
|
+
family,
|
|
158
|
+
remote,
|
|
159
|
+
scopeIds
|
|
160
|
+
}, resume) => {
|
|
161
|
+
let socket;
|
|
162
|
+
try {
|
|
163
|
+
socket = Dgram.createSocket({
|
|
164
|
+
type: family === "ipv6" ? "udp6" : "udp4",
|
|
165
|
+
reuseAddr: options.reuseAddress,
|
|
166
|
+
reusePort: options.reusePort,
|
|
167
|
+
ipv6Only: options.ipv6Only,
|
|
168
|
+
lookup: immediateLookup
|
|
169
|
+
});
|
|
170
|
+
} catch (error) {
|
|
171
|
+
return resume(Effect.fail(openError(error)));
|
|
172
|
+
}
|
|
173
|
+
const native = new NativeSocket(socket, events);
|
|
174
|
+
const fail2 = (error) => {
|
|
175
|
+
native.close();
|
|
176
|
+
resume(Effect.fail(error));
|
|
177
|
+
};
|
|
178
|
+
native.onOpenError = (error) => fail2(openError(error));
|
|
179
|
+
try {
|
|
180
|
+
socket.bind({
|
|
181
|
+
address: host,
|
|
182
|
+
port: options.bind?.port ?? 0
|
|
183
|
+
}, () => {
|
|
184
|
+
try {
|
|
185
|
+
if (options.kernelReceiveBufferSize !== void 0) socket.setRecvBufferSize(options.kernelReceiveBufferSize);
|
|
186
|
+
if (options.kernelSendBufferSize !== void 0) socket.setSendBufferSize(options.kernelSendBufferSize);
|
|
187
|
+
if (options.broadcast !== void 0) socket.setBroadcast(options.broadcast);
|
|
188
|
+
if (options.ttl !== void 0) socket.setTTL(options.ttl);
|
|
189
|
+
const multicast = options.multicast;
|
|
190
|
+
if (multicast?.ttl !== void 0) socket.setMulticastTTL(multicast.ttl);
|
|
191
|
+
if (multicast?.loopback !== void 0) socket.setMulticastLoopback(multicast.loopback);
|
|
192
|
+
if (multicast?.interface !== void 0) {
|
|
193
|
+
socket.setMulticastInterface(NetAddress.formatMulticastInterface(multicast.interface, scopeIds));
|
|
194
|
+
}
|
|
195
|
+
} catch (error) {
|
|
196
|
+
return fail2(openError(error));
|
|
197
|
+
}
|
|
198
|
+
if (options.connect === void 0) return resume(Effect.succeed(native.open(scopeIds, remote, false)));
|
|
199
|
+
try {
|
|
200
|
+
socket.connect(remote.port, remote.host, (error) => {
|
|
201
|
+
if (error) return fail2(openError(error));
|
|
202
|
+
resume(Effect.succeed(native.open(scopeIds, remote, true)));
|
|
203
|
+
});
|
|
204
|
+
} catch (error) {
|
|
205
|
+
fail2(openError(error));
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
} catch (error) {
|
|
209
|
+
fail2(openError(error));
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
var adopt = (socket, options, events) => Effect.callback((resume) => {
|
|
213
|
+
const native = new NativeSocket(socket, events);
|
|
214
|
+
const fail2 = (error) => {
|
|
215
|
+
native.close();
|
|
216
|
+
resume(Effect.fail(error));
|
|
217
|
+
};
|
|
218
|
+
let family;
|
|
219
|
+
let remote;
|
|
220
|
+
try {
|
|
221
|
+
family = socket.address().family === "IPv6" ? "ipv6" : "ipv4";
|
|
222
|
+
} catch (error) {
|
|
223
|
+
return fail2(openError(error));
|
|
224
|
+
}
|
|
225
|
+
try {
|
|
226
|
+
remote = socket.remoteAddress();
|
|
227
|
+
} catch {
|
|
228
|
+
}
|
|
229
|
+
const scopeIds = scopeIdsFor(family);
|
|
230
|
+
if (remote !== void 0) {
|
|
231
|
+
return resume(Effect.succeed(native.open(scopeIds, {
|
|
232
|
+
host: remote.address,
|
|
233
|
+
port: remote.port
|
|
234
|
+
}, true)));
|
|
235
|
+
}
|
|
236
|
+
resolvePeer(options.peer, family, scopeIds, (error) => fail2(openError(error, "AddressNotAvailable")), (peer) => resume(Effect.succeed(native.open(scopeIds, peer, false))));
|
|
237
|
+
});
|
|
238
|
+
var NativeSocket = class {
|
|
239
|
+
socket;
|
|
240
|
+
onOpenError = void 0;
|
|
241
|
+
closing = false;
|
|
242
|
+
constructor(socket, events) {
|
|
243
|
+
this.socket = socket;
|
|
244
|
+
socket.on("message", (payload, info) => events.onPacket(payload, info.address, info.port));
|
|
245
|
+
socket.on("error", (error) => {
|
|
246
|
+
if (this.onOpenError !== void 0) return this.onOpenError(error);
|
|
247
|
+
events.onError(readError(error));
|
|
248
|
+
});
|
|
249
|
+
socket.on("close", () => {
|
|
250
|
+
if (!this.closing) events.onClose();
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
open(scopeIds, peer, connected) {
|
|
254
|
+
this.onOpenError = void 0;
|
|
255
|
+
const socket = this.socket;
|
|
256
|
+
const bound = socket.address();
|
|
257
|
+
const send = (payload, destination, done) => {
|
|
258
|
+
try {
|
|
259
|
+
if (destination === void 0) socket.send(payload, done);
|
|
260
|
+
else socket.send(payload, destination.port, destination.host, done);
|
|
261
|
+
} catch (error) {
|
|
262
|
+
done(error);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
return {
|
|
266
|
+
address: {
|
|
267
|
+
host: bound.address,
|
|
268
|
+
port: bound.port
|
|
269
|
+
},
|
|
270
|
+
scopeIds,
|
|
271
|
+
peer,
|
|
272
|
+
connected,
|
|
273
|
+
send: (payload, destination, done) => send(payload, destination, (error) => done(error == null ? void 0 : writeError(error))),
|
|
274
|
+
sendMany: (payloads, destinations, done) => {
|
|
275
|
+
let remaining = payloads.length;
|
|
276
|
+
let failure;
|
|
277
|
+
let failedAt;
|
|
278
|
+
const report = (error, index) => {
|
|
279
|
+
if (error != null && failure === void 0) {
|
|
280
|
+
failure = writeError(error);
|
|
281
|
+
failedAt = index;
|
|
282
|
+
}
|
|
283
|
+
if (--remaining === 0) done(failure, failedAt);
|
|
284
|
+
};
|
|
285
|
+
for (let i = 0; i < payloads.length; i++) {
|
|
286
|
+
send(payloads[i], destinations[i], (error) => report(error, i));
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
joinMulticast: ({
|
|
290
|
+
group,
|
|
291
|
+
interface: ingress,
|
|
292
|
+
source
|
|
293
|
+
}) => Effect.try({
|
|
294
|
+
try: () => {
|
|
295
|
+
const groupHost = NetAddress.formatIp(group);
|
|
296
|
+
const interfaceHost = ingress === void 0 ? void 0 : NetAddress.formatMulticastInterface(ingress, scopeIds);
|
|
297
|
+
if (source === void 0) {
|
|
298
|
+
socket.addMembership(groupHost, interfaceHost);
|
|
299
|
+
return () => Effect.sync(() => socket.dropMembership(groupHost, interfaceHost));
|
|
300
|
+
}
|
|
301
|
+
const sourceHost = NetAddress.formatIp(source);
|
|
302
|
+
socket.addSourceSpecificMembership(sourceHost, groupHost, interfaceHost);
|
|
303
|
+
return () => Effect.sync(() => socket.dropSourceSpecificMembership(sourceHost, groupHost, interfaceHost));
|
|
304
|
+
},
|
|
305
|
+
catch: (error) => openError(error)
|
|
306
|
+
}),
|
|
307
|
+
close: () => this.close()
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
close() {
|
|
311
|
+
if (this.closing) return;
|
|
312
|
+
this.closing = true;
|
|
313
|
+
try {
|
|
314
|
+
this.socket.close();
|
|
315
|
+
} catch {
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
export {
|
|
321
|
+
make,
|
|
322
|
+
fromSocket,
|
|
323
|
+
layer,
|
|
324
|
+
NodeDatagramSocket_exports
|
|
325
|
+
};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__export
|
|
3
3
|
} from "./chunk-MLKGABMK.js";
|
|
4
4
|
|
|
5
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
6
6
|
var NodePath_exports = {};
|
|
7
7
|
__export(NodePath_exports, {
|
|
8
8
|
layer: () => layer,
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer as layer2
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VWSWEUN5.js";
|
|
4
4
|
import {
|
|
5
5
|
layerWebSocketConstructor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6L2NJEOV.js";
|
|
7
7
|
import {
|
|
8
8
|
layerK8sHttpClient
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
layer
|
|
12
|
-
} from "./chunk-VZBDV3TV.js";
|
|
9
|
+
} from "./chunk-YFD4QFIL.js";
|
|
13
10
|
import {
|
|
14
11
|
layerUndici
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UPIQ52FQ.js";
|
|
13
|
+
import {
|
|
14
|
+
layer
|
|
15
|
+
} from "./chunk-PU7QVYND.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/NodeClusterHttp.js
|
|
21
21
|
var NodeClusterHttp_exports = {};
|
|
22
22
|
__export(NodeClusterHttp_exports, {
|
|
23
23
|
layer: () => layer5,
|
|
24
24
|
layerHttpServer: () => layerHttpServer,
|
|
25
25
|
layerK8sHttpClient: () => layerK8sHttpClient
|
|
26
26
|
});
|
|
27
|
+
import * as HttpRunner from "effect/cluster/HttpRunner";
|
|
28
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
29
|
+
import * as RunnerHealth from "effect/cluster/RunnerHealth";
|
|
30
|
+
import * as Runners from "effect/cluster/Runners";
|
|
31
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
32
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
33
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage";
|
|
34
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage";
|
|
27
35
|
import * as Effect from "effect/Effect";
|
|
28
36
|
import * as Layer from "effect/Layer";
|
|
29
37
|
import * as Option from "effect/Option";
|
|
30
|
-
import * as
|
|
31
|
-
import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
|
|
32
|
-
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth";
|
|
33
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
34
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
35
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
36
|
-
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage";
|
|
37
|
-
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage";
|
|
38
|
-
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
38
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization";
|
|
39
39
|
import { createServer } from "node:http";
|
|
40
40
|
var layer5 = (options) => {
|
|
41
41
|
const layer6 = options.clientOnly ? options.transport === "http" ? Layer.provide(HttpRunner.layerHttpClientOnly, layerUndici) : Layer.provide(HttpRunner.layerWebsocketClientOnly, layerWebSocketConstructor) : options.transport === "http" ? Layer.provide(HttpRunner.layerHttp, [layerHttpServer, layerUndici]) : Layer.provide(HttpRunner.layerWebsocket, [layerHttpServer, layerWebSocketConstructor]);
|
|
@@ -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/NodeWorker.js
|
|
6
6
|
var NodeWorker_exports = {};
|
|
7
7
|
__export(NodeWorker_exports, {
|
|
8
8
|
layer: () => layer,
|
|
@@ -13,8 +13,8 @@ import * as Effect from "effect/Effect";
|
|
|
13
13
|
import * as Exit from "effect/Exit";
|
|
14
14
|
import * as Layer from "effect/Layer";
|
|
15
15
|
import * as Scope from "effect/Scope";
|
|
16
|
-
import * as Worker from "effect/
|
|
17
|
-
import { WorkerError, WorkerReceiveError } from "effect/
|
|
16
|
+
import * as Worker from "effect/workers/Worker";
|
|
17
|
+
import { WorkerError, WorkerReceiveError } from "effect/workers/WorkerError";
|
|
18
18
|
var layerPlatform = /* @__PURE__ */ Layer.succeed(Worker.WorkerPlatform)(/* @__PURE__ */ Worker.makePlatform()({
|
|
19
19
|
setup({
|
|
20
20
|
scope,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HDV6VIRM.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.4_effect@4.0.4_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
|
|
@@ -2,14 +2,14 @@ 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/NodeMultipartParser.js
|
|
6
6
|
var NodeMultipartParser_exports = {};
|
|
7
7
|
__export(NodeMultipartParser_exports, {
|
|
8
8
|
FileStream: () => FileStream,
|
|
9
9
|
MultipartStream: () => MultipartStream,
|
|
10
10
|
make: () => make
|
|
11
11
|
});
|
|
12
|
-
import { make as makeParser } from "effect/
|
|
12
|
+
import { make as makeParser } from "effect/http/MultipartParser";
|
|
13
13
|
import { Duplex, Readable } from "node:stream";
|
|
14
14
|
var MultipartStream = class extends Duplex {
|
|
15
15
|
_parser;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
flattenCommand,
|
|
3
3
|
layer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NQO6V4KI.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./chunk-MLKGABMK.js";
|
|
8
8
|
|
|
9
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
9
|
+
// ../../../../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/NodeChildProcessSpawner.js
|
|
10
10
|
var NodeChildProcessSpawner_exports = {};
|
|
11
11
|
__export(NodeChildProcessSpawner_exports, {
|
|
12
12
|
flattenCommand: () => flattenCommand,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeAddressResolver.js
|
|
6
|
+
var NodeAddressResolver_exports = {};
|
|
7
|
+
__export(NodeAddressResolver_exports, {
|
|
8
|
+
layer: () => layer2
|
|
9
|
+
});
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import * as AddressResolver from "effect/net/AddressResolver";
|
|
12
|
+
import * as NetAddress from "effect/net/NetAddress";
|
|
13
|
+
import * as Os from "node:os";
|
|
14
|
+
var scopeId = (name) => Effect.try({
|
|
15
|
+
try: () => NetAddress.scopeIdFromInterface(Os.networkInterfaces()[name]),
|
|
16
|
+
catch: (cause) => new NetAddress.NetAddressError({
|
|
17
|
+
input: name,
|
|
18
|
+
message: "cannot list network interfaces",
|
|
19
|
+
cause
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
var layer2 = /* @__PURE__ */ AddressResolver.layer({
|
|
23
|
+
scopeId
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
layer2 as layer,
|
|
28
|
+
NodeAddressResolver_exports
|
|
29
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pullIntoWritable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A7UXCEJA.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./chunk-MLKGABMK.js";
|
|
7
7
|
|
|
8
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
8
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
9
9
|
var NodeStream_exports = {};
|
|
10
10
|
__export(NodeStream_exports, {
|
|
11
11
|
fromDuplex: () => fromDuplex,
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
NetSocket,
|
|
3
3
|
NodeWS,
|
|
4
4
|
fromDuplex
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C3PGUWW5.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
8
|
} from "./chunk-MLKGABMK.js";
|
|
9
9
|
|
|
10
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
10
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeSocketServer.js
|
|
11
11
|
var NodeSocketServer_exports = {};
|
|
12
12
|
__export(NodeSocketServer_exports, {
|
|
13
13
|
IncomingMessage: () => IncomingMessage,
|
|
@@ -26,11 +26,11 @@ import * as Fiber from "effect/Fiber";
|
|
|
26
26
|
import { pipe } from "effect/Function";
|
|
27
27
|
import * as Function from "effect/Function";
|
|
28
28
|
import * as Layer from "effect/Layer";
|
|
29
|
+
import * as NetAddress from "effect/net/NetAddress";
|
|
29
30
|
import * as References from "effect/References";
|
|
30
31
|
import * as Scope from "effect/Scope";
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as SocketServer from "effect/unstable/socket/SocketServer";
|
|
32
|
+
import * as Socket from "effect/socket/Socket";
|
|
33
|
+
import * as SocketServer from "effect/socket/SocketServer";
|
|
34
34
|
import * as Net from "node:net";
|
|
35
35
|
import * as Tls from "node:tls";
|
|
36
36
|
var isDeno = "Deno" in globalThis;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NodeHttpIncomingMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D2ZL4PLZ.js";
|
|
4
4
|
import {
|
|
5
5
|
fromReadable,
|
|
6
6
|
toReadable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RQH5DSBA.js";
|
|
8
8
|
import {
|
|
9
9
|
fromWritable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A7UXCEJA.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunk-MLKGABMK.js";
|
|
14
14
|
|
|
15
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
15
|
+
// ../../../../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/NodeHttpClient.js
|
|
16
16
|
var NodeHttpClient_exports = {};
|
|
17
17
|
__export(NodeHttpClient_exports, {
|
|
18
18
|
Dispatcher: () => Dispatcher,
|
|
@@ -37,18 +37,18 @@ __export(NodeHttpClient_exports, {
|
|
|
37
37
|
import * as Context from "effect/Context";
|
|
38
38
|
import * as Effect from "effect/Effect";
|
|
39
39
|
import { flow } from "effect/Function";
|
|
40
|
+
import * as Cookies from "effect/http/Cookies";
|
|
41
|
+
import * as Headers from "effect/http/Headers";
|
|
42
|
+
import * as Client from "effect/http/HttpClient";
|
|
43
|
+
import * as Error from "effect/http/HttpClientError";
|
|
44
|
+
import * as Response from "effect/http/HttpClientResponse";
|
|
45
|
+
import * as IncomingMessage from "effect/http/HttpIncomingMessage";
|
|
46
|
+
import * as UrlParams from "effect/http/UrlParams";
|
|
40
47
|
import * as Inspectable from "effect/Inspectable";
|
|
41
48
|
import * as Layer from "effect/Layer";
|
|
42
49
|
import * as Option from "effect/Option";
|
|
43
50
|
import { pipeArguments } from "effect/Pipeable";
|
|
44
51
|
import * as Stream from "effect/Stream";
|
|
45
|
-
import * as Cookies from "effect/unstable/http/Cookies";
|
|
46
|
-
import * as Headers from "effect/unstable/http/Headers";
|
|
47
|
-
import * as Client from "effect/unstable/http/HttpClient";
|
|
48
|
-
import * as Error from "effect/unstable/http/HttpClientError";
|
|
49
|
-
import * as Response from "effect/unstable/http/HttpClientResponse";
|
|
50
|
-
import * as IncomingMessage from "effect/unstable/http/HttpIncomingMessage";
|
|
51
|
-
import * as UrlParams from "effect/unstable/http/UrlParams";
|
|
52
52
|
import * as Http from "node:http";
|
|
53
53
|
import * as Https from "node:https";
|
|
54
54
|
import { Readable } from "node:stream";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
Fetch,
|
|
58
58
|
layer,
|
|
59
59
|
RequestInit
|
|
60
|
-
} from "effect/
|
|
60
|
+
} from "effect/http/FetchHttpClient";
|
|
61
61
|
var Dispatcher = class extends (/* @__PURE__ */ Context.Service()("@effect/platform-node/NodeHttpClient/Dispatcher")) {
|
|
62
62
|
};
|
|
63
63
|
var loadUndici = /* @__PURE__ */ Effect.promise(() => import("./node/Undici.js"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
1
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
|
|
2
2
|
var buildSpawnOptions = (options, base, platform) => {
|
|
3
3
|
const detached = options.detached ?? platform !== "win32";
|
|
4
4
|
return {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__export
|
|
3
3
|
} from "./chunk-MLKGABMK.js";
|
|
4
4
|
|
|
5
|
-
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
6
6
|
var NodeRuntime_exports = {};
|
|
7
7
|
__export(NodeRuntime_exports, {
|
|
8
8
|
runMain: () => runMain
|
|
@@ -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/NodeRedis.js
|
|
6
6
|
var NodeRedis_exports = {};
|
|
7
7
|
__export(NodeRedis_exports, {
|
|
8
8
|
NodeRedis: () => NodeRedis,
|
|
@@ -15,7 +15,7 @@ import * as Deferred from "effect/Deferred";
|
|
|
15
15
|
import * as Effect from "effect/Effect";
|
|
16
16
|
import * as Fn from "effect/Function";
|
|
17
17
|
import * as Layer from "effect/Layer";
|
|
18
|
-
import * as Redis from "effect/
|
|
18
|
+
import * as Redis from "effect/persistence/Redis";
|
|
19
19
|
import { createClient, SocketTimeoutError } from "redis";
|
|
20
20
|
var NodeRedis = class extends (/* @__PURE__ */ Context.Service()("@effect/platform-node/NodeRedis")) {
|
|
21
21
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BY3SDXID.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.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
9
9
|
var NodeFileSystem_exports = {};
|
|
10
10
|
__export(NodeFileSystem_exports, {
|
|
11
11
|
layer: () => layer2
|