@smthrs/platform-bun 0.0.0-stage → 1.0.0-rc.12
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/CHANGELOG.md +73 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/dist/cjs/BunFileSystem.d.ts +44 -0
- package/dist/cjs/BunFileSystem.d.ts.map +1 -0
- package/dist/cjs/BunFileSystem.js +38 -0
- package/dist/cjs/BunFileSystem.js.map +7 -0
- package/dist/cjs/BunHost.d.ts +205 -0
- package/dist/cjs/BunHost.d.ts.map +1 -0
- package/dist/cjs/BunHost.js +148 -0
- package/dist/cjs/BunHost.js.map +7 -0
- package/dist/cjs/index.d.ts +26 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +37 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/BunFileSystem.d.ts +44 -0
- package/dist/esm/BunFileSystem.d.ts.map +1 -0
- package/dist/esm/BunFileSystem.js +35 -0
- package/dist/esm/BunFileSystem.js.map +1 -0
- package/dist/esm/BunHost.d.ts +205 -0
- package/dist/esm/BunHost.d.ts.map +1 -0
- package/dist/esm/BunHost.js +248 -0
- package/dist/esm/BunHost.js.map +1 -0
- package/dist/esm/index.d.ts +26 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/vendor/adapters.json +3067 -0
- package/dist/vendor/bun/BunAddressResolver.d.ts +15 -0
- package/dist/vendor/bun/BunAddressResolver.js +8 -0
- package/dist/vendor/bun/BunChildProcessSpawner.d.ts +8 -0
- package/dist/vendor/bun/BunChildProcessSpawner.js +14 -0
- package/dist/vendor/bun/BunClusterHttp.d.ts +76 -0
- package/dist/vendor/bun/BunClusterHttp.js +39 -0
- package/dist/vendor/bun/BunClusterSocket.d.ts +70 -0
- package/dist/vendor/bun/BunClusterSocket.js +22 -0
- package/dist/vendor/bun/BunCrypto.d.ts +11 -0
- package/dist/vendor/bun/BunCrypto.js +8 -0
- package/dist/vendor/bun/BunDatagramSocket.d.ts +227 -0
- package/dist/vendor/bun/BunDatagramSocket.js +11 -0
- package/dist/vendor/bun/BunDns.d.ts +72 -0
- package/dist/vendor/bun/BunDns.js +12 -0
- package/dist/vendor/bun/BunFileSystem.d.ts +11 -0
- package/dist/vendor/bun/BunFileSystem.js +9 -0
- package/dist/vendor/bun/BunHttpClient.d.ts +10 -0
- package/dist/vendor/bun/BunHttpClient.js +1 -0
- package/dist/vendor/bun/BunHttpPlatform.d.ts +11 -0
- package/dist/vendor/bun/BunHttpPlatform.js +11 -0
- package/dist/vendor/bun/BunHttpServer.d.ts +151 -0
- package/dist/vendor/bun/BunHttpServer.js +38 -0
- package/dist/vendor/bun/BunHttpServerRequest.d.ts +20 -0
- package/dist/vendor/bun/BunHttpServerRequest.js +7 -0
- package/dist/vendor/bun/BunMultipart.d.ts +34 -0
- package/dist/vendor/bun/BunMultipart.js +12 -0
- package/dist/vendor/bun/BunPath.d.ts +27 -0
- package/dist/vendor/bun/BunPath.js +12 -0
- package/dist/vendor/bun/BunRedis.d.ts +53 -0
- package/dist/vendor/bun/BunRedis.js +11 -0
- package/dist/vendor/bun/BunRuntime.d.ts +88 -0
- package/dist/vendor/bun/BunRuntime.js +8 -0
- package/dist/vendor/bun/BunServices.d.ts +37 -0
- package/dist/vendor/bun/BunServices.js +23 -0
- package/dist/vendor/bun/BunSink.d.ts +9 -0
- package/dist/vendor/bun/BunSink.js +12 -0
- package/dist/vendor/bun/BunSocket.d.ts +45 -0
- package/dist/vendor/bun/BunSocket.js +29 -0
- package/dist/vendor/bun/BunSocketServer.d.ts +9 -0
- package/dist/vendor/bun/BunSocketServer.js +21 -0
- package/dist/vendor/bun/BunStdio.d.ts +12 -0
- package/dist/vendor/bun/BunStdio.js +10 -0
- package/dist/vendor/bun/BunStream.d.ts +20 -0
- package/dist/vendor/bun/BunStream.js +30 -0
- package/dist/vendor/bun/BunTerminal.d.ts +24 -0
- package/dist/vendor/bun/BunTerminal.js +10 -0
- package/dist/vendor/bun/BunWorker.d.ts +22 -0
- package/dist/vendor/bun/BunWorker.js +9 -0
- package/dist/vendor/bun/BunWorkerRunner.d.ts +13 -0
- package/dist/vendor/bun/BunWorkerRunner.js +7 -0
- package/dist/vendor/bun/LICENSE +21 -0
- package/dist/vendor/bun/index.d.ts +130 -0
- package/dist/vendor/bun/index.js +121 -0
- package/dist/vendor/chunk-2ZAGBWTH.js +40 -0
- package/dist/vendor/chunk-3SL3HKQA.js +118 -0
- package/dist/vendor/chunk-3WUGYBFU.js +0 -0
- package/dist/vendor/chunk-4WIQ2XN7.js +28 -0
- package/dist/vendor/chunk-5ET7NHI7.js +15 -0
- package/dist/vendor/chunk-6FSJ2PMW.js +53 -0
- package/dist/vendor/chunk-6L2NJEOV.js +62 -0
- package/dist/vendor/chunk-72X6VEVD.js +62 -0
- package/dist/vendor/chunk-7NMJM44J.js +26 -0
- package/dist/vendor/chunk-A7AY2JP7.js +71 -0
- package/dist/vendor/chunk-A7UXCEJA.js +81 -0
- package/dist/vendor/chunk-ADP5LRUF.js +274 -0
- package/dist/vendor/chunk-ASGOJ3XA.js +0 -0
- package/dist/vendor/chunk-AWNTTSHL.js +34 -0
- package/dist/vendor/chunk-BUKVIAEM.js +20 -0
- package/dist/vendor/chunk-BY3SDXID.js +501 -0
- package/dist/vendor/chunk-C3PGUWW5.js +414 -0
- package/dist/vendor/chunk-CL4EIDIY.js +7 -0
- package/dist/vendor/chunk-D2ZL4PLZ.js +93 -0
- package/dist/vendor/chunk-D4HEMNGU.js +22 -0
- package/dist/vendor/chunk-F4V5TRY7.js +85 -0
- package/dist/vendor/chunk-F772LLZ5.js +31 -0
- package/dist/vendor/chunk-FFD6R5JZ.js +104 -0
- package/dist/vendor/chunk-G4HOH7GK.js +65 -0
- package/dist/vendor/chunk-GJN7MEBF.js +18 -0
- package/dist/vendor/chunk-HDV6VIRM.js +48 -0
- package/dist/vendor/chunk-IHV7Z4SW.js +34 -0
- package/dist/vendor/chunk-IWSDM4CG.js +16 -0
- package/dist/vendor/chunk-JOQDB2HC.js +26 -0
- package/dist/vendor/chunk-KABHKTVG.js +18 -0
- package/dist/vendor/chunk-KFDBU6RR.js +60 -0
- package/dist/vendor/chunk-KHPN5DWT.js +20 -0
- package/dist/vendor/chunk-LNWGIDIG.js +20 -0
- package/dist/vendor/chunk-MLKGABMK.js +9 -0
- package/dist/vendor/chunk-MUEED3C3.js +144 -0
- package/dist/vendor/chunk-N6TK35N5.js +18 -0
- package/dist/vendor/chunk-NQO6V4KI.js +580 -0
- package/dist/vendor/chunk-NUJQMLJP.js +325 -0
- package/dist/vendor/chunk-OF3N2FN4.js +61 -0
- package/dist/vendor/chunk-OGZJACUS.js +57 -0
- package/dist/vendor/chunk-PCEVZYXO.js +63 -0
- package/dist/vendor/chunk-PECOFLCU.js +85 -0
- package/dist/vendor/chunk-PU7QVYND.js +18 -0
- package/dist/vendor/chunk-QGPZPULA.js +51 -0
- package/dist/vendor/chunk-QHR2RC5M.js +109 -0
- package/dist/vendor/chunk-R2YON4A6.js +28 -0
- package/dist/vendor/chunk-R327POEZ.js +18 -0
- package/dist/vendor/chunk-REFJNBQR.js +18 -0
- package/dist/vendor/chunk-RHJ6LV32.js +43 -0
- package/dist/vendor/chunk-RKVXYKHJ.js +29 -0
- package/dist/vendor/chunk-RP3EWS4C.js +0 -0
- package/dist/vendor/chunk-RQH5DSBA.js +249 -0
- package/dist/vendor/chunk-RQQ5TSCD.js +374 -0
- package/dist/vendor/chunk-S6QUQLBV.js +229 -0
- package/dist/vendor/chunk-SCXQLSNW.js +34 -0
- package/dist/vendor/chunk-SD4X5NGU.js +515 -0
- package/dist/vendor/chunk-T332WJRS.js +128 -0
- package/dist/vendor/chunk-T5FQGISI.js +18 -0
- package/dist/vendor/chunk-TBPDCAMH.js +70 -0
- package/dist/vendor/chunk-UFWLKG4I.js +16 -0
- package/dist/vendor/chunk-UPIQ52FQ.js +426 -0
- package/dist/vendor/chunk-UUQXJRMK.js +14 -0
- package/dist/vendor/chunk-UUYTTEDH.js +36 -0
- package/dist/vendor/chunk-V2EB7FHY.js +129 -0
- package/dist/vendor/chunk-VIWU4EBF.js +18 -0
- package/dist/vendor/chunk-WPZDL2D7.js +21 -0
- package/dist/vendor/chunk-X4YPHWAE.js +22 -0
- package/dist/vendor/chunk-XACFQJY7.js +93 -0
- package/dist/vendor/chunk-Y7V6ISZS.js +418 -0
- package/dist/vendor/chunk-YDY5P7GL.js +20 -0
- package/dist/vendor/chunk-ZNKZXDUD.js +18 -0
- package/dist/vendor/chunk-ZS3VW5QR.js +63 -0
- package/dist/vendor/chunk-ZUUCLHBP.js +18 -0
- package/dist/vendor/chunk-ZVJCBTJG.js +131 -0
- package/dist/vendor/cjs/bun/BunAddressResolver.d.ts +15 -0
- package/dist/vendor/cjs/bun/BunAddressResolver.js +1 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.d.ts +8 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.d.ts +76 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.d.ts +70 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunCrypto.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunCrypto.js +1 -0
- package/dist/vendor/cjs/bun/BunDatagramSocket.d.ts +227 -0
- package/dist/vendor/cjs/bun/BunDatagramSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunDns.d.ts +72 -0
- package/dist/vendor/cjs/bun/BunDns.js +1 -0
- package/dist/vendor/cjs/bun/BunFileSystem.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunFileSystem.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpClient.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunHttpClient.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServer.d.ts +151 -0
- package/dist/vendor/cjs/bun/BunHttpServer.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.d.ts +20 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/bun/BunMultipart.d.ts +34 -0
- package/dist/vendor/cjs/bun/BunMultipart.js +1 -0
- package/dist/vendor/cjs/bun/BunPath.d.ts +27 -0
- package/dist/vendor/cjs/bun/BunPath.js +1 -0
- package/dist/vendor/cjs/bun/BunRedis.d.ts +53 -0
- package/dist/vendor/cjs/bun/BunRedis.js +1 -0
- package/dist/vendor/cjs/bun/BunRuntime.d.ts +88 -0
- package/dist/vendor/cjs/bun/BunRuntime.js +1 -0
- package/dist/vendor/cjs/bun/BunServices.d.ts +37 -0
- package/dist/vendor/cjs/bun/BunServices.js +1 -0
- package/dist/vendor/cjs/bun/BunSink.d.ts +9 -0
- package/dist/vendor/cjs/bun/BunSink.js +1 -0
- package/dist/vendor/cjs/bun/BunSocket.d.ts +45 -0
- package/dist/vendor/cjs/bun/BunSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunSocketServer.d.ts +9 -0
- package/dist/vendor/cjs/bun/BunSocketServer.js +1 -0
- package/dist/vendor/cjs/bun/BunStdio.d.ts +12 -0
- package/dist/vendor/cjs/bun/BunStdio.js +1 -0
- package/dist/vendor/cjs/bun/BunStream.d.ts +20 -0
- package/dist/vendor/cjs/bun/BunStream.js +1 -0
- package/dist/vendor/cjs/bun/BunTerminal.d.ts +24 -0
- package/dist/vendor/cjs/bun/BunTerminal.js +1 -0
- package/dist/vendor/cjs/bun/BunWorker.d.ts +22 -0
- package/dist/vendor/cjs/bun/BunWorker.js +1 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.d.ts +13 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.js +1 -0
- package/dist/vendor/cjs/bun/index.d.ts +130 -0
- package/dist/vendor/cjs/bun/index.js +1 -0
- 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 +8 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +54 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +85 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeCrypto.d.ts +11 -0
- package/dist/vendor/cjs/node/NodeCrypto.js +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 +11 -0
- package/dist/vendor/cjs/node/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpClient.d.ts +198 -0
- package/dist/vendor/cjs/node/NodeHttpClient.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +64 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +38 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServer.d.ts +131 -0
- package/dist/vendor/cjs/node/NodeHttpServer.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +32 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipart.d.ts +50 -0
- package/dist/vendor/cjs/node/NodeMultipart.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +105 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.js +1 -0
- package/dist/vendor/cjs/node/NodePath.d.ts +30 -0
- package/dist/vendor/cjs/node/NodePath.js +1 -0
- package/dist/vendor/cjs/node/NodeRedis.d.ts +78 -0
- package/dist/vendor/cjs/node/NodeRedis.js +1 -0
- package/dist/vendor/cjs/node/NodeRuntime.d.ts +88 -0
- package/dist/vendor/cjs/node/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node/NodeServices.d.ts +37 -0
- package/dist/vendor/cjs/node/NodeServices.js +1 -0
- package/dist/vendor/cjs/node/NodeSink.d.ts +9 -0
- package/dist/vendor/cjs/node/NodeSink.js +1 -0
- package/dist/vendor/cjs/node/NodeSocket.d.ts +45 -0
- package/dist/vendor/cjs/node/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeSocketServer.d.ts +9 -0
- package/dist/vendor/cjs/node/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node/NodeStdio.d.ts +12 -0
- package/dist/vendor/cjs/node/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node/NodeStream.d.ts +9 -0
- package/dist/vendor/cjs/node/NodeStream.js +1 -0
- package/dist/vendor/cjs/node/NodeTerminal.d.ts +24 -0
- package/dist/vendor/cjs/node/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node/NodeWorker.d.ts +24 -0
- package/dist/vendor/cjs/node/NodeWorker.js +1 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +13 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.js +1 -0
- package/dist/vendor/cjs/node/Undici.d.ts +31 -0
- package/dist/vendor/cjs/node/Undici.js +1 -0
- package/dist/vendor/cjs/node/index.d.ts +140 -0
- package/dist/vendor/cjs/node/index.js +1 -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 +66 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +35 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +30 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.js +1 -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 +12 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +40 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.js +1 -0
- package/dist/vendor/cjs/node-shared/NodePath.d.ts +30 -0
- package/dist/vendor/cjs/node-shared/NodePath.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +51 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSink.d.ts +73 -0
- package/dist/vendor/cjs/node-shared/NodeSink.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +144 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +87 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +13 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStream.d.ts +194 -0
- package/dist/vendor/cjs/node-shared/NodeStream.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +24 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node-shared/index.d.ts +85 -0
- package/dist/vendor/cjs/node-shared/index.js +1 -0
- package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
- package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node-shared/internal/utils.d.ts +2 -0
- package/dist/vendor/cjs/node-shared/internal/utils.js +1 -0
- package/dist/vendor/cjs/package.json +1 -0
- package/dist/vendor/cjs/platform-bun.d.ts +130 -0
- package/dist/vendor/cjs/platform-bun.js +1 -0
- package/dist/vendor/cjs/platform-node-shared.d.ts +85 -0
- package/dist/vendor/cjs/platform-node-shared.js +1 -0
- package/dist/vendor/cjs/platform-node.d.ts +140 -0
- package/dist/vendor/cjs/platform-node.js +1 -0
- package/dist/vendor/node/LICENSE +21 -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 +8 -0
- package/dist/vendor/node/NodeChildProcessSpawner.js +14 -0
- package/dist/vendor/node/NodeClusterHttp.d.ts +54 -0
- package/dist/vendor/node/NodeClusterHttp.js +43 -0
- package/dist/vendor/node/NodeClusterSocket.d.ts +85 -0
- package/dist/vendor/node/NodeClusterSocket.js +30 -0
- package/dist/vendor/node/NodeCrypto.d.ts +11 -0
- package/dist/vendor/node/NodeCrypto.js +8 -0
- 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 +11 -0
- package/dist/vendor/node/NodeFileSystem.js +9 -0
- package/dist/vendor/node/NodeHttpClient.d.ts +198 -0
- package/dist/vendor/node/NodeHttpClient.js +46 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +64 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.js +10 -0
- package/dist/vendor/node/NodeHttpPlatform.d.ts +38 -0
- package/dist/vendor/node/NodeHttpPlatform.js +16 -0
- package/dist/vendor/node/NodeHttpServer.d.ts +131 -0
- package/dist/vendor/node/NodeHttpServer.js +46 -0
- package/dist/vendor/node/NodeHttpServerRequest.d.ts +32 -0
- package/dist/vendor/node/NodeHttpServerRequest.js +9 -0
- package/dist/vendor/node/NodeMultipart.d.ts +50 -0
- package/dist/vendor/node/NodeMultipart.js +15 -0
- package/dist/vendor/node/NodeMultipartParser.d.ts +105 -0
- package/dist/vendor/node/NodeMultipartParser.js +11 -0
- package/dist/vendor/node/NodePath.d.ts +30 -0
- package/dist/vendor/node/NodePath.js +12 -0
- package/dist/vendor/node/NodeRedis.d.ts +78 -0
- package/dist/vendor/node/NodeRedis.js +11 -0
- package/dist/vendor/node/NodeRuntime.d.ts +88 -0
- package/dist/vendor/node/NodeRuntime.js +8 -0
- package/dist/vendor/node/NodeServices.d.ts +37 -0
- package/dist/vendor/node/NodeServices.js +23 -0
- package/dist/vendor/node/NodeSink.d.ts +9 -0
- package/dist/vendor/node/NodeSink.js +12 -0
- package/dist/vendor/node/NodeSocket.d.ts +45 -0
- package/dist/vendor/node/NodeSocket.js +31 -0
- package/dist/vendor/node/NodeSocketServer.d.ts +9 -0
- package/dist/vendor/node/NodeSocketServer.js +21 -0
- package/dist/vendor/node/NodeStdio.d.ts +12 -0
- package/dist/vendor/node/NodeStdio.js +10 -0
- package/dist/vendor/node/NodeStream.d.ts +9 -0
- package/dist/vendor/node/NodeStream.js +27 -0
- package/dist/vendor/node/NodeTerminal.d.ts +24 -0
- package/dist/vendor/node/NodeTerminal.js +10 -0
- package/dist/vendor/node/NodeWorker.d.ts +24 -0
- package/dist/vendor/node/NodeWorker.js +9 -0
- package/dist/vendor/node/NodeWorkerRunner.d.ts +13 -0
- package/dist/vendor/node/NodeWorkerRunner.js +7 -0
- package/dist/vendor/node/Undici.d.ts +31 -0
- package/dist/vendor/node/Undici.js +9 -0
- package/dist/vendor/node/index.d.ts +140 -0
- package/dist/vendor/node/index.js +130 -0
- package/dist/vendor/node-shared/LICENSE +21 -0
- 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 +66 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.js +13 -0
- package/dist/vendor/node-shared/NodeClusterSocket.d.ts +35 -0
- package/dist/vendor/node-shared/NodeClusterSocket.js +11 -0
- package/dist/vendor/node-shared/NodeCrypto.d.ts +30 -0
- package/dist/vendor/node-shared/NodeCrypto.js +9 -0
- 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 +12 -0
- package/dist/vendor/node-shared/NodeFileSystem.js +8 -0
- package/dist/vendor/node-shared/NodeHttpCompression.d.ts +40 -0
- package/dist/vendor/node-shared/NodeHttpCompression.js +13 -0
- package/dist/vendor/node-shared/NodePath.d.ts +30 -0
- package/dist/vendor/node-shared/NodePath.js +11 -0
- package/dist/vendor/node-shared/NodeRuntime.d.ts +51 -0
- package/dist/vendor/node-shared/NodeRuntime.js +7 -0
- package/dist/vendor/node-shared/NodeSink.d.ts +73 -0
- package/dist/vendor/node-shared/NodeSink.js +11 -0
- package/dist/vendor/node-shared/NodeSocket.d.ts +144 -0
- package/dist/vendor/node-shared/NodeSocket.js +23 -0
- package/dist/vendor/node-shared/NodeSocketServer.d.ts +87 -0
- package/dist/vendor/node-shared/NodeSocketServer.js +20 -0
- package/dist/vendor/node-shared/NodeStdio.d.ts +13 -0
- package/dist/vendor/node-shared/NodeStdio.js +9 -0
- package/dist/vendor/node-shared/NodeStream.d.ts +194 -0
- package/dist/vendor/node-shared/NodeStream.js +26 -0
- package/dist/vendor/node-shared/NodeTerminal.d.ts +24 -0
- package/dist/vendor/node-shared/NodeTerminal.js +9 -0
- package/dist/vendor/node-shared/index.d.ts +85 -0
- package/dist/vendor/node-shared/index.js +70 -0
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +7 -0
- package/dist/vendor/node-shared/internal/utils.d.ts +2 -0
- package/dist/vendor/node-shared/internal/utils.js +7 -0
- package/dist/vendor/platform-bun.d.ts +130 -0
- package/dist/vendor/platform-bun.js +121 -0
- package/dist/vendor/platform-node-shared.d.ts +85 -0
- package/dist/vendor/platform-node-shared.js +70 -0
- package/dist/vendor/platform-node.d.ts +140 -0
- package/dist/vendor/platform-node.js +130 -0
- package/docs/README.md +135 -0
- package/docs/api.md +264 -0
- package/docs/concepts/host-surface.md +152 -0
- package/docs/concepts/runtime-parity.md +80 -0
- package/docs/guides/bind-a-repository-root.md +109 -0
- package/docs/guides/configure-the-filesystem-helper.md +113 -0
- package/docs/guides/contain-child-processes.md +178 -0
- package/docs/installation.md +131 -0
- package/docs/quickstart.md +163 -0
- package/docs/troubleshooting.md +163 -0
- package/package.json +146 -3
- package/src/BunFileSystem.ts +47 -0
- package/src/BunHost.ts +345 -0
- package/src/index.ts +27 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @stability unstable
|
|
3
|
+
* @since 4.0.0
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @stability experimental
|
|
7
|
+
* @since 4.0.0
|
|
8
|
+
*/
|
|
9
|
+
export * as BunAddressResolver from "./BunAddressResolver.ts";
|
|
10
|
+
/**
|
|
11
|
+
* @stability unstable
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
*/
|
|
14
|
+
export * as BunChildProcessSpawner from "./BunChildProcessSpawner.ts";
|
|
15
|
+
/**
|
|
16
|
+
* @stability unstable
|
|
17
|
+
* @since 4.0.0
|
|
18
|
+
*/
|
|
19
|
+
export * as BunClusterHttp from "./BunClusterHttp.ts";
|
|
20
|
+
/**
|
|
21
|
+
* @stability unstable
|
|
22
|
+
* @since 4.0.0
|
|
23
|
+
*/
|
|
24
|
+
export * as BunClusterSocket from "./BunClusterSocket.ts";
|
|
25
|
+
/**
|
|
26
|
+
* @stability unstable
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
export * as BunCrypto from "./BunCrypto.ts";
|
|
30
|
+
/**
|
|
31
|
+
* @stability experimental
|
|
32
|
+
* @since 4.0.0
|
|
33
|
+
*/
|
|
34
|
+
export * as BunDatagramSocket from "./BunDatagramSocket.ts";
|
|
35
|
+
/**
|
|
36
|
+
* @stability experimental
|
|
37
|
+
* @since 4.0.0
|
|
38
|
+
*/
|
|
39
|
+
export * as BunDns from "./BunDns.ts";
|
|
40
|
+
/**
|
|
41
|
+
* @stability unstable
|
|
42
|
+
* @since 4.0.0
|
|
43
|
+
*/
|
|
44
|
+
export * as BunFileSystem from "./BunFileSystem.ts";
|
|
45
|
+
/**
|
|
46
|
+
* @stability unstable
|
|
47
|
+
* @since 4.0.0
|
|
48
|
+
*/
|
|
49
|
+
export * as BunHttpClient from "./BunHttpClient.ts";
|
|
50
|
+
/**
|
|
51
|
+
* @stability unstable
|
|
52
|
+
* @since 4.0.0
|
|
53
|
+
*/
|
|
54
|
+
export * as BunHttpPlatform from "./BunHttpPlatform.ts";
|
|
55
|
+
/**
|
|
56
|
+
* @stability unstable
|
|
57
|
+
* @since 4.0.0
|
|
58
|
+
*/
|
|
59
|
+
export * as BunHttpServer from "./BunHttpServer.ts";
|
|
60
|
+
/**
|
|
61
|
+
* @stability unstable
|
|
62
|
+
* @since 4.0.0
|
|
63
|
+
*/
|
|
64
|
+
export * as BunHttpServerRequest from "./BunHttpServerRequest.ts";
|
|
65
|
+
/**
|
|
66
|
+
* @stability unstable
|
|
67
|
+
* @since 4.0.0
|
|
68
|
+
*/
|
|
69
|
+
export * as BunMultipart from "./BunMultipart.ts";
|
|
70
|
+
/**
|
|
71
|
+
* @stability unstable
|
|
72
|
+
* @since 4.0.0
|
|
73
|
+
*/
|
|
74
|
+
export * as BunPath from "./BunPath.ts";
|
|
75
|
+
/**
|
|
76
|
+
* @stability unstable
|
|
77
|
+
* @since 4.0.0
|
|
78
|
+
*/
|
|
79
|
+
export * as BunRedis from "./BunRedis.ts";
|
|
80
|
+
/**
|
|
81
|
+
* @stability unstable
|
|
82
|
+
* @since 4.0.0
|
|
83
|
+
*/
|
|
84
|
+
export * as BunRuntime from "./BunRuntime.ts";
|
|
85
|
+
/**
|
|
86
|
+
* @stability unstable
|
|
87
|
+
* @since 4.0.0
|
|
88
|
+
*/
|
|
89
|
+
export * as BunServices from "./BunServices.ts";
|
|
90
|
+
/**
|
|
91
|
+
* @stability unstable
|
|
92
|
+
* @since 4.0.0
|
|
93
|
+
*/
|
|
94
|
+
export * as BunSink from "./BunSink.ts";
|
|
95
|
+
/**
|
|
96
|
+
* @stability unstable
|
|
97
|
+
* @since 4.0.0
|
|
98
|
+
*/
|
|
99
|
+
export * as BunSocket from "./BunSocket.ts";
|
|
100
|
+
/**
|
|
101
|
+
* @stability unstable
|
|
102
|
+
* @since 4.0.0
|
|
103
|
+
*/
|
|
104
|
+
export * as BunSocketServer from "./BunSocketServer.ts";
|
|
105
|
+
/**
|
|
106
|
+
* @stability unstable
|
|
107
|
+
* @since 4.0.0
|
|
108
|
+
*/
|
|
109
|
+
export * as BunStdio from "./BunStdio.ts";
|
|
110
|
+
/**
|
|
111
|
+
* @stability unstable
|
|
112
|
+
* @since 4.0.0
|
|
113
|
+
*/
|
|
114
|
+
export * as BunStream from "./BunStream.ts";
|
|
115
|
+
/**
|
|
116
|
+
* @stability unstable
|
|
117
|
+
* @since 4.0.0
|
|
118
|
+
*/
|
|
119
|
+
export * as BunTerminal from "./BunTerminal.ts";
|
|
120
|
+
/**
|
|
121
|
+
* @stability unstable
|
|
122
|
+
* @since 4.0.0
|
|
123
|
+
*/
|
|
124
|
+
export * as BunWorker from "./BunWorker.ts";
|
|
125
|
+
/**
|
|
126
|
+
* @stability unstable
|
|
127
|
+
* @since 4.0.0
|
|
128
|
+
*/
|
|
129
|
+
export * as BunWorkerRunner from "./BunWorkerRunner.ts";
|
|
130
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../bun/index.js")
|
|
@@ -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")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeChildProcessSpawner.js")
|
|
@@ -0,0 +1,54 @@
|
|
|
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";
|
|
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";
|
|
11
|
+
import * as Layer from "effect/Layer";
|
|
12
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
13
|
+
import type { NodeServices } from "./NodeServices.ts";
|
|
14
|
+
export {
|
|
15
|
+
/**
|
|
16
|
+
* Provides the Kubernetes HTTP client layer used by Kubernetes runner health checks.
|
|
17
|
+
*
|
|
18
|
+
* @stability unstable
|
|
19
|
+
* @category re-exports
|
|
20
|
+
* @since 4.0.0
|
|
21
|
+
*/
|
|
22
|
+
layerK8sHttpClient } from "./NodeClusterSocket.ts";
|
|
23
|
+
/**
|
|
24
|
+
* Builds the Node cluster HTTP/WebSocket sharding layer, configuring runner
|
|
25
|
+
* transport, RPC serialization, message storage, runner health checks, and
|
|
26
|
+
* optional client-only mode.
|
|
27
|
+
*
|
|
28
|
+
* @stability unstable
|
|
29
|
+
* @category layers
|
|
30
|
+
* @since 4.0.0
|
|
31
|
+
*/
|
|
32
|
+
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options: {
|
|
33
|
+
readonly transport: "http" | "websocket";
|
|
34
|
+
readonly serialization?: "binary" | "ndjson" | undefined;
|
|
35
|
+
readonly serializationMaxBufferSize?: number | "unbounded" | undefined;
|
|
36
|
+
readonly clientOnly?: ClientOnly | undefined;
|
|
37
|
+
readonly storage?: Storage | undefined;
|
|
38
|
+
readonly runnerHealth?: "ping" | "k8s" | undefined;
|
|
39
|
+
readonly runnerHealthK8s?: {
|
|
40
|
+
readonly namespace?: string | undefined;
|
|
41
|
+
readonly labelSelector?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Service"]> | undefined;
|
|
44
|
+
}) => ClientOnly extends true ? Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient> : Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), ServeError | Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
|
|
45
|
+
/**
|
|
46
|
+
* Provides the HTTP server and Node HTTP services used by cluster runners,
|
|
47
|
+
* listening on `ShardingConfig.runnerListenAddress` or `runnerAddress`.
|
|
48
|
+
*
|
|
49
|
+
* @stability unstable
|
|
50
|
+
* @category layers
|
|
51
|
+
* @since 4.0.0
|
|
52
|
+
*/
|
|
53
|
+
export declare const layerHttpServer: Layer.Layer<HttpPlatform | Etag.Generator | NodeServices | HttpServer, ServeError, ShardingConfig.ShardingConfig>;
|
|
54
|
+
//# sourceMappingURL=NodeClusterHttp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeClusterHttp.js")
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js socket layers for Effect Cluster runners.
|
|
3
|
+
*
|
|
4
|
+
* The main `layer` builds a sharding layer for socket transport, choosing
|
|
5
|
+
* serialization, runner health checks, runner storage, message storage, and
|
|
6
|
+
* optional client-only mode from the supplied options. This module also
|
|
7
|
+
* re-exports the shared socket client and server protocol layers, and provides
|
|
8
|
+
* Kubernetes-aware Undici dispatcher and HTTP client layers for runner health
|
|
9
|
+
* checks.
|
|
10
|
+
*
|
|
11
|
+
* @stability unstable
|
|
12
|
+
* @since 4.0.0
|
|
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";
|
|
21
|
+
import type { ConfigError } from "effect/Config";
|
|
22
|
+
import * as Layer from "effect/Layer";
|
|
23
|
+
import type * as SocketServer from "effect/socket/SocketServer";
|
|
24
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
25
|
+
import * as NodeHttpClient from "./NodeHttpClient.ts";
|
|
26
|
+
export {
|
|
27
|
+
/**
|
|
28
|
+
* Provides the cluster `RpcClientProtocol` using the shared socket client
|
|
29
|
+
* implementation.
|
|
30
|
+
*
|
|
31
|
+
* @stability unstable
|
|
32
|
+
* @category re-exports
|
|
33
|
+
* @since 4.0.0
|
|
34
|
+
*/
|
|
35
|
+
layerClientProtocol,
|
|
36
|
+
/**
|
|
37
|
+
* Provides the socket server used by Node cluster runners through the shared
|
|
38
|
+
* socket server implementation.
|
|
39
|
+
*
|
|
40
|
+
* @stability unstable
|
|
41
|
+
* @category re-exports
|
|
42
|
+
* @since 4.0.0
|
|
43
|
+
*/
|
|
44
|
+
layerSocketServer };
|
|
45
|
+
/**
|
|
46
|
+
* Builds the Node cluster socket sharding layer, configuring RPC
|
|
47
|
+
* serialization, message storage, runner health checks, and optional
|
|
48
|
+
* client-only mode.
|
|
49
|
+
*
|
|
50
|
+
* @stability unstable
|
|
51
|
+
* @category layers
|
|
52
|
+
* @since 4.0.0
|
|
53
|
+
*/
|
|
54
|
+
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options?: {
|
|
55
|
+
readonly serialization?: "binary" | "ndjson" | undefined;
|
|
56
|
+
readonly serializationMaxBufferSize?: number | "unbounded" | undefined;
|
|
57
|
+
readonly clientOnly?: ClientOnly | undefined;
|
|
58
|
+
readonly storage?: Storage | undefined;
|
|
59
|
+
readonly runnerHealth?: "ping" | "k8s" | undefined;
|
|
60
|
+
readonly runnerHealthK8s?: {
|
|
61
|
+
readonly namespace?: string | undefined;
|
|
62
|
+
readonly labelSelector?: string | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Service"]> | undefined;
|
|
65
|
+
}) => ClientOnly extends true ? Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient> : Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), SocketServer.SocketServerError | ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
|
|
66
|
+
/**
|
|
67
|
+
* Provides an Undici dispatcher for Kubernetes API calls, using the service
|
|
68
|
+
* account CA certificate when it is available and falling back to the default
|
|
69
|
+
* dispatcher otherwise.
|
|
70
|
+
*
|
|
71
|
+
* @stability unstable
|
|
72
|
+
* @category layers
|
|
73
|
+
* @since 4.0.0
|
|
74
|
+
*/
|
|
75
|
+
export declare const layerDispatcherK8s: Layer.Layer<NodeHttpClient.Dispatcher>;
|
|
76
|
+
/**
|
|
77
|
+
* Provides a `K8sHttpClient` backed by the Undici HTTP client and the
|
|
78
|
+
* Kubernetes-aware dispatcher.
|
|
79
|
+
*
|
|
80
|
+
* @stability unstable
|
|
81
|
+
* @category layers
|
|
82
|
+
* @since 4.0.0
|
|
83
|
+
*/
|
|
84
|
+
export declare const layerK8sHttpClient: Layer.Layer<K8sHttpClient.K8sHttpClient>;
|
|
85
|
+
//# sourceMappingURL=NodeClusterSocket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeClusterSocket.js")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Crypto from "effect/Crypto";
|
|
2
|
+
import type * as Layer from "effect/Layer";
|
|
3
|
+
/**
|
|
4
|
+
* Layer that provides the Node.js Crypto service implementation.
|
|
5
|
+
*
|
|
6
|
+
* @stability unstable
|
|
7
|
+
* @category layers
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
export declare const layer: Layer.Layer<Crypto.Crypto>;
|
|
11
|
+
//# sourceMappingURL=NodeCrypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeCrypto.js")
|
|
@@ -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")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FileSystem } from "effect/FileSystem";
|
|
2
|
+
import type * as Layer from "effect/Layer";
|
|
3
|
+
/**
|
|
4
|
+
* Provides the `FileSystem` service backed by Node filesystem APIs.
|
|
5
|
+
*
|
|
6
|
+
* @stability unstable
|
|
7
|
+
* @category layers
|
|
8
|
+
* @since 4.0.0
|
|
9
|
+
*/
|
|
10
|
+
export declare const layer: Layer.Layer<FileSystem>;
|
|
11
|
+
//# sourceMappingURL=NodeFileSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeFileSystem.js")
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js implementations of the Effect `HttpClient`.
|
|
3
|
+
*
|
|
4
|
+
* This module supplies Node runtime backends for the platform-independent
|
|
5
|
+
* Effect HTTP client API. It re-exports the fetch-based `Fetch`, `RequestInit`,
|
|
6
|
+
* and `layerFetch` APIs, defines an Undici-backed client with dispatcher
|
|
7
|
+
* services and request options, and defines a lower-level `node:http` /
|
|
8
|
+
* `node:https` client with scoped HTTP agent layers.
|
|
9
|
+
*
|
|
10
|
+
* @stability unstable
|
|
11
|
+
* @since 4.0.0
|
|
12
|
+
*/
|
|
13
|
+
import * as Context from "effect/Context";
|
|
14
|
+
import * as Effect from "effect/Effect";
|
|
15
|
+
import * as Client from "effect/http/HttpClient";
|
|
16
|
+
import * as Layer from "effect/Layer";
|
|
17
|
+
import type * as Scope from "effect/Scope";
|
|
18
|
+
import * as Http from "node:http";
|
|
19
|
+
import * as Https from "node:https";
|
|
20
|
+
import type * as Undici from "./Undici.ts";
|
|
21
|
+
export {
|
|
22
|
+
/**
|
|
23
|
+
* Provides a fetch-based HTTP client implementation for Node.js.
|
|
24
|
+
*
|
|
25
|
+
* **When to use**
|
|
26
|
+
*
|
|
27
|
+
* Use to access or override the fetch implementation used by the Node
|
|
28
|
+
* fetch-based HTTP client.
|
|
29
|
+
*
|
|
30
|
+
* @stability unstable
|
|
31
|
+
* @category services
|
|
32
|
+
* @since 4.0.0
|
|
33
|
+
*/
|
|
34
|
+
Fetch,
|
|
35
|
+
/**
|
|
36
|
+
* Layer that provides the fetch-based HTTP client implementation.
|
|
37
|
+
*
|
|
38
|
+
* @stability unstable
|
|
39
|
+
* @category layers
|
|
40
|
+
* @since 4.0.0
|
|
41
|
+
*/
|
|
42
|
+
layer as layerFetch,
|
|
43
|
+
/**
|
|
44
|
+
* Provides request initialization options accepted by the fetch-based HTTP client.
|
|
45
|
+
*
|
|
46
|
+
* **When to use**
|
|
47
|
+
*
|
|
48
|
+
* Use to provide default fetch request options for Node HTTP requests.
|
|
49
|
+
*
|
|
50
|
+
* @stability unstable
|
|
51
|
+
* @category services
|
|
52
|
+
* @since 4.0.0
|
|
53
|
+
*/
|
|
54
|
+
RequestInit } from "effect/http/FetchHttpClient";
|
|
55
|
+
declare const Dispatcher_base: Context.ServiceClass<Dispatcher, "@effect/platform-node/NodeHttpClient/Dispatcher", Undici.Dispatcher>;
|
|
56
|
+
/**
|
|
57
|
+
* Service tag for the Undici `Dispatcher` used by the Undici-backed HTTP
|
|
58
|
+
* client.
|
|
59
|
+
*
|
|
60
|
+
* @stability unstable
|
|
61
|
+
* @category services
|
|
62
|
+
* @since 4.0.0
|
|
63
|
+
*/
|
|
64
|
+
export declare class Dispatcher extends Dispatcher_base {
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Acquires a new Undici `Agent` dispatcher and destroys it when the enclosing
|
|
68
|
+
* scope is finalized.
|
|
69
|
+
*
|
|
70
|
+
* @stability unstable
|
|
71
|
+
* @category resource management
|
|
72
|
+
* @since 4.0.0
|
|
73
|
+
*/
|
|
74
|
+
export declare const makeDispatcher: Effect.Effect<Undici.Dispatcher, never, Scope.Scope>;
|
|
75
|
+
/**
|
|
76
|
+
* Provides the `Dispatcher` service using a scoped Undici `Agent`.
|
|
77
|
+
*
|
|
78
|
+
* @stability unstable
|
|
79
|
+
* @category layers
|
|
80
|
+
* @since 4.0.0
|
|
81
|
+
*/
|
|
82
|
+
export declare const layerDispatcher: Layer.Layer<Dispatcher>;
|
|
83
|
+
/**
|
|
84
|
+
* Provides the `Dispatcher` service from Undici's process-global dispatcher,
|
|
85
|
+
* without creating or owning a new agent.
|
|
86
|
+
*
|
|
87
|
+
* @stability unstable
|
|
88
|
+
* @category layers
|
|
89
|
+
* @since 4.0.0
|
|
90
|
+
*/
|
|
91
|
+
export declare const dispatcherLayerGlobal: Layer.Layer<Dispatcher>;
|
|
92
|
+
/**
|
|
93
|
+
* Fiber reference containing default Undici request options applied to requests
|
|
94
|
+
* sent by `makeUndici`.
|
|
95
|
+
*
|
|
96
|
+
* @stability unstable
|
|
97
|
+
* @category services
|
|
98
|
+
* @since 4.0.0
|
|
99
|
+
*/
|
|
100
|
+
export declare const UndiciOptions: Context.Reference<Partial<Undici.Dispatcher.RequestOptions<null>>>;
|
|
101
|
+
/**
|
|
102
|
+
* Creates an `HttpClient` that sends requests through the current Undici
|
|
103
|
+
* `Dispatcher`, converts Effect HTTP bodies to Undici bodies, and maps
|
|
104
|
+
* transport and decode failures to `HttpClientError`.
|
|
105
|
+
*
|
|
106
|
+
* @stability unstable
|
|
107
|
+
* @category constructors
|
|
108
|
+
* @since 4.0.0
|
|
109
|
+
*/
|
|
110
|
+
export declare const makeUndici: Effect.Effect<Client.HttpClient, never, Dispatcher>;
|
|
111
|
+
/**
|
|
112
|
+
* Provides an Undici-backed `HttpClient` using the current `Dispatcher`
|
|
113
|
+
* service.
|
|
114
|
+
*
|
|
115
|
+
* @stability unstable
|
|
116
|
+
* @category layers
|
|
117
|
+
* @since 4.0.0
|
|
118
|
+
*/
|
|
119
|
+
export declare const layerUndiciNoDispatcher: Layer.Layer<Client.HttpClient, never, Dispatcher>;
|
|
120
|
+
/**
|
|
121
|
+
* Provides an Undici-backed `HttpClient` together with a scoped default
|
|
122
|
+
* Undici `Agent` dispatcher.
|
|
123
|
+
*
|
|
124
|
+
* @stability unstable
|
|
125
|
+
* @category layers
|
|
126
|
+
* @since 4.0.0
|
|
127
|
+
*/
|
|
128
|
+
export declare const layerUndici: Layer.Layer<Client.HttpClient>;
|
|
129
|
+
declare const HttpAgent_base: Context.ServiceClass<HttpAgent, "@effect/platform-node/NodeHttpClient/HttpAgent", {
|
|
130
|
+
readonly http: Http.Agent;
|
|
131
|
+
readonly https: Https.Agent;
|
|
132
|
+
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Service tag for the paired Node `http` and `https` agents used by the
|
|
135
|
+
* node:http-backed HTTP client.
|
|
136
|
+
*
|
|
137
|
+
* @stability unstable
|
|
138
|
+
* @category services
|
|
139
|
+
* @since 4.0.0
|
|
140
|
+
*/
|
|
141
|
+
export declare class HttpAgent extends HttpAgent_base {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Acquires Node `http` and `https` agents with the supplied options and
|
|
145
|
+
* destroys both agents when the enclosing scope is finalized.
|
|
146
|
+
*
|
|
147
|
+
* @stability unstable
|
|
148
|
+
* @category resource management
|
|
149
|
+
* @since 4.0.0
|
|
150
|
+
*/
|
|
151
|
+
export declare const makeAgent: (options?: Https.AgentOptions) => Effect.Effect<HttpAgent["Service"], never, Scope.Scope>;
|
|
152
|
+
/**
|
|
153
|
+
* Provides the `HttpAgent` service using scoped Node `http` and `https`
|
|
154
|
+
* agents configured with the supplied options.
|
|
155
|
+
*
|
|
156
|
+
* @stability unstable
|
|
157
|
+
* @category layers
|
|
158
|
+
* @since 4.0.0
|
|
159
|
+
*/
|
|
160
|
+
export declare const layerAgentOptions: (options?: Https.AgentOptions | undefined) => Layer.Layer<HttpAgent>;
|
|
161
|
+
/**
|
|
162
|
+
* Provides the `HttpAgent` service using default scoped Node `http` and
|
|
163
|
+
* `https` agents.
|
|
164
|
+
*
|
|
165
|
+
* @stability unstable
|
|
166
|
+
* @category layers
|
|
167
|
+
* @since 4.0.0
|
|
168
|
+
*/
|
|
169
|
+
export declare const layerAgent: Layer.Layer<HttpAgent>;
|
|
170
|
+
/**
|
|
171
|
+
* Creates an `HttpClient` backed by Node `http` and `https`, using the
|
|
172
|
+
* current `HttpAgent`, streaming request bodies, and wrapping Node responses
|
|
173
|
+
* as `HttpClientResponse` values.
|
|
174
|
+
*
|
|
175
|
+
* @stability unstable
|
|
176
|
+
* @category constructors
|
|
177
|
+
* @since 4.0.0
|
|
178
|
+
*/
|
|
179
|
+
export declare const makeNodeHttp: Effect.Effect<Client.HttpClient, never, HttpAgent>;
|
|
180
|
+
/**
|
|
181
|
+
* Provides a node:http-backed `HttpClient` using the current `HttpAgent`
|
|
182
|
+
* service.
|
|
183
|
+
*
|
|
184
|
+
* @stability unstable
|
|
185
|
+
* @category layers
|
|
186
|
+
* @since 4.0.0
|
|
187
|
+
*/
|
|
188
|
+
export declare const layerNodeHttpNoAgent: Layer.Layer<Client.HttpClient, never, HttpAgent>;
|
|
189
|
+
/**
|
|
190
|
+
* Provides a node:http-backed `HttpClient` together with default scoped Node
|
|
191
|
+
* `http` and `https` agents.
|
|
192
|
+
*
|
|
193
|
+
* @stability unstable
|
|
194
|
+
* @category layers
|
|
195
|
+
* @since 4.0.0
|
|
196
|
+
*/
|
|
197
|
+
export declare const layerNodeHttp: Layer.Layer<Client.HttpClient>;
|
|
198
|
+
//# sourceMappingURL=NodeHttpClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeHttpClient.js")
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter base for exposing Node `http.IncomingMessage` values as Effect HTTP
|
|
3
|
+
* incoming messages.
|
|
4
|
+
*
|
|
5
|
+
* Server requests and Node client responses both arrive as Node readable
|
|
6
|
+
* streams with raw header objects, socket metadata, and one-shot body
|
|
7
|
+
* consumption. This module's `NodeHttpIncomingMessage` class keeps the original
|
|
8
|
+
* Node message available while presenting Effect's `HttpIncomingMessage` shape:
|
|
9
|
+
* typed headers, remote address lookup, stream access, and text, JSON,
|
|
10
|
+
* URL-encoded, and array-buffer body readers.
|
|
11
|
+
*
|
|
12
|
+
* @stability unstable
|
|
13
|
+
* @since 4.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as Effect from "effect/Effect";
|
|
16
|
+
import * as Headers from "effect/http/Headers";
|
|
17
|
+
import * as IncomingMessage from "effect/http/HttpIncomingMessage";
|
|
18
|
+
import * as UrlParams from "effect/http/UrlParams";
|
|
19
|
+
import * as Inspectable from "effect/Inspectable";
|
|
20
|
+
import * as Option from "effect/Option";
|
|
21
|
+
import type * as Schema from "effect/Schema";
|
|
22
|
+
import type * as Stream from "effect/Stream";
|
|
23
|
+
import type * as Http from "node:http";
|
|
24
|
+
/**
|
|
25
|
+
* Adapts a Node `IncomingMessage` to Effect HTTP incoming messages.
|
|
26
|
+
*
|
|
27
|
+
* **When to use**
|
|
28
|
+
*
|
|
29
|
+
* Use to implement Node HTTP request or response adapters that expose the
|
|
30
|
+
* Effect HTTP incoming-message interface.
|
|
31
|
+
*
|
|
32
|
+
* **Details**
|
|
33
|
+
*
|
|
34
|
+
* The adapter exposes headers, remote address, stream access, and cached body
|
|
35
|
+
* decoders. Subclasses provide the error mapping for unknown Node errors.
|
|
36
|
+
*
|
|
37
|
+
* @stability unstable
|
|
38
|
+
* @category constructors
|
|
39
|
+
* @since 4.0.0
|
|
40
|
+
*/
|
|
41
|
+
export declare abstract class NodeHttpIncomingMessage<E> extends Inspectable.Class implements IncomingMessage.HttpIncomingMessage<E> {
|
|
42
|
+
/**
|
|
43
|
+
* Marks this value as an HTTP incoming message for runtime guards.
|
|
44
|
+
*
|
|
45
|
+
* @since 4.0.0
|
|
46
|
+
*/
|
|
47
|
+
readonly [IncomingMessage.TypeId]: typeof IncomingMessage.TypeId;
|
|
48
|
+
readonly source: Http.IncomingMessage;
|
|
49
|
+
readonly onError: (error: unknown) => E;
|
|
50
|
+
readonly remoteAddressOverride?: Option.Option<string> | undefined;
|
|
51
|
+
constructor(source: Http.IncomingMessage, onError: (error: unknown) => E, remoteAddressOverride?: Option.Option<string>);
|
|
52
|
+
get headers(): Headers.Headers;
|
|
53
|
+
get remoteAddress(): Option.Option<string>;
|
|
54
|
+
private textEffect;
|
|
55
|
+
get text(): Effect.Effect<string, E>;
|
|
56
|
+
get textUnsafe(): string;
|
|
57
|
+
get json(): Effect.Effect<Schema.Json, E>;
|
|
58
|
+
get jsonUnsafe(): Schema.Json;
|
|
59
|
+
get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, E>;
|
|
60
|
+
get stream(): Stream.Stream<Uint8Array, E>;
|
|
61
|
+
private arrayBufferEffect;
|
|
62
|
+
get arrayBuffer(): Effect.Effect<ArrayBuffer, E>;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=NodeHttpIncomingMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../node/NodeHttpIncomingMessage.js")
|