@smthrs/platform-bun 0.0.0-stage → 1.0.0-rc.3
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 +113 -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 +147 -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 +242 -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 +2707 -0
- package/dist/vendor/bun/BunChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/bun/BunChildProcessSpawner.js +14 -0
- package/dist/vendor/bun/BunClusterHttp.d.ts +83 -0
- package/dist/vendor/bun/BunClusterHttp.js +39 -0
- package/dist/vendor/bun/BunClusterSocket.d.ts +65 -0
- package/dist/vendor/bun/BunClusterSocket.js +22 -0
- package/dist/vendor/bun/BunCrypto.d.ts +10 -0
- package/dist/vendor/bun/BunCrypto.js +8 -0
- package/dist/vendor/bun/BunFileSystem.d.ts +10 -0
- package/dist/vendor/bun/BunFileSystem.js +9 -0
- package/dist/vendor/bun/BunHttpClient.d.ts +9 -0
- package/dist/vendor/bun/BunHttpClient.js +1 -0
- package/dist/vendor/bun/BunHttpPlatform.d.ts +10 -0
- package/dist/vendor/bun/BunHttpPlatform.js +11 -0
- package/dist/vendor/bun/BunHttpServer.d.ts +142 -0
- package/dist/vendor/bun/BunHttpServer.js +38 -0
- package/dist/vendor/bun/BunHttpServerRequest.d.ts +18 -0
- package/dist/vendor/bun/BunHttpServerRequest.js +7 -0
- package/dist/vendor/bun/BunMultipart.d.ts +31 -0
- package/dist/vendor/bun/BunMultipart.js +12 -0
- package/dist/vendor/bun/BunPath.d.ts +24 -0
- package/dist/vendor/bun/BunPath.js +12 -0
- package/dist/vendor/bun/BunRedis.d.ts +49 -0
- package/dist/vendor/bun/BunRedis.js +11 -0
- package/dist/vendor/bun/BunRuntime.d.ts +85 -0
- package/dist/vendor/bun/BunRuntime.js +8 -0
- package/dist/vendor/bun/BunServices.d.ts +34 -0
- package/dist/vendor/bun/BunServices.js +23 -0
- package/dist/vendor/bun/BunSink.d.ts +8 -0
- package/dist/vendor/bun/BunSink.js +12 -0
- package/dist/vendor/bun/BunSocket.d.ts +40 -0
- package/dist/vendor/bun/BunSocket.js +29 -0
- package/dist/vendor/bun/BunSocketServer.d.ts +8 -0
- package/dist/vendor/bun/BunSocketServer.js +21 -0
- package/dist/vendor/bun/BunStdio.d.ts +11 -0
- package/dist/vendor/bun/BunStdio.js +10 -0
- package/dist/vendor/bun/BunStream.d.ts +19 -0
- package/dist/vendor/bun/BunStream.js +30 -0
- package/dist/vendor/bun/BunTerminal.d.ts +21 -0
- package/dist/vendor/bun/BunTerminal.js +10 -0
- package/dist/vendor/bun/BunWorker.d.ts +20 -0
- package/dist/vendor/bun/BunWorker.js +9 -0
- package/dist/vendor/bun/BunWorkerRunner.d.ts +12 -0
- package/dist/vendor/bun/BunWorkerRunner.js +7 -0
- package/dist/vendor/bun/LICENSE +21 -0
- package/dist/vendor/bun/index.d.ts +92 -0
- package/dist/vendor/bun/index.js +107 -0
- package/dist/vendor/chunk-2KZ2IFIZ.js +71 -0
- package/dist/vendor/chunk-2Y7WC4KU.js +109 -0
- package/dist/vendor/chunk-3GR5VZ2M.js +118 -0
- package/dist/vendor/chunk-3QW2PNUY.js +7 -0
- package/dist/vendor/chunk-42QKY6T6.js +40 -0
- package/dist/vendor/chunk-54RLBMTZ.js +61 -0
- package/dist/vendor/chunk-5U3MC37H.js +63 -0
- package/dist/vendor/chunk-5ZMHBXIK.js +55 -0
- package/dist/vendor/chunk-64Q2B7BA.js +34 -0
- package/dist/vendor/chunk-6CRG556Y.js +15 -0
- package/dist/vendor/chunk-6HWHSZL3.js +34 -0
- package/dist/vendor/chunk-6J25AYCI.js +93 -0
- package/dist/vendor/chunk-6ME2W7TF.js +28 -0
- package/dist/vendor/chunk-6TZ7LQAC.js +18 -0
- package/dist/vendor/chunk-B3FZ67QU.js +59 -0
- package/dist/vendor/chunk-BBLQEPNJ.js +22 -0
- package/dist/vendor/chunk-BKTBUBQY.js +437 -0
- package/dist/vendor/chunk-CIB6JB2Y.js +63 -0
- package/dist/vendor/chunk-DS7GF46S.js +34 -0
- package/dist/vendor/chunk-DVOAHXPG.js +104 -0
- package/dist/vendor/chunk-DWSHTSVX.js +229 -0
- package/dist/vendor/chunk-EGBNVEEW.js +14 -0
- package/dist/vendor/chunk-EHDTBBPL.js +45 -0
- package/dist/vendor/chunk-EZWY45HP.js +18 -0
- package/dist/vendor/chunk-F7VENFF4.js +507 -0
- package/dist/vendor/chunk-GXCHI7BM.js +131 -0
- package/dist/vendor/chunk-HX4AXITW.js +65 -0
- package/dist/vendor/chunk-IIJ52ZU6.js +20 -0
- package/dist/vendor/chunk-IR7WG7SA.js +564 -0
- package/dist/vendor/chunk-J7A4CZDO.js +92 -0
- package/dist/vendor/chunk-JG5TTWPT.js +85 -0
- package/dist/vendor/chunk-JJ24ARBQ.js +394 -0
- package/dist/vendor/chunk-JUVIPOOR.js +18 -0
- package/dist/vendor/chunk-KCLEGTEN.js +86 -0
- package/dist/vendor/chunk-KOZMM5PZ.js +426 -0
- package/dist/vendor/chunk-KUUXSID7.js +18 -0
- package/dist/vendor/chunk-KWOY4JDR.js +398 -0
- package/dist/vendor/chunk-LEUPYT3Q.js +36 -0
- package/dist/vendor/chunk-LJVI2DIF.js +57 -0
- package/dist/vendor/chunk-M32LDTW7.js +18 -0
- package/dist/vendor/chunk-M7CLUILA.js +0 -0
- package/dist/vendor/chunk-MBSKBQ5D.js +21 -0
- package/dist/vendor/chunk-MLKGABMK.js +9 -0
- package/dist/vendor/chunk-MMEGG3WE.js +96 -0
- package/dist/vendor/chunk-MSWDMTAF.js +18 -0
- package/dist/vendor/chunk-NBVRTDTV.js +129 -0
- package/dist/vendor/chunk-NBYGGMAE.js +70 -0
- package/dist/vendor/chunk-NLMT7VBU.js +18 -0
- package/dist/vendor/chunk-OXNGN5H7.js +81 -0
- package/dist/vendor/chunk-RBKBXDZW.js +18 -0
- package/dist/vendor/chunk-RNBBYWS2.js +26 -0
- package/dist/vendor/chunk-SFHVFMSR.js +18 -0
- package/dist/vendor/chunk-TFIKFFSC.js +26 -0
- package/dist/vendor/chunk-TXKLEBBL.js +143 -0
- package/dist/vendor/chunk-U6OWSZD2.js +62 -0
- package/dist/vendor/chunk-UFH5UUZK.js +48 -0
- package/dist/vendor/chunk-UJAEC4DS.js +20 -0
- package/dist/vendor/chunk-VZBDV3TV.js +18 -0
- package/dist/vendor/chunk-WGN4AMSX.js +0 -0
- package/dist/vendor/chunk-WIYD3THC.js +31 -0
- package/dist/vendor/chunk-XDKNKFBW.js +22 -0
- package/dist/vendor/chunk-XH4U3JSV.js +249 -0
- package/dist/vendor/chunk-XWPHMSXO.js +28 -0
- package/dist/vendor/chunk-Y35ZAO5U.js +53 -0
- package/dist/vendor/chunk-ZJMRMY57.js +0 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.d.ts +83 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.d.ts +65 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunCrypto.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunCrypto.js +1 -0
- package/dist/vendor/cjs/bun/BunFileSystem.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunFileSystem.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpClient.d.ts +9 -0
- package/dist/vendor/cjs/bun/BunHttpClient.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServer.d.ts +142 -0
- package/dist/vendor/cjs/bun/BunHttpServer.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.d.ts +18 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/bun/BunMultipart.d.ts +31 -0
- package/dist/vendor/cjs/bun/BunMultipart.js +1 -0
- package/dist/vendor/cjs/bun/BunPath.d.ts +24 -0
- package/dist/vendor/cjs/bun/BunPath.js +1 -0
- package/dist/vendor/cjs/bun/BunRedis.d.ts +49 -0
- package/dist/vendor/cjs/bun/BunRedis.js +1 -0
- package/dist/vendor/cjs/bun/BunRuntime.d.ts +85 -0
- package/dist/vendor/cjs/bun/BunRuntime.js +1 -0
- package/dist/vendor/cjs/bun/BunServices.d.ts +34 -0
- package/dist/vendor/cjs/bun/BunServices.js +1 -0
- package/dist/vendor/cjs/bun/BunSink.d.ts +8 -0
- package/dist/vendor/cjs/bun/BunSink.js +1 -0
- package/dist/vendor/cjs/bun/BunSocket.d.ts +40 -0
- package/dist/vendor/cjs/bun/BunSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunSocketServer.d.ts +8 -0
- package/dist/vendor/cjs/bun/BunSocketServer.js +1 -0
- package/dist/vendor/cjs/bun/BunStdio.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunStdio.js +1 -0
- package/dist/vendor/cjs/bun/BunStream.d.ts +19 -0
- package/dist/vendor/cjs/bun/BunStream.js +1 -0
- package/dist/vendor/cjs/bun/BunTerminal.d.ts +21 -0
- package/dist/vendor/cjs/bun/BunTerminal.js +1 -0
- package/dist/vendor/cjs/bun/BunWorker.d.ts +20 -0
- package/dist/vendor/cjs/bun/BunWorker.js +1 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.d.ts +12 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.js +1 -0
- package/dist/vendor/cjs/bun/index.d.ts +92 -0
- package/dist/vendor/cjs/bun/index.js +1 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +63 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +79 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeCrypto.d.ts +10 -0
- package/dist/vendor/cjs/node/NodeCrypto.js +1 -0
- package/dist/vendor/cjs/node/NodeFileSystem.d.ts +10 -0
- package/dist/vendor/cjs/node/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpClient.d.ts +179 -0
- package/dist/vendor/cjs/node/NodeHttpClient.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +62 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +36 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServer.d.ts +120 -0
- package/dist/vendor/cjs/node/NodeHttpServer.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +29 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipart.d.ts +46 -0
- package/dist/vendor/cjs/node/NodeMultipart.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +97 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.js +1 -0
- package/dist/vendor/cjs/node/NodePath.d.ts +27 -0
- package/dist/vendor/cjs/node/NodePath.js +1 -0
- package/dist/vendor/cjs/node/NodeRedis.d.ts +74 -0
- package/dist/vendor/cjs/node/NodeRedis.js +1 -0
- package/dist/vendor/cjs/node/NodeRuntime.d.ts +85 -0
- package/dist/vendor/cjs/node/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node/NodeServices.d.ts +34 -0
- package/dist/vendor/cjs/node/NodeServices.js +1 -0
- package/dist/vendor/cjs/node/NodeSink.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeSink.js +1 -0
- package/dist/vendor/cjs/node/NodeSocket.d.ts +38 -0
- package/dist/vendor/cjs/node/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeSocketServer.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node/NodeStdio.d.ts +11 -0
- package/dist/vendor/cjs/node/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node/NodeStream.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeStream.js +1 -0
- package/dist/vendor/cjs/node/NodeTerminal.d.ts +21 -0
- package/dist/vendor/cjs/node/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node/NodeWorker.d.ts +22 -0
- package/dist/vendor/cjs/node/NodeWorker.js +1 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +12 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.js +1 -0
- package/dist/vendor/cjs/node/Undici.d.ts +28 -0
- package/dist/vendor/cjs/node/Undici.js +1 -0
- package/dist/vendor/cjs/node/index.d.ts +100 -0
- package/dist/vendor/cjs/node/index.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.d.ts +57 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +22 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +27 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.d.ts +11 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +36 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.js +1 -0
- package/dist/vendor/cjs/node-shared/NodePath.d.ts +27 -0
- package/dist/vendor/cjs/node-shared/NodePath.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +47 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSink.d.ts +69 -0
- package/dist/vendor/cjs/node-shared/NodeSink.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +134 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +80 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +12 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStream.d.ts +179 -0
- package/dist/vendor/cjs/node-shared/NodeStream.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +22 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node-shared/index.d.ts +56 -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 +92 -0
- package/dist/vendor/cjs/platform-bun.js +1 -0
- package/dist/vendor/cjs/platform-node-shared.d.ts +56 -0
- package/dist/vendor/cjs/platform-node-shared.js +1 -0
- package/dist/vendor/cjs/platform-node.d.ts +100 -0
- package/dist/vendor/cjs/platform-node.js +1 -0
- package/dist/vendor/node/LICENSE +21 -0
- package/dist/vendor/node/NodeChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/node/NodeChildProcessSpawner.js +14 -0
- package/dist/vendor/node/NodeClusterHttp.d.ts +63 -0
- package/dist/vendor/node/NodeClusterHttp.js +43 -0
- package/dist/vendor/node/NodeClusterSocket.d.ts +79 -0
- package/dist/vendor/node/NodeClusterSocket.js +30 -0
- package/dist/vendor/node/NodeCrypto.d.ts +10 -0
- package/dist/vendor/node/NodeCrypto.js +8 -0
- package/dist/vendor/node/NodeFileSystem.d.ts +10 -0
- package/dist/vendor/node/NodeFileSystem.js +9 -0
- package/dist/vendor/node/NodeHttpClient.d.ts +179 -0
- package/dist/vendor/node/NodeHttpClient.js +46 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +62 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.js +10 -0
- package/dist/vendor/node/NodeHttpPlatform.d.ts +36 -0
- package/dist/vendor/node/NodeHttpPlatform.js +16 -0
- package/dist/vendor/node/NodeHttpServer.d.ts +120 -0
- package/dist/vendor/node/NodeHttpServer.js +46 -0
- package/dist/vendor/node/NodeHttpServerRequest.d.ts +29 -0
- package/dist/vendor/node/NodeHttpServerRequest.js +9 -0
- package/dist/vendor/node/NodeMultipart.d.ts +46 -0
- package/dist/vendor/node/NodeMultipart.js +15 -0
- package/dist/vendor/node/NodeMultipartParser.d.ts +97 -0
- package/dist/vendor/node/NodeMultipartParser.js +11 -0
- package/dist/vendor/node/NodePath.d.ts +27 -0
- package/dist/vendor/node/NodePath.js +12 -0
- package/dist/vendor/node/NodeRedis.d.ts +74 -0
- package/dist/vendor/node/NodeRedis.js +11 -0
- package/dist/vendor/node/NodeRuntime.d.ts +85 -0
- package/dist/vendor/node/NodeRuntime.js +8 -0
- package/dist/vendor/node/NodeServices.d.ts +34 -0
- package/dist/vendor/node/NodeServices.js +23 -0
- package/dist/vendor/node/NodeSink.d.ts +8 -0
- package/dist/vendor/node/NodeSink.js +12 -0
- package/dist/vendor/node/NodeSocket.d.ts +38 -0
- package/dist/vendor/node/NodeSocket.js +31 -0
- package/dist/vendor/node/NodeSocketServer.d.ts +8 -0
- package/dist/vendor/node/NodeSocketServer.js +21 -0
- package/dist/vendor/node/NodeStdio.d.ts +11 -0
- package/dist/vendor/node/NodeStdio.js +10 -0
- package/dist/vendor/node/NodeStream.d.ts +8 -0
- package/dist/vendor/node/NodeStream.js +27 -0
- package/dist/vendor/node/NodeTerminal.d.ts +21 -0
- package/dist/vendor/node/NodeTerminal.js +10 -0
- package/dist/vendor/node/NodeWorker.d.ts +22 -0
- package/dist/vendor/node/NodeWorker.js +9 -0
- package/dist/vendor/node/NodeWorkerRunner.d.ts +12 -0
- package/dist/vendor/node/NodeWorkerRunner.js +7 -0
- package/dist/vendor/node/Undici.d.ts +28 -0
- package/dist/vendor/node/Undici.js +9 -0
- package/dist/vendor/node/index.d.ts +100 -0
- package/dist/vendor/node/index.js +115 -0
- package/dist/vendor/node-shared/LICENSE +21 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.d.ts +57 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.js +13 -0
- package/dist/vendor/node-shared/NodeClusterSocket.d.ts +22 -0
- package/dist/vendor/node-shared/NodeClusterSocket.js +11 -0
- package/dist/vendor/node-shared/NodeCrypto.d.ts +27 -0
- package/dist/vendor/node-shared/NodeCrypto.js +9 -0
- package/dist/vendor/node-shared/NodeFileSystem.d.ts +11 -0
- package/dist/vendor/node-shared/NodeFileSystem.js +8 -0
- package/dist/vendor/node-shared/NodeHttpCompression.d.ts +36 -0
- package/dist/vendor/node-shared/NodeHttpCompression.js +13 -0
- package/dist/vendor/node-shared/NodePath.d.ts +27 -0
- package/dist/vendor/node-shared/NodePath.js +11 -0
- package/dist/vendor/node-shared/NodeRuntime.d.ts +47 -0
- package/dist/vendor/node-shared/NodeRuntime.js +7 -0
- package/dist/vendor/node-shared/NodeSink.d.ts +69 -0
- package/dist/vendor/node-shared/NodeSink.js +11 -0
- package/dist/vendor/node-shared/NodeSocket.d.ts +134 -0
- package/dist/vendor/node-shared/NodeSocket.js +23 -0
- package/dist/vendor/node-shared/NodeSocketServer.d.ts +80 -0
- package/dist/vendor/node-shared/NodeSocketServer.js +20 -0
- package/dist/vendor/node-shared/NodeStdio.d.ts +12 -0
- package/dist/vendor/node-shared/NodeStdio.js +9 -0
- package/dist/vendor/node-shared/NodeStream.d.ts +179 -0
- package/dist/vendor/node-shared/NodeStream.js +26 -0
- package/dist/vendor/node-shared/NodeTerminal.d.ts +22 -0
- package/dist/vendor/node-shared/NodeTerminal.js +9 -0
- package/dist/vendor/node-shared/index.d.ts +56 -0
- package/dist/vendor/node-shared/index.js +58 -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 +92 -0
- package/dist/vendor/platform-bun.js +107 -0
- package/dist/vendor/platform-node-shared.d.ts +56 -0
- package/dist/vendor/platform-node-shared.js +58 -0
- package/dist/vendor/platform-node.d.ts +100 -0
- package/dist/vendor/platform-node.js +115 -0
- package/docs/README.md +132 -0
- package/docs/api.md +265 -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 +109 -0
- package/docs/guides/contain-child-processes.md +176 -0
- package/docs/installation.md +128 -0
- package/docs/quickstart.md +159 -0
- package/docs/troubleshooting.md +178 -0
- package/package.json +146 -3
- package/src/BunFileSystem.ts +47 -0
- package/src/BunHost.ts +338 -0
- package/src/index.ts +27 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "./chunk-VZBDV3TV.js";
|
|
4
|
+
import {
|
|
5
|
+
Dispatcher,
|
|
6
|
+
layerUndiciNoDispatcher,
|
|
7
|
+
makeDispatcher
|
|
8
|
+
} from "./chunk-KOZMM5PZ.js";
|
|
9
|
+
import {
|
|
10
|
+
layer as layer2
|
|
11
|
+
} from "./chunk-M32LDTW7.js";
|
|
12
|
+
import {
|
|
13
|
+
layerClientProtocol,
|
|
14
|
+
layerSocketServer
|
|
15
|
+
} from "./chunk-Y35ZAO5U.js";
|
|
16
|
+
import {
|
|
17
|
+
__export
|
|
18
|
+
} from "./chunk-MLKGABMK.js";
|
|
19
|
+
|
|
20
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeClusterSocket.js
|
|
21
|
+
var NodeClusterSocket_exports = {};
|
|
22
|
+
__export(NodeClusterSocket_exports, {
|
|
23
|
+
layer: () => layer7,
|
|
24
|
+
layerClientProtocol: () => layerClientProtocol,
|
|
25
|
+
layerDispatcherK8s: () => layerDispatcherK8s,
|
|
26
|
+
layerK8sHttpClient: () => layerK8sHttpClient,
|
|
27
|
+
layerSocketServer: () => layerSocketServer
|
|
28
|
+
});
|
|
29
|
+
import * as Effect from "effect/Effect";
|
|
30
|
+
import * as FileSystem from "effect/FileSystem";
|
|
31
|
+
import * as Layer from "effect/Layer";
|
|
32
|
+
import * as K8sHttpClient from "effect/unstable/cluster/K8sHttpClient";
|
|
33
|
+
import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
|
|
34
|
+
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth";
|
|
35
|
+
import * as Runners from "effect/unstable/cluster/Runners";
|
|
36
|
+
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
37
|
+
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
38
|
+
import * as SocketRunner from "effect/unstable/cluster/SocketRunner";
|
|
39
|
+
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage";
|
|
40
|
+
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage";
|
|
41
|
+
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
42
|
+
var layer7 = (options) => {
|
|
43
|
+
const layer8 = options?.clientOnly ? Layer.provide(SocketRunner.layerClientOnly, layerClientProtocol) : Layer.provide(SocketRunner.layer, [layerSocketServer, layerClientProtocol]);
|
|
44
|
+
const runnerHealth = options?.clientOnly ? Layer.empty : options?.runnerHealth === "k8s" ? RunnerHealth.layerK8s(options.runnerHealthK8s).pipe(Layer.provide(layerK8sHttpClient)) : RunnerHealth.layerPing.pipe(Layer.provide(Runners.layerRpc), Layer.provide(layerClientProtocol));
|
|
45
|
+
return layer8.pipe(Layer.provide(runnerHealth), Layer.provideMerge(options?.storage === "local" ? MessageStorage.layerNoop : options?.storage === "byo" ? Layer.empty : Layer.orDie(SqlMessageStorage.layer).pipe(Layer.provide(layer))), Layer.provide(options?.storage === "local" ? RunnerStorage.layerMemory : options?.storage === "byo" ? Layer.empty : Layer.orDie(SqlRunnerStorage.layer)), Layer.provide(ShardingConfig.layerFromEnv(options?.shardingConfig)), Layer.provide(options?.serialization === "ndjson" ? RpcSerialization.layerNdjsonWith({
|
|
46
|
+
maxBufferSize: options?.serializationMaxBufferSize
|
|
47
|
+
}) : RpcSerialization.layerSchemaBinary({
|
|
48
|
+
maxFrameSize: options?.serializationMaxBufferSize
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
var layerDispatcherK8s = /* @__PURE__ */ Layer.effect(Dispatcher)(Effect.gen(function* () {
|
|
52
|
+
const fs = yield* FileSystem.FileSystem;
|
|
53
|
+
const caCertOption = yield* fs.readFileString("/var/run/secrets/kubernetes.io/serviceaccount/ca.crt").pipe(Effect.option);
|
|
54
|
+
if (caCertOption._tag === "Some") {
|
|
55
|
+
const Undici = yield* Effect.promise(() => import("./node/Undici.js"));
|
|
56
|
+
return yield* Effect.acquireRelease(Effect.sync(() => new Undici.Agent({
|
|
57
|
+
connect: {
|
|
58
|
+
ca: caCertOption.value
|
|
59
|
+
}
|
|
60
|
+
})), (agent) => Effect.promise(() => agent.destroy()));
|
|
61
|
+
}
|
|
62
|
+
return yield* makeDispatcher;
|
|
63
|
+
})).pipe(/* @__PURE__ */ Layer.provide(layer2));
|
|
64
|
+
var layerK8sHttpClient = /* @__PURE__ */ K8sHttpClient.layer.pipe(/* @__PURE__ */ Layer.provide(/* @__PURE__ */ Layer.fresh(layerUndiciNoDispatcher)), /* @__PURE__ */ Layer.provide(layerDispatcherK8s), /* @__PURE__ */ Layer.provide(layer2));
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
layer7 as layer,
|
|
68
|
+
layerDispatcherK8s,
|
|
69
|
+
layerK8sHttpClient,
|
|
70
|
+
NodeClusterSocket_exports
|
|
71
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeMultipartParser.js
|
|
6
|
+
var NodeMultipartParser_exports = {};
|
|
7
|
+
__export(NodeMultipartParser_exports, {
|
|
8
|
+
FileStream: () => FileStream,
|
|
9
|
+
MultipartStream: () => MultipartStream,
|
|
10
|
+
make: () => make
|
|
11
|
+
});
|
|
12
|
+
import { make as makeParser } from "effect/unstable/http/MultipartParser";
|
|
13
|
+
import { Duplex, Readable } from "node:stream";
|
|
14
|
+
var MultipartStream = class extends Duplex {
|
|
15
|
+
_parser;
|
|
16
|
+
_canWrite = true;
|
|
17
|
+
_writeCallback;
|
|
18
|
+
constructor(config) {
|
|
19
|
+
super({
|
|
20
|
+
readableObjectMode: true
|
|
21
|
+
});
|
|
22
|
+
let currentError;
|
|
23
|
+
let currentFile;
|
|
24
|
+
this._parser = makeParser({
|
|
25
|
+
...config,
|
|
26
|
+
onField: (info, value) => {
|
|
27
|
+
if (currentError !== void 0) return;
|
|
28
|
+
const field = {
|
|
29
|
+
_tag: "Field",
|
|
30
|
+
info,
|
|
31
|
+
value
|
|
32
|
+
};
|
|
33
|
+
this.push(field);
|
|
34
|
+
this.emit("field", field);
|
|
35
|
+
},
|
|
36
|
+
onFile: (info) => {
|
|
37
|
+
if (currentError !== void 0) return (_) => {
|
|
38
|
+
};
|
|
39
|
+
const file = new FileStream(info, this);
|
|
40
|
+
currentFile = file;
|
|
41
|
+
this.push(file);
|
|
42
|
+
this.emit("file", file);
|
|
43
|
+
return (chunk) => {
|
|
44
|
+
if (currentError !== void 0) return;
|
|
45
|
+
this._canWrite = file.push(chunk);
|
|
46
|
+
if (chunk === null && !this._canWrite) {
|
|
47
|
+
currentFile = void 0;
|
|
48
|
+
this._resume();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
onError: (error) => {
|
|
53
|
+
this.emit("error", error);
|
|
54
|
+
currentFile?.emit("error", error);
|
|
55
|
+
currentError = error;
|
|
56
|
+
},
|
|
57
|
+
onDone: () => {
|
|
58
|
+
this.push(null);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
_resume() {
|
|
63
|
+
this._canWrite = true;
|
|
64
|
+
if (this._writeCallback !== void 0) {
|
|
65
|
+
const callback = this._writeCallback;
|
|
66
|
+
this._writeCallback = void 0;
|
|
67
|
+
callback();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
_read(_size) {
|
|
71
|
+
}
|
|
72
|
+
_write(chunk, encoding, callback) {
|
|
73
|
+
this._parser.write(chunk instanceof Uint8Array ? chunk : Buffer.from(chunk, encoding));
|
|
74
|
+
if (this._canWrite) {
|
|
75
|
+
callback();
|
|
76
|
+
} else {
|
|
77
|
+
this._writeCallback = callback;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
_final(callback) {
|
|
81
|
+
this._parser.end();
|
|
82
|
+
callback();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var make = (config) => new MultipartStream(config);
|
|
86
|
+
var FileStream = class extends Readable {
|
|
87
|
+
_tag = "File";
|
|
88
|
+
filename;
|
|
89
|
+
info;
|
|
90
|
+
_parent;
|
|
91
|
+
constructor(info, parent) {
|
|
92
|
+
super();
|
|
93
|
+
this.info = info;
|
|
94
|
+
this._parent = parent;
|
|
95
|
+
this.filename = info.filename;
|
|
96
|
+
}
|
|
97
|
+
_read(_size) {
|
|
98
|
+
if (this._parent._canWrite === false) {
|
|
99
|
+
this._parent._resume();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
MultipartStream,
|
|
106
|
+
make,
|
|
107
|
+
FileStream,
|
|
108
|
+
NodeMultipartParser_exports
|
|
109
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.115_effect@4.0.0-rc.115/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/unstable/http/HttpBody";
|
|
15
|
+
import * as Response from "effect/unstable/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
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunHttpClient.js
|
|
2
|
+
var BunHttpClient_exports = {};
|
|
3
|
+
export * from "effect/unstable/http/FetchHttpClient";
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
BunHttpClient_exports
|
|
7
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.115_effect@4.0.0-rc.115/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,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
6
|
+
var NodePath_exports = {};
|
|
7
|
+
__export(NodePath_exports, {
|
|
8
|
+
layer: () => layer,
|
|
9
|
+
layerPosix: () => layerPosix,
|
|
10
|
+
layerWin32: () => layerWin32
|
|
11
|
+
});
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Layer from "effect/Layer";
|
|
14
|
+
import { Path, TypeId } from "effect/Path";
|
|
15
|
+
import { BadArgument } from "effect/PlatformError";
|
|
16
|
+
import * as NodePath from "node:path";
|
|
17
|
+
import * as NodeUrl from "node:url";
|
|
18
|
+
var fileUrlOps = (windows) => ({
|
|
19
|
+
fromFileUrl: (url) => Effect.try({
|
|
20
|
+
try: () => NodeUrl.fileURLToPath(url, {
|
|
21
|
+
windows
|
|
22
|
+
}),
|
|
23
|
+
catch: (cause) => new BadArgument({
|
|
24
|
+
module: "Path",
|
|
25
|
+
method: "fromFileUrl",
|
|
26
|
+
cause
|
|
27
|
+
})
|
|
28
|
+
}),
|
|
29
|
+
toFileUrl: (path) => Effect.try({
|
|
30
|
+
try: () => NodeUrl.pathToFileURL(path, {
|
|
31
|
+
windows
|
|
32
|
+
}),
|
|
33
|
+
catch: (cause) => new BadArgument({
|
|
34
|
+
module: "Path",
|
|
35
|
+
method: "toFileUrl",
|
|
36
|
+
cause
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
var layerPosix = /* @__PURE__ */ Layer.succeed(Path)({
|
|
41
|
+
[TypeId]: TypeId,
|
|
42
|
+
...NodePath.posix,
|
|
43
|
+
.../* @__PURE__ */ fileUrlOps(false)
|
|
44
|
+
});
|
|
45
|
+
var layerWin32 = /* @__PURE__ */ Layer.succeed(Path)({
|
|
46
|
+
[TypeId]: TypeId,
|
|
47
|
+
...NodePath.win32,
|
|
48
|
+
.../* @__PURE__ */ fileUrlOps(true)
|
|
49
|
+
});
|
|
50
|
+
var layer = /* @__PURE__ */ Layer.succeed(Path)({
|
|
51
|
+
[TypeId]: TypeId,
|
|
52
|
+
...NodePath,
|
|
53
|
+
.../* @__PURE__ */ fileUrlOps(void 0)
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
layerPosix,
|
|
58
|
+
layerWin32,
|
|
59
|
+
layer,
|
|
60
|
+
NodePath_exports
|
|
61
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunWorker.js
|
|
6
|
+
var BunWorker_exports = {};
|
|
7
|
+
__export(BunWorker_exports, {
|
|
8
|
+
layer: () => layer,
|
|
9
|
+
layerPlatform: () => layerPlatform
|
|
10
|
+
});
|
|
11
|
+
import * as Deferred from "effect/Deferred";
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Exit from "effect/Exit";
|
|
14
|
+
import * as Layer from "effect/Layer";
|
|
15
|
+
import * as Scope from "effect/Scope";
|
|
16
|
+
import * as Worker from "effect/unstable/workers/Worker";
|
|
17
|
+
import { WorkerError, WorkerUnknownError } from "effect/unstable/workers/WorkerError";
|
|
18
|
+
var layer = (spawn) => Layer.merge(layerPlatform, Layer.succeed(Worker.Spawner)(spawn));
|
|
19
|
+
var layerPlatform = /* @__PURE__ */ Layer.succeed(Worker.WorkerPlatform)(/* @__PURE__ */ Worker.makePlatform()({
|
|
20
|
+
setup({
|
|
21
|
+
scope,
|
|
22
|
+
worker
|
|
23
|
+
}) {
|
|
24
|
+
const closeDeferred = Deferred.makeUnsafe();
|
|
25
|
+
worker.addEventListener("close", () => {
|
|
26
|
+
Deferred.doneUnsafe(closeDeferred, Exit.void);
|
|
27
|
+
});
|
|
28
|
+
return Effect.as(Scope.addFinalizer(scope, Effect.suspend(() => {
|
|
29
|
+
worker.postMessage([1]);
|
|
30
|
+
return Deferred.await(closeDeferred);
|
|
31
|
+
}).pipe(Effect.interruptible, Effect.timeout(5e3), Effect.catchCause(() => Effect.sync(() => worker.terminate())))), worker);
|
|
32
|
+
},
|
|
33
|
+
listen({
|
|
34
|
+
deferred,
|
|
35
|
+
emit,
|
|
36
|
+
port,
|
|
37
|
+
scope
|
|
38
|
+
}) {
|
|
39
|
+
function onMessage(event) {
|
|
40
|
+
emit(event.data);
|
|
41
|
+
}
|
|
42
|
+
function onError(event) {
|
|
43
|
+
Deferred.doneUnsafe(deferred, new WorkerError({
|
|
44
|
+
reason: new WorkerUnknownError({
|
|
45
|
+
message: "An error event was emitted",
|
|
46
|
+
cause: event.error ?? event.message
|
|
47
|
+
})
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
port.addEventListener("message", onMessage);
|
|
51
|
+
port.addEventListener("error", onError);
|
|
52
|
+
return Scope.addFinalizer(scope, Effect.sync(() => {
|
|
53
|
+
port.removeEventListener("message", onMessage);
|
|
54
|
+
port.removeEventListener("error", onError);
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
layer,
|
|
61
|
+
layerPlatform,
|
|
62
|
+
BunWorker_exports
|
|
63
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NetSocket,
|
|
3
|
+
NodeWS,
|
|
4
|
+
fromDuplex,
|
|
5
|
+
layerNet,
|
|
6
|
+
layerTls,
|
|
7
|
+
makeNet,
|
|
8
|
+
makeNetChannel,
|
|
9
|
+
makeTls,
|
|
10
|
+
makeTlsChannel
|
|
11
|
+
} from "./chunk-JJ24ARBQ.js";
|
|
12
|
+
import {
|
|
13
|
+
__export
|
|
14
|
+
} from "./chunk-MLKGABMK.js";
|
|
15
|
+
|
|
16
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeSocket.js
|
|
17
|
+
var NodeSocket_exports = {};
|
|
18
|
+
__export(NodeSocket_exports, {
|
|
19
|
+
NetSocket: () => NetSocket,
|
|
20
|
+
NodeWS: () => NodeWS,
|
|
21
|
+
fromDuplex: () => fromDuplex,
|
|
22
|
+
layerNet: () => layerNet,
|
|
23
|
+
layerTls: () => layerTls,
|
|
24
|
+
layerWebSocket: () => layerWebSocket,
|
|
25
|
+
layerWebSocketConstructor: () => layerWebSocketConstructor,
|
|
26
|
+
layerWebSocketConstructorWS: () => layerWebSocketConstructorWS,
|
|
27
|
+
makeNet: () => makeNet,
|
|
28
|
+
makeNetChannel: () => makeNetChannel,
|
|
29
|
+
makeTls: () => makeTls,
|
|
30
|
+
makeTlsChannel: () => makeTlsChannel
|
|
31
|
+
});
|
|
32
|
+
import { flow } from "effect/Function";
|
|
33
|
+
import * as Layer from "effect/Layer";
|
|
34
|
+
import * as Socket from "effect/unstable/socket/Socket";
|
|
35
|
+
var makeWebSocketWS = (url, options) => new NodeWS.WebSocket(url, options);
|
|
36
|
+
var layerWebSocketConstructor = /* @__PURE__ */ Layer.sync(Socket.WebSocketConstructor)(() => {
|
|
37
|
+
if ("WebSocket" in globalThis) {
|
|
38
|
+
return (url, options) => {
|
|
39
|
+
if (options === void 0 || typeof options === "string" || Array.isArray(options)) {
|
|
40
|
+
return new globalThis.WebSocket(url, options);
|
|
41
|
+
}
|
|
42
|
+
return makeWebSocketWS(url, options);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return makeWebSocketWS;
|
|
46
|
+
});
|
|
47
|
+
var layerWebSocketConstructorWS = /* @__PURE__ */ Layer.succeed(Socket.WebSocketConstructor)(makeWebSocketWS);
|
|
48
|
+
var layerWebSocket = /* @__PURE__ */ flow(Socket.makeWebSocket, /* @__PURE__ */ Layer.effect(Socket.Socket), /* @__PURE__ */ Layer.provide(layerWebSocketConstructor));
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
layerWebSocketConstructor,
|
|
52
|
+
layerWebSocketConstructorWS,
|
|
53
|
+
layerWebSocket,
|
|
54
|
+
NodeSocket_exports
|
|
55
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer as layer5
|
|
3
|
+
} from "./chunk-KUUXSID7.js";
|
|
4
|
+
import {
|
|
5
|
+
layer as layer6
|
|
6
|
+
} from "./chunk-XDKNKFBW.js";
|
|
7
|
+
import {
|
|
8
|
+
layer as layer4
|
|
9
|
+
} from "./chunk-TFIKFFSC.js";
|
|
10
|
+
import {
|
|
11
|
+
layer as layer2
|
|
12
|
+
} from "./chunk-VZBDV3TV.js";
|
|
13
|
+
import {
|
|
14
|
+
layer as layer3
|
|
15
|
+
} from "./chunk-M32LDTW7.js";
|
|
16
|
+
import {
|
|
17
|
+
layer
|
|
18
|
+
} from "./chunk-IR7WG7SA.js";
|
|
19
|
+
import {
|
|
20
|
+
__export
|
|
21
|
+
} from "./chunk-MLKGABMK.js";
|
|
22
|
+
|
|
23
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
24
|
+
var NodeServices_exports = {};
|
|
25
|
+
__export(NodeServices_exports, {
|
|
26
|
+
layer: () => layer7
|
|
27
|
+
});
|
|
28
|
+
import * as Layer from "effect/Layer";
|
|
29
|
+
var layer7 = /* @__PURE__ */ Layer.provideMerge(layer, /* @__PURE__ */ Layer.mergeAll(layer3, layer2, layer4, layer5, layer6));
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
layer7 as layer,
|
|
33
|
+
NodeServices_exports
|
|
34
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/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
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer as layer5
|
|
3
|
+
} from "./chunk-SFHVFMSR.js";
|
|
4
|
+
import {
|
|
5
|
+
layer as layer6
|
|
6
|
+
} from "./chunk-BBLQEPNJ.js";
|
|
7
|
+
import {
|
|
8
|
+
layer as layer4
|
|
9
|
+
} from "./chunk-RNBBYWS2.js";
|
|
10
|
+
import {
|
|
11
|
+
layer
|
|
12
|
+
} from "./chunk-IR7WG7SA.js";
|
|
13
|
+
import {
|
|
14
|
+
layer as layer2
|
|
15
|
+
} from "./chunk-6TZ7LQAC.js";
|
|
16
|
+
import {
|
|
17
|
+
layer as layer3
|
|
18
|
+
} from "./chunk-MSWDMTAF.js";
|
|
19
|
+
import {
|
|
20
|
+
__export
|
|
21
|
+
} from "./chunk-MLKGABMK.js";
|
|
22
|
+
|
|
23
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunServices.js
|
|
24
|
+
var BunServices_exports = {};
|
|
25
|
+
__export(BunServices_exports, {
|
|
26
|
+
layer: () => layer7
|
|
27
|
+
});
|
|
28
|
+
import * as Layer from "effect/Layer";
|
|
29
|
+
var layer7 = /* @__PURE__ */ layer.pipe(/* @__PURE__ */ Layer.provideMerge(/* @__PURE__ */ Layer.mergeAll(layer3, layer2, layer4, layer5, layer6)));
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
layer7 as layer,
|
|
33
|
+
BunServices_exports
|
|
34
|
+
};
|