@effect/platform 0.17.0 → 0.18.0
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.d.ts +7 -7
- package/Command.d.ts.map +1 -1
- package/Command.js.map +1 -1
- package/CommandExecutor.d.ts +5 -5
- package/CommandExecutor.d.ts.map +1 -1
- package/CommandExecutor.js.map +1 -1
- package/Effectify.d.ts +1 -4
- package/Effectify.d.ts.map +1 -1
- package/Effectify.js +4 -0
- package/Effectify.js.map +1 -1
- package/Error.d.ts +1 -4
- package/Error.d.ts.map +1 -1
- package/Error.js +4 -0
- package/Error.js.map +1 -1
- package/FileSystem.d.ts +7 -7
- package/FileSystem.d.ts.map +1 -1
- package/FileSystem.js +1 -5
- package/FileSystem.js.map +1 -1
- package/Http/App.d.ts +1 -1
- package/Http/App.d.ts.map +1 -1
- package/Http/Body.d.ts +3 -3
- package/Http/Body.d.ts.map +1 -1
- package/Http/Body.js.map +1 -1
- package/Http/Client.d.ts +24 -8
- package/Http/Client.d.ts.map +1 -1
- package/Http/Client.js +11 -1
- package/Http/Client.js.map +1 -1
- package/Http/ClientError.d.ts +1 -1
- package/Http/ClientError.d.ts.map +1 -1
- package/Http/ClientError.js.map +1 -1
- package/Http/ClientRequest.d.ts +3 -3
- package/Http/ClientRequest.d.ts.map +1 -1
- package/Http/ClientRequest.js.map +1 -1
- package/Http/ClientResponse.d.ts +1 -1
- package/Http/ClientResponse.d.ts.map +1 -1
- package/Http/ClientResponse.js.map +1 -1
- package/Http/Etag.d.ts +2 -2
- package/Http/Etag.d.ts.map +1 -1
- package/Http/Etag.js.map +1 -1
- package/Http/FormData.d.ts +6 -6
- package/Http/FormData.d.ts.map +1 -1
- package/Http/FormData.js.map +1 -1
- package/Http/Headers.d.ts +2 -2
- package/Http/Headers.d.ts.map +1 -1
- package/Http/Headers.js +3 -3
- package/Http/Headers.js.map +1 -1
- package/Http/IncomingMessage.d.ts +8 -5
- package/Http/IncomingMessage.d.ts.map +1 -1
- package/Http/IncomingMessage.js +6 -6
- package/Http/IncomingMessage.js.map +1 -1
- package/Http/Platform.d.ts +2 -2
- package/Http/Platform.d.ts.map +1 -1
- package/Http/Platform.js.map +1 -1
- package/Http/Router.d.ts +5 -5
- package/Http/Router.d.ts.map +1 -1
- package/Http/Router.js.map +1 -1
- package/Http/Server.d.ts +3 -3
- package/Http/Server.d.ts.map +1 -1
- package/Http/Server.js.map +1 -1
- package/Http/ServerError.d.ts +1 -1
- package/Http/ServerError.d.ts.map +1 -1
- package/Http/ServerError.js.map +1 -1
- package/Http/ServerRequest.d.ts +4 -4
- package/Http/ServerRequest.d.ts.map +1 -1
- package/Http/ServerRequest.js.map +1 -1
- package/Http/ServerResponse.d.ts +3 -3
- package/Http/ServerResponse.d.ts.map +1 -1
- package/Http/ServerResponse.js.map +1 -1
- package/Http/UrlParams.d.ts +2 -2
- package/Http/UrlParams.d.ts.map +1 -1
- package/Http/UrlParams.js +3 -3
- package/Http/UrlParams.js.map +1 -1
- package/KeyValueStore.d.ts +4 -4
- package/KeyValueStore.d.ts.map +1 -1
- package/KeyValueStore.js.map +1 -1
- package/Path.d.ts +3 -3
- package/Path.d.ts.map +1 -1
- package/Path.js.map +1 -1
- package/Runtime.d.ts +2 -2
- package/Runtime.d.ts.map +1 -1
- package/Runtime.js +2 -2
- package/Runtime.js.map +1 -1
- package/index.d.ts +41 -0
- package/index.d.ts.map +1 -0
- package/index.js +29 -0
- package/index.js.map +1 -0
- package/internal/command.js +7 -7
- package/internal/command.js.map +1 -1
- package/internal/commandExecutor.js +10 -9
- package/internal/commandExecutor.js.map +1 -1
- package/internal/effectify.js +1 -1
- package/internal/effectify.js.map +1 -1
- package/internal/error.js +1 -1
- package/internal/error.js.map +1 -1
- package/internal/fileSystem.js +11 -11
- package/internal/fileSystem.js.map +1 -1
- package/internal/http/body.js +4 -4
- package/internal/http/body.js.map +1 -1
- package/internal/http/client.d.ts +1 -2
- package/internal/http/client.d.ts.map +1 -1
- package/internal/http/client.js +30 -26
- package/internal/http/client.js.map +1 -1
- package/internal/http/clientError.js +1 -1
- package/internal/http/clientError.js.map +1 -1
- package/internal/http/clientRequest.js +3 -3
- package/internal/http/clientRequest.js.map +1 -1
- package/internal/http/clientResponse.js +3 -3
- package/internal/http/clientResponse.js.map +1 -1
- package/internal/http/etag.js +1 -1
- package/internal/http/etag.js.map +1 -1
- package/internal/http/formData.js +12 -12
- package/internal/http/formData.js.map +1 -1
- package/internal/http/middleware.js +2 -2
- package/internal/http/middleware.js.map +1 -1
- package/internal/http/platform.js +7 -6
- package/internal/http/platform.js.map +1 -1
- package/internal/http/router.d.ts +1 -1
- package/internal/http/router.d.ts.map +1 -1
- package/internal/http/router.js +9 -28
- package/internal/http/router.js.map +1 -1
- package/internal/http/server.js +3 -3
- package/internal/http/server.js.map +1 -1
- package/internal/http/serverError.js +1 -1
- package/internal/http/serverError.js.map +1 -1
- package/internal/http/serverRequest.js +2 -2
- package/internal/http/serverRequest.js.map +1 -1
- package/internal/http/serverResponse.js +3 -3
- package/internal/http/serverResponse.js.map +1 -1
- package/internal/keyValueStore.js +6 -6
- package/internal/keyValueStore.js.map +1 -1
- package/internal/path.js +4 -4
- package/internal/path.js.map +1 -1
- package/mjs/Command.mjs.map +1 -1
- package/mjs/CommandExecutor.mjs.map +1 -1
- package/mjs/Effectify.mjs +3 -0
- package/mjs/Effectify.mjs.map +1 -1
- package/mjs/Error.mjs +3 -0
- package/mjs/Error.mjs.map +1 -1
- package/mjs/FileSystem.mjs +1 -4
- package/mjs/FileSystem.mjs.map +1 -1
- package/mjs/Http/Body.mjs.map +1 -1
- package/mjs/Http/Client.mjs +10 -0
- package/mjs/Http/Client.mjs.map +1 -1
- package/mjs/Http/ClientError.mjs.map +1 -1
- package/mjs/Http/ClientRequest.mjs.map +1 -1
- package/mjs/Http/ClientResponse.mjs.map +1 -1
- package/mjs/Http/Etag.mjs.map +1 -1
- package/mjs/Http/FormData.mjs.map +1 -1
- package/mjs/Http/Headers.mjs +3 -3
- package/mjs/Http/Headers.mjs.map +1 -1
- package/mjs/Http/IncomingMessage.mjs +6 -6
- package/mjs/Http/IncomingMessage.mjs.map +1 -1
- package/mjs/Http/Platform.mjs.map +1 -1
- package/mjs/Http/Router.mjs.map +1 -1
- package/mjs/Http/Server.mjs.map +1 -1
- package/mjs/Http/ServerError.mjs.map +1 -1
- package/mjs/Http/ServerRequest.mjs.map +1 -1
- package/mjs/Http/ServerResponse.mjs.map +1 -1
- package/mjs/Http/UrlParams.mjs +3 -3
- package/mjs/Http/UrlParams.mjs.map +1 -1
- package/mjs/KeyValueStore.mjs.map +1 -1
- package/mjs/Path.mjs.map +1 -1
- package/mjs/Runtime.mjs +2 -2
- package/mjs/Runtime.mjs.map +1 -1
- package/mjs/index.mjs +21 -0
- package/mjs/index.mjs.map +1 -0
- package/mjs/internal/command.mjs +7 -7
- package/mjs/internal/command.mjs.map +1 -1
- package/mjs/internal/commandExecutor.mjs +10 -9
- package/mjs/internal/commandExecutor.mjs.map +1 -1
- package/mjs/internal/effectify.mjs +1 -1
- package/mjs/internal/effectify.mjs.map +1 -1
- package/mjs/internal/error.mjs +1 -1
- package/mjs/internal/error.mjs.map +1 -1
- package/mjs/internal/fileSystem.mjs +11 -11
- package/mjs/internal/fileSystem.mjs.map +1 -1
- package/mjs/internal/http/body.mjs +4 -4
- package/mjs/internal/http/body.mjs.map +1 -1
- package/mjs/internal/http/client.mjs +29 -25
- package/mjs/internal/http/client.mjs.map +1 -1
- package/mjs/internal/http/clientError.mjs +1 -1
- package/mjs/internal/http/clientError.mjs.map +1 -1
- package/mjs/internal/http/clientRequest.mjs +3 -3
- package/mjs/internal/http/clientRequest.mjs.map +1 -1
- package/mjs/internal/http/clientResponse.mjs +3 -3
- package/mjs/internal/http/clientResponse.mjs.map +1 -1
- package/mjs/internal/http/etag.mjs +1 -1
- package/mjs/internal/http/etag.mjs.map +1 -1
- package/mjs/internal/http/formData.mjs +12 -12
- package/mjs/internal/http/formData.mjs.map +1 -1
- package/mjs/internal/http/middleware.mjs +2 -2
- package/mjs/internal/http/middleware.mjs.map +1 -1
- package/mjs/internal/http/platform.mjs +7 -6
- package/mjs/internal/http/platform.mjs.map +1 -1
- package/mjs/internal/http/router.mjs +9 -28
- package/mjs/internal/http/router.mjs.map +1 -1
- package/mjs/internal/http/server.mjs +3 -3
- package/mjs/internal/http/server.mjs.map +1 -1
- package/mjs/internal/http/serverError.mjs +1 -1
- package/mjs/internal/http/serverError.mjs.map +1 -1
- package/mjs/internal/http/serverRequest.mjs +2 -2
- package/mjs/internal/http/serverRequest.mjs.map +1 -1
- package/mjs/internal/http/serverResponse.mjs +3 -3
- package/mjs/internal/http/serverResponse.mjs.map +1 -1
- package/mjs/internal/keyValueStore.mjs +6 -6
- package/mjs/internal/keyValueStore.mjs.map +1 -1
- package/mjs/internal/path.mjs +4 -4
- package/mjs/internal/path.mjs.map +1 -1
- package/package.json +14 -5
- package/src/Command.ts +7 -7
- package/src/CommandExecutor.ts +5 -5
- package/src/Effectify.ts +1 -1
- package/src/Error.ts +1 -1
- package/src/FileSystem.ts +7 -7
- package/src/Http/App.ts +1 -1
- package/src/Http/Body.ts +3 -3
- package/src/Http/Client.ts +37 -12
- package/src/Http/ClientError.ts +1 -1
- package/src/Http/ClientRequest.ts +3 -3
- package/src/Http/ClientResponse.ts +1 -1
- package/src/Http/Etag.ts +2 -2
- package/src/Http/FormData.ts +6 -6
- package/src/Http/Headers.ts +4 -4
- package/src/Http/IncomingMessage.ts +8 -8
- package/src/Http/Platform.ts +2 -2
- package/src/Http/Router.ts +5 -5
- package/src/Http/Server.ts +3 -3
- package/src/Http/ServerError.ts +1 -1
- package/src/Http/ServerRequest.ts +4 -4
- package/src/Http/ServerResponse.ts +3 -3
- package/src/Http/UrlParams.ts +3 -3
- package/src/KeyValueStore.ts +4 -4
- package/src/Path.ts +3 -3
- package/src/Runtime.ts +3 -3
- package/src/index.ts +49 -0
- package/src/internal/command.ts +8 -8
- package/src/internal/commandExecutor.ts +7 -7
- package/src/internal/effectify.ts +1 -1
- package/src/internal/error.ts +1 -1
- package/src/internal/fileSystem.ts +6 -6
- package/src/internal/http/body.ts +4 -4
- package/src/internal/http/client.ts +49 -33
- package/src/internal/http/clientError.ts +1 -1
- package/src/internal/http/clientRequest.ts +4 -4
- package/src/internal/http/clientResponse.ts +3 -3
- package/src/internal/http/etag.ts +1 -1
- package/src/internal/http/formData.ts +9 -9
- package/src/internal/http/middleware.ts +2 -2
- package/src/internal/http/platform.ts +3 -3
- package/src/internal/http/router.ts +19 -40
- package/src/internal/http/server.ts +4 -4
- package/src/internal/http/serverError.ts +1 -1
- package/src/internal/http/serverRequest.ts +2 -2
- package/src/internal/http/serverResponse.ts +4 -4
- package/src/internal/keyValueStore.ts +5 -5
- package/src/internal/path.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponse.mjs","names":["
|
|
1
|
+
{"version":3,"file":"serverResponse.mjs","names":["Headers","Platform","UrlParams","internalBody","Effect","dual","pipeArguments","TypeId","Symbol","for","ServerResponseImpl","constructor","status","statusText","headers","body","contentType","contentLength","newHeaders","toString","pipe","arguments","isServerResponse","u","empty","options","uint8Array","getContentType","text","json","map","unsafeJson","schemaJson","schema","encode","jsonSchema","file","path","flatMap","platform","fileResponse","fileWeb","fileWebResponse","urlParams","fromInput","raw","formData","stream","setHeader","self","key","value","set","setHeaders","input","setAll","setStatus","args","setBody","_tag","remove"],"sources":["../../../src/internal/http/serverResponse.ts"],"sourcesContent":[null],"mappings":"AAGA,OAAO,KAAKA,OAAO,MAAM,+BAA+B;AACxD,OAAO,KAAKC,QAAQ,MAAM,gCAAgC;AAE1D,OAAO,KAAKC,SAAS,MAAM,iCAAiC;AAC5D,OAAO,KAAKC,YAAY,MAAM,qCAAqC;AAEnE,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,SAASC,IAAI,QAAQ,iBAAiB;AACtC,SAASC,aAAa,QAAQ,iBAAiB;AAG/C;AACA,OAAO,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I,EAAEK,KAAK,KACf,IAAI5C,kBAAkB,CACpBuC,IAAI,CAACrC,MAAM,EACXqC,IAAI,CAACpC,UAAU,EACfb,OAAO,CAACuD,MAAM,CAACN,IAAI,CAACnC,OAAO,EAAEwC,KAAK,CAAC,EACnCL,IAAI,CAAClC,IAAI,CACV,CAAC;AAEJ;AACA,OAAO,MAAMyC,SAAS,gBAAGnD,IAAI,CAG1BoD,IAAI,IAAKnC,gBAAgB,CAACmC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAACR,IAAI,EAAErC,MAAM,EAAEC,UAAU,KAC9D,IAAIH,kBAAkB,CACpBE,MAAM,EACNC,UAAU,EACVoC,IAAI,CAACnC,OAAO,EACZmC,IAAI,CAAClC,IAAI,CACV,CAAC;AAEJ;AACA,OAAO,MAAM2C,OAAO,gBAAGrD,IAAI,CAGzB,CAAC,EAAE,CAAC4C,IAAI,EAAElC,IAAI,KAAI;EAClB,IAAID,OAAO,GAAGmC,IAAI,CAACnC,OAAO;EAC1B,IAAIC,IAAI,CAAC4C,IAAI,KAAK,OAAO,EAAE;IACzB7C,OAAO,GAAGd,OAAO,CAAC4D,MAAM,CAAC5D,OAAO,CAAC4D,MAAM,CAAC9C,OAAO,EAAE,cAAc,CAAC,EAAE,gBAAgB,CAAC;;EAErF,OAAO,IAAIJ,kBAAkB,CAC3BuC,IAAI,CAACrC,MAAM,EACXqC,IAAI,CAACpC,UAAU,EACfC,OAAO,EACPC,IAAI,CACL;AACH,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as Context from "@effect/data/Context";
|
|
2
|
-
import { dual } from "@effect/data/Function";
|
|
3
|
-
import * as Option from "@effect/data/Option";
|
|
4
|
-
import * as Effect from "@effect/io/Effect";
|
|
5
|
-
import * as Layer from "@effect/io/Layer";
|
|
6
1
|
import * as FileSystem from "@effect/platform/FileSystem";
|
|
7
2
|
import * as Path from "@effect/platform/Path";
|
|
8
3
|
import * as Schema from "@effect/schema/Schema";
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import { dual, pipe } from "effect/Function";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import * as Option from "effect/Option";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const TypeId = /*#__PURE__*/Symbol.for("@effect/platform/KeyValueStore");
|
|
11
11
|
/** @internal */
|
|
@@ -89,7 +89,7 @@ export const layerFileSystem = directory => Layer.effect(keyValueStoreTag, Effec
|
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
91
|
return make({
|
|
92
|
-
get: key => Effect.catchTag("SystemError", sysError => sysError.reason === "NotFound" ? Effect.succeed(Option.none()) : Effect.fail(sysError))
|
|
92
|
+
get: key => pipe(Effect.map(fs.readFileString(keyPath(key)), Option.some), Effect.catchTag("SystemError", sysError => sysError.reason === "NotFound" ? Effect.succeed(Option.none()) : Effect.fail(sysError))),
|
|
93
93
|
set: (key, value) => fs.writeFileString(keyPath(key), value),
|
|
94
94
|
remove: key => fs.remove(keyPath(key)),
|
|
95
95
|
has: key => fs.exists(keyPath(key)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyValueStore.mjs","names":["
|
|
1
|
+
{"version":3,"file":"keyValueStore.mjs","names":["FileSystem","Path","Schema","Context","Effect","dual","pipe","Layer","Option","TypeId","Symbol","for","keyValueStoreTag","Tag","make","impl","of","has","key","map","get","isSome","isEmpty","size","modify","f","flatMap","o","isNone","succeedNone","newValue","value","as","set","some","forSchema","schema","makeSchemaStore","prefix","self","remove","SchemaStoreTypeId","store","jsonSchema","compose","ParseJson","parse","encode","match","onNone","onSome","asSome","json","clear","layerMemory","sync","Map","fromNullable","delete","layerFileSystem","directory","effect","gen","_","fs","path","keyPath","join","encodeURIComponent","exists","makeDirectory","recursive","readFileString","catchTag","sysError","reason","succeed","none","fail","writeFileString","zipRight","readDirectory","files","length","layerSchema","tagIdentifier","tag","layer"],"sources":["../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C,CAAC,CACH;AAEH;AACA,OAAO,MAAMC,WAAW,GAAGA,CACzBhD,MAA2B,EAC3BiD,aAAuB,KACrB;EACF,MAAMC,GAAG,GAAGnF,OAAO,CAACU,GAAG,CAA+BwE,aAAa,CAAC;EACpE,MAAME,KAAK,GAAGhF,KAAK,CAACsD,MAAM,CAACyB,GAAG,EAAElF,MAAM,CAACe,GAAG,CAACP,gBAAgB,EAAG8B,KAAK,IAAKA,KAAK,CAACP,SAAS,CAACC,MAAM,CAAC,CAAC,CAAC;EACjG,OAAO;IAAEkD,GAAG;IAAEC;EAAK,CAAW;AAChC,CAAC"}
|
package/mjs/internal/path.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Tag } from "@effect/data/Context";
|
|
2
|
-
import { identity } from "@effect/data/Function";
|
|
3
|
-
import * as Effect from "@effect/io/Effect";
|
|
4
|
-
import * as Layer from "@effect/io/Layer";
|
|
5
1
|
import { BadArgument } from "@effect/platform/Error";
|
|
2
|
+
import { Tag } from "effect/Context";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import { identity } from "effect/Function";
|
|
5
|
+
import * as Layer from "effect/Layer";
|
|
6
6
|
import * as PathB from "path-browserify";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const Path = /*#__PURE__*/Tag("@effect/platform/Path");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.mjs","names":["
|
|
1
|
+
{"version":3,"file":"path.mjs","names":["BadArgument","Tag","Effect","identity","Layer","PathB","Path","layer","succeed","of","fromFileUrl","toFileUrl","toNamespacedPath","url","protocol","fail","module","method","message","hostname","pathname","n","length","third","codePointAt","decodeURIComponent","CHAR_FORWARD_SLASH","filepath","outURL","URL","resolved","resolve","filePathLast","charCodeAt","encodePathChars","percentRegEx","backslashRegEx","newlineRegEx","carriageReturnRegEx","tabRegEx","includes","replace"],"sources":["../../src/internal/path.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAW,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CAACL,cAAc,EAAE,KAAK,CAAC;;EAEpD,IAAIT,QAAQ,CAACa,QAAQ,CAAC,IAAI,CAAC,EAAE;IAC3Bb,QAAQ,GAAGA,QAAQ,CAACc,OAAO,CAACJ,YAAY,EAAE,KAAK,CAAC;;EAElD,IAAIV,QAAQ,CAACa,QAAQ,CAAC,IAAI,CAAC,EAAE;IAC3Bb,QAAQ,GAAGA,QAAQ,CAACc,OAAO,CAACH,mBAAmB,EAAE,KAAK,CAAC;;EAEzD,IAAIX,QAAQ,CAACa,QAAQ,CAAC,IAAI,CAAC,EAAE;IAC3Bb,QAAQ,GAAGA,QAAQ,CAACc,OAAO,CAACF,QAAQ,EAAE,KAAK,CAAC;;EAE9C,OAAOZ,QAAQ;AACjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/platform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Unified interfaces for common platform-specific services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
"types": "./*.d.ts",
|
|
21
21
|
"default": "./*.js"
|
|
22
22
|
}
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"default": "./mjs/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"default": "./index.js"
|
|
32
|
+
}
|
|
23
33
|
}
|
|
24
34
|
},
|
|
25
35
|
"sideEffects": [],
|
|
@@ -29,9 +39,8 @@
|
|
|
29
39
|
"path-browserify": "^1.0.1"
|
|
30
40
|
},
|
|
31
41
|
"peerDependencies": {
|
|
32
|
-
"@effect/data": "^0.18.6",
|
|
33
|
-
"@effect/io": "^0.41.0",
|
|
34
42
|
"@effect/schema": "^0.37.0",
|
|
35
|
-
"
|
|
36
|
-
}
|
|
43
|
+
"effect": "2.0.0-next.37"
|
|
44
|
+
},
|
|
45
|
+
"main": "./index.js"
|
|
37
46
|
}
|
package/src/Command.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type { HashMap } from "@effect/data/HashMap"
|
|
5
|
-
import type { Option } from "@effect/data/Option"
|
|
6
|
-
import type { Pipeable } from "@effect/data/Pipeable"
|
|
7
|
-
import type { NonEmptyReadonlyArray } from "@effect/data/ReadonlyArray"
|
|
8
|
-
import type { Effect } from "@effect/io/Effect"
|
|
9
4
|
import type { CommandExecutor, ExitCode, Process } from "@effect/platform/CommandExecutor"
|
|
10
5
|
import type { PlatformError } from "@effect/platform/Error"
|
|
11
6
|
import * as internal from "@effect/platform/internal/command"
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
7
|
+
import type { Effect } from "effect/Effect"
|
|
8
|
+
import type { HashMap } from "effect/HashMap"
|
|
9
|
+
import type { Option } from "effect/Option"
|
|
10
|
+
import type { Pipeable } from "effect/Pipeable"
|
|
11
|
+
import type { NonEmptyReadonlyArray } from "effect/ReadonlyArray"
|
|
12
|
+
import type { Sink } from "effect/Sink"
|
|
13
|
+
import type { Stream } from "effect/Stream"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @since 1.0.0
|
package/src/CommandExecutor.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Brand from "@effect/data/Brand"
|
|
5
|
-
import type { Tag } from "@effect/data/Context"
|
|
6
|
-
import type { Effect } from "@effect/io/Effect"
|
|
7
4
|
import type { Command } from "@effect/platform/Command"
|
|
8
5
|
import type { PlatformError } from "@effect/platform/Error"
|
|
9
6
|
import * as internal from "@effect/platform/internal/commandExecutor"
|
|
10
|
-
import type
|
|
11
|
-
import type {
|
|
7
|
+
import type * as Brand from "effect/Brand"
|
|
8
|
+
import type { Tag } from "effect/Context"
|
|
9
|
+
import type { Effect } from "effect/Effect"
|
|
10
|
+
import type { Sink } from "effect/Sink"
|
|
11
|
+
import type { Stream } from "effect/Stream"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
package/src/Effectify.ts
CHANGED
package/src/Error.ts
CHANGED
package/src/FileSystem.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import * as Brand from "@effect/data/Brand"
|
|
5
|
-
import type { Tag } from "@effect/data/Context"
|
|
6
|
-
import type { Option } from "@effect/data/Option"
|
|
7
|
-
import type * as Effect from "@effect/io/Effect"
|
|
8
|
-
import type { Scope } from "@effect/io/Scope"
|
|
9
4
|
import type { PlatformError } from "@effect/platform/Error"
|
|
10
5
|
import * as internal from "@effect/platform/internal/fileSystem"
|
|
11
|
-
import
|
|
12
|
-
import type {
|
|
6
|
+
import * as Brand from "effect/Brand"
|
|
7
|
+
import type { Tag } from "effect/Context"
|
|
8
|
+
import type * as Effect from "effect/Effect"
|
|
9
|
+
import type { Option } from "effect/Option"
|
|
10
|
+
import type { Scope } from "effect/Scope"
|
|
11
|
+
import type { Sink } from "effect/Sink"
|
|
12
|
+
import type { Stream } from "effect/Stream"
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @since 1.0.0
|
package/src/Http/App.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Effect from "@effect/io/Effect"
|
|
5
4
|
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
|
|
6
5
|
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
|
|
6
|
+
import type * as Effect from "effect/Effect"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
package/src/Http/Body.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Data from "@effect/data/Data"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
4
|
import type * as PlatformError from "@effect/platform/Error"
|
|
7
5
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
8
6
|
import * as internal from "@effect/platform/internal/http/body"
|
|
9
7
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
10
8
|
import type * as Schema from "@effect/schema/Schema"
|
|
11
|
-
import type * as
|
|
9
|
+
import type * as Data from "effect/Data"
|
|
10
|
+
import type * as Effect from "effect/Effect"
|
|
11
|
+
import type * as Stream_ from "effect/Stream"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
package/src/Http/Client.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Context from "@effect/data/Context"
|
|
5
|
-
import type { Pipeable } from "@effect/data/Pipeable"
|
|
6
|
-
import type * as Predicate from "@effect/data/Predicate"
|
|
7
|
-
import type * as Effect from "@effect/io/Effect"
|
|
8
|
-
import type * as Layer from "@effect/io/Layer"
|
|
9
|
-
import type * as Schedule from "@effect/io/Schedule"
|
|
10
|
-
import type * as Scope from "@effect/io/Scope"
|
|
11
4
|
import type * as Error from "@effect/platform/Http/ClientError"
|
|
12
5
|
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
|
|
13
6
|
import type * as ClientResponse from "@effect/platform/Http/ClientResponse"
|
|
14
7
|
import * as internal from "@effect/platform/internal/http/client"
|
|
15
8
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
16
9
|
import type * as Schema from "@effect/schema/Schema"
|
|
10
|
+
import type * as Context from "effect/Context"
|
|
11
|
+
import type * as Effect from "effect/Effect"
|
|
12
|
+
import type * as Layer from "effect/Layer"
|
|
13
|
+
import type { Pipeable } from "effect/Pipeable"
|
|
14
|
+
import type * as Predicate from "effect/Predicate"
|
|
15
|
+
import type * as Schedule from "effect/Schedule"
|
|
16
|
+
import type * as Scope from "effect/Scope"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @since 1.0.0
|
|
@@ -203,11 +203,36 @@ export const filterStatusOk: <R, E>(
|
|
|
203
203
|
* @since 1.0.0
|
|
204
204
|
* @category constructors
|
|
205
205
|
*/
|
|
206
|
-
export const make: (
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
export const make: <R, E, A>(f: (request: ClientRequest.ClientRequest) => Effect.Effect<R, E, A>) => Client<R, E, A> =
|
|
207
|
+
internal.make
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @since 1.0.0
|
|
211
|
+
* @category mapping & sequencing
|
|
212
|
+
*/
|
|
213
|
+
export const transform: {
|
|
214
|
+
<R, E, A, R1, E1, A1>(
|
|
215
|
+
f: (client: Client<R, E, A>) => (request: ClientRequest.ClientRequest) => Effect.Effect<R1, E1, A1>
|
|
216
|
+
): (self: Client<R, E, A>) => Client<R1, E1, A1>
|
|
217
|
+
<R, E, A, R1, E1, A1>(
|
|
218
|
+
self: Client<R, E, A>,
|
|
219
|
+
f: (client: Client<R, E, A>) => (request: ClientRequest.ClientRequest) => Effect.Effect<R1, E1, A1>
|
|
220
|
+
): Client<R1, E1, A1>
|
|
221
|
+
} = internal.transform
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @since 1.0.0
|
|
225
|
+
* @category mapping & sequencing
|
|
226
|
+
*/
|
|
227
|
+
export const transformResponse: {
|
|
228
|
+
<R, E, A, R1, E1, A1>(
|
|
229
|
+
f: (effect: Effect.Effect<R, E, A>) => Effect.Effect<R1, E1, A1>
|
|
230
|
+
): (self: Client<R, E, A>) => Client<R1, E1, A1>
|
|
231
|
+
<R, E, A, R1, E1, A1>(
|
|
232
|
+
self: Client<R, E, A>,
|
|
233
|
+
f: (effect: Effect.Effect<R, E, A>) => Effect.Effect<R1, E1, A1>
|
|
234
|
+
): Client<R1, E1, A1>
|
|
235
|
+
} = internal.transformResponse
|
|
211
236
|
|
|
212
237
|
/**
|
|
213
238
|
* @since 1.0.0
|
package/src/Http/ClientError.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Data from "@effect/data/Data"
|
|
5
4
|
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
|
|
6
5
|
import type * as ClientResponse from "@effect/platform/Http/ClientResponse"
|
|
7
6
|
import * as internal from "@effect/platform/internal/http/clientError"
|
|
7
|
+
import type * as Data from "effect/Data"
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @since 1.0.0
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type { Pipeable } from "@effect/data/Pipeable"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
4
|
import type * as PlatformError from "@effect/platform/Error"
|
|
7
5
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
8
6
|
import type * as Body from "@effect/platform/Http/Body"
|
|
@@ -12,7 +10,9 @@ import type { Method } from "@effect/platform/Http/Method"
|
|
|
12
10
|
import type * as UrlParams from "@effect/platform/Http/UrlParams"
|
|
13
11
|
import * as internal from "@effect/platform/internal/http/clientRequest"
|
|
14
12
|
import type * as Schema from "@effect/schema/Schema"
|
|
15
|
-
import type * as
|
|
13
|
+
import type * as Effect from "effect/Effect"
|
|
14
|
+
import type { Pipeable } from "effect/Pipeable"
|
|
15
|
+
import type * as Stream from "effect/Stream"
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @since 1.0.0
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Effect from "@effect/io/Effect"
|
|
5
4
|
import type * as Error from "@effect/platform/Http/ClientError"
|
|
6
5
|
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
|
|
7
6
|
import type * as Headers from "@effect/platform/Http/Headers"
|
|
@@ -9,6 +8,7 @@ import type * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
|
|
|
9
8
|
import * as internal from "@effect/platform/internal/http/clientResponse"
|
|
10
9
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
11
10
|
import type * as Schema from "@effect/schema/Schema"
|
|
11
|
+
import type * as Effect from "effect/Effect"
|
|
12
12
|
|
|
13
13
|
export {
|
|
14
14
|
/**
|
package/src/Http/Etag.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Context from "@effect/data/Context"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
4
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
7
5
|
import type * as Body from "@effect/platform/Http/Body"
|
|
8
6
|
import * as internal from "@effect/platform/internal/http/etag"
|
|
7
|
+
import type * as Context from "effect/Context"
|
|
8
|
+
import type * as Effect from "effect/Effect"
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @since 1.0.0
|
package/src/Http/FormData.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Chunk from "@effect/data/Chunk"
|
|
5
|
-
import type * as Data from "@effect/data/Data"
|
|
6
|
-
import type * as Option from "@effect/data/Option"
|
|
7
|
-
import type * as Effect from "@effect/io/Effect"
|
|
8
|
-
import type * as FiberRef from "@effect/io/FiberRef"
|
|
9
4
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
10
5
|
import * as internal from "@effect/platform/internal/http/formData"
|
|
11
6
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
12
7
|
import type * as Schema from "@effect/schema/Schema"
|
|
13
|
-
import type * as
|
|
8
|
+
import type * as Chunk from "effect/Chunk"
|
|
9
|
+
import type * as Data from "effect/Data"
|
|
10
|
+
import type * as Effect from "effect/Effect"
|
|
11
|
+
import type * as FiberRef from "effect/FiberRef"
|
|
12
|
+
import type * as Option from "effect/Option"
|
|
13
|
+
import type * as Stream from "effect/Stream"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @since 1.0.0
|
package/src/Http/Headers.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { dual } from "
|
|
5
|
-
import type * as Option from "
|
|
6
|
-
import * as ReadonlyArray from "
|
|
7
|
-
import * as ReadonlyRecord from "
|
|
4
|
+
import { dual } from "effect/Function"
|
|
5
|
+
import type * as Option from "effect/Option"
|
|
6
|
+
import * as ReadonlyArray from "effect/ReadonlyArray"
|
|
7
|
+
import * as ReadonlyRecord from "effect/ReadonlyRecord"
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @since 1.0.0
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import * as Context from "@effect/data/Context"
|
|
5
|
-
import { dual, flow } from "@effect/data/Function"
|
|
6
|
-
import * as Global from "@effect/data/GlobalValue"
|
|
7
|
-
import * as Option from "@effect/data/Option"
|
|
8
|
-
import * as Effect from "@effect/io/Effect"
|
|
9
|
-
import * as FiberRef from "@effect/io/FiberRef"
|
|
10
|
-
import type { ExternalSpan } from "@effect/io/Tracer"
|
|
11
4
|
import * as FileSystem from "@effect/platform/FileSystem"
|
|
12
5
|
import type * as Headers from "@effect/platform/Http/Headers"
|
|
13
6
|
import type * as UrlParams from "@effect/platform/Http/UrlParams"
|
|
14
7
|
import * as ParseResult from "@effect/schema/ParseResult"
|
|
15
8
|
import * as Schema from "@effect/schema/Schema"
|
|
16
|
-
import
|
|
9
|
+
import * as Context from "effect/Context"
|
|
10
|
+
import * as Effect from "effect/Effect"
|
|
11
|
+
import * as FiberRef from "effect/FiberRef"
|
|
12
|
+
import { dual, flow } from "effect/Function"
|
|
13
|
+
import * as Global from "effect/GlobalValue"
|
|
14
|
+
import * as Option from "effect/Option"
|
|
15
|
+
import type * as Stream from "effect/Stream"
|
|
16
|
+
import type { ExternalSpan } from "effect/Tracer"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @since 1.0.0
|
package/src/Http/Platform.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Context from "@effect/data/Context"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
4
|
import type * as Error from "@effect/platform/Error"
|
|
7
5
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
8
6
|
import type * as Body from "@effect/platform/Http/Body"
|
|
9
7
|
import type * as Etag from "@effect/platform/Http/Etag"
|
|
10
8
|
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
|
|
11
9
|
import * as internal from "@effect/platform/internal/http/platform"
|
|
10
|
+
import type * as Context from "effect/Context"
|
|
11
|
+
import type * as Effect from "effect/Effect"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
package/src/Http/Router.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Chunk from "@effect/data/Chunk"
|
|
5
|
-
import type * as Context from "@effect/data/Context"
|
|
6
|
-
import type * as Option from "@effect/data/Option"
|
|
7
|
-
import type * as Cause from "@effect/io/Cause"
|
|
8
|
-
import type * as Effect from "@effect/io/Effect"
|
|
9
4
|
import type * as App from "@effect/platform/Http/App"
|
|
10
5
|
import type * as Method from "@effect/platform/Http/Method"
|
|
11
6
|
import type * as Error from "@effect/platform/Http/ServerError"
|
|
@@ -14,6 +9,11 @@ import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
|
|
|
14
9
|
import * as internal from "@effect/platform/internal/http/router"
|
|
15
10
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
16
11
|
import type * as Schema from "@effect/schema/Schema"
|
|
12
|
+
import type * as Cause from "effect/Cause"
|
|
13
|
+
import type * as Chunk from "effect/Chunk"
|
|
14
|
+
import type * as Context from "effect/Context"
|
|
15
|
+
import type * as Effect from "effect/Effect"
|
|
16
|
+
import type * as Option from "effect/Option"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @since 1.0.0
|
package/src/Http/Server.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Context from "@effect/data/Context"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
|
-
import type * as Scope from "@effect/io/Scope"
|
|
7
4
|
import type * as App from "@effect/platform/Http/App"
|
|
8
5
|
import type * as Middleware from "@effect/platform/Http/Middleware"
|
|
9
6
|
import type * as Error from "@effect/platform/Http/ServerError"
|
|
10
7
|
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
|
|
11
8
|
import * as internal from "@effect/platform/internal/http/server"
|
|
9
|
+
import type * as Context from "effect/Context"
|
|
10
|
+
import type * as Effect from "effect/Effect"
|
|
11
|
+
import type * as Scope from "effect/Scope"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
package/src/Http/ServerError.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Data from "@effect/data/Data"
|
|
5
4
|
import type * as ServerRequest from "@effect/platform/Http/ServerRequest"
|
|
6
5
|
import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
|
|
7
6
|
import * as internal from "@effect/platform/internal/http/serverError"
|
|
7
|
+
import type * as Data from "effect/Data"
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @since 1.0.0
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Context from "@effect/data/Context"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
|
-
import type * as Scope from "@effect/io/Scope"
|
|
7
4
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
8
5
|
import type * as FormData from "@effect/platform/Http/FormData"
|
|
9
6
|
import type * as Headers from "@effect/platform/Http/Headers"
|
|
@@ -14,7 +11,10 @@ import * as internal from "@effect/platform/internal/http/serverRequest"
|
|
|
14
11
|
import type * as Path from "@effect/platform/Path"
|
|
15
12
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
16
13
|
import type * as Schema from "@effect/schema/Schema"
|
|
17
|
-
import type * as
|
|
14
|
+
import type * as Context from "effect/Context"
|
|
15
|
+
import type * as Effect from "effect/Effect"
|
|
16
|
+
import type * as Scope from "effect/Scope"
|
|
17
|
+
import type * as Stream from "effect/Stream"
|
|
18
18
|
|
|
19
19
|
export {
|
|
20
20
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type { Pipeable } from "@effect/data/Pipeable"
|
|
5
|
-
import type * as Effect from "@effect/io/Effect"
|
|
6
4
|
import type * as PlatformError from "@effect/platform/Error"
|
|
7
5
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
8
6
|
import type * as Body from "@effect/platform/Http/Body"
|
|
@@ -11,7 +9,9 @@ import type * as Platform from "@effect/platform/Http/Platform"
|
|
|
11
9
|
import type * as UrlParams from "@effect/platform/Http/UrlParams"
|
|
12
10
|
import * as internal from "@effect/platform/internal/http/serverResponse"
|
|
13
11
|
import type * as Schema from "@effect/schema/Schema"
|
|
14
|
-
import type * as
|
|
12
|
+
import type * as Effect from "effect/Effect"
|
|
13
|
+
import type { Pipeable } from "effect/Pipeable"
|
|
14
|
+
import type * as Stream from "effect/Stream"
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @since 1.0.0
|