@effect/platform 0.17.1 → 0.18.1
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 +7 -7
- package/Http/Client.d.ts.map +1 -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.js +9 -9
- 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.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 +9 -9
- 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 +15 -6
- 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 +7 -7
- 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 +10 -10
- 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
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
|
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
|
package/src/Http/UrlParams.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import * as Chunk from "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import * as Chunk from "effect/Chunk"
|
|
5
|
+
import * as Effect from "effect/Effect"
|
|
6
|
+
import { dual } from "effect/Function"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
package/src/KeyValueStore.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import type * as Context from "@effect/data/Context"
|
|
5
|
-
import type * as Option from "@effect/data/Option"
|
|
6
|
-
import type * as Effect from "@effect/io/Effect"
|
|
7
|
-
import type * as Layer from "@effect/io/Layer"
|
|
8
4
|
import type * as PlatformError from "@effect/platform/Error"
|
|
9
5
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
10
6
|
import * as internal from "@effect/platform/internal/keyValueStore"
|
|
11
7
|
import type * as Path from "@effect/platform/Path"
|
|
12
8
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
13
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 * as Option from "effect/Option"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @since 1.0.0
|
package/src/Path.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { Tag } from "@effect/data/Context"
|
|
6
|
-
import type { Effect } from "@effect/io/Effect"
|
|
7
|
-
import type { Layer } from "@effect/io/Layer"
|
|
8
5
|
import type { BadArgument } from "@effect/platform/Error"
|
|
9
6
|
import * as internal from "@effect/platform/internal/path"
|
|
7
|
+
import type { Tag } from "effect/Context"
|
|
8
|
+
import type { Effect } from "effect/Effect"
|
|
9
|
+
import type { Layer } from "effect/Layer"
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @since 1.0.0
|
package/src/Runtime.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import * as Cause from "
|
|
5
|
-
import type { Effect } from "
|
|
6
|
-
import * as Exit from "
|
|
4
|
+
import * as Cause from "effect/Cause"
|
|
5
|
+
import type { Effect } from "effect/Effect"
|
|
6
|
+
import * as Exit from "effect/Exit"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @category model
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
export * as Command from "@effect/platform/Command"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export * as CommandExecutor from "@effect/platform/CommandExecutor"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
export * as Effectify from "@effect/platform/Effectify"
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
*/
|
|
19
|
+
export * as Error from "@effect/platform/Error"
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export * as FileSystem from "@effect/platform/FileSystem"
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
export * as HttpClient from "@effect/platform/HttpClient"
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @since 1.0.0
|
|
33
|
+
*/
|
|
34
|
+
export * as HttpServer from "@effect/platform/HttpServer"
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @since 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
export * as KeyValueStore from "@effect/platform/KeyValueStore"
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @since 1.0.0
|
|
43
|
+
*/
|
|
44
|
+
export * as Path from "@effect/platform/Path"
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
export * as Runtime from "@effect/platform/Runtime"
|
package/src/internal/command.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as Chunk from "@effect/data/Chunk"
|
|
2
|
-
import { dual } from "@effect/data/Function"
|
|
3
|
-
import * as HashMap from "@effect/data/HashMap"
|
|
4
|
-
import * as Option from "@effect/data/Option"
|
|
5
|
-
import { pipeArguments } from "@effect/data/Pipeable"
|
|
6
|
-
import type ReadonlyArray from "@effect/data/ReadonlyArray"
|
|
7
|
-
import * as Effect from "@effect/io/Effect"
|
|
8
1
|
import type * as Command from "@effect/platform/Command"
|
|
9
2
|
import type * as CommandExecutor from "@effect/platform/CommandExecutor"
|
|
10
3
|
import type { PlatformError } from "@effect/platform/Error"
|
|
11
4
|
import * as commandExecutor from "@effect/platform/internal/commandExecutor"
|
|
12
|
-
import * as
|
|
5
|
+
import * as Chunk from "effect/Chunk"
|
|
6
|
+
import * as Effect from "effect/Effect"
|
|
7
|
+
import { dual } from "effect/Function"
|
|
8
|
+
import * as HashMap from "effect/HashMap"
|
|
9
|
+
import * as Option from "effect/Option"
|
|
10
|
+
import { pipeArguments } from "effect/Pipeable"
|
|
11
|
+
import type ReadonlyArray from "effect/ReadonlyArray"
|
|
12
|
+
import * as Stream from "effect/Stream"
|
|
13
13
|
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const CommandTypeId: Command.CommandTypeId = Symbol.for("@effect/platform/Command") as Command.CommandTypeId
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as Brand from "@effect/data/Brand"
|
|
2
|
-
import * as Chunk from "@effect/data/Chunk"
|
|
3
|
-
import { Tag } from "@effect/data/Context"
|
|
4
|
-
import { pipe } from "@effect/data/Function"
|
|
5
|
-
import * as Effect from "@effect/io/Effect"
|
|
6
1
|
import type * as _CommandExecutor from "@effect/platform/CommandExecutor"
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
2
|
+
import * as Brand from "effect/Brand"
|
|
3
|
+
import * as Chunk from "effect/Chunk"
|
|
4
|
+
import { Tag } from "effect/Context"
|
|
5
|
+
import * as Effect from "effect/Effect"
|
|
6
|
+
import { pipe } from "effect/Function"
|
|
7
|
+
import * as Sink from "effect/Sink"
|
|
8
|
+
import * as Stream from "effect/Stream"
|
|
9
9
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const ProcessTypeId: _CommandExecutor.ProcessTypeId = Symbol.for(
|
package/src/internal/error.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Tag } from "@effect/data/Context"
|
|
2
|
-
import { identity, pipe } from "@effect/data/Function"
|
|
3
|
-
import * as Option from "@effect/data/Option"
|
|
4
|
-
import * as Effect from "@effect/io/Effect"
|
|
5
1
|
import * as Error from "@effect/platform/Error"
|
|
6
2
|
import type { File, FileSystem, Size as Size_, SizeInput, StreamOptions } from "@effect/platform/FileSystem"
|
|
7
|
-
import
|
|
8
|
-
import * as
|
|
3
|
+
import { Tag } from "effect/Context"
|
|
4
|
+
import * as Effect from "effect/Effect"
|
|
5
|
+
import { identity, pipe } from "effect/Function"
|
|
6
|
+
import * as Option from "effect/Option"
|
|
7
|
+
import * as Sink from "effect/Sink"
|
|
8
|
+
import * as Stream from "effect/Stream"
|
|
9
9
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const tag = Tag<FileSystem>("@effect/platform/FileSystem")
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as Data from "@effect/data/Data"
|
|
2
|
-
import { identity } from "@effect/data/Function"
|
|
3
|
-
import * as Effect from "@effect/io/Effect"
|
|
4
1
|
import type * as PlatformError from "@effect/platform/Error"
|
|
5
2
|
import * as FileSystem from "@effect/platform/FileSystem"
|
|
6
3
|
import type * as Body from "@effect/platform/Http/Body"
|
|
7
4
|
import * as Schema from "@effect/schema/Schema"
|
|
8
|
-
import * as
|
|
5
|
+
import * as Data from "effect/Data"
|
|
6
|
+
import * as Effect from "effect/Effect"
|
|
7
|
+
import { identity } from "effect/Function"
|
|
8
|
+
import * as Stream_ from "effect/Stream"
|
|
9
9
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const TypeId: Body.TypeId = Symbol.for(
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import * as Context from "@effect/data/Context"
|
|
2
|
-
import { dual, pipe } from "@effect/data/Function"
|
|
3
|
-
import * as Option from "@effect/data/Option"
|
|
4
|
-
import { pipeArguments } from "@effect/data/Pipeable"
|
|
5
|
-
import type * as Predicate from "@effect/data/Predicate"
|
|
6
|
-
import * as Effect from "@effect/io/Effect"
|
|
7
|
-
import * as Layer from "@effect/io/Layer"
|
|
8
|
-
import type * as Schedule from "@effect/io/Schedule"
|
|
9
|
-
import type * as Scope from "@effect/io/Scope"
|
|
10
1
|
import type * as Body from "@effect/platform/Http/Body"
|
|
11
2
|
import type * as Client from "@effect/platform/Http/Client"
|
|
12
3
|
import type * as Error from "@effect/platform/Http/ClientError"
|
|
@@ -20,7 +11,16 @@ import * as internalRequest from "@effect/platform/internal/http/clientRequest"
|
|
|
20
11
|
import * as internalResponse from "@effect/platform/internal/http/clientResponse"
|
|
21
12
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
22
13
|
import * as Schema from "@effect/schema/Schema"
|
|
23
|
-
import * as
|
|
14
|
+
import * as Context from "effect/Context"
|
|
15
|
+
import * as Effect from "effect/Effect"
|
|
16
|
+
import { dual, pipe } from "effect/Function"
|
|
17
|
+
import * as Layer from "effect/Layer"
|
|
18
|
+
import * as Option from "effect/Option"
|
|
19
|
+
import { pipeArguments } from "effect/Pipeable"
|
|
20
|
+
import type * as Predicate from "effect/Predicate"
|
|
21
|
+
import type * as Schedule from "effect/Schedule"
|
|
22
|
+
import type * as Scope from "effect/Scope"
|
|
23
|
+
import * as Stream from "effect/Stream"
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const TypeId: Client.TypeId = Symbol.for("@effect/platform/Http/Client") as Client.TypeId
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { dual } from "@effect/data/Function"
|
|
2
|
-
import { pipeArguments } from "@effect/data/Pipeable"
|
|
3
|
-
import * as Effect from "@effect/io/Effect"
|
|
4
1
|
import type * as PlatformError from "@effect/platform/Error"
|
|
5
2
|
import type * as FileSystem from "@effect/platform/FileSystem"
|
|
6
3
|
import type * as Body from "@effect/platform/Http/Body"
|
|
@@ -11,7 +8,10 @@ import type { Method } from "@effect/platform/Http/Method"
|
|
|
11
8
|
import * as UrlParams from "@effect/platform/Http/UrlParams"
|
|
12
9
|
import * as internalBody from "@effect/platform/internal/http/body"
|
|
13
10
|
import type * as Schema from "@effect/schema/Schema"
|
|
14
|
-
import
|
|
11
|
+
import * as Effect from "effect/Effect"
|
|
12
|
+
import { dual } from "effect/Function"
|
|
13
|
+
import { pipeArguments } from "effect/Pipeable"
|
|
14
|
+
import type * as Stream from "effect/Stream"
|
|
15
15
|
|
|
16
16
|
/** @internal */
|
|
17
17
|
export const TypeId: ClientRequest.TypeId = Symbol.for("@effect/platform/Http/ClientRequest") as ClientRequest.TypeId
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as Option from "@effect/data/Option"
|
|
2
|
-
import * as Effect from "@effect/io/Effect"
|
|
3
1
|
import type * as Error from "@effect/platform/Http/ClientError"
|
|
4
2
|
import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
|
|
5
3
|
import type * as ClientResponse from "@effect/platform/Http/ClientResponse"
|
|
@@ -9,7 +7,9 @@ import * as UrlParams from "@effect/platform/Http/UrlParams"
|
|
|
9
7
|
import * as internalError from "@effect/platform/internal/http/clientError"
|
|
10
8
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
11
9
|
import * as Schema from "@effect/schema/Schema"
|
|
12
|
-
import * as
|
|
10
|
+
import * as Effect from "effect/Effect"
|
|
11
|
+
import * as Option from "effect/Option"
|
|
12
|
+
import * as Stream from "effect/Stream"
|
|
13
13
|
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const TypeId: ClientResponse.TypeId = Symbol.for("@effect/platform/Http/ClientResponse") as ClientResponse.TypeId
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as Chunk from "@effect/data/Chunk"
|
|
2
|
-
import * as Data from "@effect/data/Data"
|
|
3
|
-
import { dual, pipe } from "@effect/data/Function"
|
|
4
|
-
import { globalValue } from "@effect/data/GlobalValue"
|
|
5
|
-
import * as Option from "@effect/data/Option"
|
|
6
|
-
import * as Predicate from "@effect/data/Predicate"
|
|
7
|
-
import * as ReadonlyArray from "@effect/data/ReadonlyArray"
|
|
8
|
-
import * as Effect from "@effect/io/Effect"
|
|
9
|
-
import * as FiberRef from "@effect/io/FiberRef"
|
|
10
1
|
import * as FileSystem from "@effect/platform/FileSystem"
|
|
11
2
|
import type * as FormData from "@effect/platform/Http/FormData"
|
|
12
3
|
import type * as ParseResult from "@effect/schema/ParseResult"
|
|
13
4
|
import * as Schema from "@effect/schema/Schema"
|
|
5
|
+
import * as Chunk from "effect/Chunk"
|
|
6
|
+
import * as Data from "effect/Data"
|
|
7
|
+
import * as Effect from "effect/Effect"
|
|
8
|
+
import * as FiberRef from "effect/FiberRef"
|
|
9
|
+
import { dual, pipe } from "effect/Function"
|
|
10
|
+
import { globalValue } from "effect/GlobalValue"
|
|
11
|
+
import * as Option from "effect/Option"
|
|
12
|
+
import * as Predicate from "effect/Predicate"
|
|
13
|
+
import * as ReadonlyArray from "effect/ReadonlyArray"
|
|
14
14
|
|
|
15
15
|
/** @internal */
|
|
16
16
|
export const TypeId: FormData.TypeId = Symbol.for("@effect/platform/Http/FormData") as FormData.TypeId
|