@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,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=BunStdio.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type LazyArg } from "effect/Function";
|
|
2
|
+
import * as Stream from "effect/Stream";
|
|
3
|
+
/**
|
|
4
|
+
* @since 4.0.0
|
|
5
|
+
*/
|
|
6
|
+
export * from "../node-shared/NodeStream.js";
|
|
7
|
+
/**
|
|
8
|
+
* Creates a stream from a `ReadableStream` using Bun's optimized `.readMany`
|
|
9
|
+
* API.
|
|
10
|
+
*
|
|
11
|
+
* @stability unstable
|
|
12
|
+
* @category constructors
|
|
13
|
+
* @since 4.0.0
|
|
14
|
+
*/
|
|
15
|
+
export declare const fromReadableStream: <A, E>(options: {
|
|
16
|
+
readonly evaluate: LazyArg<ReadableStream<A>>;
|
|
17
|
+
readonly onError: (error: unknown) => E;
|
|
18
|
+
readonly releaseLockOnEnd?: boolean | undefined;
|
|
19
|
+
}) => Stream.Stream<A, E>;
|
|
20
|
+
//# sourceMappingURL=BunStream.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromReadableStream
|
|
3
|
+
} from "../chunk-TBPDCAMH.js";
|
|
4
|
+
import {
|
|
5
|
+
fromDuplex,
|
|
6
|
+
fromReadable,
|
|
7
|
+
fromReadableChannel,
|
|
8
|
+
pipeThroughDuplex,
|
|
9
|
+
pipeThroughSimple,
|
|
10
|
+
toArrayBuffer,
|
|
11
|
+
toReadable,
|
|
12
|
+
toReadableNever,
|
|
13
|
+
toString,
|
|
14
|
+
toUint8Array
|
|
15
|
+
} from "../chunk-RQH5DSBA.js";
|
|
16
|
+
import "../chunk-A7UXCEJA.js";
|
|
17
|
+
import "../chunk-MLKGABMK.js";
|
|
18
|
+
export {
|
|
19
|
+
fromDuplex,
|
|
20
|
+
fromReadable,
|
|
21
|
+
fromReadableChannel,
|
|
22
|
+
fromReadableStream,
|
|
23
|
+
pipeThroughDuplex,
|
|
24
|
+
pipeThroughSimple,
|
|
25
|
+
toArrayBuffer,
|
|
26
|
+
toReadable,
|
|
27
|
+
toReadableNever,
|
|
28
|
+
toString,
|
|
29
|
+
toUint8Array
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Effect } from "effect/Effect";
|
|
2
|
+
import type { Layer } from "effect/Layer";
|
|
3
|
+
import type { Scope } from "effect/Scope";
|
|
4
|
+
import type { Terminal, UserInput } from "effect/Terminal";
|
|
5
|
+
/**
|
|
6
|
+
* Creates a scoped `Terminal` service backed by process stdin/stdout.
|
|
7
|
+
* By default, Esc, Ctrl+C, and Ctrl+D end key input. Supply `shouldQuit` to
|
|
8
|
+
* override these quit keys.
|
|
9
|
+
*
|
|
10
|
+
* @stability unstable
|
|
11
|
+
* @category constructors
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
*/
|
|
14
|
+
export declare const make: (shouldQuit?: (input: UserInput) => boolean) => Effect<Terminal, never, Scope>;
|
|
15
|
+
/**
|
|
16
|
+
* Provides the default process-backed `Terminal` service, ending key input on
|
|
17
|
+
* bare Esc, Ctrl+C, or Ctrl+D.
|
|
18
|
+
*
|
|
19
|
+
* @stability unstable
|
|
20
|
+
* @category layers
|
|
21
|
+
* @since 4.0.0
|
|
22
|
+
*/
|
|
23
|
+
export declare const layer: Layer<Terminal>;
|
|
24
|
+
//# sourceMappingURL=BunTerminal.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Layer from "effect/Layer";
|
|
2
|
+
import * as Worker from "effect/workers/Worker";
|
|
3
|
+
/**
|
|
4
|
+
* Provides the Bun `WorkerPlatform` together with a `Worker.Spawner` created
|
|
5
|
+
* from the supplied worker spawning function.
|
|
6
|
+
*
|
|
7
|
+
* @stability unstable
|
|
8
|
+
* @category layers
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
export declare const layer: (spawn: (id: number) => globalThis.Worker) => Layer.Layer<Worker.WorkerPlatform | Worker.Spawner>;
|
|
12
|
+
/**
|
|
13
|
+
* Provides the Bun `WorkerPlatform`, wiring worker messages and errors into
|
|
14
|
+
* Effect workers and requesting graceful worker shutdown during scope
|
|
15
|
+
* finalization before terminating on timeout.
|
|
16
|
+
*
|
|
17
|
+
* @stability unstable
|
|
18
|
+
* @category layers
|
|
19
|
+
* @since 4.0.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const layerPlatform: Layer.Layer<Worker.WorkerPlatform, never, never>;
|
|
22
|
+
//# sourceMappingURL=BunWorker.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Layer from "effect/Layer";
|
|
2
|
+
import * as WorkerRunner from "effect/workers/WorkerRunner";
|
|
3
|
+
/**
|
|
4
|
+
* Provides the `WorkerRunnerPlatform` for code running inside a Bun worker,
|
|
5
|
+
* routing parent messages to the registered handler and sending responses back
|
|
6
|
+
* through the worker port.
|
|
7
|
+
*
|
|
8
|
+
* @stability unstable
|
|
9
|
+
* @category layers
|
|
10
|
+
* @since 4.0.0
|
|
11
|
+
*/
|
|
12
|
+
export declare const layer: Layer.Layer<WorkerRunner.WorkerRunnerPlatform>;
|
|
13
|
+
//# sourceMappingURL=BunWorkerRunner.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Effectful Technologies Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -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,121 @@
|
|
|
1
|
+
import "../chunk-RP3EWS4C.js";
|
|
2
|
+
import {
|
|
3
|
+
BunWorkerRunner_exports
|
|
4
|
+
} from "../chunk-F4V5TRY7.js";
|
|
5
|
+
import {
|
|
6
|
+
BunSink_exports
|
|
7
|
+
} from "../chunk-KHPN5DWT.js";
|
|
8
|
+
import {
|
|
9
|
+
BunSocketServer_exports
|
|
10
|
+
} from "../chunk-R2YON4A6.js";
|
|
11
|
+
import {
|
|
12
|
+
BunWorker_exports
|
|
13
|
+
} from "../chunk-ZS3VW5QR.js";
|
|
14
|
+
import {
|
|
15
|
+
BunHttpClient_exports
|
|
16
|
+
} from "../chunk-CL4EIDIY.js";
|
|
17
|
+
import {
|
|
18
|
+
BunHttpServerRequest_exports
|
|
19
|
+
} from "../chunk-5ET7NHI7.js";
|
|
20
|
+
import {
|
|
21
|
+
BunRedis_exports
|
|
22
|
+
} from "../chunk-XACFQJY7.js";
|
|
23
|
+
import {
|
|
24
|
+
BunRuntime_exports
|
|
25
|
+
} from "../chunk-REFJNBQR.js";
|
|
26
|
+
import "../chunk-UUYTTEDH.js";
|
|
27
|
+
import {
|
|
28
|
+
BunAddressResolver_exports
|
|
29
|
+
} from "../chunk-UFWLKG4I.js";
|
|
30
|
+
import "../chunk-RKVXYKHJ.js";
|
|
31
|
+
import {
|
|
32
|
+
BunClusterHttp_exports
|
|
33
|
+
} from "../chunk-G4HOH7GK.js";
|
|
34
|
+
import {
|
|
35
|
+
BunSocket_exports
|
|
36
|
+
} from "../chunk-QGPZPULA.js";
|
|
37
|
+
import {
|
|
38
|
+
BunHttpServer_exports
|
|
39
|
+
} from "../chunk-SD4X5NGU.js";
|
|
40
|
+
import {
|
|
41
|
+
BunServices_exports
|
|
42
|
+
} from "../chunk-IHV7Z4SW.js";
|
|
43
|
+
import {
|
|
44
|
+
BunStdio_exports
|
|
45
|
+
} from "../chunk-ZUUCLHBP.js";
|
|
46
|
+
import "../chunk-KFDBU6RR.js";
|
|
47
|
+
import {
|
|
48
|
+
BunTerminal_exports
|
|
49
|
+
} from "../chunk-X4YPHWAE.js";
|
|
50
|
+
import "../chunk-MUEED3C3.js";
|
|
51
|
+
import {
|
|
52
|
+
BunHttpPlatform_exports
|
|
53
|
+
} from "../chunk-OGZJACUS.js";
|
|
54
|
+
import "../chunk-3SL3HKQA.js";
|
|
55
|
+
import {
|
|
56
|
+
BunMultipart_exports
|
|
57
|
+
} from "../chunk-F772LLZ5.js";
|
|
58
|
+
import {
|
|
59
|
+
BunStream_exports
|
|
60
|
+
} from "../chunk-TBPDCAMH.js";
|
|
61
|
+
import {
|
|
62
|
+
BunPath_exports
|
|
63
|
+
} from "../chunk-JOQDB2HC.js";
|
|
64
|
+
import "../chunk-OF3N2FN4.js";
|
|
65
|
+
import {
|
|
66
|
+
BunChildProcessSpawner_exports
|
|
67
|
+
} from "../chunk-T5FQGISI.js";
|
|
68
|
+
import "../chunk-NQO6V4KI.js";
|
|
69
|
+
import "../chunk-UUQXJRMK.js";
|
|
70
|
+
import "../chunk-RQH5DSBA.js";
|
|
71
|
+
import "../chunk-A7UXCEJA.js";
|
|
72
|
+
import {
|
|
73
|
+
BunClusterSocket_exports
|
|
74
|
+
} from "../chunk-PCEVZYXO.js";
|
|
75
|
+
import "../chunk-6FSJ2PMW.js";
|
|
76
|
+
import "../chunk-S6QUQLBV.js";
|
|
77
|
+
import "../chunk-C3PGUWW5.js";
|
|
78
|
+
import {
|
|
79
|
+
BunCrypto_exports
|
|
80
|
+
} from "../chunk-GJN7MEBF.js";
|
|
81
|
+
import "../chunk-HDV6VIRM.js";
|
|
82
|
+
import {
|
|
83
|
+
BunDatagramSocket_exports
|
|
84
|
+
} from "../chunk-RQQ5TSCD.js";
|
|
85
|
+
import {
|
|
86
|
+
BunDns_exports
|
|
87
|
+
} from "../chunk-RHJ6LV32.js";
|
|
88
|
+
import "../chunk-ADP5LRUF.js";
|
|
89
|
+
import {
|
|
90
|
+
BunFileSystem_exports
|
|
91
|
+
} from "../chunk-ZNKZXDUD.js";
|
|
92
|
+
import "../chunk-BY3SDXID.js";
|
|
93
|
+
import "../chunk-2ZAGBWTH.js";
|
|
94
|
+
import "../chunk-MLKGABMK.js";
|
|
95
|
+
export {
|
|
96
|
+
BunAddressResolver_exports as BunAddressResolver,
|
|
97
|
+
BunChildProcessSpawner_exports as BunChildProcessSpawner,
|
|
98
|
+
BunClusterHttp_exports as BunClusterHttp,
|
|
99
|
+
BunClusterSocket_exports as BunClusterSocket,
|
|
100
|
+
BunCrypto_exports as BunCrypto,
|
|
101
|
+
BunDatagramSocket_exports as BunDatagramSocket,
|
|
102
|
+
BunDns_exports as BunDns,
|
|
103
|
+
BunFileSystem_exports as BunFileSystem,
|
|
104
|
+
BunHttpClient_exports as BunHttpClient,
|
|
105
|
+
BunHttpPlatform_exports as BunHttpPlatform,
|
|
106
|
+
BunHttpServer_exports as BunHttpServer,
|
|
107
|
+
BunHttpServerRequest_exports as BunHttpServerRequest,
|
|
108
|
+
BunMultipart_exports as BunMultipart,
|
|
109
|
+
BunPath_exports as BunPath,
|
|
110
|
+
BunRedis_exports as BunRedis,
|
|
111
|
+
BunRuntime_exports as BunRuntime,
|
|
112
|
+
BunServices_exports as BunServices,
|
|
113
|
+
BunSink_exports as BunSink,
|
|
114
|
+
BunSocket_exports as BunSocket,
|
|
115
|
+
BunSocketServer_exports as BunSocketServer,
|
|
116
|
+
BunStdio_exports as BunStdio,
|
|
117
|
+
BunStream_exports as BunStream,
|
|
118
|
+
BunTerminal_exports as BunTerminal,
|
|
119
|
+
BunWorker_exports as BunWorker,
|
|
120
|
+
BunWorkerRunner_exports as BunWorkerRunner
|
|
121
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
2
|
+
import * as PlatformError from "effect/PlatformError";
|
|
3
|
+
var handleErrnoException = (module, method) => (err, [path]) => {
|
|
4
|
+
let reason = "Unknown";
|
|
5
|
+
switch (err.code) {
|
|
6
|
+
case "ENOENT":
|
|
7
|
+
reason = "NotFound";
|
|
8
|
+
break;
|
|
9
|
+
case "EACCES":
|
|
10
|
+
reason = "PermissionDenied";
|
|
11
|
+
break;
|
|
12
|
+
case "EEXIST":
|
|
13
|
+
reason = "AlreadyExists";
|
|
14
|
+
break;
|
|
15
|
+
case "EISDIR":
|
|
16
|
+
reason = "BadResource";
|
|
17
|
+
break;
|
|
18
|
+
case "ENOTDIR":
|
|
19
|
+
reason = "BadResource";
|
|
20
|
+
break;
|
|
21
|
+
case "EBUSY":
|
|
22
|
+
reason = "Busy";
|
|
23
|
+
break;
|
|
24
|
+
case "ELOOP":
|
|
25
|
+
reason = "BadResource";
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
return PlatformError.systemError({
|
|
29
|
+
_tag: reason,
|
|
30
|
+
module,
|
|
31
|
+
method,
|
|
32
|
+
pathOrDescriptor: path,
|
|
33
|
+
syscall: err.syscall,
|
|
34
|
+
cause: err
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
handleErrnoException
|
|
40
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeHttpCompression.js
|
|
6
|
+
var NodeHttpCompression_exports = {};
|
|
7
|
+
__export(NodeHttpCompression_exports, {
|
|
8
|
+
algorithms: () => algorithms,
|
|
9
|
+
compressTransform: () => compressTransform,
|
|
10
|
+
compressTransformWeb: () => compressTransformWeb,
|
|
11
|
+
make: () => make
|
|
12
|
+
});
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import * as HttpBody from "effect/http/HttpBody";
|
|
15
|
+
import * as Response from "effect/http/HttpServerResponse";
|
|
16
|
+
import { Readable } from "node:stream";
|
|
17
|
+
import * as Zlib from "node:zlib";
|
|
18
|
+
var algorithms = /* @__PURE__ */ new Set(typeof Zlib.zstdCompress === "function" ? ["gzip", "deflate", "br", "zstd"] : ["gzip", "deflate", "br"]);
|
|
19
|
+
var brotliParams = (level, sizeHint) => {
|
|
20
|
+
const params = {};
|
|
21
|
+
if (level !== void 0) {
|
|
22
|
+
params[Zlib.constants.BROTLI_PARAM_QUALITY] = level;
|
|
23
|
+
}
|
|
24
|
+
if (sizeHint !== void 0) {
|
|
25
|
+
params[Zlib.constants.BROTLI_PARAM_SIZE_HINT] = sizeHint;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
params
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
var zstdParams = (level) => level === void 0 || level === 3 ? void 0 : {
|
|
32
|
+
params: {
|
|
33
|
+
[Zlib.constants.ZSTD_c_compressionLevel]: level
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var compress = (data, algorithm, options) => Effect.callback((resume) => {
|
|
37
|
+
const complete = (error, result) => resume(error === null ? Effect.succeed(result) : Effect.die(error));
|
|
38
|
+
switch (algorithm) {
|
|
39
|
+
case "gzip": {
|
|
40
|
+
Zlib.gzip(data, {
|
|
41
|
+
level: options?.level
|
|
42
|
+
}, complete);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
case "deflate": {
|
|
46
|
+
Zlib.deflate(data, {
|
|
47
|
+
level: options?.level
|
|
48
|
+
}, complete);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
case "br": {
|
|
52
|
+
Zlib.brotliCompress(data, brotliParams(options?.level, data.byteLength), complete);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case "zstd": {
|
|
56
|
+
const params = zstdParams(options?.level);
|
|
57
|
+
if (params === void 0) {
|
|
58
|
+
Zlib.zstdCompress(data, complete);
|
|
59
|
+
} else {
|
|
60
|
+
Zlib.zstdCompress(data, params, complete);
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var make = (fallback) => ({
|
|
67
|
+
algorithms: fallback.algorithms,
|
|
68
|
+
compressResponse(response, algorithm, options) {
|
|
69
|
+
const body = response.body;
|
|
70
|
+
if (body._tag !== "Uint8Array") {
|
|
71
|
+
return fallback.compressResponse(response, algorithm, options);
|
|
72
|
+
}
|
|
73
|
+
return Effect.map(compress(body.body, algorithm, options), (result) => Response.setHeader(Response.setBody(response, HttpBody.uint8Array(result, response.headers["content-type"] ?? body.contentType)), "content-length", result.byteLength.toString()));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var compressTransform = (algorithm, options) => {
|
|
77
|
+
switch (algorithm) {
|
|
78
|
+
case "gzip": {
|
|
79
|
+
return Zlib.createGzip({
|
|
80
|
+
level: options?.level,
|
|
81
|
+
flush: Zlib.constants.Z_SYNC_FLUSH
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
case "deflate": {
|
|
85
|
+
return Zlib.createDeflate({
|
|
86
|
+
level: options?.level,
|
|
87
|
+
flush: Zlib.constants.Z_SYNC_FLUSH
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
case "br": {
|
|
91
|
+
return Zlib.createBrotliCompress({
|
|
92
|
+
...brotliParams(options?.level),
|
|
93
|
+
flush: Zlib.constants.BROTLI_OPERATION_FLUSH
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
case "zstd": {
|
|
97
|
+
return Zlib.createZstdCompress({
|
|
98
|
+
...zstdParams(options?.level),
|
|
99
|
+
flush: Zlib.constants.ZSTD_e_flush
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var compressTransformWeb = (algorithm, options) => (stream) => {
|
|
105
|
+
const transform = compressTransform(algorithm, options);
|
|
106
|
+
const source = Readable.fromWeb(stream);
|
|
107
|
+
source.on("error", (cause) => transform.destroy(cause));
|
|
108
|
+
transform.on("close", () => source.destroy());
|
|
109
|
+
return Readable.toWeb(source.pipe(transform));
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
algorithms,
|
|
114
|
+
make,
|
|
115
|
+
compressTransform,
|
|
116
|
+
compressTransformWeb,
|
|
117
|
+
NodeHttpCompression_exports
|
|
118
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IncomingMessage,
|
|
3
|
+
layer,
|
|
4
|
+
layerTls,
|
|
5
|
+
layerWebSocket,
|
|
6
|
+
make,
|
|
7
|
+
makeTls,
|
|
8
|
+
makeWebSocket
|
|
9
|
+
} from "./chunk-S6QUQLBV.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./chunk-MLKGABMK.js";
|
|
13
|
+
|
|
14
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeSocketServer.js
|
|
15
|
+
var NodeSocketServer_exports = {};
|
|
16
|
+
__export(NodeSocketServer_exports, {
|
|
17
|
+
IncomingMessage: () => IncomingMessage,
|
|
18
|
+
layer: () => layer,
|
|
19
|
+
layerTls: () => layerTls,
|
|
20
|
+
layerWebSocket: () => layerWebSocket,
|
|
21
|
+
make: () => make,
|
|
22
|
+
makeTls: () => makeTls,
|
|
23
|
+
makeWebSocket: () => makeWebSocket
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
NodeSocketServer_exports
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.4_effect@4.0.4/node_modules/@effect/platform-bun/dist/BunHttpServerRequest.js
|
|
6
|
+
var BunHttpServerRequest_exports = {};
|
|
7
|
+
__export(BunHttpServerRequest_exports, {
|
|
8
|
+
toBunServerRequest: () => toBunServerRequest
|
|
9
|
+
});
|
|
10
|
+
var toBunServerRequest = (self) => self.source;
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
toBunServerRequest,
|
|
14
|
+
BunHttpServerRequest_exports
|
|
15
|
+
};
|