@smthrs/platform-bun 0.0.0-stage → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-226TYKP6.js +60 -0
- package/dist/vendor/chunk-2ADOI6ZN.js +18 -0
- package/dist/vendor/chunk-2AP6TO77.js +71 -0
- package/dist/vendor/chunk-2LGUVSNM.js +20 -0
- package/dist/vendor/chunk-3SUO3TTE.js +40 -0
- package/dist/vendor/chunk-4O4Z52A2.js +48 -0
- package/dist/vendor/chunk-4YK2MHSO.js +20 -0
- package/dist/vendor/chunk-6B775XB2.js +85 -0
- package/dist/vendor/chunk-6KYVM2ZC.js +419 -0
- package/dist/vendor/chunk-6QPSLCUZ.js +0 -0
- package/dist/vendor/chunk-6R444NFO.js +104 -0
- package/dist/vendor/chunk-7JOAEKDV.js +503 -0
- package/dist/vendor/chunk-7VJC3PHX.js +63 -0
- package/dist/vendor/chunk-7ZKNPDTP.js +26 -0
- package/dist/vendor/chunk-ABPRHPJP.js +15 -0
- package/dist/vendor/chunk-AMAL6TRE.js +93 -0
- package/dist/vendor/chunk-AW6WQVI7.js +29 -0
- package/dist/vendor/chunk-BHV44Z6K.js +36 -0
- package/dist/vendor/chunk-BIR74JJK.js +93 -0
- package/dist/vendor/chunk-BTXZUHUI.js +7 -0
- package/dist/vendor/chunk-BVV46N3V.js +515 -0
- package/dist/vendor/chunk-C7UMBJO6.js +31 -0
- package/dist/vendor/chunk-CN4K2U6M.js +20 -0
- package/dist/vendor/chunk-D6XNHJPW.js +18 -0
- package/dist/vendor/chunk-DHTPLWAP.js +34 -0
- package/dist/vendor/chunk-DWSNOBD4.js +18 -0
- package/dist/vendor/chunk-DX4VFONH.js +81 -0
- package/dist/vendor/chunk-EIO7BKW3.js +63 -0
- package/dist/vendor/chunk-FIPFWLCV.js +144 -0
- package/dist/vendor/chunk-GITB76ZP.js +22 -0
- package/dist/vendor/chunk-GMORYZG4.js +62 -0
- package/dist/vendor/chunk-HXGVOKHF.js +22 -0
- package/dist/vendor/chunk-HYPKWCVW.js +374 -0
- package/dist/vendor/chunk-IJON5WTO.js +34 -0
- package/dist/vendor/chunk-IXI7RW3A.js +580 -0
- package/dist/vendor/chunk-J43O5GFH.js +28 -0
- package/dist/vendor/chunk-JTST2Z7N.js +58 -0
- package/dist/vendor/chunk-JYD572EF.js +18 -0
- package/dist/vendor/chunk-K6GWBGJM.js +16 -0
- package/dist/vendor/chunk-KANNAI65.js +62 -0
- package/dist/vendor/chunk-KEMBVIRS.js +128 -0
- package/dist/vendor/chunk-LOB26XOO.js +0 -0
- package/dist/vendor/chunk-M2QOSF47.js +53 -0
- package/dist/vendor/chunk-MLKGABMK.js +9 -0
- package/dist/vendor/chunk-NGGMPIWR.js +65 -0
- package/dist/vendor/chunk-NNTJGFLB.js +21 -0
- package/dist/vendor/chunk-NU53DHQR.js +18 -0
- package/dist/vendor/chunk-OAY4MA3I.js +28 -0
- package/dist/vendor/chunk-OV2KKGBA.js +16 -0
- package/dist/vendor/chunk-PBM2HJOX.js +118 -0
- package/dist/vendor/chunk-Q5UCOQNO.js +70 -0
- package/dist/vendor/chunk-Q7YXUH7M.js +414 -0
- package/dist/vendor/chunk-QKYYD3AZ.js +131 -0
- package/dist/vendor/chunk-QLI7T34M.js +18 -0
- package/dist/vendor/chunk-QR2ZOVOL.js +18 -0
- package/dist/vendor/chunk-R2PFJKSP.js +274 -0
- package/dist/vendor/chunk-RX5TKFP7.js +51 -0
- package/dist/vendor/chunk-S3MN5OXB.js +34 -0
- package/dist/vendor/chunk-T5WDTZCE.js +249 -0
- package/dist/vendor/chunk-TBMTA5LD.js +14 -0
- package/dist/vendor/chunk-TCKM3JXD.js +325 -0
- package/dist/vendor/chunk-UXIG7ALP.js +229 -0
- package/dist/vendor/chunk-V577GRCI.js +438 -0
- package/dist/vendor/chunk-VS6VBUH6.js +57 -0
- package/dist/vendor/chunk-WGUQHMX2.js +18 -0
- package/dist/vendor/chunk-WNS3OER2.js +18 -0
- package/dist/vendor/chunk-X6FYP2EH.js +109 -0
- package/dist/vendor/chunk-XAVBQY4D.js +20 -0
- package/dist/vendor/chunk-XAZH2ZEU.js +43 -0
- package/dist/vendor/chunk-XDPP24MG.js +129 -0
- package/dist/vendor/chunk-XF3WZCMZ.js +26 -0
- package/dist/vendor/chunk-XXVMTKX5.js +0 -0
- package/dist/vendor/chunk-YJGNV6EV.js +85 -0
- package/dist/vendor/chunk-ZJEHEPDQ.js +18 -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 +303 -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 +303 -0
- package/dist/vendor/node/NodeHttpClient.js +54 -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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessors for the Node.js objects behind an Effect HTTP server request.
|
|
3
|
+
*
|
|
4
|
+
* `toIncomingMessage` returns the underlying Node `http.IncomingMessage`.
|
|
5
|
+
* `toServerResponse` returns the underlying Node `http.ServerResponse`,
|
|
6
|
+
* evaluating the stored response thunk when the response was created lazily.
|
|
7
|
+
*
|
|
8
|
+
* @stability unstable
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
import type { HttpServerRequest } from "effect/http/HttpServerRequest";
|
|
12
|
+
import type * as Http from "node:http";
|
|
13
|
+
/**
|
|
14
|
+
* Returns the underlying Node `IncomingMessage` for a platform Node
|
|
15
|
+
* `HttpServerRequest`.
|
|
16
|
+
*
|
|
17
|
+
* @stability unstable
|
|
18
|
+
* @category accessors
|
|
19
|
+
* @since 4.0.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const toIncomingMessage: (self: HttpServerRequest) => Http.IncomingMessage;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the underlying Node `ServerResponse` for a platform Node
|
|
24
|
+
* `HttpServerRequest`, evaluating the stored response thunk when the response
|
|
25
|
+
* was created lazily.
|
|
26
|
+
*
|
|
27
|
+
* @stability unstable
|
|
28
|
+
* @category accessors
|
|
29
|
+
* @since 4.0.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const toServerResponse: (self: HttpServerRequest) => Http.ServerResponse;
|
|
32
|
+
//# sourceMappingURL=NodeHttpServerRequest.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js multipart parsing for HTTP `multipart/form-data` request bodies.
|
|
3
|
+
*
|
|
4
|
+
* `NodeMultipart` adapts a Node `Readable` plus incoming HTTP headers into
|
|
5
|
+
* Effect's shared multipart model. It can expose form parts as a stream or
|
|
6
|
+
* collect a complete persisted form by writing file uploads to scoped temporary
|
|
7
|
+
* files through the current `FileSystem` and `Path` services. `fileToReadable`
|
|
8
|
+
* returns the underlying Node readable stream for file parts produced by this
|
|
9
|
+
* parser.
|
|
10
|
+
*
|
|
11
|
+
* @stability unstable
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
*/
|
|
14
|
+
import * as Effect from "effect/Effect";
|
|
15
|
+
import type * as FileSystem from "effect/FileSystem";
|
|
16
|
+
import * as Multipart from "effect/http/Multipart";
|
|
17
|
+
import type * as Path from "effect/Path";
|
|
18
|
+
import type * as Scope from "effect/Scope";
|
|
19
|
+
import * as Stream from "effect/Stream";
|
|
20
|
+
import type { IncomingHttpHeaders } from "node:http";
|
|
21
|
+
import type { Readable } from "node:stream";
|
|
22
|
+
/**
|
|
23
|
+
* Parses multipart data from a Node readable request body and headers into a
|
|
24
|
+
* stream of `Multipart.Part` values, converting parser failures to
|
|
25
|
+
* `MultipartError`.
|
|
26
|
+
*
|
|
27
|
+
* @stability unstable
|
|
28
|
+
* @category constructors
|
|
29
|
+
* @since 4.0.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const stream: (source: Readable, headers: IncomingHttpHeaders) => Stream.Stream<Multipart.Part, Multipart.MultipartError>;
|
|
32
|
+
/**
|
|
33
|
+
* Parses multipart data from a Node readable request body and persists file
|
|
34
|
+
* parts using the current `FileSystem`, `Path`, and `Scope` services.
|
|
35
|
+
*
|
|
36
|
+
* @stability unstable
|
|
37
|
+
* @category constructors
|
|
38
|
+
* @since 4.0.0
|
|
39
|
+
*/
|
|
40
|
+
export declare const persisted: (source: Readable, headers: IncomingHttpHeaders) => Effect.Effect<Multipart.Persisted, Multipart.MultipartError, Scope.Scope | FileSystem.FileSystem | Path.Path>;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the underlying Node readable stream for a multipart file produced by
|
|
43
|
+
* the Node multipart parser.
|
|
44
|
+
*
|
|
45
|
+
* @stability unstable
|
|
46
|
+
* @category converting
|
|
47
|
+
* @since 4.0.0
|
|
48
|
+
*/
|
|
49
|
+
export declare const fileToReadable: (file: Multipart.File) => Readable;
|
|
50
|
+
//# sourceMappingURL=NodeMultipart.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fileToReadable,
|
|
3
|
+
persisted,
|
|
4
|
+
stream
|
|
5
|
+
} from "../chunk-QKYYD3AZ.js";
|
|
6
|
+
import "../chunk-X6FYP2EH.js";
|
|
7
|
+
import "../chunk-S3MN5OXB.js";
|
|
8
|
+
import "../chunk-T5WDTZCE.js";
|
|
9
|
+
import "../chunk-DX4VFONH.js";
|
|
10
|
+
import "../chunk-MLKGABMK.js";
|
|
11
|
+
export {
|
|
12
|
+
fileToReadable,
|
|
13
|
+
persisted,
|
|
14
|
+
stream
|
|
15
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js streams adapter for the low-level multipart parser.
|
|
3
|
+
*
|
|
4
|
+
* @stability unstable
|
|
5
|
+
* @since 4.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type { BaseConfig, MultipartError, PartInfo } from "effect/http/MultipartParser";
|
|
8
|
+
import type { IncomingHttpHeaders } from "node:http";
|
|
9
|
+
import { Duplex, Readable } from "node:stream";
|
|
10
|
+
/**
|
|
11
|
+
* A part emitted by the Node.js multipart parser.
|
|
12
|
+
*
|
|
13
|
+
* @stability unstable
|
|
14
|
+
* @category models
|
|
15
|
+
* @since 4.0.0
|
|
16
|
+
*/
|
|
17
|
+
export type Part = Field | FileStream;
|
|
18
|
+
/**
|
|
19
|
+
* A parsed multipart field.
|
|
20
|
+
*
|
|
21
|
+
* @stability unstable
|
|
22
|
+
* @category models
|
|
23
|
+
* @since 4.0.0
|
|
24
|
+
*/
|
|
25
|
+
export interface Field {
|
|
26
|
+
readonly _tag: "Field";
|
|
27
|
+
readonly info: PartInfo;
|
|
28
|
+
readonly value: Uint8Array;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A Node.js duplex stream that emits parsed multipart parts.
|
|
32
|
+
*
|
|
33
|
+
* @stability unstable
|
|
34
|
+
* @category models
|
|
35
|
+
* @since 4.0.0
|
|
36
|
+
*/
|
|
37
|
+
export interface MultipartStream extends Duplex {
|
|
38
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<Part>;
|
|
39
|
+
on(event: "field", listener: (field: Field) => void): this;
|
|
40
|
+
on(event: "file", listener: (file: FileStream) => void): this;
|
|
41
|
+
on(event: "close", listener: () => void): this;
|
|
42
|
+
on(event: "data", listener: (part: Part) => void): this;
|
|
43
|
+
on(event: "drain", listener: () => void): this;
|
|
44
|
+
on(event: "end", listener: () => void): this;
|
|
45
|
+
on(event: "error", listener: (err: MultipartError) => void): this;
|
|
46
|
+
on(event: "finish", listener: () => void): this;
|
|
47
|
+
on(event: "pause", listener: () => void): this;
|
|
48
|
+
on(event: "pipe", listener: (src: Readable) => void): this;
|
|
49
|
+
on(event: "readable", listener: () => void): this;
|
|
50
|
+
on(event: "resume", listener: () => void): this;
|
|
51
|
+
on(event: "unpipe", listener: (src: Readable) => void): this;
|
|
52
|
+
on(event: string | symbol, listener: (...args: Array<any>) => void): this;
|
|
53
|
+
read(size?: number): Part | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Configuration for the Node.js multipart parser.
|
|
57
|
+
*
|
|
58
|
+
* @stability unstable
|
|
59
|
+
* @category models
|
|
60
|
+
* @since 4.0.0
|
|
61
|
+
*/
|
|
62
|
+
export type NodeConfig = Omit<BaseConfig, "headers"> & {
|
|
63
|
+
readonly headers: IncomingHttpHeaders;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* A Node.js duplex stream that parses multipart input.
|
|
67
|
+
*
|
|
68
|
+
* @stability unstable
|
|
69
|
+
* @category models
|
|
70
|
+
* @since 4.0.0
|
|
71
|
+
*/
|
|
72
|
+
export declare class MultipartStream extends Duplex {
|
|
73
|
+
private _parser;
|
|
74
|
+
_canWrite: boolean;
|
|
75
|
+
private _writeCallback;
|
|
76
|
+
constructor(config: NodeConfig);
|
|
77
|
+
_resume(): void;
|
|
78
|
+
_read(_size: number): void;
|
|
79
|
+
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null | undefined) => void): void;
|
|
80
|
+
_final(callback: (error?: Error | null | undefined) => void): void;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a Node.js multipart parser stream.
|
|
84
|
+
*
|
|
85
|
+
* @stability unstable
|
|
86
|
+
* @category constructors
|
|
87
|
+
* @since 4.0.0
|
|
88
|
+
*/
|
|
89
|
+
export declare const make: (config: NodeConfig) => MultipartStream;
|
|
90
|
+
/**
|
|
91
|
+
* A readable stream containing a parsed multipart file.
|
|
92
|
+
*
|
|
93
|
+
* @stability unstable
|
|
94
|
+
* @category models
|
|
95
|
+
* @since 4.0.0
|
|
96
|
+
*/
|
|
97
|
+
export declare class FileStream extends Readable {
|
|
98
|
+
readonly _tag = "File";
|
|
99
|
+
readonly filename: string | undefined;
|
|
100
|
+
readonly info: PartInfo;
|
|
101
|
+
private _parent;
|
|
102
|
+
constructor(info: PartInfo, parent: MultipartStream);
|
|
103
|
+
_read(_size: number): void;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=NodeMultipartParser.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as Layer from "effect/Layer";
|
|
2
|
+
import type { Path } from "effect/Path";
|
|
3
|
+
/**
|
|
4
|
+
* Provides the default Node `Path` service using the platform's `node:path`
|
|
5
|
+
* implementation.
|
|
6
|
+
*
|
|
7
|
+
* @stability unstable
|
|
8
|
+
* @category layers
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
export declare const layer: Layer.Layer<Path>;
|
|
12
|
+
/**
|
|
13
|
+
* Provides the `Path` service using Node's POSIX path implementation,
|
|
14
|
+
* regardless of the host platform.
|
|
15
|
+
*
|
|
16
|
+
* @stability unstable
|
|
17
|
+
* @category layers
|
|
18
|
+
* @since 4.0.0
|
|
19
|
+
*/
|
|
20
|
+
export declare const layerPosix: Layer.Layer<Path>;
|
|
21
|
+
/**
|
|
22
|
+
* Provides the `Path` service using Node's Windows path implementation,
|
|
23
|
+
* regardless of the host platform.
|
|
24
|
+
*
|
|
25
|
+
* @stability unstable
|
|
26
|
+
* @category layers
|
|
27
|
+
* @since 4.0.0
|
|
28
|
+
*/
|
|
29
|
+
export declare const layerWin32: Layer.Layer<Path>;
|
|
30
|
+
//# sourceMappingURL=NodePath.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js Redis integration backed by `redis` (node-redis).
|
|
3
|
+
*
|
|
4
|
+
* This module creates a scoped `node-redis` client and exposes it in two forms:
|
|
5
|
+
* the generic `Redis` service and the {@link NodeRedis} service for direct
|
|
6
|
+
* access to the underlying client. `layer` accepts node-redis client options
|
|
7
|
+
* directly, while `layerConfig` reads them from Effect config. `node-redis`
|
|
8
|
+
* connects explicitly, so layer construction can fail with a `RedisError`.
|
|
9
|
+
* Both layers close the client when the layer scope ends.
|
|
10
|
+
*
|
|
11
|
+
* @stability unstable
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
*/
|
|
14
|
+
import * as Config from "effect/Config";
|
|
15
|
+
import * as Context from "effect/Context";
|
|
16
|
+
import * as Effect from "effect/Effect";
|
|
17
|
+
import * as Layer from "effect/Layer";
|
|
18
|
+
import * as Redis from "effect/persistence/Redis";
|
|
19
|
+
import { createClient } from "redis";
|
|
20
|
+
type NodeRedisClient = ReturnType<typeof createClient>;
|
|
21
|
+
type NodeRedisClientOptions = NonNullable<Parameters<typeof createClient>[0]>;
|
|
22
|
+
declare const NodeRedis_base: Context.ServiceClass<NodeRedis, "@effect/platform-node/NodeRedis", {
|
|
23
|
+
readonly client: NodeRedisClient;
|
|
24
|
+
readonly use: <A>(f: (client: NodeRedisClient) => Promise<A>) => Effect.Effect<A, Redis.RedisError>;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Service tag for the Node Redis integration, exposing the underlying
|
|
28
|
+
* `node-redis` client and a `use` helper that maps client failures to
|
|
29
|
+
* `RedisError`.
|
|
30
|
+
*
|
|
31
|
+
* @stability unstable
|
|
32
|
+
* @category services
|
|
33
|
+
* @since 4.0.0
|
|
34
|
+
*/
|
|
35
|
+
export declare class NodeRedis extends NodeRedis_base {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Provides `Redis` and `NodeRedis` services backed by a `node-redis` client
|
|
39
|
+
* created with the supplied options, connected when the layer is built and
|
|
40
|
+
* closed when the layer scope ends.
|
|
41
|
+
*
|
|
42
|
+
* **Details**
|
|
43
|
+
*
|
|
44
|
+
* By default, the initial connection fails on its first connection error. A
|
|
45
|
+
* caller-supplied `socket.reconnectStrategy` is used instead when present. Once
|
|
46
|
+
* the client has emitted `ready`, the default reconnect strategy uses
|
|
47
|
+
* node-redis' exponential backoff and stops on socket timeouts.
|
|
48
|
+
*
|
|
49
|
+
* Scope finalization calls `close()`, which waits for in-flight commands,
|
|
50
|
+
* including blocking commands, and can therefore delay scope closure.
|
|
51
|
+
*
|
|
52
|
+
* @stability unstable
|
|
53
|
+
* @category layers
|
|
54
|
+
* @since 4.0.0
|
|
55
|
+
*/
|
|
56
|
+
export declare const layer: (options?: NodeRedisClientOptions | undefined) => Layer.Layer<Redis.Redis | NodeRedis, Redis.RedisError>;
|
|
57
|
+
/**
|
|
58
|
+
* Provides `Redis` and `NodeRedis` services from `Config`-backed node-redis
|
|
59
|
+
* client options, connecting the client when the layer is built and closing it
|
|
60
|
+
* when the layer scope ends.
|
|
61
|
+
*
|
|
62
|
+
* **Details**
|
|
63
|
+
*
|
|
64
|
+
* By default, the initial connection fails on its first connection error. A
|
|
65
|
+
* caller-supplied `socket.reconnectStrategy` is used instead when present. Once
|
|
66
|
+
* the client has emitted `ready`, the default reconnect strategy uses
|
|
67
|
+
* node-redis' exponential backoff and stops on socket timeouts.
|
|
68
|
+
*
|
|
69
|
+
* Scope finalization calls `close()`, which waits for in-flight commands,
|
|
70
|
+
* including blocking commands, and can therefore delay scope closure.
|
|
71
|
+
*
|
|
72
|
+
* @stability unstable
|
|
73
|
+
* @category layers
|
|
74
|
+
* @since 4.0.0
|
|
75
|
+
*/
|
|
76
|
+
export declare const layerConfig: (options: Config.Wrap<NodeRedisClientOptions>) => Layer.Layer<Redis.Redis | NodeRedis, Redis.RedisError | Config.ConfigError>;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=NodeRedis.d.ts.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { Effect } from "effect/Effect";
|
|
2
|
+
import type * as Runtime from "effect/Runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Helps you run a main effect with built-in error handling, logging, and signal management.
|
|
5
|
+
*
|
|
6
|
+
* **When to use**
|
|
7
|
+
*
|
|
8
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
9
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
10
|
+
* capabilities.
|
|
11
|
+
*
|
|
12
|
+
* **Details**
|
|
13
|
+
*
|
|
14
|
+
* This function launches an Effect as the main entry point, setting exit codes
|
|
15
|
+
* based on success or failure, handling interrupts (e.g., Ctrl+C), and optionally
|
|
16
|
+
* logging errors. By default, it logs errors and uses a "pretty" format, but both
|
|
17
|
+
* behaviors can be turned off. You can also provide custom teardown logic to
|
|
18
|
+
* finalize resources or produce different exit codes.
|
|
19
|
+
*
|
|
20
|
+
* The optional configuration object can include:
|
|
21
|
+
* - `disableErrorReporting`: Turn off automatic error logging.
|
|
22
|
+
* - `teardown`: Provide custom finalization logic.
|
|
23
|
+
*
|
|
24
|
+
* @stability unstable
|
|
25
|
+
* @category running
|
|
26
|
+
* @since 4.0.0
|
|
27
|
+
*/
|
|
28
|
+
export declare const runMain: {
|
|
29
|
+
/**
|
|
30
|
+
* Helps you run a main effect with built-in error handling, logging, and signal management.
|
|
31
|
+
*
|
|
32
|
+
* **When to use**
|
|
33
|
+
*
|
|
34
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
35
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
36
|
+
* capabilities.
|
|
37
|
+
*
|
|
38
|
+
* **Details**
|
|
39
|
+
*
|
|
40
|
+
* This function launches an Effect as the main entry point, setting exit codes
|
|
41
|
+
* based on success or failure, handling interrupts (e.g., Ctrl+C), and optionally
|
|
42
|
+
* logging errors. By default, it logs errors and uses a "pretty" format, but both
|
|
43
|
+
* behaviors can be turned off. You can also provide custom teardown logic to
|
|
44
|
+
* finalize resources or produce different exit codes.
|
|
45
|
+
*
|
|
46
|
+
* The optional configuration object can include:
|
|
47
|
+
* - `disableErrorReporting`: Turn off automatic error logging.
|
|
48
|
+
* - `teardown`: Provide custom finalization logic.
|
|
49
|
+
*
|
|
50
|
+
* @stability unstable
|
|
51
|
+
* @category running
|
|
52
|
+
* @since 4.0.0
|
|
53
|
+
*/
|
|
54
|
+
(options?: {
|
|
55
|
+
readonly disableErrorReporting?: boolean | undefined;
|
|
56
|
+
readonly teardown?: Runtime.Teardown | undefined;
|
|
57
|
+
}): <E, A>(effect: Effect<A, E>) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Helps you run a main effect with built-in error handling, logging, and signal management.
|
|
60
|
+
*
|
|
61
|
+
* **When to use**
|
|
62
|
+
*
|
|
63
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
64
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
65
|
+
* capabilities.
|
|
66
|
+
*
|
|
67
|
+
* **Details**
|
|
68
|
+
*
|
|
69
|
+
* This function launches an Effect as the main entry point, setting exit codes
|
|
70
|
+
* based on success or failure, handling interrupts (e.g., Ctrl+C), and optionally
|
|
71
|
+
* logging errors. By default, it logs errors and uses a "pretty" format, but both
|
|
72
|
+
* behaviors can be turned off. You can also provide custom teardown logic to
|
|
73
|
+
* finalize resources or produce different exit codes.
|
|
74
|
+
*
|
|
75
|
+
* The optional configuration object can include:
|
|
76
|
+
* - `disableErrorReporting`: Turn off automatic error logging.
|
|
77
|
+
* - `teardown`: Provide custom finalization logic.
|
|
78
|
+
*
|
|
79
|
+
* @stability unstable
|
|
80
|
+
* @category running
|
|
81
|
+
* @since 4.0.0
|
|
82
|
+
*/
|
|
83
|
+
<E, A>(effect: Effect<A, E>, options?: {
|
|
84
|
+
readonly disableErrorReporting?: boolean | undefined;
|
|
85
|
+
readonly teardown?: Runtime.Teardown | undefined;
|
|
86
|
+
}): void;
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=NodeRuntime.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aggregate Node.js platform services layer.
|
|
3
|
+
*
|
|
4
|
+
* This module defines the `NodeServices` union and a single `layer` that
|
|
5
|
+
* provides Node-backed child process spawning, crypto, filesystem, path, stdio,
|
|
6
|
+
* and terminal services. Use the layer when a Node program wants the standard
|
|
7
|
+
* platform services from one place.
|
|
8
|
+
*
|
|
9
|
+
* @stability unstable
|
|
10
|
+
* @since 4.0.0
|
|
11
|
+
*/
|
|
12
|
+
import type { Crypto } from "effect/Crypto";
|
|
13
|
+
import type { FileSystem } from "effect/FileSystem";
|
|
14
|
+
import * as Layer from "effect/Layer";
|
|
15
|
+
import type { Path } from "effect/Path";
|
|
16
|
+
import type { ChildProcessSpawner } from "effect/process/ChildProcessSpawner";
|
|
17
|
+
import type { Stdio } from "effect/Stdio";
|
|
18
|
+
import type { Terminal } from "effect/Terminal";
|
|
19
|
+
/**
|
|
20
|
+
* The union of core services provided by the Node platform layer, including
|
|
21
|
+
* child process spawning, filesystem, path, stdio, and terminal services.
|
|
22
|
+
*
|
|
23
|
+
* @stability unstable
|
|
24
|
+
* @category models
|
|
25
|
+
* @since 4.0.0
|
|
26
|
+
*/
|
|
27
|
+
export type NodeServices = ChildProcessSpawner | Crypto | FileSystem | Path | Stdio | Terminal;
|
|
28
|
+
/**
|
|
29
|
+
* Provides the default Node implementations for child process spawning,
|
|
30
|
+
* filesystem, path, stdio, and terminal services.
|
|
31
|
+
*
|
|
32
|
+
* @stability unstable
|
|
33
|
+
* @category layers
|
|
34
|
+
* @since 4.0.0
|
|
35
|
+
*/
|
|
36
|
+
export declare const layer: Layer.Layer<NodeServices>;
|
|
37
|
+
//# sourceMappingURL=NodeServices.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "../chunk-DHTPLWAP.js";
|
|
4
|
+
import "../chunk-WGUQHMX2.js";
|
|
5
|
+
import "../chunk-GITB76ZP.js";
|
|
6
|
+
import "../chunk-XF3WZCMZ.js";
|
|
7
|
+
import "../chunk-QLI7T34M.js";
|
|
8
|
+
import "../chunk-WNS3OER2.js";
|
|
9
|
+
import "../chunk-ZJEHEPDQ.js";
|
|
10
|
+
import "../chunk-226TYKP6.js";
|
|
11
|
+
import "../chunk-FIPFWLCV.js";
|
|
12
|
+
import "../chunk-JTST2Z7N.js";
|
|
13
|
+
import "../chunk-IXI7RW3A.js";
|
|
14
|
+
import "../chunk-TBMTA5LD.js";
|
|
15
|
+
import "../chunk-T5WDTZCE.js";
|
|
16
|
+
import "../chunk-DX4VFONH.js";
|
|
17
|
+
import "../chunk-4O4Z52A2.js";
|
|
18
|
+
import "../chunk-7JOAEKDV.js";
|
|
19
|
+
import "../chunk-3SUO3TTE.js";
|
|
20
|
+
import "../chunk-MLKGABMK.js";
|
|
21
|
+
export {
|
|
22
|
+
layer
|
|
23
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type * as Duration from "effect/Duration";
|
|
2
|
+
import type * as Effect from "effect/Effect";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
4
|
+
import * as Socket from "effect/socket/Socket";
|
|
5
|
+
/**
|
|
6
|
+
* @since 4.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "../node-shared/NodeSocket.js";
|
|
9
|
+
/**
|
|
10
|
+
* Provides a `Socket.WebSocketConstructor`, using `globalThis.WebSocket` when
|
|
11
|
+
* available and falling back to the `ws` package otherwise.
|
|
12
|
+
* Client options objects use `ws` so handshake headers and subprotocols can
|
|
13
|
+
* be supplied together.
|
|
14
|
+
*
|
|
15
|
+
* @stability unstable
|
|
16
|
+
* @category layers
|
|
17
|
+
* @since 4.0.0
|
|
18
|
+
*/
|
|
19
|
+
export declare const layerWebSocketConstructor: Layer.Layer<Socket.WebSocketConstructor>;
|
|
20
|
+
/**
|
|
21
|
+
* Provides a `Socket.WebSocketConstructor` backed explicitly by the `ws`
|
|
22
|
+
* package.
|
|
23
|
+
* Supports handshake headers alongside subprotocols in client options objects.
|
|
24
|
+
*
|
|
25
|
+
* @stability unstable
|
|
26
|
+
* @category layers
|
|
27
|
+
* @since 4.0.0
|
|
28
|
+
*/
|
|
29
|
+
export declare const layerWebSocketConstructorWS: Layer.Layer<Socket.WebSocketConstructor>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a `Socket.Socket` layer for a WebSocket URL using the Node WebSocket
|
|
32
|
+
* constructor layer, honoring protocol, handshake-header, open-timeout, and
|
|
33
|
+
* high-water-mark options.
|
|
34
|
+
*
|
|
35
|
+
* @stability unstable
|
|
36
|
+
* @category layers
|
|
37
|
+
* @since 4.0.0
|
|
38
|
+
*/
|
|
39
|
+
export declare const layerWebSocket: (url: string | Effect.Effect<string>, options?: {
|
|
40
|
+
readonly openTimeout?: Duration.Input | undefined;
|
|
41
|
+
readonly protocols?: string | Array<string> | undefined;
|
|
42
|
+
readonly headers?: Readonly<Record<string, string>> | undefined;
|
|
43
|
+
readonly highWaterMark?: number | undefined;
|
|
44
|
+
} | undefined) => Layer.Layer<Socket.Socket, never, never>;
|
|
45
|
+
//# sourceMappingURL=NodeSocket.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layerWebSocket,
|
|
3
|
+
layerWebSocketConstructor,
|
|
4
|
+
layerWebSocketConstructorWS
|
|
5
|
+
} from "../chunk-GMORYZG4.js";
|
|
6
|
+
import {
|
|
7
|
+
NetSocket,
|
|
8
|
+
NodeWS,
|
|
9
|
+
fromDuplex,
|
|
10
|
+
layerNet,
|
|
11
|
+
layerTls,
|
|
12
|
+
makeNet,
|
|
13
|
+
makeNetChannel,
|
|
14
|
+
makeTls,
|
|
15
|
+
makeTlsChannel
|
|
16
|
+
} from "../chunk-Q7YXUH7M.js";
|
|
17
|
+
import "../chunk-MLKGABMK.js";
|
|
18
|
+
export {
|
|
19
|
+
NetSocket,
|
|
20
|
+
NodeWS,
|
|
21
|
+
fromDuplex,
|
|
22
|
+
layerNet,
|
|
23
|
+
layerTls,
|
|
24
|
+
layerWebSocket,
|
|
25
|
+
layerWebSocketConstructor,
|
|
26
|
+
layerWebSocketConstructorWS,
|
|
27
|
+
makeNet,
|
|
28
|
+
makeNetChannel,
|
|
29
|
+
makeTls,
|
|
30
|
+
makeTlsChannel
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../chunk-J43O5GFH.js";
|
|
2
|
+
import {
|
|
3
|
+
IncomingMessage,
|
|
4
|
+
layer,
|
|
5
|
+
layerTls,
|
|
6
|
+
layerWebSocket,
|
|
7
|
+
make,
|
|
8
|
+
makeTls,
|
|
9
|
+
makeWebSocket
|
|
10
|
+
} from "../chunk-UXIG7ALP.js";
|
|
11
|
+
import "../chunk-Q7YXUH7M.js";
|
|
12
|
+
import "../chunk-MLKGABMK.js";
|
|
13
|
+
export {
|
|
14
|
+
IncomingMessage,
|
|
15
|
+
layer,
|
|
16
|
+
layerTls,
|
|
17
|
+
layerWebSocket,
|
|
18
|
+
make,
|
|
19
|
+
makeTls,
|
|
20
|
+
makeWebSocket
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Layer from "effect/Layer";
|
|
2
|
+
import type { Stdio } from "effect/Stdio";
|
|
3
|
+
/**
|
|
4
|
+
* Provides the `Stdio` service backed by the current process arguments,
|
|
5
|
+
* stdin, stdout, and stderr streams.
|
|
6
|
+
*
|
|
7
|
+
* @stability unstable
|
|
8
|
+
* @category layers
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
export declare const layer: Layer.Layer<Stdio>;
|
|
12
|
+
//# sourceMappingURL=NodeStdio.d.ts.map
|