@effect/platform-node 0.22.0 → 0.23.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/CommandExecutor/dist/effect-platform-node-CommandExecutor.cjs.dev.js +8 -2
- package/CommandExecutor/dist/effect-platform-node-CommandExecutor.cjs.prod.js +8 -2
- package/CommandExecutor/dist/effect-platform-node-CommandExecutor.esm.js +8 -2
- package/Http/FormData/dist/effect-platform-node-Http-FormData.cjs.dev.js +8 -3
- package/Http/FormData/dist/effect-platform-node-Http-FormData.cjs.prod.js +8 -3
- package/Http/FormData/dist/effect-platform-node-Http-FormData.esm.js +8 -3
- package/Http/NodeClient/dist/effect-platform-node-Http-NodeClient.cjs.dev.js +11 -4
- package/Http/NodeClient/dist/effect-platform-node-Http-NodeClient.cjs.prod.js +11 -4
- package/Http/NodeClient/dist/effect-platform-node-Http-NodeClient.esm.js +11 -4
- package/Http/Server/dist/effect-platform-node-Http-Server.cjs.dev.js +13 -8
- package/Http/Server/dist/effect-platform-node-Http-Server.cjs.prod.js +13 -8
- package/Http/Server/dist/effect-platform-node-Http-Server.esm.js +13 -8
- package/HttpClient/dist/effect-platform-node-HttpClient.cjs.dev.js +11 -4
- package/HttpClient/dist/effect-platform-node-HttpClient.cjs.prod.js +11 -4
- package/HttpClient/dist/effect-platform-node-HttpClient.esm.js +11 -4
- package/HttpServer/dist/effect-platform-node-HttpServer.cjs.dev.js +12 -7
- package/HttpServer/dist/effect-platform-node-HttpServer.cjs.prod.js +12 -7
- package/HttpServer/dist/effect-platform-node-HttpServer.esm.js +12 -7
- package/NodeContext/dist/effect-platform-node-NodeContext.cjs.dev.js +8 -2
- package/NodeContext/dist/effect-platform-node-NodeContext.cjs.prod.js +8 -2
- package/NodeContext/dist/effect-platform-node-NodeContext.esm.js +8 -2
- package/Sink/dist/effect-platform-node-Sink.cjs.dev.js +11 -8
- package/Sink/dist/effect-platform-node-Sink.cjs.prod.js +11 -8
- package/Sink/dist/effect-platform-node-Sink.esm.js +11 -8
- package/Stream/dist/effect-platform-node-Stream.cjs.dev.js +33 -2
- package/Stream/dist/effect-platform-node-Stream.cjs.mjs +3 -0
- package/Stream/dist/effect-platform-node-Stream.cjs.prod.js +33 -2
- package/Stream/dist/effect-platform-node-Stream.esm.js +31 -3
- package/dist/{FormData-15af6672.cjs.dev.js → FormData-1b197f9f.cjs.dev.js} +1 -1
- package/dist/{FormData-5ea8a8b6.esm.js → FormData-9c8077af.esm.js} +1 -1
- package/dist/{FormData-d91e8016.cjs.prod.js → FormData-b4b59ecb.cjs.prod.js} +1 -1
- package/dist/{NodeClient-cd56cae8.esm.js → NodeClient-1b5f7152.esm.js} +2 -2
- package/dist/{NodeClient-ebd71893.cjs.dev.js → NodeClient-433f41ed.cjs.dev.js} +2 -2
- package/dist/{NodeClient-3432a6a8.cjs.prod.js → NodeClient-8d8ff956.cjs.prod.js} +2 -2
- package/dist/{Server-5dbcee7b.cjs.prod.js → Server-2dd836bc.cjs.prod.js} +3 -3
- package/dist/{Server-5f055bfd.cjs.dev.js → Server-66eb964d.cjs.dev.js} +3 -3
- package/dist/{Server-c08c825c.esm.js → Server-913d7080.esm.js} +3 -3
- package/dist/declarations/src/Sink.d.ts +2 -9
- package/dist/declarations/src/Sink.d.ts.map +1 -1
- package/dist/declarations/src/Stream.d.ts +42 -11
- package/dist/declarations/src/Stream.d.ts.map +1 -1
- package/dist/{formData-ecf6742b.cjs.prod.js → formData-2d4168a3.cjs.prod.js} +1 -2
- package/dist/{formData-632b1146.cjs.dev.js → formData-5d873a90.cjs.dev.js} +1 -2
- package/dist/{formData-dd75bbe1.esm.js → formData-b50a3c9f.esm.js} +1 -2
- package/dist/{incomingMessage-f56be93e.cjs.prod.js → incomingMessage-4526b216.cjs.prod.js} +2 -4
- package/dist/{incomingMessage-11c9bea6.esm.js → incomingMessage-a56317f6.esm.js} +2 -4
- package/dist/{incomingMessage-86bcf94d.cjs.dev.js → incomingMessage-ac1817d4.cjs.dev.js} +2 -4
- package/dist/sink-3a150604.cjs.dev.js +48 -0
- package/dist/sink-570c8582.cjs.prod.js +48 -0
- package/dist/sink-5dfcc09e.esm.js +23 -0
- package/dist/stream-1667e8bf.cjs.prod.js +209 -0
- package/dist/stream-8bbecb96.cjs.dev.js +209 -0
- package/dist/stream-faaffb40.esm.js +175 -0
- package/package.json +5 -3
- package/src/Sink.ts +3 -11
- package/src/Stream.ts +59 -13
- package/src/internal/http/formData.ts +1 -2
- package/src/internal/http/incomingMessage.ts +2 -4
- package/src/internal/http/nodeClient.ts +1 -1
- package/src/internal/http/server.ts +3 -1
- package/src/internal/sink.ts +42 -47
- package/src/internal/stream.ts +242 -61
- package/dist/sink-bd7ef408.esm.js +0 -34
- package/dist/sink-da49e187.cjs.prod.js +0 -57
- package/dist/sink-daf9e0e5.cjs.dev.js +0 -57
- package/dist/stream-1456ece0.cjs.dev.js +0 -120
- package/dist/stream-860139d3.esm.js +0 -94
- package/dist/stream-ef8b6a66.cjs.prod.js +0 -120
|
@@ -17,8 +17,14 @@ require('effect/Stream');
|
|
|
17
17
|
require('node:child_process');
|
|
18
18
|
require('../../dist/error-e477c10b.cjs.dev.js');
|
|
19
19
|
require('@effect/platform/Error');
|
|
20
|
-
require('../../dist/sink-
|
|
21
|
-
require('
|
|
20
|
+
require('../../dist/sink-3a150604.cjs.dev.js');
|
|
21
|
+
require('effect/Channel');
|
|
22
|
+
require('effect/Deferred');
|
|
23
|
+
require('../../dist/stream-8bbecb96.cjs.dev.js');
|
|
24
|
+
require('effect/Chunk');
|
|
25
|
+
require('effect/Either');
|
|
26
|
+
require('effect/Exit');
|
|
27
|
+
require('effect/Queue');
|
|
22
28
|
require('@effect/platform/Effectify');
|
|
23
29
|
require('node:crypto');
|
|
24
30
|
require('node:fs');
|
|
@@ -17,8 +17,14 @@ require('effect/Stream');
|
|
|
17
17
|
require('node:child_process');
|
|
18
18
|
require('../../dist/error-4f074a3a.cjs.prod.js');
|
|
19
19
|
require('@effect/platform/Error');
|
|
20
|
-
require('../../dist/sink-
|
|
21
|
-
require('
|
|
20
|
+
require('../../dist/sink-570c8582.cjs.prod.js');
|
|
21
|
+
require('effect/Channel');
|
|
22
|
+
require('effect/Deferred');
|
|
23
|
+
require('../../dist/stream-1667e8bf.cjs.prod.js');
|
|
24
|
+
require('effect/Chunk');
|
|
25
|
+
require('effect/Either');
|
|
26
|
+
require('effect/Exit');
|
|
27
|
+
require('effect/Queue');
|
|
22
28
|
require('@effect/platform/Effectify');
|
|
23
29
|
require('node:crypto');
|
|
24
30
|
require('node:fs');
|
|
@@ -13,8 +13,14 @@ import 'effect/Stream';
|
|
|
13
13
|
import 'node:child_process';
|
|
14
14
|
import '../../dist/error-4865cb95.esm.js';
|
|
15
15
|
import '@effect/platform/Error';
|
|
16
|
-
import '../../dist/sink-
|
|
17
|
-
import '
|
|
16
|
+
import '../../dist/sink-5dfcc09e.esm.js';
|
|
17
|
+
import 'effect/Channel';
|
|
18
|
+
import 'effect/Deferred';
|
|
19
|
+
import '../../dist/stream-faaffb40.esm.js';
|
|
20
|
+
import 'effect/Chunk';
|
|
21
|
+
import 'effect/Either';
|
|
22
|
+
import 'effect/Exit';
|
|
23
|
+
import 'effect/Queue';
|
|
18
24
|
import '@effect/platform/Effectify';
|
|
19
25
|
import 'node:crypto';
|
|
20
26
|
import 'node:fs';
|
|
@@ -2,20 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var sink = require('../../dist/sink-
|
|
5
|
+
var sink = require('../../dist/sink-3a150604.cjs.dev.js');
|
|
6
|
+
require('effect/Channel');
|
|
7
|
+
require('effect/Deferred');
|
|
6
8
|
require('effect/Effect');
|
|
7
|
-
require('effect/Function');
|
|
8
9
|
require('effect/Sink');
|
|
10
|
+
require('../../dist/stream-8bbecb96.cjs.dev.js');
|
|
11
|
+
require('effect/Chunk');
|
|
12
|
+
require('effect/Either');
|
|
13
|
+
require('effect/Exit');
|
|
14
|
+
require('effect/Function');
|
|
15
|
+
require('effect/Queue');
|
|
16
|
+
require('effect/Stream');
|
|
17
|
+
require('@effect/platform/Error');
|
|
9
18
|
|
|
10
19
|
/**
|
|
11
20
|
* @since 1.0.0
|
|
12
21
|
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @category model
|
|
16
|
-
* @since 1.0.0
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
22
|
/**
|
|
20
23
|
* @category constructor
|
|
21
24
|
* @since 1.0.0
|
|
@@ -2,20 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var sink = require('../../dist/sink-
|
|
5
|
+
var sink = require('../../dist/sink-570c8582.cjs.prod.js');
|
|
6
|
+
require('effect/Channel');
|
|
7
|
+
require('effect/Deferred');
|
|
6
8
|
require('effect/Effect');
|
|
7
|
-
require('effect/Function');
|
|
8
9
|
require('effect/Sink');
|
|
10
|
+
require('../../dist/stream-1667e8bf.cjs.prod.js');
|
|
11
|
+
require('effect/Chunk');
|
|
12
|
+
require('effect/Either');
|
|
13
|
+
require('effect/Exit');
|
|
14
|
+
require('effect/Function');
|
|
15
|
+
require('effect/Queue');
|
|
16
|
+
require('effect/Stream');
|
|
17
|
+
require('@effect/platform/Error');
|
|
9
18
|
|
|
10
19
|
/**
|
|
11
20
|
* @since 1.0.0
|
|
12
21
|
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @category model
|
|
16
|
-
* @since 1.0.0
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
22
|
/**
|
|
20
23
|
* @category constructor
|
|
21
24
|
* @since 1.0.0
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { f as fromWritable$1 } from '../../dist/sink-
|
|
1
|
+
import { f as fromWritable$1 } from '../../dist/sink-5dfcc09e.esm.js';
|
|
2
|
+
import 'effect/Channel';
|
|
3
|
+
import 'effect/Deferred';
|
|
2
4
|
import 'effect/Effect';
|
|
3
|
-
import 'effect/Function';
|
|
4
5
|
import 'effect/Sink';
|
|
6
|
+
import '../../dist/stream-faaffb40.esm.js';
|
|
7
|
+
import 'effect/Chunk';
|
|
8
|
+
import 'effect/Either';
|
|
9
|
+
import 'effect/Exit';
|
|
10
|
+
import 'effect/Function';
|
|
11
|
+
import 'effect/Queue';
|
|
12
|
+
import 'effect/Stream';
|
|
13
|
+
import '@effect/platform/Error';
|
|
5
14
|
|
|
6
15
|
/**
|
|
7
16
|
* @since 1.0.0
|
|
8
17
|
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @category model
|
|
12
|
-
* @since 1.0.0
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
18
|
/**
|
|
16
19
|
* @category constructor
|
|
17
20
|
* @since 1.0.0
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var stream = require('../../dist/stream-
|
|
5
|
+
var stream = require('../../dist/stream-8bbecb96.cjs.dev.js');
|
|
6
|
+
require('effect/Channel');
|
|
7
|
+
require('effect/Chunk');
|
|
6
8
|
require('effect/Effect');
|
|
9
|
+
require('effect/Either');
|
|
10
|
+
require('effect/Exit');
|
|
7
11
|
require('effect/Function');
|
|
8
|
-
require('effect/
|
|
12
|
+
require('effect/Queue');
|
|
9
13
|
require('effect/Stream');
|
|
14
|
+
require('@effect/platform/Error');
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
17
|
* @since 1.0.0
|
|
@@ -17,12 +22,35 @@ require('effect/Stream');
|
|
|
17
22
|
* @since 1.0.0
|
|
18
23
|
*/
|
|
19
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @category model
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
|
|
20
30
|
/**
|
|
21
31
|
* @category constructors
|
|
22
32
|
* @since 1.0.0
|
|
23
33
|
*/
|
|
24
34
|
const fromReadable = stream.fromReadable;
|
|
25
35
|
|
|
36
|
+
/**
|
|
37
|
+
* @category constructors
|
|
38
|
+
* @since 1.0.0
|
|
39
|
+
*/
|
|
40
|
+
const fromDuplex = stream.fromDuplex;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @category combinators
|
|
44
|
+
* @since 1.0.0
|
|
45
|
+
*/
|
|
46
|
+
const pipeThroughDuplex = stream.pipeThroughDuplex;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @category combinators
|
|
50
|
+
* @since 1.0.0
|
|
51
|
+
*/
|
|
52
|
+
const pipeThroughSimple = stream.pipeThroughSimple;
|
|
53
|
+
|
|
26
54
|
/**
|
|
27
55
|
* @since 1.0.0
|
|
28
56
|
* @category conversions
|
|
@@ -35,6 +63,9 @@ const toString = stream.toString;
|
|
|
35
63
|
*/
|
|
36
64
|
const toUint8Array = stream.toUint8Array;
|
|
37
65
|
|
|
66
|
+
exports.fromDuplex = fromDuplex;
|
|
38
67
|
exports.fromReadable = fromReadable;
|
|
68
|
+
exports.pipeThroughDuplex = pipeThroughDuplex;
|
|
69
|
+
exports.pipeThroughSimple = pipeThroughSimple;
|
|
39
70
|
exports.toString = toString;
|
|
40
71
|
exports.toUint8Array = toUint8Array;
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var stream = require('../../dist/stream-
|
|
5
|
+
var stream = require('../../dist/stream-1667e8bf.cjs.prod.js');
|
|
6
|
+
require('effect/Channel');
|
|
7
|
+
require('effect/Chunk');
|
|
6
8
|
require('effect/Effect');
|
|
9
|
+
require('effect/Either');
|
|
10
|
+
require('effect/Exit');
|
|
7
11
|
require('effect/Function');
|
|
8
|
-
require('effect/
|
|
12
|
+
require('effect/Queue');
|
|
9
13
|
require('effect/Stream');
|
|
14
|
+
require('@effect/platform/Error');
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
17
|
* @since 1.0.0
|
|
@@ -17,12 +22,35 @@ require('effect/Stream');
|
|
|
17
22
|
* @since 1.0.0
|
|
18
23
|
*/
|
|
19
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @category model
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
*/
|
|
29
|
+
|
|
20
30
|
/**
|
|
21
31
|
* @category constructors
|
|
22
32
|
* @since 1.0.0
|
|
23
33
|
*/
|
|
24
34
|
const fromReadable = stream.fromReadable;
|
|
25
35
|
|
|
36
|
+
/**
|
|
37
|
+
* @category constructors
|
|
38
|
+
* @since 1.0.0
|
|
39
|
+
*/
|
|
40
|
+
const fromDuplex = stream.fromDuplex;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @category combinators
|
|
44
|
+
* @since 1.0.0
|
|
45
|
+
*/
|
|
46
|
+
const pipeThroughDuplex = stream.pipeThroughDuplex;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @category combinators
|
|
50
|
+
* @since 1.0.0
|
|
51
|
+
*/
|
|
52
|
+
const pipeThroughSimple = stream.pipeThroughSimple;
|
|
53
|
+
|
|
26
54
|
/**
|
|
27
55
|
* @since 1.0.0
|
|
28
56
|
* @category conversions
|
|
@@ -35,6 +63,9 @@ const toString = stream.toString;
|
|
|
35
63
|
*/
|
|
36
64
|
const toUint8Array = stream.toUint8Array;
|
|
37
65
|
|
|
66
|
+
exports.fromDuplex = fromDuplex;
|
|
38
67
|
exports.fromReadable = fromReadable;
|
|
68
|
+
exports.pipeThroughDuplex = pipeThroughDuplex;
|
|
69
|
+
exports.pipeThroughSimple = pipeThroughSimple;
|
|
39
70
|
exports.toString = toString;
|
|
40
71
|
exports.toUint8Array = toUint8Array;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { f as fromReadable$1, t as toString$1,
|
|
1
|
+
import { f as fromReadable$1, a as fromDuplex$1, p as pipeThroughDuplex$1, b as pipeThroughSimple$1, t as toString$1, c as toUint8Array$1 } from '../../dist/stream-faaffb40.esm.js';
|
|
2
|
+
import 'effect/Channel';
|
|
3
|
+
import 'effect/Chunk';
|
|
2
4
|
import 'effect/Effect';
|
|
5
|
+
import 'effect/Either';
|
|
6
|
+
import 'effect/Exit';
|
|
3
7
|
import 'effect/Function';
|
|
4
|
-
import 'effect/
|
|
8
|
+
import 'effect/Queue';
|
|
5
9
|
import 'effect/Stream';
|
|
10
|
+
import '@effect/platform/Error';
|
|
6
11
|
|
|
7
12
|
/**
|
|
8
13
|
* @since 1.0.0
|
|
@@ -13,12 +18,35 @@ import 'effect/Stream';
|
|
|
13
18
|
* @since 1.0.0
|
|
14
19
|
*/
|
|
15
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @category model
|
|
23
|
+
* @since 1.0.0
|
|
24
|
+
*/
|
|
25
|
+
|
|
16
26
|
/**
|
|
17
27
|
* @category constructors
|
|
18
28
|
* @since 1.0.0
|
|
19
29
|
*/
|
|
20
30
|
const fromReadable = fromReadable$1;
|
|
21
31
|
|
|
32
|
+
/**
|
|
33
|
+
* @category constructors
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
*/
|
|
36
|
+
const fromDuplex = fromDuplex$1;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @category combinators
|
|
40
|
+
* @since 1.0.0
|
|
41
|
+
*/
|
|
42
|
+
const pipeThroughDuplex = pipeThroughDuplex$1;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @category combinators
|
|
46
|
+
* @since 1.0.0
|
|
47
|
+
*/
|
|
48
|
+
const pipeThroughSimple = pipeThroughSimple$1;
|
|
49
|
+
|
|
22
50
|
/**
|
|
23
51
|
* @since 1.0.0
|
|
24
52
|
* @category conversions
|
|
@@ -31,4 +59,4 @@ const toString = toString$1;
|
|
|
31
59
|
*/
|
|
32
60
|
const toUint8Array = toUint8Array$1;
|
|
33
61
|
|
|
34
|
-
export { fromReadable, toString, toUint8Array };
|
|
62
|
+
export { fromDuplex, fromReadable, pipeThroughDuplex, pipeThroughSimple, toString, toUint8Array };
|
|
@@ -12,7 +12,7 @@ import * as Https from 'node:https';
|
|
|
12
12
|
import { Readable } from 'node:stream';
|
|
13
13
|
import { pipeline } from 'node:stream/promises';
|
|
14
14
|
import { fromWritable } from '../Sink/dist/effect-platform-node-Sink.esm.js';
|
|
15
|
-
import { I as IncomingMessageImpl } from './incomingMessage-
|
|
15
|
+
import { I as IncomingMessageImpl } from './incomingMessage-a56317f6.esm.js';
|
|
16
16
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
const HttpAgentTypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform-node/Http/NodeClient/HttpAgent");
|
|
@@ -32,7 +32,7 @@ const makeAgentLayer$1 = options => Layer.scoped(HttpAgent$1, makeAgent$1(option
|
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
34
34
|
const agentLayer$1 = /*#__PURE__*/makeAgentLayer$1();
|
|
35
|
-
const fromAgent = agent => Client.
|
|
35
|
+
const fromAgent = agent => Client.makeDefault(request => Effect.flatMap(UrlParams.makeUrl(request.url, request.urlParams, _ => Error.RequestError({
|
|
36
36
|
request,
|
|
37
37
|
reason: "InvalidUrl",
|
|
38
38
|
error: _
|
|
@@ -14,7 +14,7 @@ var Https = require('node:https');
|
|
|
14
14
|
var node_stream = require('node:stream');
|
|
15
15
|
var NodeStreamP = require('node:stream/promises');
|
|
16
16
|
var Sink_dist_effectPlatformNodeSink = require('../Sink/dist/effect-platform-node-Sink.cjs.dev.js');
|
|
17
|
-
var incomingMessage = require('./incomingMessage-
|
|
17
|
+
var incomingMessage = require('./incomingMessage-ac1817d4.cjs.dev.js');
|
|
18
18
|
|
|
19
19
|
function _interopNamespace(e) {
|
|
20
20
|
if (e && e.__esModule) return e;
|
|
@@ -63,7 +63,7 @@ const makeAgentLayer$1 = options => Layer__namespace.scoped(HttpAgent$1, makeAge
|
|
|
63
63
|
|
|
64
64
|
/** @internal */
|
|
65
65
|
const agentLayer$1 = /*#__PURE__*/makeAgentLayer$1();
|
|
66
|
-
const fromAgent = agent => Client__namespace.
|
|
66
|
+
const fromAgent = agent => Client__namespace.makeDefault(request => Effect__namespace.flatMap(UrlParams__namespace.makeUrl(request.url, request.urlParams, _ => Error__namespace.RequestError({
|
|
67
67
|
request,
|
|
68
68
|
reason: "InvalidUrl",
|
|
69
69
|
error: _
|
|
@@ -14,7 +14,7 @@ var Https = require('node:https');
|
|
|
14
14
|
var node_stream = require('node:stream');
|
|
15
15
|
var NodeStreamP = require('node:stream/promises');
|
|
16
16
|
var Sink_dist_effectPlatformNodeSink = require('../Sink/dist/effect-platform-node-Sink.cjs.prod.js');
|
|
17
|
-
var incomingMessage = require('./incomingMessage-
|
|
17
|
+
var incomingMessage = require('./incomingMessage-4526b216.cjs.prod.js');
|
|
18
18
|
|
|
19
19
|
function _interopNamespace(e) {
|
|
20
20
|
if (e && e.__esModule) return e;
|
|
@@ -63,7 +63,7 @@ const makeAgentLayer$1 = options => Layer__namespace.scoped(HttpAgent$1, makeAge
|
|
|
63
63
|
|
|
64
64
|
/** @internal */
|
|
65
65
|
const agentLayer$1 = /*#__PURE__*/makeAgentLayer$1();
|
|
66
|
-
const fromAgent = agent => Client__namespace.
|
|
66
|
+
const fromAgent = agent => Client__namespace.makeDefault(request => Effect__namespace.flatMap(UrlParams__namespace.makeUrl(request.url, request.urlParams, _ => Error__namespace.RequestError({
|
|
67
67
|
request,
|
|
68
68
|
reason: "InvalidUrl",
|
|
69
69
|
error: _
|
|
@@ -17,8 +17,8 @@ var Stream = require('effect/Stream');
|
|
|
17
17
|
var node_stream = require('node:stream');
|
|
18
18
|
var NodeStreamP = require('node:stream/promises');
|
|
19
19
|
var Sink_dist_effectPlatformNodeSink = require('../Sink/dist/effect-platform-node-Sink.cjs.prod.js');
|
|
20
|
-
var formData = require('./formData-
|
|
21
|
-
var incomingMessage = require('./incomingMessage-
|
|
20
|
+
var formData = require('./formData-2d4168a3.cjs.prod.js');
|
|
21
|
+
var incomingMessage = require('./incomingMessage-4526b216.cjs.prod.js');
|
|
22
22
|
var platform = require('./platform-80b90f07.cjs.prod.js');
|
|
23
23
|
|
|
24
24
|
function _interopNamespace(e) {
|
|
@@ -103,7 +103,7 @@ const make$1 = (evaluate, options) => Effect__namespace.gen(function* (_) {
|
|
|
103
103
|
port: address.port
|
|
104
104
|
},
|
|
105
105
|
serve: (httpApp, middleware) => {
|
|
106
|
-
const handledApp = middleware ? middleware(respond(httpApp)) : respond(httpApp);
|
|
106
|
+
const handledApp = middleware ? middleware(App__namespace.withDefaultMiddleware(respond(httpApp))) : App__namespace.withDefaultMiddleware(respond(httpApp));
|
|
107
107
|
return Effect__namespace.flatMap(Effect__namespace.all([Effect__namespace.runtime(), Effect__namespace.fiberId]), ([runtime, fiberId]) => {
|
|
108
108
|
const runFork = Runtime__namespace.runFork(runtime);
|
|
109
109
|
function handler(nodeRequest, nodeResponse) {
|
|
@@ -17,8 +17,8 @@ var Stream = require('effect/Stream');
|
|
|
17
17
|
var node_stream = require('node:stream');
|
|
18
18
|
var NodeStreamP = require('node:stream/promises');
|
|
19
19
|
var Sink_dist_effectPlatformNodeSink = require('../Sink/dist/effect-platform-node-Sink.cjs.dev.js');
|
|
20
|
-
var formData = require('./formData-
|
|
21
|
-
var incomingMessage = require('./incomingMessage-
|
|
20
|
+
var formData = require('./formData-5d873a90.cjs.dev.js');
|
|
21
|
+
var incomingMessage = require('./incomingMessage-ac1817d4.cjs.dev.js');
|
|
22
22
|
var platform = require('./platform-5b27475e.cjs.dev.js');
|
|
23
23
|
|
|
24
24
|
function _interopNamespace(e) {
|
|
@@ -103,7 +103,7 @@ const make$1 = (evaluate, options) => Effect__namespace.gen(function* (_) {
|
|
|
103
103
|
port: address.port
|
|
104
104
|
},
|
|
105
105
|
serve: (httpApp, middleware) => {
|
|
106
|
-
const handledApp = middleware ? middleware(respond(httpApp)) : respond(httpApp);
|
|
106
|
+
const handledApp = middleware ? middleware(App__namespace.withDefaultMiddleware(respond(httpApp))) : App__namespace.withDefaultMiddleware(respond(httpApp));
|
|
107
107
|
return Effect__namespace.flatMap(Effect__namespace.all([Effect__namespace.runtime(), Effect__namespace.fiberId]), ([runtime, fiberId]) => {
|
|
108
108
|
const runFork = Runtime__namespace.runFork(runtime);
|
|
109
109
|
function handler(nodeRequest, nodeResponse) {
|
|
@@ -15,8 +15,8 @@ import * as Stream from 'effect/Stream';
|
|
|
15
15
|
import { Readable } from 'node:stream';
|
|
16
16
|
import { pipeline } from 'node:stream/promises';
|
|
17
17
|
import { fromWritable } from '../Sink/dist/effect-platform-node-Sink.esm.js';
|
|
18
|
-
import { f as formData, s as stream } from './formData-
|
|
19
|
-
import { I as IncomingMessageImpl } from './incomingMessage-
|
|
18
|
+
import { f as formData, s as stream } from './formData-b50a3c9f.esm.js';
|
|
19
|
+
import { I as IncomingMessageImpl } from './incomingMessage-a56317f6.esm.js';
|
|
20
20
|
import { l as layer$2 } from './platform-2c00c2c5.esm.js';
|
|
21
21
|
|
|
22
22
|
function _mergeNamespaces(n, m) {
|
|
@@ -68,7 +68,7 @@ const make$1 = (evaluate, options) => Effect.gen(function* (_) {
|
|
|
68
68
|
port: address.port
|
|
69
69
|
},
|
|
70
70
|
serve: (httpApp, middleware) => {
|
|
71
|
-
const handledApp = middleware ? middleware(respond(httpApp)) : respond(httpApp);
|
|
71
|
+
const handledApp = middleware ? middleware(App.withDefaultMiddleware(respond(httpApp))) : App.withDefaultMiddleware(respond(httpApp));
|
|
72
72
|
return Effect.flatMap(Effect.all([Effect.runtime(), Effect.fiberId]), ([runtime, fiberId]) => {
|
|
73
73
|
const runFork = Runtime.runFork(runtime);
|
|
74
74
|
function handler(nodeRequest, nodeResponse) {
|
|
@@ -6,17 +6,10 @@
|
|
|
6
6
|
import type { LazyArg } from "effect/Function";
|
|
7
7
|
import type { Sink } from "effect/Sink";
|
|
8
8
|
import type { Writable } from "stream";
|
|
9
|
-
|
|
10
|
-
* @category model
|
|
11
|
-
* @since 1.0.0
|
|
12
|
-
*/
|
|
13
|
-
export interface FromWritableOptions {
|
|
14
|
-
readonly endOnClose?: boolean;
|
|
15
|
-
readonly encoding?: BufferEncoding;
|
|
16
|
-
}
|
|
9
|
+
import type { FromWritableOptions } from "./Stream.js";
|
|
17
10
|
/**
|
|
18
11
|
* @category constructor
|
|
19
12
|
* @since 1.0.0
|
|
20
13
|
*/
|
|
21
|
-
export declare const fromWritable: <E, A>(evaluate: LazyArg<Writable>, onError: (error: unknown) => E, options?: FromWritableOptions) => Sink<never, E, A, never, void>;
|
|
14
|
+
export declare const fromWritable: <E, A = string | Uint8Array>(evaluate: LazyArg<Writable | NodeJS.WritableStream>, onError: (error: unknown) => E, options?: FromWritableOptions) => Sink<never, E, A, never, void>;
|
|
22
15
|
//# sourceMappingURL=Sink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sink.d.ts","sourceRoot":"../../../src","sources":["Sink.ts"],"names":[],"mappings":"AAAA;;GAEG;;;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"Sink.d.ts","sourceRoot":"../../../src","sources":["Sink.ts"],"names":[],"mappings":"AAAA;;GAEG;;;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAgB;AAEnD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,UAAU,EACpD,QAAQ,EAAE,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,cAAc,CAAC,EACnD,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,EAC9B,OAAO,CAAC,EAAE,mBAAmB,KAC1B,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,CAAyB,CAAA"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
3
4
|
/**
|
|
4
5
|
* @since 1.0.0
|
|
5
6
|
*/
|
|
6
7
|
import type { SizeInput } from "@effect/platform/FileSystem";
|
|
8
|
+
import type { Channel } from "effect/Channel";
|
|
9
|
+
import type { Chunk } from "effect/Chunk";
|
|
7
10
|
import type { Effect } from "effect/Effect";
|
|
8
11
|
import type { LazyArg } from "effect/Function";
|
|
9
12
|
import type { Stream } from "effect/Stream";
|
|
10
|
-
import type { Readable } from "stream";
|
|
13
|
+
import type { Duplex, Readable } from "stream";
|
|
14
|
+
import type { PlatformError } from "./Error.js";
|
|
11
15
|
/**
|
|
12
16
|
* @category models
|
|
13
17
|
* @since 1.0.0
|
|
@@ -16,28 +20,55 @@ export interface FromReadableOptions {
|
|
|
16
20
|
/** Defaults to undefined, which lets Node.js decide the chunk size */
|
|
17
21
|
readonly chunkSize?: SizeInput;
|
|
18
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @category model
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
*/
|
|
27
|
+
export interface FromWritableOptions {
|
|
28
|
+
readonly endOnDone?: boolean;
|
|
29
|
+
readonly encoding?: BufferEncoding;
|
|
30
|
+
}
|
|
19
31
|
/**
|
|
20
32
|
* @category constructors
|
|
21
33
|
* @since 1.0.0
|
|
22
34
|
*/
|
|
23
|
-
export declare const fromReadable: <E, A>(evaluate: LazyArg<Readable>, onError: (error: unknown) => E,
|
|
35
|
+
export declare const fromReadable: <E, A = Uint8Array>(evaluate: LazyArg<Readable | NodeJS.ReadableStream>, onError: (error: unknown) => E, { chunkSize }?: FromReadableOptions) => Stream<never, E, A>;
|
|
36
|
+
/**
|
|
37
|
+
* @category constructors
|
|
38
|
+
* @since 1.0.0
|
|
39
|
+
*/
|
|
40
|
+
export declare const fromDuplex: <IE, E, I = Uint8Array, O = Uint8Array>(evaluate: LazyArg<Duplex>, onError: (error: unknown) => E, options?: FromReadableOptions & FromWritableOptions) => Channel<never, IE, Chunk<I>, unknown, IE | E, Chunk<O>, void>;
|
|
41
|
+
/**
|
|
42
|
+
* @category combinators
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
export declare const pipeThroughDuplex: {
|
|
46
|
+
<E2, B = Uint8Array>(duplex: LazyArg<Duplex>, onError: (error: unknown) => E2, options?: FromReadableOptions & FromWritableOptions): <R, E, A>(self: Stream<R, E, A>) => Stream<R, E2 | E, B>;
|
|
47
|
+
<R, E, A, E2, B = Uint8Array>(self: Stream<R, E, A>, duplex: LazyArg<Duplex>, onError: (error: unknown) => E2, options?: FromReadableOptions & FromWritableOptions): Stream<R, E | E2, B>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @category combinators
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
*/
|
|
53
|
+
export declare const pipeThroughSimple: {
|
|
54
|
+
(duplex: LazyArg<Duplex>): <R, E>(self: Stream<R, E, string | Uint8Array>) => Stream<R, E | PlatformError, Uint8Array>;
|
|
55
|
+
<R, E>(self: Stream<R, E, string | Uint8Array>, duplex: LazyArg<Duplex>): Stream<R, PlatformError | E, Uint8Array>;
|
|
56
|
+
};
|
|
24
57
|
/**
|
|
25
58
|
* @since 1.0.0
|
|
26
59
|
* @category conversions
|
|
27
60
|
*/
|
|
28
|
-
export declare const toString: <E>(options: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
maxBytes?: SizeInput;
|
|
61
|
+
export declare const toString: <E>(readable: LazyArg<Readable | NodeJS.ReadableStream>, options: {
|
|
62
|
+
readonly onFailure: (error: unknown) => E;
|
|
63
|
+
readonly encoding?: BufferEncoding | undefined;
|
|
64
|
+
readonly maxBytes?: SizeInput | undefined;
|
|
33
65
|
}) => Effect<never, E, string>;
|
|
34
66
|
/**
|
|
35
67
|
* @since 1.0.0
|
|
36
68
|
* @category conversions
|
|
37
69
|
*/
|
|
38
|
-
export declare const toUint8Array: <E>(options: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
maxBytes?: SizeInput;
|
|
70
|
+
export declare const toUint8Array: <E>(readable: LazyArg<Readable | NodeJS.ReadableStream>, options: {
|
|
71
|
+
readonly onFailure: (error: unknown) => E;
|
|
72
|
+
readonly maxBytes?: SizeInput | undefined;
|
|
42
73
|
}) => Effect<never, E, Uint8Array>;
|
|
43
74
|
//# sourceMappingURL=Stream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stream.d.ts","sourceRoot":"../../../src","sources":["Stream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stream.d.ts","sourceRoot":"../../../src","sources":["Stream.ts"],"names":[],"mappings":"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"}
|
|
@@ -90,8 +90,7 @@ const stream = (source, headers) => Function.pipe(Effect__namespace.Do, Effect__
|
|
|
90
90
|
emit.end();
|
|
91
91
|
});
|
|
92
92
|
source.pipe(busboy);
|
|
93
|
-
}), part => part._tag === "File" && Chunk__namespace.some(fieldMimeTypes, _ => part.contentType.includes(_)) ? Effect__namespace.map(Stream_dist_effectPlatformNodeStream.toString({
|
|
94
|
-
readable: () => part.source,
|
|
93
|
+
}), part => part._tag === "File" && Chunk__namespace.some(fieldMimeTypes, _ => part.contentType.includes(_)) ? Effect__namespace.map(Stream_dist_effectPlatformNodeStream.toString(() => part.source, {
|
|
95
94
|
onFailure: error => FormData__namespace.FormDataError("InternalError", error)
|
|
96
95
|
}), content => new FieldImpl(part.key, part.contentType, content)) : Effect__namespace.succeed(part))), Stream__namespace.unwrapScoped);
|
|
97
96
|
class FieldImpl {
|
|
@@ -90,8 +90,7 @@ const stream = (source, headers) => Function.pipe(Effect__namespace.Do, Effect__
|
|
|
90
90
|
emit.end();
|
|
91
91
|
});
|
|
92
92
|
source.pipe(busboy);
|
|
93
|
-
}), part => part._tag === "File" && Chunk__namespace.some(fieldMimeTypes, _ => part.contentType.includes(_)) ? Effect__namespace.map(Stream_dist_effectPlatformNodeStream.toString({
|
|
94
|
-
readable: () => part.source,
|
|
93
|
+
}), part => part._tag === "File" && Chunk__namespace.some(fieldMimeTypes, _ => part.contentType.includes(_)) ? Effect__namespace.map(Stream_dist_effectPlatformNodeStream.toString(() => part.source, {
|
|
95
94
|
onFailure: error => FormData__namespace.FormDataError("InternalError", error)
|
|
96
95
|
}), content => new FieldImpl(part.key, part.contentType, content)) : Effect__namespace.succeed(part))), Stream__namespace.unwrapScoped);
|
|
97
96
|
class FieldImpl {
|
|
@@ -56,8 +56,7 @@ const stream = (source, headers) => pipe(Effect.Do, Effect.bind("maxParts", () =
|
|
|
56
56
|
emit.end();
|
|
57
57
|
});
|
|
58
58
|
source.pipe(busboy);
|
|
59
|
-
}), part => part._tag === "File" && Chunk.some(fieldMimeTypes, _ => part.contentType.includes(_)) ? Effect.map(toString({
|
|
60
|
-
readable: () => part.source,
|
|
59
|
+
}), part => part._tag === "File" && Chunk.some(fieldMimeTypes, _ => part.contentType.includes(_)) ? Effect.map(toString(() => part.source, {
|
|
61
60
|
onFailure: error => FormData.FormDataError("InternalError", error)
|
|
62
61
|
}), content => new FieldImpl(part.key, part.contentType, content)) : Effect.succeed(part))), Stream.unwrapScoped);
|
|
63
62
|
class FieldImpl {
|