@effect/platform-node 0.21.0 → 0.22.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/CommandExecutor/dist/effect-platform-node-CommandExecutor.cjs.dev.js +7 -2
- package/CommandExecutor/dist/effect-platform-node-CommandExecutor.cjs.prod.js +7 -2
- package/CommandExecutor/dist/effect-platform-node-CommandExecutor.esm.js +7 -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 +10 -4
- package/Http/NodeClient/dist/effect-platform-node-Http-NodeClient.cjs.prod.js +10 -4
- package/Http/NodeClient/dist/effect-platform-node-Http-NodeClient.esm.js +10 -4
- package/Http/Server/dist/effect-platform-node-Http-Server.cjs.dev.js +12 -8
- package/Http/Server/dist/effect-platform-node-Http-Server.cjs.prod.js +12 -8
- package/Http/Server/dist/effect-platform-node-Http-Server.esm.js +12 -8
- package/HttpClient/dist/effect-platform-node-HttpClient.cjs.dev.js +10 -4
- package/HttpClient/dist/effect-platform-node-HttpClient.cjs.prod.js +10 -4
- package/HttpClient/dist/effect-platform-node-HttpClient.esm.js +10 -4
- package/HttpServer/dist/effect-platform-node-HttpServer.cjs.dev.js +11 -7
- package/HttpServer/dist/effect-platform-node-HttpServer.cjs.prod.js +11 -7
- package/HttpServer/dist/effect-platform-node-HttpServer.esm.js +11 -7
- package/NodeContext/dist/effect-platform-node-NodeContext.cjs.dev.js +7 -2
- package/NodeContext/dist/effect-platform-node-NodeContext.cjs.prod.js +7 -2
- package/NodeContext/dist/effect-platform-node-NodeContext.esm.js +7 -2
- package/Sink/dist/effect-platform-node-Sink.cjs.dev.js +10 -8
- package/Sink/dist/effect-platform-node-Sink.cjs.prod.js +10 -8
- package/Sink/dist/effect-platform-node-Sink.esm.js +10 -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-d91e8016.cjs.prod.js → FormData-33600671.cjs.prod.js} +1 -1
- package/dist/{FormData-5ea8a8b6.esm.js → FormData-aba95773.esm.js} +1 -1
- package/dist/{FormData-15af6672.cjs.dev.js → FormData-b905ea51.cjs.dev.js} +1 -1
- package/dist/{NodeClient-3432a6a8.cjs.prod.js → NodeClient-174ebaf2.cjs.prod.js} +1 -1
- package/dist/{NodeClient-ebd71893.cjs.dev.js → NodeClient-86d70074.cjs.dev.js} +1 -1
- package/dist/{NodeClient-cd56cae8.esm.js → NodeClient-f1038dc6.esm.js} +1 -1
- package/dist/{Server-5dbcee7b.cjs.prod.js → Server-015ebdb2.cjs.prod.js} +2 -2
- package/dist/{Server-c08c825c.esm.js → Server-07db176b.esm.js} +2 -2
- package/dist/{Server-5f055bfd.cjs.dev.js → Server-d00836e3.cjs.dev.js} +2 -2
- package/dist/declarations/src/Sink.d.ts +1 -9
- package/dist/declarations/src/Sink.d.ts.map +1 -1
- package/dist/declarations/src/Stream.d.ts +34 -2
- package/dist/declarations/src/Stream.d.ts.map +1 -1
- package/dist/sink-5526bd6c.cjs.prod.js +52 -0
- package/dist/sink-a2069d86.cjs.dev.js +52 -0
- package/dist/sink-f7795af1.esm.js +28 -0
- package/dist/stream-36ca9d0a.esm.js +176 -0
- package/dist/stream-c01737c4.cjs.prod.js +210 -0
- package/dist/stream-c0c7bc20.cjs.dev.js +210 -0
- package/package.json +5 -5
- package/src/Sink.ts +1 -9
- package/src/Stream.ts +52 -3
- package/src/internal/sink.ts +28 -48
- package/src/internal/stream.ts +230 -49
- package/src/tsconfig.json +48 -0
- 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
- /package/dist/{formData-632b1146.cjs.dev.js → formData-00b767b9.cjs.dev.js} +0 -0
- /package/dist/{formData-dd75bbe1.esm.js → formData-3a02d09f.esm.js} +0 -0
- /package/dist/{formData-ecf6742b.cjs.prod.js → formData-59e5f494.cjs.prod.js} +0 -0
- /package/dist/{incomingMessage-86bcf94d.cjs.dev.js → incomingMessage-587c8285.cjs.dev.js} +0 -0
- /package/dist/{incomingMessage-11c9bea6.esm.js → incomingMessage-6970f455.esm.js} +0 -0
- /package/dist/{incomingMessage-f56be93e.cjs.prod.js → incomingMessage-890fef7a.cjs.prod.js} +0 -0
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Effect = require('effect/Effect');
|
|
4
|
-
var Function = require('effect/Function');
|
|
5
|
-
var Option = require('effect/Option');
|
|
6
|
-
var Stream = require('effect/Stream');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n["default"] = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
|
|
27
|
-
var Option__namespace = /*#__PURE__*/_interopNamespace(Option);
|
|
28
|
-
var Stream__namespace = /*#__PURE__*/_interopNamespace(Stream);
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
const fromReadable = (evaluate, onError, {
|
|
32
|
-
chunkSize
|
|
33
|
-
} = {}) => Function.pipe(Effect__namespace.acquireRelease(Effect__namespace.sync(evaluate), stream => Effect__namespace.sync(() => {
|
|
34
|
-
stream.removeAllListeners();
|
|
35
|
-
if (!stream.closed) {
|
|
36
|
-
stream.destroy();
|
|
37
|
-
}
|
|
38
|
-
})), Effect__namespace.map(stream => Stream__namespace.async(emit => {
|
|
39
|
-
stream.once("error", err => {
|
|
40
|
-
emit.fail(onError(err));
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// The 'close' event is emitted after a process has ended and the stdio
|
|
44
|
-
// streams of a child process have been closed. This is distinct from
|
|
45
|
-
// the 'exit' event, since multiple processes might share the same
|
|
46
|
-
// stdio streams. The 'close' event will always emit after 'exit' was
|
|
47
|
-
// already emitted, or 'error' if the child failed to spawn.
|
|
48
|
-
stream.once("close", () => {
|
|
49
|
-
emit.end();
|
|
50
|
-
});
|
|
51
|
-
stream.on("readable", () => {
|
|
52
|
-
emit.single(stream);
|
|
53
|
-
});
|
|
54
|
-
if (stream.readable) {
|
|
55
|
-
emit.single(stream);
|
|
56
|
-
}
|
|
57
|
-
}, 1)), Stream__namespace.unwrapScoped, Stream__namespace.flatMap(_ => Stream__namespace.repeatEffectOption(readChunk(_, chunkSize))));
|
|
58
|
-
const readChunk = (stream, size) => Function.pipe(Effect__namespace.sync(() => size ? stream.read(Number(size)) : stream.read()), Effect__namespace.flatMap(_ => _ ? Effect__namespace.succeed(_) : Effect__namespace.fail(Option__namespace.none())));
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
const toString = options => {
|
|
62
|
-
const maxBytesNumber = options.maxBytes ? Number(options.maxBytes) : undefined;
|
|
63
|
-
return Effect__namespace.acquireUseRelease(Effect__namespace.sync(() => {
|
|
64
|
-
const stream = options.readable();
|
|
65
|
-
stream.setEncoding(options.encoding ?? "utf8");
|
|
66
|
-
return stream;
|
|
67
|
-
}), stream => Effect__namespace.async(resume => {
|
|
68
|
-
let string = "";
|
|
69
|
-
let bytes = 0;
|
|
70
|
-
stream.once("error", err => {
|
|
71
|
-
resume(Effect__namespace.fail(options.onFailure(err)));
|
|
72
|
-
});
|
|
73
|
-
stream.once("end", () => {
|
|
74
|
-
resume(Effect__namespace.succeed(string));
|
|
75
|
-
});
|
|
76
|
-
stream.on("data", chunk => {
|
|
77
|
-
string += chunk;
|
|
78
|
-
bytes += Buffer.byteLength(chunk);
|
|
79
|
-
if (maxBytesNumber && bytes > maxBytesNumber) {
|
|
80
|
-
resume(Effect__namespace.fail(options.onFailure(new Error("maxBytes exceeded"))));
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}), stream => Effect__namespace.sync(() => {
|
|
84
|
-
stream.removeAllListeners();
|
|
85
|
-
if (!stream.closed) {
|
|
86
|
-
stream.destroy();
|
|
87
|
-
}
|
|
88
|
-
}));
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
const toUint8Array = options => {
|
|
93
|
-
const maxBytesNumber = options.maxBytes ? Number(options.maxBytes) : undefined;
|
|
94
|
-
return Effect__namespace.acquireUseRelease(Effect__namespace.sync(options.readable), stream => Effect__namespace.async(resume => {
|
|
95
|
-
let buffer = Buffer.alloc(0);
|
|
96
|
-
let bytes = 0;
|
|
97
|
-
stream.once("error", err => {
|
|
98
|
-
resume(Effect__namespace.fail(options.onFailure(err)));
|
|
99
|
-
});
|
|
100
|
-
stream.once("end", () => {
|
|
101
|
-
resume(Effect__namespace.succeed(buffer));
|
|
102
|
-
});
|
|
103
|
-
stream.on("data", chunk => {
|
|
104
|
-
buffer = Buffer.concat([buffer, chunk]);
|
|
105
|
-
bytes += chunk.length;
|
|
106
|
-
if (maxBytesNumber && bytes > maxBytesNumber) {
|
|
107
|
-
resume(Effect__namespace.fail(options.onFailure(new Error("maxBytes exceeded"))));
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}), stream => Effect__namespace.sync(() => {
|
|
111
|
-
stream.removeAllListeners();
|
|
112
|
-
if (!stream.closed) {
|
|
113
|
-
stream.destroy();
|
|
114
|
-
}
|
|
115
|
-
}));
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
exports.fromReadable = fromReadable;
|
|
119
|
-
exports.toString = toString;
|
|
120
|
-
exports.toUint8Array = toUint8Array;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import { pipe } from 'effect/Function';
|
|
3
|
-
import * as Option from 'effect/Option';
|
|
4
|
-
import * as Stream from 'effect/Stream';
|
|
5
|
-
|
|
6
|
-
/** @internal */
|
|
7
|
-
const fromReadable = (evaluate, onError, {
|
|
8
|
-
chunkSize
|
|
9
|
-
} = {}) => pipe(Effect.acquireRelease(Effect.sync(evaluate), stream => Effect.sync(() => {
|
|
10
|
-
stream.removeAllListeners();
|
|
11
|
-
if (!stream.closed) {
|
|
12
|
-
stream.destroy();
|
|
13
|
-
}
|
|
14
|
-
})), Effect.map(stream => Stream.async(emit => {
|
|
15
|
-
stream.once("error", err => {
|
|
16
|
-
emit.fail(onError(err));
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// The 'close' event is emitted after a process has ended and the stdio
|
|
20
|
-
// streams of a child process have been closed. This is distinct from
|
|
21
|
-
// the 'exit' event, since multiple processes might share the same
|
|
22
|
-
// stdio streams. The 'close' event will always emit after 'exit' was
|
|
23
|
-
// already emitted, or 'error' if the child failed to spawn.
|
|
24
|
-
stream.once("close", () => {
|
|
25
|
-
emit.end();
|
|
26
|
-
});
|
|
27
|
-
stream.on("readable", () => {
|
|
28
|
-
emit.single(stream);
|
|
29
|
-
});
|
|
30
|
-
if (stream.readable) {
|
|
31
|
-
emit.single(stream);
|
|
32
|
-
}
|
|
33
|
-
}, 1)), Stream.unwrapScoped, Stream.flatMap(_ => Stream.repeatEffectOption(readChunk(_, chunkSize))));
|
|
34
|
-
const readChunk = (stream, size) => pipe(Effect.sync(() => size ? stream.read(Number(size)) : stream.read()), Effect.flatMap(_ => _ ? Effect.succeed(_) : Effect.fail(Option.none())));
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
const toString = options => {
|
|
38
|
-
const maxBytesNumber = options.maxBytes ? Number(options.maxBytes) : undefined;
|
|
39
|
-
return Effect.acquireUseRelease(Effect.sync(() => {
|
|
40
|
-
const stream = options.readable();
|
|
41
|
-
stream.setEncoding(options.encoding ?? "utf8");
|
|
42
|
-
return stream;
|
|
43
|
-
}), stream => Effect.async(resume => {
|
|
44
|
-
let string = "";
|
|
45
|
-
let bytes = 0;
|
|
46
|
-
stream.once("error", err => {
|
|
47
|
-
resume(Effect.fail(options.onFailure(err)));
|
|
48
|
-
});
|
|
49
|
-
stream.once("end", () => {
|
|
50
|
-
resume(Effect.succeed(string));
|
|
51
|
-
});
|
|
52
|
-
stream.on("data", chunk => {
|
|
53
|
-
string += chunk;
|
|
54
|
-
bytes += Buffer.byteLength(chunk);
|
|
55
|
-
if (maxBytesNumber && bytes > maxBytesNumber) {
|
|
56
|
-
resume(Effect.fail(options.onFailure(new Error("maxBytes exceeded"))));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}), stream => Effect.sync(() => {
|
|
60
|
-
stream.removeAllListeners();
|
|
61
|
-
if (!stream.closed) {
|
|
62
|
-
stream.destroy();
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
const toUint8Array = options => {
|
|
69
|
-
const maxBytesNumber = options.maxBytes ? Number(options.maxBytes) : undefined;
|
|
70
|
-
return Effect.acquireUseRelease(Effect.sync(options.readable), stream => Effect.async(resume => {
|
|
71
|
-
let buffer = Buffer.alloc(0);
|
|
72
|
-
let bytes = 0;
|
|
73
|
-
stream.once("error", err => {
|
|
74
|
-
resume(Effect.fail(options.onFailure(err)));
|
|
75
|
-
});
|
|
76
|
-
stream.once("end", () => {
|
|
77
|
-
resume(Effect.succeed(buffer));
|
|
78
|
-
});
|
|
79
|
-
stream.on("data", chunk => {
|
|
80
|
-
buffer = Buffer.concat([buffer, chunk]);
|
|
81
|
-
bytes += chunk.length;
|
|
82
|
-
if (maxBytesNumber && bytes > maxBytesNumber) {
|
|
83
|
-
resume(Effect.fail(options.onFailure(new Error("maxBytes exceeded"))));
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}), stream => Effect.sync(() => {
|
|
87
|
-
stream.removeAllListeners();
|
|
88
|
-
if (!stream.closed) {
|
|
89
|
-
stream.destroy();
|
|
90
|
-
}
|
|
91
|
-
}));
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export { toUint8Array as a, fromReadable as f, toString as t };
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Effect = require('effect/Effect');
|
|
4
|
-
var Function = require('effect/Function');
|
|
5
|
-
var Option = require('effect/Option');
|
|
6
|
-
var Stream = require('effect/Stream');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n["default"] = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
|
|
27
|
-
var Option__namespace = /*#__PURE__*/_interopNamespace(Option);
|
|
28
|
-
var Stream__namespace = /*#__PURE__*/_interopNamespace(Stream);
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
const fromReadable = (evaluate, onError, {
|
|
32
|
-
chunkSize
|
|
33
|
-
} = {}) => Function.pipe(Effect__namespace.acquireRelease(Effect__namespace.sync(evaluate), stream => Effect__namespace.sync(() => {
|
|
34
|
-
stream.removeAllListeners();
|
|
35
|
-
if (!stream.closed) {
|
|
36
|
-
stream.destroy();
|
|
37
|
-
}
|
|
38
|
-
})), Effect__namespace.map(stream => Stream__namespace.async(emit => {
|
|
39
|
-
stream.once("error", err => {
|
|
40
|
-
emit.fail(onError(err));
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// The 'close' event is emitted after a process has ended and the stdio
|
|
44
|
-
// streams of a child process have been closed. This is distinct from
|
|
45
|
-
// the 'exit' event, since multiple processes might share the same
|
|
46
|
-
// stdio streams. The 'close' event will always emit after 'exit' was
|
|
47
|
-
// already emitted, or 'error' if the child failed to spawn.
|
|
48
|
-
stream.once("close", () => {
|
|
49
|
-
emit.end();
|
|
50
|
-
});
|
|
51
|
-
stream.on("readable", () => {
|
|
52
|
-
emit.single(stream);
|
|
53
|
-
});
|
|
54
|
-
if (stream.readable) {
|
|
55
|
-
emit.single(stream);
|
|
56
|
-
}
|
|
57
|
-
}, 1)), Stream__namespace.unwrapScoped, Stream__namespace.flatMap(_ => Stream__namespace.repeatEffectOption(readChunk(_, chunkSize))));
|
|
58
|
-
const readChunk = (stream, size) => Function.pipe(Effect__namespace.sync(() => size ? stream.read(Number(size)) : stream.read()), Effect__namespace.flatMap(_ => _ ? Effect__namespace.succeed(_) : Effect__namespace.fail(Option__namespace.none())));
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
const toString = options => {
|
|
62
|
-
const maxBytesNumber = options.maxBytes ? Number(options.maxBytes) : undefined;
|
|
63
|
-
return Effect__namespace.acquireUseRelease(Effect__namespace.sync(() => {
|
|
64
|
-
const stream = options.readable();
|
|
65
|
-
stream.setEncoding(options.encoding ?? "utf8");
|
|
66
|
-
return stream;
|
|
67
|
-
}), stream => Effect__namespace.async(resume => {
|
|
68
|
-
let string = "";
|
|
69
|
-
let bytes = 0;
|
|
70
|
-
stream.once("error", err => {
|
|
71
|
-
resume(Effect__namespace.fail(options.onFailure(err)));
|
|
72
|
-
});
|
|
73
|
-
stream.once("end", () => {
|
|
74
|
-
resume(Effect__namespace.succeed(string));
|
|
75
|
-
});
|
|
76
|
-
stream.on("data", chunk => {
|
|
77
|
-
string += chunk;
|
|
78
|
-
bytes += Buffer.byteLength(chunk);
|
|
79
|
-
if (maxBytesNumber && bytes > maxBytesNumber) {
|
|
80
|
-
resume(Effect__namespace.fail(options.onFailure(new Error("maxBytes exceeded"))));
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}), stream => Effect__namespace.sync(() => {
|
|
84
|
-
stream.removeAllListeners();
|
|
85
|
-
if (!stream.closed) {
|
|
86
|
-
stream.destroy();
|
|
87
|
-
}
|
|
88
|
-
}));
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
const toUint8Array = options => {
|
|
93
|
-
const maxBytesNumber = options.maxBytes ? Number(options.maxBytes) : undefined;
|
|
94
|
-
return Effect__namespace.acquireUseRelease(Effect__namespace.sync(options.readable), stream => Effect__namespace.async(resume => {
|
|
95
|
-
let buffer = Buffer.alloc(0);
|
|
96
|
-
let bytes = 0;
|
|
97
|
-
stream.once("error", err => {
|
|
98
|
-
resume(Effect__namespace.fail(options.onFailure(err)));
|
|
99
|
-
});
|
|
100
|
-
stream.once("end", () => {
|
|
101
|
-
resume(Effect__namespace.succeed(buffer));
|
|
102
|
-
});
|
|
103
|
-
stream.on("data", chunk => {
|
|
104
|
-
buffer = Buffer.concat([buffer, chunk]);
|
|
105
|
-
bytes += chunk.length;
|
|
106
|
-
if (maxBytesNumber && bytes > maxBytesNumber) {
|
|
107
|
-
resume(Effect__namespace.fail(options.onFailure(new Error("maxBytes exceeded"))));
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}), stream => Effect__namespace.sync(() => {
|
|
111
|
-
stream.removeAllListeners();
|
|
112
|
-
if (!stream.closed) {
|
|
113
|
-
stream.destroy();
|
|
114
|
-
}
|
|
115
|
-
}));
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
exports.fromReadable = fromReadable;
|
|
119
|
-
exports.toString = toString;
|
|
120
|
-
exports.toUint8Array = toUint8Array;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|