@effect/platform-node 4.0.0-beta.67 → 4.0.0-beta.68
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/dist/NodeClusterHttp.d.ts +3 -3
- package/dist/NodeClusterHttp.js +3 -3
- package/dist/NodeClusterSocket.d.ts +5 -5
- package/dist/NodeClusterSocket.js +5 -5
- package/dist/NodeCrypto.d.ts +10 -0
- package/dist/NodeCrypto.d.ts.map +1 -0
- package/dist/NodeCrypto.js +14 -0
- package/dist/NodeCrypto.js.map +1 -0
- package/dist/NodeFileSystem.d.ts +1 -1
- package/dist/NodeFileSystem.js +1 -1
- package/dist/NodeHttpIncomingMessage.d.ts +1 -1
- package/dist/NodeHttpIncomingMessage.js +1 -1
- package/dist/NodeHttpPlatform.d.ts +2 -2
- package/dist/NodeHttpPlatform.js +2 -2
- package/dist/NodeHttpServer.d.ts +4 -4
- package/dist/NodeHttpServer.js +4 -4
- package/dist/NodeMultipart.d.ts +1 -0
- package/dist/NodeMultipart.d.ts.map +1 -1
- package/dist/NodeMultipart.js +1 -0
- package/dist/NodeMultipart.js.map +1 -1
- package/dist/NodePath.d.ts +3 -3
- package/dist/NodePath.js +3 -3
- package/dist/NodeRedis.d.ts +3 -3
- package/dist/NodeRedis.js +3 -3
- package/dist/NodeRuntime.d.ts +3 -3
- package/dist/NodeRuntime.js +1 -1
- package/dist/NodeServices.d.ts +3 -2
- package/dist/NodeServices.d.ts.map +1 -1
- package/dist/NodeServices.js +3 -2
- package/dist/NodeServices.js.map +1 -1
- package/dist/NodeStdio.d.ts +1 -1
- package/dist/NodeStdio.js +1 -1
- package/dist/index.d.ts +352 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +352 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/NodeClusterHttp.ts +3 -3
- package/src/NodeClusterSocket.ts +5 -5
- package/src/NodeCrypto.ts +16 -0
- package/src/NodeFileSystem.ts +1 -1
- package/src/NodeHttpIncomingMessage.ts +1 -1
- package/src/NodeHttpPlatform.ts +2 -2
- package/src/NodeHttpServer.ts +4 -4
- package/src/NodeMultipart.ts +1 -0
- package/src/NodePath.ts +3 -3
- package/src/NodeRedis.ts +3 -3
- package/src/NodeRuntime.ts +3 -3
- package/src/NodeServices.ts +5 -2
- package/src/NodeStdio.ts +1 -1
- package/src/index.ts +353 -0
|
@@ -49,7 +49,7 @@ import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
|
49
49
|
import type { NodeServices } from "./NodeServices.ts";
|
|
50
50
|
export {
|
|
51
51
|
/**
|
|
52
|
-
* @category
|
|
52
|
+
* @category re-exports
|
|
53
53
|
* @since 4.0.0
|
|
54
54
|
*/
|
|
55
55
|
layerK8sHttpClient } from "./NodeClusterSocket.ts";
|
|
@@ -58,7 +58,7 @@ layerK8sHttpClient } from "./NodeClusterSocket.ts";
|
|
|
58
58
|
* transport, RPC serialization, message storage, runner health checks, and
|
|
59
59
|
* optional client-only mode.
|
|
60
60
|
*
|
|
61
|
-
* @category
|
|
61
|
+
* @category layers
|
|
62
62
|
* @since 4.0.0
|
|
63
63
|
*/
|
|
64
64
|
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options: {
|
|
@@ -77,7 +77,7 @@ export declare const layer: <const ClientOnly extends boolean = false, const Sto
|
|
|
77
77
|
* Provides the HTTP server and Node HTTP services used by cluster runners,
|
|
78
78
|
* listening on `ShardingConfig.runnerListenAddress` or `runnerAddress`.
|
|
79
79
|
*
|
|
80
|
-
* @category
|
|
80
|
+
* @category layers
|
|
81
81
|
* @since 4.0.0
|
|
82
82
|
*/
|
|
83
83
|
export declare const layerHttpServer: Layer.Layer<HttpPlatform | Etag.Generator | NodeServices | HttpServer, ServeError, ShardingConfig.ShardingConfig>;
|
package/dist/NodeClusterHttp.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as NodeHttpServer from "./NodeHttpServer.js";
|
|
|
17
17
|
import * as NodeSocket from "./NodeSocket.js";
|
|
18
18
|
export {
|
|
19
19
|
/**
|
|
20
|
-
* @category
|
|
20
|
+
* @category re-exports
|
|
21
21
|
* @since 4.0.0
|
|
22
22
|
*/
|
|
23
23
|
layerK8sHttpClient } from "./NodeClusterSocket.js";
|
|
@@ -26,7 +26,7 @@ layerK8sHttpClient } from "./NodeClusterSocket.js";
|
|
|
26
26
|
* transport, RPC serialization, message storage, runner health checks, and
|
|
27
27
|
* optional client-only mode.
|
|
28
28
|
*
|
|
29
|
-
* @category
|
|
29
|
+
* @category layers
|
|
30
30
|
* @since 4.0.0
|
|
31
31
|
*/
|
|
32
32
|
export const layer = options => {
|
|
@@ -42,7 +42,7 @@ export const layer = options => {
|
|
|
42
42
|
* Provides the HTTP server and Node HTTP services used by cluster runners,
|
|
43
43
|
* listening on `ShardingConfig.runnerListenAddress` or `runnerAddress`.
|
|
44
44
|
*
|
|
45
|
-
* @category
|
|
45
|
+
* @category layers
|
|
46
46
|
* @since 4.0.0
|
|
47
47
|
*/
|
|
48
48
|
export const layerHttpServer = /*#__PURE__*/Effect.gen(function* () {
|
|
@@ -44,12 +44,12 @@ import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
|
44
44
|
import * as NodeHttpClient from "./NodeHttpClient.ts";
|
|
45
45
|
export {
|
|
46
46
|
/**
|
|
47
|
-
* @category
|
|
47
|
+
* @category re-exports
|
|
48
48
|
* @since 4.0.0
|
|
49
49
|
*/
|
|
50
50
|
layerClientProtocol,
|
|
51
51
|
/**
|
|
52
|
-
* @category
|
|
52
|
+
* @category re-exports
|
|
53
53
|
* @since 4.0.0
|
|
54
54
|
*/
|
|
55
55
|
layerSocketServer };
|
|
@@ -58,7 +58,7 @@ layerSocketServer };
|
|
|
58
58
|
* serialization, message storage, runner health checks, and optional
|
|
59
59
|
* client-only mode.
|
|
60
60
|
*
|
|
61
|
-
* @category
|
|
61
|
+
* @category layers
|
|
62
62
|
* @since 4.0.0
|
|
63
63
|
*/
|
|
64
64
|
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options?: {
|
|
@@ -77,7 +77,7 @@ export declare const layer: <const ClientOnly extends boolean = false, const Sto
|
|
|
77
77
|
* account CA certificate when it is available and falling back to the default
|
|
78
78
|
* dispatcher otherwise.
|
|
79
79
|
*
|
|
80
|
-
* @category
|
|
80
|
+
* @category layers
|
|
81
81
|
* @since 4.0.0
|
|
82
82
|
*/
|
|
83
83
|
export declare const layerDispatcherK8s: Layer.Layer<NodeHttpClient.Dispatcher>;
|
|
@@ -85,7 +85,7 @@ export declare const layerDispatcherK8s: Layer.Layer<NodeHttpClient.Dispatcher>;
|
|
|
85
85
|
* Provides a `K8sHttpClient` backed by the Undici HTTP client and the
|
|
86
86
|
* Kubernetes-aware dispatcher.
|
|
87
87
|
*
|
|
88
|
-
* @category
|
|
88
|
+
* @category layers
|
|
89
89
|
* @since 4.0.0
|
|
90
90
|
*/
|
|
91
91
|
export declare const layerK8sHttpClient: Layer.Layer<K8sHttpClient.K8sHttpClient>;
|
|
@@ -49,12 +49,12 @@ import * as NodeHttpClient from "./NodeHttpClient.js";
|
|
|
49
49
|
import * as Undici from "./Undici.js";
|
|
50
50
|
export {
|
|
51
51
|
/**
|
|
52
|
-
* @category
|
|
52
|
+
* @category re-exports
|
|
53
53
|
* @since 4.0.0
|
|
54
54
|
*/
|
|
55
55
|
layerClientProtocol,
|
|
56
56
|
/**
|
|
57
|
-
* @category
|
|
57
|
+
* @category re-exports
|
|
58
58
|
* @since 4.0.0
|
|
59
59
|
*/
|
|
60
60
|
layerSocketServer };
|
|
@@ -63,7 +63,7 @@ layerSocketServer };
|
|
|
63
63
|
* serialization, message storage, runner health checks, and optional
|
|
64
64
|
* client-only mode.
|
|
65
65
|
*
|
|
66
|
-
* @category
|
|
66
|
+
* @category layers
|
|
67
67
|
* @since 4.0.0
|
|
68
68
|
*/
|
|
69
69
|
export const layer = options => {
|
|
@@ -80,7 +80,7 @@ export const layer = options => {
|
|
|
80
80
|
* account CA certificate when it is available and falling back to the default
|
|
81
81
|
* dispatcher otherwise.
|
|
82
82
|
*
|
|
83
|
-
* @category
|
|
83
|
+
* @category layers
|
|
84
84
|
* @since 4.0.0
|
|
85
85
|
*/
|
|
86
86
|
export const layerDispatcherK8s = /*#__PURE__*/Layer.effect(NodeHttpClient.Dispatcher)(Effect.gen(function* () {
|
|
@@ -99,7 +99,7 @@ export const layerDispatcherK8s = /*#__PURE__*/Layer.effect(NodeHttpClient.Dispa
|
|
|
99
99
|
* Provides a `K8sHttpClient` backed by the Undici HTTP client and the
|
|
100
100
|
* Kubernetes-aware dispatcher.
|
|
101
101
|
*
|
|
102
|
-
* @category
|
|
102
|
+
* @category layers
|
|
103
103
|
* @since 4.0.0
|
|
104
104
|
*/
|
|
105
105
|
export const layerK8sHttpClient = /*#__PURE__*/K8sHttpClient.layer.pipe(/*#__PURE__*/Layer.provide(/*#__PURE__*/Layer.fresh(NodeHttpClient.layerUndiciNoDispatcher)), /*#__PURE__*/Layer.provide(layerDispatcherK8s), /*#__PURE__*/Layer.provide(NodeFileSystem.layer));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Crypto from "effect/Crypto";
|
|
2
|
+
import type * as Layer from "effect/Layer";
|
|
3
|
+
/**
|
|
4
|
+
* A layer that provides the Node.js Crypto service implementation.
|
|
5
|
+
*
|
|
6
|
+
* @category layers
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export declare const layer: Layer.Layer<Crypto.Crypto>;
|
|
10
|
+
//# sourceMappingURL=NodeCrypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeCrypto.d.ts","sourceRoot":"","sources":["../src/NodeCrypto.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAoB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js platform Crypto service layer.
|
|
3
|
+
*
|
|
4
|
+
* @since 1.0.0
|
|
5
|
+
*/
|
|
6
|
+
import * as NodeCrypto from "@effect/platform-node-shared/NodeCrypto";
|
|
7
|
+
/**
|
|
8
|
+
* A layer that provides the Node.js Crypto service implementation.
|
|
9
|
+
*
|
|
10
|
+
* @category layers
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
*/
|
|
13
|
+
export const layer = NodeCrypto.layer;
|
|
14
|
+
//# sourceMappingURL=NodeCrypto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeCrypto.js","names":["NodeCrypto","layer"],"sources":["../src/NodeCrypto.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;AAKA,OAAO,KAAKA,UAAU,MAAM,yCAAyC;AAIrE;;;;;;AAMA,OAAO,MAAMC,KAAK,GAA+BD,UAAU,CAACC,KAAK","ignoreList":[]}
|
package/dist/NodeFileSystem.d.ts
CHANGED
package/dist/NodeFileSystem.js
CHANGED
|
@@ -22,7 +22,7 @@ import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
|
|
|
22
22
|
/**
|
|
23
23
|
* Provides the `FileSystem` service backed by Node filesystem APIs.
|
|
24
24
|
*
|
|
25
|
-
* @category
|
|
25
|
+
* @category layers
|
|
26
26
|
* @since 4.0.0
|
|
27
27
|
*/
|
|
28
28
|
export const layer = NodeFileSystem.layer;
|
|
@@ -27,7 +27,7 @@ import type * as Http from "node:http";
|
|
|
27
27
|
* exposing headers, remote address, stream access, and cached text, JSON, URL
|
|
28
28
|
* parameter, and array-buffer body decoders with caller-provided error mapping.
|
|
29
29
|
*
|
|
30
|
-
* @category
|
|
30
|
+
* @category constructors
|
|
31
31
|
* @since 4.0.0
|
|
32
32
|
*/
|
|
33
33
|
export declare abstract class NodeHttpIncomingMessage<E> extends Inspectable.Class implements IncomingMessage.HttpIncomingMessage<E> {
|
|
@@ -25,7 +25,7 @@ import * as NodeStream from "./NodeStream.js";
|
|
|
25
25
|
* exposing headers, remote address, stream access, and cached text, JSON, URL
|
|
26
26
|
* parameter, and array-buffer body decoders with caller-provided error mapping.
|
|
27
27
|
*
|
|
28
|
-
* @category
|
|
28
|
+
* @category constructors
|
|
29
29
|
* @since 4.0.0
|
|
30
30
|
*/
|
|
31
31
|
export class NodeHttpIncomingMessage extends Inspectable.Class {
|
|
@@ -6,7 +6,7 @@ import * as ServerResponse from "effect/unstable/http/HttpServerResponse";
|
|
|
6
6
|
* Creates the Node `HttpPlatform`, serving file responses from Node readable
|
|
7
7
|
* streams and adding MIME type and content-length headers when needed.
|
|
8
8
|
*
|
|
9
|
-
* @category
|
|
9
|
+
* @category constructors
|
|
10
10
|
* @since 4.0.0
|
|
11
11
|
*/
|
|
12
12
|
export declare const make: import("effect/Effect").Effect<{
|
|
@@ -25,7 +25,7 @@ export declare const make: import("effect/Effect").Effect<{
|
|
|
25
25
|
* Provides the Node `HttpPlatform` together with the filesystem and ETag
|
|
26
26
|
* services it needs for file responses.
|
|
27
27
|
*
|
|
28
|
-
* @category
|
|
28
|
+
* @category layers
|
|
29
29
|
* @since 4.0.0
|
|
30
30
|
*/
|
|
31
31
|
export declare const layer: Layer.Layer<Platform.HttpPlatform>;
|
package/dist/NodeHttpPlatform.js
CHANGED
|
@@ -36,7 +36,7 @@ import * as NodeFileSystem from "./NodeFileSystem.js";
|
|
|
36
36
|
* Creates the Node `HttpPlatform`, serving file responses from Node readable
|
|
37
37
|
* streams and adding MIME type and content-length headers when needed.
|
|
38
38
|
*
|
|
39
|
-
* @category
|
|
39
|
+
* @category constructors
|
|
40
40
|
* @since 4.0.0
|
|
41
41
|
*/
|
|
42
42
|
export const make = /*#__PURE__*/Platform.make({
|
|
@@ -70,7 +70,7 @@ export const make = /*#__PURE__*/Platform.make({
|
|
|
70
70
|
* Provides the Node `HttpPlatform` together with the filesystem and ETag
|
|
71
71
|
* services it needs for file responses.
|
|
72
72
|
*
|
|
73
|
-
* @category
|
|
73
|
+
* @category layers
|
|
74
74
|
* @since 4.0.0
|
|
75
75
|
*/
|
|
76
76
|
export const layer = /*#__PURE__*/pipe(/*#__PURE__*/Layer.effect(Platform.HttpPlatform)(make), /*#__PURE__*/Layer.provide(NodeFileSystem.layer), /*#__PURE__*/Layer.provide(EtagImpl.layer));
|
package/dist/NodeHttpServer.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare const makeUpgradeHandler: <R, E, App extends Effect.Effect<HttpSe
|
|
|
65
65
|
* Provides an `HttpServer` by creating and managing a scoped Node
|
|
66
66
|
* `http.Server` with the supplied listen and shutdown options.
|
|
67
67
|
*
|
|
68
|
-
* @category
|
|
68
|
+
* @category layers
|
|
69
69
|
* @since 4.0.0
|
|
70
70
|
*/
|
|
71
71
|
export declare const layerServer: (evaluate: LazyArg<Http.Server<typeof Http.IncomingMessage, typeof Http.ServerResponse>>, options: Net.ListenOptions & {
|
|
@@ -76,7 +76,7 @@ export declare const layerServer: (evaluate: LazyArg<Http.Server<typeof Http.Inc
|
|
|
76
76
|
* Provides the Node HTTP support services used by `NodeHttpServer`, including
|
|
77
77
|
* the HTTP platform, ETag generator, and core Node platform services.
|
|
78
78
|
*
|
|
79
|
-
* @category
|
|
79
|
+
* @category layers
|
|
80
80
|
* @since 4.0.0
|
|
81
81
|
*/
|
|
82
82
|
export declare const layerHttpServices: Layer.Layer<NodeServices.NodeServices | HttpPlatform.HttpPlatform | Etag.Generator>;
|
|
@@ -84,7 +84,7 @@ export declare const layerHttpServices: Layer.Layer<NodeServices.NodeServices |
|
|
|
84
84
|
* Provides a Node `HttpServer` together with the Node HTTP platform, ETag, and
|
|
85
85
|
* core platform services required to serve requests.
|
|
86
86
|
*
|
|
87
|
-
* @category
|
|
87
|
+
* @category layers
|
|
88
88
|
* @since 4.0.0
|
|
89
89
|
*/
|
|
90
90
|
export declare const layer: (evaluate: LazyArg<Http.Server>, options: Net.ListenOptions & {
|
|
@@ -95,7 +95,7 @@ export declare const layer: (evaluate: LazyArg<Http.Server>, options: Net.Listen
|
|
|
95
95
|
* Provides a Node `HttpServer` and HTTP support services, reading the listen
|
|
96
96
|
* and shutdown options from a `Config` value.
|
|
97
97
|
*
|
|
98
|
-
* @category
|
|
98
|
+
* @category layers
|
|
99
99
|
* @since 4.0.0
|
|
100
100
|
*/
|
|
101
101
|
export declare const layerConfig: (evaluate: LazyArg<Http.Server>, options: Config.Wrap<Net.ListenOptions & {
|
package/dist/NodeHttpServer.js
CHANGED
|
@@ -273,7 +273,7 @@ class ServerRequestImpl extends NodeHttpIncomingMessage {
|
|
|
273
273
|
* Provides an `HttpServer` by creating and managing a scoped Node
|
|
274
274
|
* `http.Server` with the supplied listen and shutdown options.
|
|
275
275
|
*
|
|
276
|
-
* @category
|
|
276
|
+
* @category layers
|
|
277
277
|
* @since 4.0.0
|
|
278
278
|
*/
|
|
279
279
|
export const layerServer = /*#__PURE__*/flow(make, /*#__PURE__*/Layer.effect(HttpServer.HttpServer));
|
|
@@ -281,7 +281,7 @@ export const layerServer = /*#__PURE__*/flow(make, /*#__PURE__*/Layer.effect(Htt
|
|
|
281
281
|
* Provides the Node HTTP support services used by `NodeHttpServer`, including
|
|
282
282
|
* the HTTP platform, ETag generator, and core Node platform services.
|
|
283
283
|
*
|
|
284
|
-
* @category
|
|
284
|
+
* @category layers
|
|
285
285
|
* @since 4.0.0
|
|
286
286
|
*/
|
|
287
287
|
export const layerHttpServices = /*#__PURE__*/Layer.mergeAll(NodeHttpPlatform.layer, Etag.layerWeak, NodeServices.layer);
|
|
@@ -289,7 +289,7 @@ export const layerHttpServices = /*#__PURE__*/Layer.mergeAll(NodeHttpPlatform.la
|
|
|
289
289
|
* Provides a Node `HttpServer` together with the Node HTTP platform, ETag, and
|
|
290
290
|
* core platform services required to serve requests.
|
|
291
291
|
*
|
|
292
|
-
* @category
|
|
292
|
+
* @category layers
|
|
293
293
|
* @since 4.0.0
|
|
294
294
|
*/
|
|
295
295
|
export const layer = (evaluate, options) => Layer.mergeAll(layerServer(evaluate, options), layerHttpServices);
|
|
@@ -297,7 +297,7 @@ export const layer = (evaluate, options) => Layer.mergeAll(layerServer(evaluate,
|
|
|
297
297
|
* Provides a Node `HttpServer` and HTTP support services, reading the listen
|
|
298
298
|
* and shutdown options from a `Config` value.
|
|
299
299
|
*
|
|
300
|
-
* @category
|
|
300
|
+
* @category layers
|
|
301
301
|
* @since 4.0.0
|
|
302
302
|
*/
|
|
303
303
|
export const layerConfig = (evaluate, options) => Layer.mergeAll(Layer.effect(HttpServer.HttpServer)(Effect.flatMap(Config.unwrap(options), options => make(evaluate, options))), layerHttpServices);
|
package/dist/NodeMultipart.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const persisted: (source: Readable, headers: IncomingHttpHeaders)
|
|
|
47
47
|
* Returns the underlying Node readable stream for a multipart file produced by
|
|
48
48
|
* the Node multipart parser.
|
|
49
49
|
*
|
|
50
|
+
* @category converting
|
|
50
51
|
* @since 4.0.0
|
|
51
52
|
*/
|
|
52
53
|
export declare const fileToReadable: (file: Multipart.File) => Readable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeMultipart.d.ts","sourceRoot":"","sources":["../src/NodeMultipart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAEpD,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAA;AAG3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,W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,mBAAmB,KAC3B,MAAM,CAAC,MAAM,CACd,SAAS,CAAC,SAAS,EACnB,SAAS,CAAC,cAAc,EACxB,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAM1C,CAAA;AAEP;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,SAAS,CAAC,IAAI,KAAG,QAAmC,CAAA"}
|
package/dist/NodeMultipart.js
CHANGED
|
@@ -59,6 +59,7 @@ export const persisted = (source, headers) => Multipart.toPersisted(stream(sourc
|
|
|
59
59
|
* Returns the underlying Node readable stream for a multipart file produced by
|
|
60
60
|
* the Node multipart parser.
|
|
61
61
|
*
|
|
62
|
+
* @category converting
|
|
62
63
|
* @since 4.0.0
|
|
63
64
|
*/
|
|
64
65
|
export const fileToReadable = file => file.file;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeMultipart.js","names":["Effect","Inspectable","Stream","Multipart","MP","NFS","NodeStreamP","NodeStream","stream","source","headers","makeConfig","pipe","map","config","fromReadable","evaluate","parser","make","onError","error","convertError","unwrap","convertPart","persisted","toPersisted","path","file","tryPromise","try","signal","pipeline","createWriteStream","catch","cause","MultipartError","fromReason","fileToReadable","part","_tag","FieldImpl","info","value","FileImpl","PartBase","Class","TypeId","constructor","key","contentType","name","decodeField","toJSON","_id","content","contentEffect","filename","toUint8Array","limit"],"sources":["../src/NodeMultipart.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,KAAKA,MAAM,MAAM,eAAe;AAEvC,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AAGjD,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,SAAS,MAAM,gCAAgC;AAC3D,OAAO,KAAKC,EAAE,MAAM,sCAAsC;AAC1D,OAAO,KAAKC,GAAG,MAAM,SAAS;AAG9B,OAAO,KAAKC,WAAW,MAAM,sBAAsB;AACnD,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAE7C;;;;;;;;AAQA,OAAO,MAAMC,MAAM,GAAGA,CACpBC,MAAgB,EAChBC,OAA4B,KAE5BP,SAAS,CAACQ,UAAU,CAACD,OAAc,CAAC,CAACE,IAAI,CACvCZ,MAAM,CAACa,GAAG,CAAEC,MAAM,IAChBP,UAAU,CAACQ,YAAY,CAAoC;EACzDC,QAAQA,CAAA;IACN,MAAMC,MAAM,GAAGb,EAAE,CAACc,IAAI,CAACJ,MAAM,CAAC;IAC9BL,MAAM,CAACG,IAAI,CAACK,MAAM,CAAC;IACnB,OAAOA,MAAa;EACtB,CAAC;EACDE,OAAO,EAAGC,KAAK,IAAKC,YAAY,CAACD,KAAY;CAC9C,CAAC,CACH,EACDlB,MAAM,CAACoB,MAAM,EACbpB,MAAM,CAACW,GAAG,CAACU,WAAW,CAAC,CACxB;AAEH;;;;;;;AAOA,OAAO,MAAMC,SAAS,GAAGA,CACvBf,MAAgB,EAChBC,OAA4B,KAM5BP,SAAS,CAACsB,WAAW,CAACjB,MAAM,CAACC,MAAM,EAAEC,OAAO,CAAC,EAAE,CAACgB,IAAI,EAAEC,IAAI,KACxD3B,MAAM,CAAC4B,UAAU,CAAC;EAChBC,GAAG,EAAGC,MAAM,IAAKxB,WAAW,CAACyB,QAAQ,CAAEJ,IAAiB,CAACA,IAAI,EAAEtB,GAAG,CAAC2B,iBAAiB,CAACN,IAAI,CAAC,EAAE;IAAEI;EAAM,CAAE,CAAC;EACvGG,KAAK,EAAGC,KAAK,IAAK/B,SAAS,CAACgC,cAAc,CAACC,UAAU,CAAC,eAAe,EAAEF,KAAK;CAC7E,CAAC,CAAC;AAEP
|
|
1
|
+
{"version":3,"file":"NodeMultipart.js","names":["Effect","Inspectable","Stream","Multipart","MP","NFS","NodeStreamP","NodeStream","stream","source","headers","makeConfig","pipe","map","config","fromReadable","evaluate","parser","make","onError","error","convertError","unwrap","convertPart","persisted","toPersisted","path","file","tryPromise","try","signal","pipeline","createWriteStream","catch","cause","MultipartError","fromReason","fileToReadable","part","_tag","FieldImpl","info","value","FileImpl","PartBase","Class","TypeId","constructor","key","contentType","name","decodeField","toJSON","_id","content","contentEffect","filename","toUint8Array","limit"],"sources":["../src/NodeMultipart.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,KAAKA,MAAM,MAAM,eAAe;AAEvC,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AAGjD,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,SAAS,MAAM,gCAAgC;AAC3D,OAAO,KAAKC,EAAE,MAAM,sCAAsC;AAC1D,OAAO,KAAKC,GAAG,MAAM,SAAS;AAG9B,OAAO,KAAKC,WAAW,MAAM,sBAAsB;AACnD,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAE7C;;;;;;;;AAQA,OAAO,MAAMC,MAAM,GAAGA,CACpBC,MAAgB,EAChBC,OAA4B,KAE5BP,SAAS,CAACQ,UAAU,CAACD,OAAc,CAAC,CAACE,IAAI,CACvCZ,MAAM,CAACa,GAAG,CAAEC,MAAM,IAChBP,UAAU,CAACQ,YAAY,CAAoC;EACzDC,QAAQA,CAAA;IACN,MAAMC,MAAM,GAAGb,EAAE,CAACc,IAAI,CAACJ,MAAM,CAAC;IAC9BL,MAAM,CAACG,IAAI,CAACK,MAAM,CAAC;IACnB,OAAOA,MAAa;EACtB,CAAC;EACDE,OAAO,EAAGC,KAAK,IAAKC,YAAY,CAACD,KAAY;CAC9C,CAAC,CACH,EACDlB,MAAM,CAACoB,MAAM,EACbpB,MAAM,CAACW,GAAG,CAACU,WAAW,CAAC,CACxB;AAEH;;;;;;;AAOA,OAAO,MAAMC,SAAS,GAAGA,CACvBf,MAAgB,EAChBC,OAA4B,KAM5BP,SAAS,CAACsB,WAAW,CAACjB,MAAM,CAACC,MAAM,EAAEC,OAAO,CAAC,EAAE,CAACgB,IAAI,EAAEC,IAAI,KACxD3B,MAAM,CA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B,KAAK,UAAU;YAAE;cACf,OAAOvD,SAAS,CAACgC,cAAc,CAACC,UAAU,CAAC,cAAc,EAAEF,KAAK,CAAC;YACnE;UACA,KAAK,cAAc;YAAE;cACnB,OAAO/B,SAAS,CAACgC,cAAc,CAACC,UAAU,CAAC,eAAe,EAAEF,KAAK,CAAC;YACpE;UACA,KAAK,aAAa;YAAE;cAClB,OAAO/B,SAAS,CAACgC,cAAc,CAACC,UAAU,CAAC,cAAc,EAAEF,KAAK,CAAC;YACnE;UACA,KAAK,cAAc;YAAE;cACnB,OAAO/B,SAAS,CAACgC,cAAc,CAACC,UAAU,CAAC,cAAc,EAAEF,KAAK,CAAC;YACnE;QACF;MACF;IACA;MAAS;QACP,OAAO/B,SAAS,CAACgC,cAAc,CAACC,UAAU,CAAC,OAAO,EAAEF,KAAK,CAAC;MAC5D;EACF;AACF","ignoreList":[]}
|
package/dist/NodePath.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Path } from "effect/Path";
|
|
|
4
4
|
* Provides the default Node `Path` service using the platform's `node:path`
|
|
5
5
|
* implementation.
|
|
6
6
|
*
|
|
7
|
-
* @category
|
|
7
|
+
* @category layers
|
|
8
8
|
* @since 4.0.0
|
|
9
9
|
*/
|
|
10
10
|
export declare const layer: Layer.Layer<Path>;
|
|
@@ -12,7 +12,7 @@ export declare const layer: Layer.Layer<Path>;
|
|
|
12
12
|
* Provides the `Path` service using Node's POSIX path implementation,
|
|
13
13
|
* regardless of the host platform.
|
|
14
14
|
*
|
|
15
|
-
* @category
|
|
15
|
+
* @category layers
|
|
16
16
|
* @since 4.0.0
|
|
17
17
|
*/
|
|
18
18
|
export declare const layerPosix: Layer.Layer<Path>;
|
|
@@ -20,7 +20,7 @@ export declare const layerPosix: Layer.Layer<Path>;
|
|
|
20
20
|
* Provides the `Path` service using Node's Windows path implementation,
|
|
21
21
|
* regardless of the host platform.
|
|
22
22
|
*
|
|
23
|
-
* @category
|
|
23
|
+
* @category layers
|
|
24
24
|
* @since 4.0.0
|
|
25
25
|
*/
|
|
26
26
|
export declare const layerWin32: Layer.Layer<Path>;
|
package/dist/NodePath.js
CHANGED
|
@@ -20,7 +20,7 @@ import * as NodePath from "@effect/platform-node-shared/NodePath";
|
|
|
20
20
|
* Provides the default Node `Path` service using the platform's `node:path`
|
|
21
21
|
* implementation.
|
|
22
22
|
*
|
|
23
|
-
* @category
|
|
23
|
+
* @category layers
|
|
24
24
|
* @since 4.0.0
|
|
25
25
|
*/
|
|
26
26
|
export const layer = NodePath.layer;
|
|
@@ -28,7 +28,7 @@ export const layer = NodePath.layer;
|
|
|
28
28
|
* Provides the `Path` service using Node's POSIX path implementation,
|
|
29
29
|
* regardless of the host platform.
|
|
30
30
|
*
|
|
31
|
-
* @category
|
|
31
|
+
* @category layers
|
|
32
32
|
* @since 4.0.0
|
|
33
33
|
*/
|
|
34
34
|
export const layerPosix = NodePath.layerPosix;
|
|
@@ -36,7 +36,7 @@ export const layerPosix = NodePath.layerPosix;
|
|
|
36
36
|
* Provides the `Path` service using Node's Windows path implementation,
|
|
37
37
|
* regardless of the host platform.
|
|
38
38
|
*
|
|
39
|
-
* @category
|
|
39
|
+
* @category layers
|
|
40
40
|
* @since 4.0.0
|
|
41
41
|
*/
|
|
42
42
|
export const layerWin32 = NodePath.layerWin32;
|
package/dist/NodeRedis.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare const NodeRedis_base: Context.ServiceClass<NodeRedis, "@effect/platform-
|
|
|
35
35
|
* `ioredis` client and a `use` helper that maps client failures to
|
|
36
36
|
* `RedisError`.
|
|
37
37
|
*
|
|
38
|
-
* @category
|
|
38
|
+
* @category services
|
|
39
39
|
* @since 4.0.0
|
|
40
40
|
*/
|
|
41
41
|
export declare class NodeRedis extends NodeRedis_base {
|
|
@@ -44,7 +44,7 @@ export declare class NodeRedis extends NodeRedis_base {
|
|
|
44
44
|
* Provides `Redis` and `NodeRedis` services backed by an `ioredis` client
|
|
45
45
|
* created with the supplied options and closed when the layer scope ends.
|
|
46
46
|
*
|
|
47
|
-
* @category
|
|
47
|
+
* @category layers
|
|
48
48
|
* @since 4.0.0
|
|
49
49
|
*/
|
|
50
50
|
export declare const layer: (options?: IoRedis.RedisOptions | undefined) => Layer.Layer<Redis.Redis | NodeRedis>;
|
|
@@ -52,7 +52,7 @@ export declare const layer: (options?: IoRedis.RedisOptions | undefined) => Laye
|
|
|
52
52
|
* Provides `Redis` and `NodeRedis` services from `Config`-backed ioredis
|
|
53
53
|
* options, closing the client when the layer scope ends.
|
|
54
54
|
*
|
|
55
|
-
* @category
|
|
55
|
+
* @category layers
|
|
56
56
|
* @since 4.0.0
|
|
57
57
|
*/
|
|
58
58
|
export declare const layerConfig: (options: Config.Wrap<IoRedis.RedisOptions>) => Layer.Layer<Redis.Redis | NodeRedis, Config.ConfigError>;
|
package/dist/NodeRedis.js
CHANGED
|
@@ -33,7 +33,7 @@ import * as IoRedis from "ioredis";
|
|
|
33
33
|
* `ioredis` client and a `use` helper that maps client failures to
|
|
34
34
|
* `RedisError`.
|
|
35
35
|
*
|
|
36
|
-
* @category
|
|
36
|
+
* @category services
|
|
37
37
|
* @since 4.0.0
|
|
38
38
|
*/
|
|
39
39
|
export class NodeRedis extends /*#__PURE__*/Context.Service()("@effect/platform-node/NodeRedis") {}
|
|
@@ -65,7 +65,7 @@ const make = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
|
65
65
|
* Provides `Redis` and `NodeRedis` services backed by an `ioredis` client
|
|
66
66
|
* created with the supplied options and closed when the layer scope ends.
|
|
67
67
|
*
|
|
68
|
-
* @category
|
|
68
|
+
* @category layers
|
|
69
69
|
* @since 4.0.0
|
|
70
70
|
*/
|
|
71
71
|
export const layer = options => Layer.effectContext(make(options));
|
|
@@ -73,7 +73,7 @@ export const layer = options => Layer.effectContext(make(options));
|
|
|
73
73
|
* Provides `Redis` and `NodeRedis` services from `Config`-backed ioredis
|
|
74
74
|
* options, closing the client when the layer scope ends.
|
|
75
75
|
*
|
|
76
|
-
* @category
|
|
76
|
+
* @category layers
|
|
77
77
|
* @since 4.0.0
|
|
78
78
|
*/
|
|
79
79
|
export const layerConfig = options => Layer.effectContext(Config.unwrap(options).pipe(Effect.flatMap(make)));
|
package/dist/NodeRuntime.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import type * as Runtime from "effect/Runtime";
|
|
|
23
23
|
* when you need structured error handling, log management, interrupt support,
|
|
24
24
|
* or advanced teardown capabilities.
|
|
25
25
|
*
|
|
26
|
-
* @category
|
|
26
|
+
* @category running
|
|
27
27
|
* @since 4.0.0
|
|
28
28
|
*/
|
|
29
29
|
export declare const runMain: {
|
|
@@ -50,7 +50,7 @@ export declare const runMain: {
|
|
|
50
50
|
* when you need structured error handling, log management, interrupt support,
|
|
51
51
|
* or advanced teardown capabilities.
|
|
52
52
|
*
|
|
53
|
-
* @category
|
|
53
|
+
* @category running
|
|
54
54
|
* @since 4.0.0
|
|
55
55
|
*/
|
|
56
56
|
(options?: {
|
|
@@ -80,7 +80,7 @@ export declare const runMain: {
|
|
|
80
80
|
* when you need structured error handling, log management, interrupt support,
|
|
81
81
|
* or advanced teardown capabilities.
|
|
82
82
|
*
|
|
83
|
-
* @category
|
|
83
|
+
* @category running
|
|
84
84
|
* @since 4.0.0
|
|
85
85
|
*/
|
|
86
86
|
<E, A>(effect: Effect<A, E>, options?: {
|
package/dist/NodeRuntime.js
CHANGED
|
@@ -39,7 +39,7 @@ import * as NodeRuntime from "@effect/platform-node-shared/NodeRuntime";
|
|
|
39
39
|
* when you need structured error handling, log management, interrupt support,
|
|
40
40
|
* or advanced teardown capabilities.
|
|
41
41
|
*
|
|
42
|
-
* @category
|
|
42
|
+
* @category running
|
|
43
43
|
* @since 4.0.0
|
|
44
44
|
*/
|
|
45
45
|
export const runMain = NodeRuntime.runMain;
|
package/dist/NodeServices.d.ts
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* @since 4.0.0
|
|
20
20
|
*/
|
|
21
|
+
import type { Crypto } from "effect/Crypto";
|
|
21
22
|
import type { FileSystem } from "effect/FileSystem";
|
|
22
23
|
import * as Layer from "effect/Layer";
|
|
23
24
|
import type { Path } from "effect/Path";
|
|
@@ -31,12 +32,12 @@ import type { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSp
|
|
|
31
32
|
* @category models
|
|
32
33
|
* @since 4.0.0
|
|
33
34
|
*/
|
|
34
|
-
export type NodeServices = ChildProcessSpawner | FileSystem | Path | Stdio | Terminal;
|
|
35
|
+
export type NodeServices = ChildProcessSpawner | Crypto | FileSystem | Path | Stdio | Terminal;
|
|
35
36
|
/**
|
|
36
37
|
* Provides the default Node implementations for child process spawning,
|
|
37
38
|
* filesystem, path, stdio, and terminal services.
|
|
38
39
|
*
|
|
39
|
-
* @category
|
|
40
|
+
* @category layers
|
|
40
41
|
* @since 4.0.0
|
|
41
42
|
*/
|
|
42
43
|
export declare const layer: Layer.Layer<NodeServices>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeServices.d.ts","sourceRoot":"","sources":["../src/NodeServices.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;
|
|
1
|
+
{"version":3,"file":"NodeServices.d.ts","sourceRoot":"","sources":["../src/NodeServices.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AAQtF;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE9F;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAS3C,CAAA"}
|
package/dist/NodeServices.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as Layer from "effect/Layer";
|
|
2
2
|
import * as NodeChildProcessSpawner from "./NodeChildProcessSpawner.js";
|
|
3
|
+
import * as NodeCrypto from "./NodeCrypto.js";
|
|
3
4
|
import * as NodeFileSystem from "./NodeFileSystem.js";
|
|
4
5
|
import * as NodePath from "./NodePath.js";
|
|
5
6
|
import * as NodeStdio from "./NodeStdio.js";
|
|
@@ -8,8 +9,8 @@ import * as NodeTerminal from "./NodeTerminal.js";
|
|
|
8
9
|
* Provides the default Node implementations for child process spawning,
|
|
9
10
|
* filesystem, path, stdio, and terminal services.
|
|
10
11
|
*
|
|
11
|
-
* @category
|
|
12
|
+
* @category layers
|
|
12
13
|
* @since 4.0.0
|
|
13
14
|
*/
|
|
14
|
-
export const layer = /*#__PURE__*/Layer.provideMerge(NodeChildProcessSpawner.layer, /*#__PURE__*/Layer.mergeAll(NodeFileSystem.layer, NodePath.layer, NodeStdio.layer, NodeTerminal.layer));
|
|
15
|
+
export const layer = /*#__PURE__*/Layer.provideMerge(NodeChildProcessSpawner.layer, /*#__PURE__*/Layer.mergeAll(NodeFileSystem.layer, NodeCrypto.layer, NodePath.layer, NodeStdio.layer, NodeTerminal.layer));
|
|
15
16
|
//# sourceMappingURL=NodeServices.js.map
|
package/dist/NodeServices.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeServices.js","names":["Layer","NodeChildProcessSpawner","NodeFileSystem","NodePath","NodeStdio","NodeTerminal","layer","provideMerge","mergeAll"],"sources":["../src/NodeServices.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"NodeServices.js","names":["Layer","NodeChildProcessSpawner","NodeCrypto","NodeFileSystem","NodePath","NodeStdio","NodeTerminal","layer","provideMerge","mergeAll"],"sources":["../src/NodeServices.ts"],"sourcesContent":[null],"mappings":"AAsBA,OAAO,KAAKA,KAAK,MAAM,cAAc;AAKrC,OAAO,KAAKC,uBAAuB,MAAM,8BAA8B;AACvE,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAC7C,OAAO,KAAKC,cAAc,MAAM,qBAAqB;AACrD,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,YAAY,MAAM,mBAAmB;AAWjD;;;;;;;AAOA,OAAO,MAAMC,KAAK,gBAA8BP,KAAK,CAACQ,YAAY,CAChEP,uBAAuB,CAACM,KAAK,eAC7BP,KAAK,CAACS,QAAQ,CACZN,cAAc,CAACI,KAAK,EACpBL,UAAU,CAACK,KAAK,EAChBH,QAAQ,CAACG,KAAK,EACdF,SAAS,CAACE,KAAK,EACfD,YAAY,CAACC,KAAK,CACnB,CACF","ignoreList":[]}
|
package/dist/NodeStdio.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Stdio } from "effect/Stdio";
|
|
|
4
4
|
* Provides the `Stdio` service backed by the current process arguments,
|
|
5
5
|
* stdin, stdout, and stderr streams.
|
|
6
6
|
*
|
|
7
|
-
* @category
|
|
7
|
+
* @category layers
|
|
8
8
|
* @since 4.0.0
|
|
9
9
|
*/
|
|
10
10
|
export declare const layer: Layer.Layer<Stdio>;
|
package/dist/NodeStdio.js
CHANGED
|
@@ -22,7 +22,7 @@ import * as NodeStdio from "@effect/platform-node-shared/NodeStdio";
|
|
|
22
22
|
* Provides the `Stdio` service backed by the current process arguments,
|
|
23
23
|
* stdin, stdout, and stderr streams.
|
|
24
24
|
*
|
|
25
|
-
* @category
|
|
25
|
+
* @category layers
|
|
26
26
|
* @since 4.0.0
|
|
27
27
|
*/
|
|
28
28
|
export const layer = NodeStdio.layer;
|