@effect/platform 0.18.1 → 0.18.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/Command/dist/effect-platform-Command.cjs.d.mts +2 -0
- package/Command/dist/effect-platform-Command.cjs.d.mts.map +1 -0
- package/Command/dist/effect-platform-Command.cjs.d.ts +2 -0
- package/Command/dist/effect-platform-Command.cjs.d.ts.map +1 -0
- package/Command/dist/effect-platform-Command.cjs.dev.js +36 -0
- package/Command/dist/effect-platform-Command.cjs.js +7 -0
- package/Command/dist/effect-platform-Command.cjs.mjs +19 -0
- package/Command/dist/effect-platform-Command.cjs.prod.js +36 -0
- package/{mjs/Command.mjs → Command/dist/effect-platform-Command.esm.js} +80 -19
- package/Command/package.json +4 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.d.mts +2 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.d.mts.map +1 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.d.ts +2 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.d.ts.map +1 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.dev.js +21 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.js +7 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.mjs +7 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.prod.js +21 -0
- package/CommandExecutor/dist/effect-platform-CommandExecutor.esm.js +71 -0
- package/CommandExecutor/package.json +4 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.d.mts +2 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.d.mts.map +1 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.d.ts +2 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.d.ts.map +1 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.dev.js +10 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.js +7 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.mjs +3 -0
- package/Effectify/dist/effect-platform-Effectify.cjs.prod.js +10 -0
- package/Effectify/dist/effect-platform-Effectify.esm.js +23 -0
- package/Effectify/package.json +4 -0
- package/Error/dist/effect-platform-Error.cjs.d.mts +2 -0
- package/Error/dist/effect-platform-Error.cjs.d.mts.map +1 -0
- package/Error/dist/effect-platform-Error.cjs.d.ts +2 -0
- package/Error/dist/effect-platform-Error.cjs.d.ts.map +1 -0
- package/Error/dist/effect-platform-Error.cjs.dev.js +12 -0
- package/Error/dist/effect-platform-Error.cjs.js +7 -0
- package/Error/dist/effect-platform-Error.cjs.mjs +5 -0
- package/Error/dist/effect-platform-Error.cjs.prod.js +12 -0
- package/Error/dist/effect-platform-Error.esm.js +54 -0
- package/Error/package.json +4 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.d.mts +2 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.d.mts.map +1 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.d.ts +2 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.d.ts.map +1 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.dev.js +28 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.js +7 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.mjs +13 -0
- package/FileSystem/dist/effect-platform-FileSystem.cjs.prod.js +28 -0
- package/FileSystem/dist/effect-platform-FileSystem.esm.js +177 -0
- package/FileSystem/package.json +4 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.d.mts +2 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.d.mts.map +1 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.d.ts +2 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.d.ts.map +1 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.dev.js +2 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.js +7 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.mjs +1 -0
- package/Http/App/dist/effect-platform-Http-App.cjs.prod.js +2 -0
- package/Http/App/package.json +4 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.d.mts +2 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.d.mts.map +1 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.d.ts +2 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.d.ts.map +1 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.dev.js +35 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.js +7 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.mjs +17 -0
- package/Http/Body/dist/effect-platform-Http-Body.cjs.prod.js +35 -0
- package/Http/Body/package.json +4 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.d.mts +2 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.d.mts.map +1 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.d.ts +2 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.d.ts.map +1 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.dev.js +59 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.js +7 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.mjs +26 -0
- package/Http/Client/dist/effect-platform-Http-Client.cjs.prod.js +59 -0
- package/Http/Client/package.json +4 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.d.mts +2 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.d.mts.map +1 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.d.ts +2 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.d.ts.map +1 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.dev.js +13 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.js +7 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.mjs +5 -0
- package/Http/ClientError/dist/effect-platform-Http-ClientError.cjs.prod.js +13 -0
- package/Http/ClientError/package.json +4 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.d.mts +2 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.d.mts.map +1 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.d.ts +2 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.d.ts.map +1 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.dev.js +63 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.js +7 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.mjs +38 -0
- package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.prod.js +63 -0
- package/Http/ClientRequest/package.json +4 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.d.mts +2 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.d.mts.map +1 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.d.ts +2 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.d.ts.map +1 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.dev.js +36 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.js +7 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.mjs +8 -0
- package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.prod.js +36 -0
- package/Http/ClientResponse/package.json +4 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.d.mts +2 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.d.mts.map +1 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.d.ts +2 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.d.ts.map +1 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.dev.js +92 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.js +7 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.mjs +5 -0
- package/Http/Etag/dist/effect-platform-Http-Etag.cjs.prod.js +92 -0
- package/Http/Etag/package.json +4 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.d.mts +2 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.d.mts.map +1 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.d.ts +2 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.d.ts.map +1 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.dev.js +43 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.js +7 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.mjs +21 -0
- package/Http/FormData/dist/effect-platform-Http-FormData.cjs.prod.js +43 -0
- package/Http/FormData/package.json +4 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.d.mts +2 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.d.mts.map +1 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.d.ts +2 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.d.ts.map +1 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.dev.js +18 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.js +7 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.mjs +9 -0
- package/Http/Headers/dist/effect-platform-Http-Headers.cjs.prod.js +18 -0
- package/Http/Headers/package.json +4 -0
- package/Http/Http/App/dist/effect-platform-Http-App.esm.js +1 -0
- package/Http/Http/Body/dist/effect-platform-Http-Body.esm.js +151 -0
- package/Http/Http/Client/dist/effect-platform-Http-Client.esm.js +164 -0
- package/Http/Http/ClientError/dist/effect-platform-Http-ClientError.esm.js +48 -0
- package/Http/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.esm.js +241 -0
- package/Http/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.esm.js +36 -0
- package/Http/Http/Etag/dist/effect-platform-Http-Etag.esm.js +50 -0
- package/Http/Http/FormData/dist/effect-platform-Http-FormData.esm.js +155 -0
- package/Http/Http/Headers/dist/effect-platform-Http-Headers.esm.js +74 -0
- package/{mjs/Http/IncomingMessage.mjs → Http/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js} +35 -17
- package/Http/Http/Method/dist/effect-platform-Http-Method.esm.js +11 -0
- package/Http/Http/Middleware/dist/effect-platform-Http-Middleware.esm.js +52 -0
- package/Http/Http/Platform/dist/effect-platform-Http-Platform.esm.js +34 -0
- package/Http/Http/Router/dist/effect-platform-Http-Router.esm.js +224 -0
- package/Http/Http/Server/dist/effect-platform-Http-Server.esm.js +60 -0
- package/Http/Http/ServerError/dist/effect-platform-Http-ServerError.esm.js +70 -0
- package/Http/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.esm.js +66 -0
- package/Http/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.esm.js +126 -0
- package/{mjs/Http/UrlParams.mjs → Http/Http/UrlParams/dist/effect-platform-Http-UrlParams.esm.js} +34 -13
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.d.mts +2 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.d.mts.map +1 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.d.ts +2 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.d.ts.map +1 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.dev.js +150 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.js +7 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.mjs +9 -0
- package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.prod.js +150 -0
- package/Http/IncomingMessage/package.json +4 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.d.mts +2 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.d.mts.map +1 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.d.ts +2 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.d.ts.map +1 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.dev.js +15 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.js +7 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.mjs +3 -0
- package/Http/Method/dist/effect-platform-Http-Method.cjs.prod.js +15 -0
- package/Http/Method/package.json +4 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.d.mts +2 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.d.mts.map +1 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.d.ts +2 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.d.ts.map +1 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.dev.js +43 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.js +7 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.mjs +8 -0
- package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.prod.js +43 -0
- package/Http/Middleware/package.json +4 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.d.mts +2 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.d.mts.map +1 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.d.ts +2 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.d.ts.map +1 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.dev.js +116 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.js +7 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.mjs +5 -0
- package/Http/Platform/dist/effect-platform-Http-Platform.cjs.prod.js +116 -0
- package/Http/Platform/package.json +4 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.d.mts +2 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.d.mts.map +1 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.d.ts +2 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.d.ts.map +1 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.dev.js +62 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.js +7 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.mjs +32 -0
- package/Http/Router/dist/effect-platform-Http-Router.cjs.prod.js +62 -0
- package/Http/Router/package.json +4 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.d.mts +2 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.d.mts.map +1 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.d.ts +2 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.d.ts.map +1 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.dev.js +105 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.js +7 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.mjs +6 -0
- package/Http/Server/dist/effect-platform-Http-Server.cjs.prod.js +105 -0
- package/Http/Server/package.json +4 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.d.mts +2 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.d.mts.map +1 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.d.ts +2 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.d.ts.map +1 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.dev.js +14 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.js +7 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.mjs +7 -0
- package/Http/ServerError/dist/effect-platform-Http-ServerError.cjs.prod.js +14 -0
- package/Http/ServerError/package.json +4 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.d.mts +2 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.d.mts.map +1 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.d.ts +2 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.d.ts.map +1 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.dev.js +37 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.js +7 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.mjs +11 -0
- package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.prod.js +37 -0
- package/Http/ServerRequest/package.json +4 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.d.mts +2 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.d.mts.map +1 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.d.ts +2 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.d.ts.map +1 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.dev.js +45 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.js +7 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.mjs +19 -0
- package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.prod.js +45 -0
- package/Http/ServerResponse/package.json +4 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.d.mts +2 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.d.mts.map +1 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.d.ts +2 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.d.ts.map +1 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.dev.js +20 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.js +7 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.mjs +11 -0
- package/Http/UrlParams/dist/effect-platform-Http-UrlParams.cjs.prod.js +20 -0
- package/Http/UrlParams/package.json +4 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.d.mts +2 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.d.mts.map +1 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.d.ts +2 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.d.ts.map +1 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.dev.js +46 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.js +7 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.mjs +9 -0
- package/HttpClient/dist/effect-platform-HttpClient.cjs.prod.js +46 -0
- package/HttpClient/dist/effect-platform-HttpClient.esm.js +18 -0
- package/HttpClient/package.json +4 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.d.mts +2 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.d.mts.map +1 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.d.ts +2 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.d.ts.map +1 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.dev.js +53 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.js +7 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.mjs +12 -0
- package/HttpServer/dist/effect-platform-HttpServer.cjs.prod.js +53 -0
- package/HttpServer/dist/effect-platform-HttpServer.esm.js +24 -0
- package/HttpServer/package.json +4 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.d.mts +2 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.d.mts.map +1 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.d.ts +2 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.d.ts.map +1 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.dev.js +30 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.js +7 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.mjs +10 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.prod.js +30 -0
- package/KeyValueStore/dist/effect-platform-KeyValueStore.esm.js +78 -0
- package/KeyValueStore/package.json +4 -0
- package/Path/dist/effect-platform-Path.cjs.d.mts +2 -0
- package/Path/dist/effect-platform-Path.cjs.d.mts.map +1 -0
- package/Path/dist/effect-platform-Path.cjs.d.ts +2 -0
- package/Path/dist/effect-platform-Path.cjs.d.ts.map +1 -0
- package/Path/dist/effect-platform-Path.cjs.dev.js +17 -0
- package/Path/dist/effect-platform-Path.cjs.js +7 -0
- package/Path/dist/effect-platform-Path.cjs.mjs +4 -0
- package/Path/dist/effect-platform-Path.cjs.prod.js +17 -0
- package/{mjs/Path.mjs → Path/dist/effect-platform-Path.esm.js} +17 -4
- package/Path/package.json +4 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.d.mts +2 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.d.mts.map +1 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.d.ts +2 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.d.ts.map +1 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.dev.js +11 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.js +7 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.mjs +3 -0
- package/Runtime/dist/effect-platform-Runtime.cjs.prod.js +11 -0
- package/Runtime/dist/effect-platform-Runtime.esm.js +26 -0
- package/Runtime/package.json +4 -0
- package/dist/App-0916639a.cjs.prod.js +7 -0
- package/dist/App-44aa3275.cjs.dev.js +7 -0
- package/dist/Body-86ef2922.cjs.dev.js +187 -0
- package/dist/Body-b77eac75.cjs.prod.js +187 -0
- package/dist/Client-15671ed6.cjs.dev.js +397 -0
- package/dist/Client-6b3e3de8.cjs.prod.js +397 -0
- package/dist/ClientError-22781879.cjs.prod.js +60 -0
- package/dist/ClientError-b7828377.cjs.dev.js +60 -0
- package/dist/ClientRequest-00e89da8.cjs.dev.js +319 -0
- package/dist/ClientRequest-750d8d59.cjs.prod.js +319 -0
- package/dist/ClientResponse-8f65511e.cjs.prod.js +51 -0
- package/dist/ClientResponse-a1d64ab8.cjs.dev.js +51 -0
- package/dist/Command-032c414c.cjs.dev.js +446 -0
- package/dist/Command-25ef5e94.cjs.prod.js +446 -0
- package/dist/CommandExecutor-158ea1d3.cjs.dev.js +87 -0
- package/dist/CommandExecutor-7fcae408.cjs.prod.js +87 -0
- package/dist/Effectify-2d8c3af9.cjs.dev.js +66 -0
- package/dist/Effectify-38757ba5.cjs.prod.js +66 -0
- package/dist/Error-09496a70.cjs.dev.js +100 -0
- package/dist/Error-2c4e6ce2.cjs.prod.js +100 -0
- package/dist/FileSystem-3d439a05.cjs.prod.js +308 -0
- package/dist/FileSystem-4c7daaf0.cjs.dev.js +308 -0
- package/dist/FormData-902afd18.cjs.prod.js +318 -0
- package/dist/FormData-ee0b1cf2.cjs.dev.js +318 -0
- package/dist/Headers-122cb877.cjs.prod.js +115 -0
- package/dist/Headers-f56bc667.cjs.dev.js +115 -0
- package/dist/HttpClient-cefc7da9.cjs.dev.js +26 -0
- package/dist/HttpClient-d3c69877.cjs.prod.js +26 -0
- package/dist/HttpServer-5b9d992e.cjs.dev.js +32 -0
- package/dist/HttpServer-60325fb0.cjs.prod.js +32 -0
- package/dist/KeyValueStore-f6c5b981.cjs.prod.js +244 -0
- package/dist/KeyValueStore-f9c93610.cjs.dev.js +244 -0
- package/dist/Middleware-8e7cd600.cjs.dev.js +133 -0
- package/dist/Middleware-d4f1a1cd.cjs.prod.js +133 -0
- package/dist/Path-3574641f.cjs.prod.js +154 -0
- package/dist/Path-7ba7e370.cjs.dev.js +154 -0
- package/dist/Router-6c80a4c9.cjs.prod.js +515 -0
- package/dist/Router-bd2b3014.cjs.dev.js +515 -0
- package/dist/Runtime-1edd577a.cjs.dev.js +55 -0
- package/dist/Runtime-515efccf.cjs.prod.js +55 -0
- package/dist/ServerError-55c5e24b.cjs.dev.js +126 -0
- package/dist/ServerError-605b2fa2.cjs.prod.js +126 -0
- package/dist/ServerRequest-8d9c2c6b.cjs.dev.js +156 -0
- package/dist/ServerRequest-938f3ed0.cjs.prod.js +156 -0
- package/dist/ServerResponse-7d60c7d1.cjs.dev.js +288 -0
- package/dist/ServerResponse-830f1052.cjs.prod.js +288 -0
- package/dist/UrlParams-1228a686.cjs.prod.js +146 -0
- package/dist/UrlParams-5e0910f1.cjs.dev.js +146 -0
- package/dist/body-33521da5.cjs.prod.js +150 -0
- package/dist/body-c7d7a944.cjs.dev.js +150 -0
- package/dist/clientError-52d24cd8.cjs.dev.js +41 -0
- package/dist/clientError-de103d6a.cjs.prod.js +41 -0
- package/dist/clientRequest-3e72ec54.cjs.prod.js +240 -0
- package/dist/clientRequest-423fd562.cjs.dev.js +240 -0
- package/dist/clientResponse-2c6a83f1.cjs.prod.js +138 -0
- package/dist/clientResponse-c58a116c.cjs.dev.js +138 -0
- package/dist/commandExecutor-17a55a1c.cjs.prod.js +79 -0
- package/dist/commandExecutor-fc92de95.cjs.dev.js +79 -0
- package/{Command.d.ts → dist/declarations/src/Command.d.ts} +2 -2
- package/dist/declarations/src/Command.d.ts.map +1 -0
- package/{CommandExecutor.d.ts → dist/declarations/src/CommandExecutor.d.ts} +2 -2
- package/dist/declarations/src/CommandExecutor.d.ts.map +1 -0
- package/{Effectify.d.ts → dist/declarations/src/Effectify.d.ts} +3 -0
- package/dist/declarations/src/Effectify.d.ts.map +1 -0
- package/{Error.d.ts → dist/declarations/src/Error.d.ts} +3 -0
- package/dist/declarations/src/Error.d.ts.map +1 -0
- package/{FileSystem.d.ts → dist/declarations/src/FileSystem.d.ts} +1 -1
- package/dist/declarations/src/FileSystem.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/App.d.ts +2 -2
- package/dist/declarations/src/Http/App.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Body.d.ts +2 -2
- package/dist/declarations/src/Http/Body.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Client.d.ts +3 -3
- package/dist/declarations/src/Http/Client.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/ClientError.d.ts +2 -2
- package/dist/declarations/src/Http/ClientError.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/ClientRequest.d.ts +7 -7
- package/dist/declarations/src/Http/ClientRequest.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/ClientResponse.d.ts +5 -5
- package/dist/declarations/src/Http/ClientResponse.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Etag.d.ts +2 -2
- package/dist/declarations/src/Http/Etag.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/FormData.d.ts +1 -1
- package/dist/declarations/src/Http/FormData.d.ts.map +1 -0
- package/dist/declarations/src/Http/Headers.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/IncomingMessage.d.ts +3 -3
- package/dist/declarations/src/Http/IncomingMessage.d.ts.map +1 -0
- package/dist/declarations/src/Http/Method.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Middleware.d.ts +1 -4
- package/dist/declarations/src/Http/Middleware.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Platform.d.ts +5 -5
- package/dist/declarations/src/Http/Platform.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Router.d.ts +5 -5
- package/dist/declarations/src/Http/Router.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/Server.d.ts +4 -4
- package/dist/declarations/src/Http/Server.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/ServerError.d.ts +2 -2
- package/dist/declarations/src/Http/ServerError.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/ServerRequest.d.ts +8 -8
- package/dist/declarations/src/Http/ServerRequest.d.ts.map +1 -0
- package/{Http → dist/declarations/src/Http}/ServerResponse.d.ts +6 -6
- package/dist/declarations/src/Http/ServerResponse.d.ts.map +1 -0
- package/dist/declarations/src/Http/UrlParams.d.ts.map +1 -0
- package/{HttpClient.d.ts → dist/declarations/src/HttpClient.d.ts} +7 -7
- package/dist/declarations/src/HttpClient.d.ts.map +1 -0
- package/{HttpServer.d.ts → dist/declarations/src/HttpServer.d.ts} +10 -10
- package/dist/declarations/src/HttpServer.d.ts.map +1 -0
- package/{KeyValueStore.d.ts → dist/declarations/src/KeyValueStore.d.ts} +3 -3
- package/dist/declarations/src/KeyValueStore.d.ts.map +1 -0
- package/{Path.d.ts → dist/declarations/src/Path.d.ts} +1 -1
- package/dist/declarations/src/Path.d.ts.map +1 -0
- package/dist/declarations/src/Runtime.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +41 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/effect-platform.cjs.d.mts +2 -0
- package/dist/effect-platform.cjs.d.mts.map +1 -0
- package/dist/effect-platform.cjs.d.ts +2 -0
- package/dist/effect-platform.cjs.d.ts.map +1 -0
- package/dist/effect-platform.cjs.dev.js +75 -0
- package/dist/effect-platform.cjs.js +7 -0
- package/dist/effect-platform.cjs.mjs +12 -0
- package/dist/effect-platform.cjs.prod.js +75 -0
- package/dist/effect-platform.esm.js +20 -0
- package/{mjs/internal/command.mjs → internal/command.esm.js} +48 -29
- package/{mjs/internal/commandExecutor.mjs → internal/commandExecutor.esm.js} +19 -13
- package/{mjs/internal/effectify.mjs → internal/effectify.esm.js} +5 -3
- package/internal/error.esm.js +17 -0
- package/{mjs/internal/fileSystem.mjs → internal/fileSystem.esm.js} +28 -18
- package/internal/http/body.esm.js +111 -0
- package/internal/http/client.esm.js +157 -0
- package/internal/http/clientError.esm.js +17 -0
- package/internal/http/clientRequest.esm.js +184 -0
- package/{mjs/internal/http/clientResponse.mjs → internal/http/clientResponse.esm.js} +26 -23
- package/internal/http/etag.esm.js +19 -0
- package/internal/http/formData.esm.js +95 -0
- package/internal/http/middleware.esm.js +46 -0
- package/{mjs/internal/http/platform.mjs → internal/http/platform.esm.js} +17 -13
- package/internal/http/router.esm.js +199 -0
- package/internal/http/server.esm.js +20 -0
- package/internal/http/serverError.esm.js +23 -0
- package/internal/http/serverRequest.esm.js +50 -0
- package/internal/http/serverResponse.esm.js +105 -0
- package/{mjs/internal/keyValueStore.mjs → internal/keyValueStore.esm.js} +29 -19
- package/{mjs/internal/path.mjs → internal/path.esm.js} +14 -9
- package/package.json +232 -30
- package/src/Command.ts +3 -3
- package/src/CommandExecutor.ts +3 -3
- package/src/Effectify.ts +1 -1
- package/src/Error.ts +1 -1
- package/src/FileSystem.ts +2 -2
- package/src/Http/App.ts +2 -2
- package/src/Http/Body.ts +3 -3
- package/src/Http/Client.ts +4 -4
- package/src/Http/ClientError.ts +3 -3
- package/src/Http/ClientRequest.ts +8 -8
- package/src/Http/ClientResponse.ts +6 -6
- package/src/Http/Etag.ts +3 -3
- package/src/Http/FormData.ts +2 -2
- package/src/Http/IncomingMessage.ts +3 -3
- package/src/Http/Middleware.ts +2 -2
- package/src/Http/Platform.ts +6 -6
- package/src/Http/Router.ts +6 -6
- package/src/Http/Server.ts +5 -5
- package/src/Http/ServerError.ts +3 -3
- package/src/Http/ServerRequest.ts +9 -9
- package/src/Http/ServerResponse.ts +7 -7
- package/src/HttpClient.ts +7 -7
- package/src/HttpServer.ts +10 -10
- package/src/KeyValueStore.ts +4 -4
- package/src/Path.ts +2 -2
- package/src/index.ts +10 -10
- package/src/internal/command.ts +4 -4
- package/src/internal/commandExecutor.ts +1 -1
- package/src/internal/effectify.ts +1 -1
- package/src/internal/error.ts +1 -1
- package/src/internal/fileSystem.ts +2 -2
- package/src/internal/http/body.ts +3 -3
- package/src/internal/http/client.ts +11 -11
- package/src/internal/http/clientError.ts +1 -1
- package/src/internal/http/clientRequest.ts +9 -9
- package/src/internal/http/clientResponse.ts +7 -7
- package/src/internal/http/etag.ts +1 -1
- package/src/internal/http/formData.ts +2 -2
- package/src/internal/http/middleware.ts +5 -5
- package/src/internal/http/platform.ts +5 -5
- package/src/internal/http/router.ts +6 -6
- package/src/internal/http/server.ts +5 -5
- package/src/internal/http/serverError.ts +1 -1
- package/src/internal/http/serverRequest.ts +4 -4
- package/src/internal/http/serverResponse.ts +8 -8
- package/src/internal/keyValueStore.ts +3 -3
- package/src/internal/path.ts +2 -2
- package/Command.d.ts.map +0 -1
- package/Command.js +0 -147
- package/Command.js.map +0 -1
- package/CommandExecutor.d.ts.map +0 -1
- package/CommandExecutor.js +0 -35
- package/CommandExecutor.js.map +0 -1
- package/Effectify.d.ts.map +0 -1
- package/Effectify.js +0 -18
- package/Effectify.js.map +0 -1
- package/Error.d.ts.map +0 -1
- package/Error.js +0 -29
- package/Error.js.map +0 -1
- package/FileSystem.d.ts.map +0 -1
- package/FileSystem.js +0 -67
- package/FileSystem.js.map +0 -1
- package/Http/App.d.ts.map +0 -1
- package/Http/App.js +0 -6
- package/Http/App.js.map +0 -1
- package/Http/Body.d.ts.map +0 -1
- package/Http/Body.js +0 -85
- package/Http/Body.js.map +0 -1
- package/Http/Client.d.ts.map +0 -1
- package/Http/Client.js +0 -130
- package/Http/Client.js.map +0 -1
- package/Http/ClientError.d.ts.map +0 -1
- package/Http/ClientError.js +0 -25
- package/Http/ClientError.js.map +0 -1
- package/Http/ClientRequest.d.ts.map +0 -1
- package/Http/ClientRequest.js +0 -190
- package/Http/ClientRequest.js.map +0 -1
- package/Http/ClientResponse.d.ts.map +0 -1
- package/Http/ClientResponse.js +0 -45
- package/Http/ClientResponse.js.map +0 -1
- package/Http/Etag.d.ts.map +0 -1
- package/Http/Etag.js +0 -25
- package/Http/Etag.js.map +0 -1
- package/Http/FormData.d.ts.map +0 -1
- package/Http/FormData.js +0 -105
- package/Http/FormData.js.map +0 -1
- package/Http/Headers.d.ts.map +0 -1
- package/Http/Headers.js +0 -65
- package/Http/Headers.js.map +0 -1
- package/Http/IncomingMessage.d.ts.map +0 -1
- package/Http/IncomingMessage.js +0 -103
- package/Http/IncomingMessage.js.map +0 -1
- package/Http/Method.d.ts.map +0 -1
- package/Http/Method.js +0 -12
- package/Http/Method.js.map +0 -1
- package/Http/Middleware.d.ts.map +0 -1
- package/Http/Middleware.js +0 -40
- package/Http/Middleware.js.map +0 -1
- package/Http/Platform.d.ts.map +0 -1
- package/Http/Platform.js +0 -25
- package/Http/Platform.js.map +0 -1
- package/Http/Router.d.ts.map +0 -1
- package/Http/Router.js +0 -160
- package/Http/Router.js.map +0 -1
- package/Http/Server.d.ts.map +0 -1
- package/Http/Server.js +0 -30
- package/Http/Server.js.map +0 -1
- package/Http/ServerError.d.ts.map +0 -1
- package/Http/ServerError.js +0 -35
- package/Http/ServerError.js.map +0 -1
- package/Http/ServerRequest.d.ts.map +0 -1
- package/Http/ServerRequest.js +0 -58
- package/Http/ServerRequest.js.map +0 -1
- package/Http/ServerResponse.d.ts.map +0 -1
- package/Http/ServerResponse.js +0 -94
- package/Http/ServerResponse.js.map +0 -1
- package/Http/UrlParams.d.ts.map +0 -1
- package/Http/UrlParams.js +0 -92
- package/Http/UrlParams.js.map +0 -1
- package/HttpClient.d.ts.map +0 -1
- package/HttpClient.js +0 -23
- package/HttpClient.js.map +0 -1
- package/HttpServer.d.ts.map +0 -1
- package/HttpServer.js +0 -29
- package/HttpServer.js.map +0 -1
- package/KeyValueStore.d.ts.map +0 -1
- package/KeyValueStore.js +0 -50
- package/KeyValueStore.js.map +0 -1
- package/Path.d.ts.map +0 -1
- package/Path.js +0 -29
- package/Path.js.map +0 -1
- package/Runtime.d.ts.map +0 -1
- package/Runtime.js +0 -23
- package/Runtime.js.map +0 -1
- package/index.d.ts +0 -41
- package/index.d.ts.map +0 -1
- package/index.js +0 -29
- package/index.js.map +0 -1
- package/internal/command.d.ts +0 -2
- package/internal/command.d.ts.map +0 -1
- package/internal/command.js +0 -182
- package/internal/command.js.map +0 -1
- package/internal/commandExecutor.d.ts +0 -2
- package/internal/commandExecutor.d.ts.map +0 -1
- package/internal/commandExecutor.js +0 -52
- package/internal/commandExecutor.js.map +0 -1
- package/internal/effectify.d.ts +0 -2
- package/internal/effectify.d.ts.map +0 -1
- package/internal/effectify.js +0 -25
- package/internal/effectify.js.map +0 -1
- package/internal/error.d.ts +0 -2
- package/internal/error.d.ts.map +0 -1
- package/internal/error.js +0 -21
- package/internal/error.js.map +0 -1
- package/internal/fileSystem.d.ts +0 -2
- package/internal/fileSystem.d.ts.map +0 -1
- package/internal/fileSystem.js +0 -87
- package/internal/fileSystem.js.map +0 -1
- package/internal/http/body.d.ts +0 -2
- package/internal/http/body.d.ts.map +0 -1
- package/internal/http/body.js +0 -115
- package/internal/http/body.js.map +0 -1
- package/internal/http/client.d.ts +0 -2
- package/internal/http/client.d.ts.map +0 -1
- package/internal/http/client.js +0 -144
- package/internal/http/client.js.map +0 -1
- package/internal/http/clientError.d.ts +0 -2
- package/internal/http/clientError.d.ts.map +0 -1
- package/internal/http/clientError.js +0 -21
- package/internal/http/clientError.js.map +0 -1
- package/internal/http/clientRequest.d.ts +0 -2
- package/internal/http/clientRequest.d.ts.map +0 -1
- package/internal/http/clientRequest.js +0 -156
- package/internal/http/clientRequest.js.map +0 -1
- package/internal/http/clientResponse.d.ts +0 -2
- package/internal/http/clientResponse.d.ts.map +0 -1
- package/internal/http/clientResponse.js +0 -118
- package/internal/http/clientResponse.js.map +0 -1
- package/internal/http/etag.d.ts +0 -2
- package/internal/http/etag.d.ts.map +0 -1
- package/internal/http/etag.js +0 -24
- package/internal/http/etag.js.map +0 -1
- package/internal/http/formData.d.ts +0 -2
- package/internal/http/formData.d.ts.map +0 -1
- package/internal/http/formData.js +0 -88
- package/internal/http/formData.js.map +0 -1
- package/internal/http/middleware.d.ts +0 -2
- package/internal/http/middleware.d.ts.map +0 -1
- package/internal/http/middleware.js +0 -48
- package/internal/http/middleware.js.map +0 -1
- package/internal/http/platform.d.ts +0 -2
- package/internal/http/platform.d.ts.map +0 -1
- package/internal/http/platform.js +0 -57
- package/internal/http/platform.js.map +0 -1
- package/internal/http/router.d.ts +0 -5
- package/internal/http/router.d.ts.map +0 -1
- package/internal/http/router.js +0 -182
- package/internal/http/router.js.map +0 -1
- package/internal/http/server.d.ts +0 -2
- package/internal/http/server.d.ts.map +0 -1
- package/internal/http/server.js +0 -27
- package/internal/http/server.js.map +0 -1
- package/internal/http/serverError.d.ts +0 -2
- package/internal/http/serverError.d.ts.map +0 -1
- package/internal/http/serverError.js +0 -25
- package/internal/http/serverError.js.map +0 -1
- package/internal/http/serverRequest.d.ts +0 -2
- package/internal/http/serverRequest.d.ts.map +0 -1
- package/internal/http/serverRequest.js +0 -54
- package/internal/http/serverRequest.js.map +0 -1
- package/internal/http/serverResponse.d.ts +0 -2
- package/internal/http/serverResponse.d.ts.map +0 -1
- package/internal/http/serverResponse.js +0 -110
- package/internal/http/serverResponse.js.map +0 -1
- package/internal/keyValueStore.d.ts +0 -2
- package/internal/keyValueStore.d.ts.map +0 -1
- package/internal/keyValueStore.js +0 -124
- package/internal/keyValueStore.js.map +0 -1
- package/internal/path.d.ts +0 -2
- package/internal/path.d.ts.map +0 -1
- package/internal/path.js +0 -95
- package/internal/path.js.map +0 -1
- package/mjs/Command.mjs.map +0 -1
- package/mjs/CommandExecutor.mjs +0 -27
- package/mjs/CommandExecutor.mjs.map +0 -1
- package/mjs/Effectify.mjs +0 -9
- package/mjs/Effectify.mjs.map +0 -1
- package/mjs/Error.mjs +0 -20
- package/mjs/Error.mjs.map +0 -1
- package/mjs/FileSystem.mjs +0 -58
- package/mjs/FileSystem.mjs.map +0 -1
- package/mjs/Http/App.mjs +0 -2
- package/mjs/Http/App.mjs.map +0 -1
- package/mjs/Http/Body.mjs +0 -77
- package/mjs/Http/Body.mjs.map +0 -1
- package/mjs/Http/Client.mjs +0 -122
- package/mjs/Http/Client.mjs.map +0 -1
- package/mjs/Http/ClientError.mjs +0 -17
- package/mjs/Http/ClientError.mjs.map +0 -1
- package/mjs/Http/ClientRequest.mjs +0 -182
- package/mjs/Http/ClientRequest.mjs.map +0 -1
- package/mjs/Http/ClientResponse.mjs +0 -33
- package/mjs/Http/ClientResponse.mjs.map +0 -1
- package/mjs/Http/Etag.mjs +0 -17
- package/mjs/Http/Etag.mjs.map +0 -1
- package/mjs/Http/FormData.mjs +0 -97
- package/mjs/Http/FormData.mjs.map +0 -1
- package/mjs/Http/Headers.mjs +0 -55
- package/mjs/Http/Headers.mjs.map +0 -1
- package/mjs/Http/IncomingMessage.mjs.map +0 -1
- package/mjs/Http/Method.mjs +0 -5
- package/mjs/Http/Method.mjs.map +0 -1
- package/mjs/Http/Middleware.mjs +0 -32
- package/mjs/Http/Middleware.mjs.map +0 -1
- package/mjs/Http/Platform.mjs +0 -17
- package/mjs/Http/Platform.mjs.map +0 -1
- package/mjs/Http/Router.mjs +0 -152
- package/mjs/Http/Router.mjs.map +0 -1
- package/mjs/Http/Server.mjs +0 -22
- package/mjs/Http/Server.mjs.map +0 -1
- package/mjs/Http/ServerError.mjs +0 -27
- package/mjs/Http/ServerError.mjs.map +0 -1
- package/mjs/Http/ServerRequest.mjs +0 -48
- package/mjs/Http/ServerRequest.mjs.map +0 -1
- package/mjs/Http/ServerResponse.mjs +0 -86
- package/mjs/Http/ServerResponse.mjs.map +0 -1
- package/mjs/Http/UrlParams.mjs.map +0 -1
- package/mjs/HttpClient.mjs +0 -61
- package/mjs/HttpClient.mjs.map +0 -1
- package/mjs/HttpServer.mjs +0 -85
- package/mjs/HttpServer.mjs.map +0 -1
- package/mjs/KeyValueStore.mjs +0 -42
- package/mjs/KeyValueStore.mjs.map +0 -1
- package/mjs/Path.mjs.map +0 -1
- package/mjs/Runtime.mjs +0 -13
- package/mjs/Runtime.mjs.map +0 -1
- package/mjs/index.mjs +0 -21
- package/mjs/index.mjs.map +0 -1
- package/mjs/internal/command.mjs.map +0 -1
- package/mjs/internal/commandExecutor.mjs.map +0 -1
- package/mjs/internal/effectify.mjs.map +0 -1
- package/mjs/internal/error.mjs +0 -13
- package/mjs/internal/error.mjs.map +0 -1
- package/mjs/internal/fileSystem.mjs.map +0 -1
- package/mjs/internal/http/body.mjs +0 -95
- package/mjs/internal/http/body.mjs.map +0 -1
- package/mjs/internal/http/client.mjs +0 -132
- package/mjs/internal/http/client.mjs.map +0 -1
- package/mjs/internal/http/clientError.mjs +0 -13
- package/mjs/internal/http/clientError.mjs.map +0 -1
- package/mjs/internal/http/clientRequest.mjs +0 -145
- package/mjs/internal/http/clientRequest.mjs.map +0 -1
- package/mjs/internal/http/clientResponse.mjs.map +0 -1
- package/mjs/internal/http/etag.mjs +0 -15
- package/mjs/internal/http/etag.mjs.map +0 -1
- package/mjs/internal/http/formData.mjs +0 -76
- package/mjs/internal/http/formData.mjs.map +0 -1
- package/mjs/internal/http/middleware.mjs +0 -39
- package/mjs/internal/http/middleware.mjs.map +0 -1
- package/mjs/internal/http/platform.mjs.map +0 -1
- package/mjs/internal/http/router.mjs +0 -169
- package/mjs/internal/http/router.mjs.map +0 -1
- package/mjs/internal/http/server.mjs +0 -17
- package/mjs/internal/http/server.mjs.map +0 -1
- package/mjs/internal/http/serverError.mjs +0 -17
- package/mjs/internal/http/serverError.mjs.map +0 -1
- package/mjs/internal/http/serverRequest.mjs +0 -41
- package/mjs/internal/http/serverRequest.mjs.map +0 -1
- package/mjs/internal/http/serverResponse.mjs +0 -88
- package/mjs/internal/http/serverResponse.mjs.map +0 -1
- package/mjs/internal/keyValueStore.mjs.map +0 -1
- package/mjs/internal/path.mjs.map +0 -1
- package/tsconfig.build.json +0 -10
- package/tsconfig.examples.json +0 -11
- package/tsconfig.json +0 -11
- package/tsconfig.test.json +0 -12
- /package/{Http → dist/declarations/src/Http}/Headers.d.ts +0 -0
- /package/{Http → dist/declarations/src/Http}/Method.d.ts +0 -0
- /package/{Http → dist/declarations/src/Http}/UrlParams.d.ts +0 -0
- /package/{Runtime.d.ts → dist/declarations/src/Runtime.d.ts} +0 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Effect = require('effect/Effect');
|
|
4
|
+
var Function = require('effect/Function');
|
|
5
|
+
var Pipeable = require('effect/Pipeable');
|
|
6
|
+
var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-f56bc667.cjs.dev.js');
|
|
7
|
+
var Http_Platform_dist_effectPlatformHttpPlatform = require('../Http/Platform/dist/effect-platform-Http-Platform.cjs.dev.js');
|
|
8
|
+
var Http_UrlParams_dist_effectPlatformHttpUrlParams = require('./UrlParams-5e0910f1.cjs.dev.js');
|
|
9
|
+
var body = require('./body-c7d7a944.cjs.dev.js');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
|
|
33
|
+
class ServerResponseImpl {
|
|
34
|
+
constructor(status, statusText, headers, body) {
|
|
35
|
+
this.status = status;
|
|
36
|
+
this.statusText = statusText;
|
|
37
|
+
this.body = body;
|
|
38
|
+
this[TypeId$1] = TypeId$1;
|
|
39
|
+
if (body.contentType || body.contentLength) {
|
|
40
|
+
const newHeaders = {
|
|
41
|
+
...headers
|
|
42
|
+
};
|
|
43
|
+
if (body.contentType) {
|
|
44
|
+
newHeaders["content-type"] = body.contentType;
|
|
45
|
+
}
|
|
46
|
+
if (body.contentLength) {
|
|
47
|
+
newHeaders["content-length"] = body.contentLength.toString();
|
|
48
|
+
}
|
|
49
|
+
this.headers = newHeaders;
|
|
50
|
+
} else {
|
|
51
|
+
this.headers = headers;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
pipe() {
|
|
55
|
+
return Pipeable.pipeArguments(this, arguments);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
const isServerResponse$1 = u => typeof u === "object" && u !== null && TypeId$1 in u;
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
const empty$1 = options => new ServerResponseImpl(options?.status ?? 204, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.empty);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
const uint8Array$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.uint8Array(body$1, getContentType(options)));
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
const text$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.text(body$1, getContentType(options)));
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
const json$1 = (body$1, options) => Effect__namespace.map(body.json(body$1), body => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body));
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
const unsafeJson$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.unsafeJson(body$1));
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
const schemaJson$1 = schema => {
|
|
79
|
+
const encode = body.jsonSchema(schema);
|
|
80
|
+
return (body, options) => Effect__namespace.map(encode(body), body => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body));
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
const file$1 = (path, options) => Effect__namespace.flatMap(Http_Platform_dist_effectPlatformHttpPlatform.Platform, platform => platform.fileResponse(path, options));
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
const fileWeb$1 = (file, options) => Effect__namespace.flatMap(Http_Platform_dist_effectPlatformHttpPlatform.Platform, platform => platform.fileWebResponse(file, options));
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
const urlParams$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.text(Http_UrlParams_dist_effectPlatformHttpUrlParams.toString(Http_UrlParams_dist_effectPlatformHttpUrlParams.fromInput(body$1)), "application/x-www-form-urlencoded"));
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
const raw$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.raw(body$1));
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
const formData$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.formData(body$1));
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
const stream$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.stream(body$1, getContentType(options), options?.contentLength));
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
const getContentType = options => {
|
|
103
|
+
if (options?.contentType) {
|
|
104
|
+
return options.contentType;
|
|
105
|
+
} else if (options?.headers) {
|
|
106
|
+
return options.headers["content-type"];
|
|
107
|
+
} else {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
const setHeader$1 = /*#__PURE__*/Function.dual(3, (self, key, value) => new ServerResponseImpl(self.status, self.statusText, Http_Headers_dist_effectPlatformHttpHeaders.set(self.headers, key, value), self.body));
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
const setHeaders$1 = /*#__PURE__*/Function.dual(2, (self, input) => new ServerResponseImpl(self.status, self.statusText, Http_Headers_dist_effectPlatformHttpHeaders.setAll(self.headers, input), self.body));
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
const setBody$1 = /*#__PURE__*/Function.dual(2, (self, body) => {
|
|
120
|
+
let headers = self.headers;
|
|
121
|
+
if (body._tag === "Empty") {
|
|
122
|
+
headers = Http_Headers_dist_effectPlatformHttpHeaders.remove(Http_Headers_dist_effectPlatformHttpHeaders.remove(headers, "Content-Type"), "Content-length");
|
|
123
|
+
}
|
|
124
|
+
return new ServerResponseImpl(self.status, self.statusText, headers, body);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @since 1.0.0
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* @since 1.0.0
|
|
132
|
+
* @category type ids
|
|
133
|
+
*/
|
|
134
|
+
const TypeId = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @since 1.0.0
|
|
138
|
+
* @category type ids
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @since 1.0.0
|
|
143
|
+
* @category models
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @since 1.0.0
|
|
148
|
+
* @category models
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @since 1.0.0
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @since 1.0.0
|
|
157
|
+
*/
|
|
158
|
+
const isServerResponse = isServerResponse$1;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @since 1.0.0
|
|
162
|
+
* @category constructors
|
|
163
|
+
*/
|
|
164
|
+
const empty = empty$1;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @since 1.0.0
|
|
168
|
+
* @category constructors
|
|
169
|
+
*/
|
|
170
|
+
const uint8Array = uint8Array$1;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @since 1.0.0
|
|
174
|
+
* @category constructors
|
|
175
|
+
*/
|
|
176
|
+
const text = text$1;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @since 1.0.0
|
|
180
|
+
* @category constructors
|
|
181
|
+
*/
|
|
182
|
+
const json = json$1;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @since 1.0.0
|
|
186
|
+
* @category constructors
|
|
187
|
+
*/
|
|
188
|
+
const schemaJson = schemaJson$1;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @since 1.0.0
|
|
192
|
+
* @category constructors
|
|
193
|
+
*/
|
|
194
|
+
const unsafeJson = unsafeJson$1;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @since 1.0.0
|
|
198
|
+
* @category constructors
|
|
199
|
+
*/
|
|
200
|
+
const urlParams = urlParams$1;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @since 1.0.0
|
|
204
|
+
* @category constructors
|
|
205
|
+
*/
|
|
206
|
+
const raw = raw$1;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @since 1.0.0
|
|
210
|
+
* @category constructors
|
|
211
|
+
*/
|
|
212
|
+
const formData = formData$1;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @since 1.0.0
|
|
216
|
+
* @category constructors
|
|
217
|
+
*/
|
|
218
|
+
const stream = stream$1;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @since 1.0.0
|
|
222
|
+
* @category constructors
|
|
223
|
+
*/
|
|
224
|
+
const file = file$1;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @since 1.0.0
|
|
228
|
+
* @category constructors
|
|
229
|
+
*/
|
|
230
|
+
const fileWeb = fileWeb$1;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @since 1.0.0
|
|
234
|
+
* @category combinators
|
|
235
|
+
*/
|
|
236
|
+
const setHeader = setHeader$1;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @since 1.0.0
|
|
240
|
+
* @category combinators
|
|
241
|
+
*/
|
|
242
|
+
const setHeaders = setHeaders$1;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @since 1.0.0
|
|
246
|
+
* @category combinators
|
|
247
|
+
*/
|
|
248
|
+
const setBody = setBody$1;
|
|
249
|
+
|
|
250
|
+
var ServerResponse = /*#__PURE__*/Object.freeze({
|
|
251
|
+
__proto__: null,
|
|
252
|
+
TypeId: TypeId,
|
|
253
|
+
isServerResponse: isServerResponse,
|
|
254
|
+
empty: empty,
|
|
255
|
+
uint8Array: uint8Array,
|
|
256
|
+
text: text,
|
|
257
|
+
json: json,
|
|
258
|
+
schemaJson: schemaJson,
|
|
259
|
+
unsafeJson: unsafeJson,
|
|
260
|
+
urlParams: urlParams,
|
|
261
|
+
raw: raw,
|
|
262
|
+
formData: formData,
|
|
263
|
+
stream: stream,
|
|
264
|
+
file: file,
|
|
265
|
+
fileWeb: fileWeb,
|
|
266
|
+
setHeader: setHeader,
|
|
267
|
+
setHeaders: setHeaders,
|
|
268
|
+
setBody: setBody
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
exports.ServerResponse = ServerResponse;
|
|
272
|
+
exports.TypeId = TypeId;
|
|
273
|
+
exports.empty = empty;
|
|
274
|
+
exports.file = file;
|
|
275
|
+
exports.fileWeb = fileWeb;
|
|
276
|
+
exports.formData = formData;
|
|
277
|
+
exports.isServerResponse = isServerResponse;
|
|
278
|
+
exports.json = json;
|
|
279
|
+
exports.raw = raw;
|
|
280
|
+
exports.schemaJson = schemaJson;
|
|
281
|
+
exports.setBody = setBody;
|
|
282
|
+
exports.setHeader = setHeader;
|
|
283
|
+
exports.setHeaders = setHeaders;
|
|
284
|
+
exports.stream = stream;
|
|
285
|
+
exports.text = text;
|
|
286
|
+
exports.uint8Array = uint8Array;
|
|
287
|
+
exports.unsafeJson = unsafeJson;
|
|
288
|
+
exports.urlParams = urlParams;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Effect = require('effect/Effect');
|
|
4
|
+
var Function = require('effect/Function');
|
|
5
|
+
var Pipeable = require('effect/Pipeable');
|
|
6
|
+
var Http_Headers_dist_effectPlatformHttpHeaders = require('./Headers-122cb877.cjs.prod.js');
|
|
7
|
+
var Http_Platform_dist_effectPlatformHttpPlatform = require('../Http/Platform/dist/effect-platform-Http-Platform.cjs.prod.js');
|
|
8
|
+
var Http_UrlParams_dist_effectPlatformHttpUrlParams = require('./UrlParams-1228a686.cjs.prod.js');
|
|
9
|
+
var body = require('./body-33521da5.cjs.prod.js');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
const TypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
|
|
33
|
+
class ServerResponseImpl {
|
|
34
|
+
constructor(status, statusText, headers, body) {
|
|
35
|
+
this.status = status;
|
|
36
|
+
this.statusText = statusText;
|
|
37
|
+
this.body = body;
|
|
38
|
+
this[TypeId$1] = TypeId$1;
|
|
39
|
+
if (body.contentType || body.contentLength) {
|
|
40
|
+
const newHeaders = {
|
|
41
|
+
...headers
|
|
42
|
+
};
|
|
43
|
+
if (body.contentType) {
|
|
44
|
+
newHeaders["content-type"] = body.contentType;
|
|
45
|
+
}
|
|
46
|
+
if (body.contentLength) {
|
|
47
|
+
newHeaders["content-length"] = body.contentLength.toString();
|
|
48
|
+
}
|
|
49
|
+
this.headers = newHeaders;
|
|
50
|
+
} else {
|
|
51
|
+
this.headers = headers;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
pipe() {
|
|
55
|
+
return Pipeable.pipeArguments(this, arguments);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
const isServerResponse$1 = u => typeof u === "object" && u !== null && TypeId$1 in u;
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
const empty$1 = options => new ServerResponseImpl(options?.status ?? 204, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.empty);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
const uint8Array$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.uint8Array(body$1, getContentType(options)));
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
const text$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.text(body$1, getContentType(options)));
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
const json$1 = (body$1, options) => Effect__namespace.map(body.json(body$1), body => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body));
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
const unsafeJson$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.unsafeJson(body$1));
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
const schemaJson$1 = schema => {
|
|
79
|
+
const encode = body.jsonSchema(schema);
|
|
80
|
+
return (body, options) => Effect__namespace.map(encode(body), body => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body));
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
const file$1 = (path, options) => Effect__namespace.flatMap(Http_Platform_dist_effectPlatformHttpPlatform.Platform, platform => platform.fileResponse(path, options));
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
const fileWeb$1 = (file, options) => Effect__namespace.flatMap(Http_Platform_dist_effectPlatformHttpPlatform.Platform, platform => platform.fileWebResponse(file, options));
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
const urlParams$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.text(Http_UrlParams_dist_effectPlatformHttpUrlParams.toString(Http_UrlParams_dist_effectPlatformHttpUrlParams.fromInput(body$1)), "application/x-www-form-urlencoded"));
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
const raw$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.raw(body$1));
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
const formData$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.formData(body$1));
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
const stream$1 = (body$1, options) => new ServerResponseImpl(options?.status ?? 200, options?.statusText, options?.headers ?? Http_Headers_dist_effectPlatformHttpHeaders.empty, body.stream(body$1, getContentType(options), options?.contentLength));
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
const getContentType = options => {
|
|
103
|
+
if (options?.contentType) {
|
|
104
|
+
return options.contentType;
|
|
105
|
+
} else if (options?.headers) {
|
|
106
|
+
return options.headers["content-type"];
|
|
107
|
+
} else {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
const setHeader$1 = /*#__PURE__*/Function.dual(3, (self, key, value) => new ServerResponseImpl(self.status, self.statusText, Http_Headers_dist_effectPlatformHttpHeaders.set(self.headers, key, value), self.body));
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
const setHeaders$1 = /*#__PURE__*/Function.dual(2, (self, input) => new ServerResponseImpl(self.status, self.statusText, Http_Headers_dist_effectPlatformHttpHeaders.setAll(self.headers, input), self.body));
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
const setBody$1 = /*#__PURE__*/Function.dual(2, (self, body) => {
|
|
120
|
+
let headers = self.headers;
|
|
121
|
+
if (body._tag === "Empty") {
|
|
122
|
+
headers = Http_Headers_dist_effectPlatformHttpHeaders.remove(Http_Headers_dist_effectPlatformHttpHeaders.remove(headers, "Content-Type"), "Content-length");
|
|
123
|
+
}
|
|
124
|
+
return new ServerResponseImpl(self.status, self.statusText, headers, body);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @since 1.0.0
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* @since 1.0.0
|
|
132
|
+
* @category type ids
|
|
133
|
+
*/
|
|
134
|
+
const TypeId = /*#__PURE__*/Symbol.for("@effect/platform/Http/ServerResponse");
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @since 1.0.0
|
|
138
|
+
* @category type ids
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @since 1.0.0
|
|
143
|
+
* @category models
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @since 1.0.0
|
|
148
|
+
* @category models
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @since 1.0.0
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @since 1.0.0
|
|
157
|
+
*/
|
|
158
|
+
const isServerResponse = isServerResponse$1;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @since 1.0.0
|
|
162
|
+
* @category constructors
|
|
163
|
+
*/
|
|
164
|
+
const empty = empty$1;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @since 1.0.0
|
|
168
|
+
* @category constructors
|
|
169
|
+
*/
|
|
170
|
+
const uint8Array = uint8Array$1;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @since 1.0.0
|
|
174
|
+
* @category constructors
|
|
175
|
+
*/
|
|
176
|
+
const text = text$1;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @since 1.0.0
|
|
180
|
+
* @category constructors
|
|
181
|
+
*/
|
|
182
|
+
const json = json$1;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @since 1.0.0
|
|
186
|
+
* @category constructors
|
|
187
|
+
*/
|
|
188
|
+
const schemaJson = schemaJson$1;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @since 1.0.0
|
|
192
|
+
* @category constructors
|
|
193
|
+
*/
|
|
194
|
+
const unsafeJson = unsafeJson$1;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @since 1.0.0
|
|
198
|
+
* @category constructors
|
|
199
|
+
*/
|
|
200
|
+
const urlParams = urlParams$1;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @since 1.0.0
|
|
204
|
+
* @category constructors
|
|
205
|
+
*/
|
|
206
|
+
const raw = raw$1;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @since 1.0.0
|
|
210
|
+
* @category constructors
|
|
211
|
+
*/
|
|
212
|
+
const formData = formData$1;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @since 1.0.0
|
|
216
|
+
* @category constructors
|
|
217
|
+
*/
|
|
218
|
+
const stream = stream$1;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @since 1.0.0
|
|
222
|
+
* @category constructors
|
|
223
|
+
*/
|
|
224
|
+
const file = file$1;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @since 1.0.0
|
|
228
|
+
* @category constructors
|
|
229
|
+
*/
|
|
230
|
+
const fileWeb = fileWeb$1;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @since 1.0.0
|
|
234
|
+
* @category combinators
|
|
235
|
+
*/
|
|
236
|
+
const setHeader = setHeader$1;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @since 1.0.0
|
|
240
|
+
* @category combinators
|
|
241
|
+
*/
|
|
242
|
+
const setHeaders = setHeaders$1;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @since 1.0.0
|
|
246
|
+
* @category combinators
|
|
247
|
+
*/
|
|
248
|
+
const setBody = setBody$1;
|
|
249
|
+
|
|
250
|
+
var ServerResponse = /*#__PURE__*/Object.freeze({
|
|
251
|
+
__proto__: null,
|
|
252
|
+
TypeId: TypeId,
|
|
253
|
+
isServerResponse: isServerResponse,
|
|
254
|
+
empty: empty,
|
|
255
|
+
uint8Array: uint8Array,
|
|
256
|
+
text: text,
|
|
257
|
+
json: json,
|
|
258
|
+
schemaJson: schemaJson,
|
|
259
|
+
unsafeJson: unsafeJson,
|
|
260
|
+
urlParams: urlParams,
|
|
261
|
+
raw: raw,
|
|
262
|
+
formData: formData,
|
|
263
|
+
stream: stream,
|
|
264
|
+
file: file,
|
|
265
|
+
fileWeb: fileWeb,
|
|
266
|
+
setHeader: setHeader,
|
|
267
|
+
setHeaders: setHeaders,
|
|
268
|
+
setBody: setBody
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
exports.ServerResponse = ServerResponse;
|
|
272
|
+
exports.TypeId = TypeId;
|
|
273
|
+
exports.empty = empty;
|
|
274
|
+
exports.file = file;
|
|
275
|
+
exports.fileWeb = fileWeb;
|
|
276
|
+
exports.formData = formData;
|
|
277
|
+
exports.isServerResponse = isServerResponse;
|
|
278
|
+
exports.json = json;
|
|
279
|
+
exports.raw = raw;
|
|
280
|
+
exports.schemaJson = schemaJson;
|
|
281
|
+
exports.setBody = setBody;
|
|
282
|
+
exports.setHeader = setHeader;
|
|
283
|
+
exports.setHeaders = setHeaders;
|
|
284
|
+
exports.stream = stream;
|
|
285
|
+
exports.text = text;
|
|
286
|
+
exports.uint8Array = uint8Array;
|
|
287
|
+
exports.unsafeJson = unsafeJson;
|
|
288
|
+
exports.urlParams = urlParams;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Chunk = require('effect/Chunk');
|
|
4
|
+
var Effect = require('effect/Effect');
|
|
5
|
+
var Function = require('effect/Function');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var Chunk__namespace = /*#__PURE__*/_interopNamespace(Chunk);
|
|
26
|
+
var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @since 1.0.0
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @since 1.0.0
|
|
34
|
+
* @category models
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @since 1.0.0
|
|
39
|
+
* @category models
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
* @category constructors
|
|
45
|
+
*/
|
|
46
|
+
const fromInput = input => {
|
|
47
|
+
if (Chunk__namespace.isChunk(input)) {
|
|
48
|
+
return input;
|
|
49
|
+
} else if (Symbol.iterator in input) {
|
|
50
|
+
return Chunk__namespace.fromIterable(input);
|
|
51
|
+
}
|
|
52
|
+
return Chunk__namespace.fromIterable(Object.entries(input));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @since 1.0.0
|
|
57
|
+
* @category constructors
|
|
58
|
+
*/
|
|
59
|
+
const empty = /*#__PURE__*/Chunk__namespace.empty();
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @since 1.0.0
|
|
63
|
+
* @category combinators
|
|
64
|
+
*/
|
|
65
|
+
const set = /*#__PURE__*/Function.dual(3, (self, key, value) => Chunk__namespace.append(Chunk__namespace.filter(self, ([k]) => k !== key), [key, value]));
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @since 1.0.0
|
|
69
|
+
* @category combinators
|
|
70
|
+
*/
|
|
71
|
+
const setAll = /*#__PURE__*/Function.dual(2, (self, input) => {
|
|
72
|
+
const toSet = fromInput(input);
|
|
73
|
+
const keys = Chunk__namespace.toReadonlyArray(toSet).map(([k]) => k);
|
|
74
|
+
return Chunk__namespace.appendAll(Chunk__namespace.filter(self, ([k]) => keys.includes(k)), toSet);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @since 1.0.0
|
|
79
|
+
* @category combinators
|
|
80
|
+
*/
|
|
81
|
+
const append = /*#__PURE__*/Function.dual(3, (self, key, value) => Chunk__namespace.append(self, [key, value]));
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @since 1.0.0
|
|
85
|
+
* @category combinators
|
|
86
|
+
*/
|
|
87
|
+
const appendAll = /*#__PURE__*/Function.dual(2, (self, input) => Chunk__namespace.appendAll(self, fromInput(input)));
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @since 1.0.0
|
|
91
|
+
* @category combinators
|
|
92
|
+
*/
|
|
93
|
+
const remove = /*#__PURE__*/Function.dual(2, (self, key) => Chunk__namespace.filter(self, ([k]) => k !== key));
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @since 1.0.0
|
|
97
|
+
* @category combinators
|
|
98
|
+
*/
|
|
99
|
+
const toString = self => new URLSearchParams(Chunk__namespace.toReadonlyArray(self)).toString();
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @since 1.0.0
|
|
103
|
+
* @category constructors
|
|
104
|
+
*/
|
|
105
|
+
const makeUrl = (url, params, onError) => Effect__namespace.try({
|
|
106
|
+
try: () => {
|
|
107
|
+
const urlInstance = new URL(url, baseUrl());
|
|
108
|
+
Chunk__namespace.forEach(params, ([key, value]) => {
|
|
109
|
+
if (value !== undefined) {
|
|
110
|
+
urlInstance.searchParams.append(key, value);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return urlInstance;
|
|
114
|
+
},
|
|
115
|
+
catch: onError
|
|
116
|
+
});
|
|
117
|
+
const baseUrl = () => {
|
|
118
|
+
if ("location" in globalThis) {
|
|
119
|
+
return location.origin + location.pathname;
|
|
120
|
+
}
|
|
121
|
+
return undefined;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var UrlParams = /*#__PURE__*/Object.freeze({
|
|
125
|
+
__proto__: null,
|
|
126
|
+
fromInput: fromInput,
|
|
127
|
+
empty: empty,
|
|
128
|
+
set: set,
|
|
129
|
+
setAll: setAll,
|
|
130
|
+
append: append,
|
|
131
|
+
appendAll: appendAll,
|
|
132
|
+
remove: remove,
|
|
133
|
+
toString: toString,
|
|
134
|
+
makeUrl: makeUrl
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
exports.UrlParams = UrlParams;
|
|
138
|
+
exports.append = append;
|
|
139
|
+
exports.appendAll = appendAll;
|
|
140
|
+
exports.empty = empty;
|
|
141
|
+
exports.fromInput = fromInput;
|
|
142
|
+
exports.makeUrl = makeUrl;
|
|
143
|
+
exports.remove = remove;
|
|
144
|
+
exports.set = set;
|
|
145
|
+
exports.setAll = setAll;
|
|
146
|
+
exports.toString = toString;
|