@effect/platform-node-shared 0.1.14 → 0.2.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/package.json +3 -3
- package/src/internal/stream.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/platform-node-shared",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Unified interfaces for common platform-specific services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"multipasta": "^0.1.21"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"
|
|
17
|
-
"effect": "^
|
|
16
|
+
"effect": "^2.4.0",
|
|
17
|
+
"@effect/platform": "^0.46.1"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
"./package.json": "./package.json",
|
package/src/internal/stream.ts
CHANGED
|
@@ -117,7 +117,7 @@ export const fromDuplex = <IE, E, I = Uint8Array | string, O = Uint8Array>(
|
|
|
117
117
|
Effect.tap(
|
|
118
118
|
Effect.zip(
|
|
119
119
|
Effect.sync(evaluate),
|
|
120
|
-
Queue.unbounded<Either.Either<Exit.Exit<void, IE | E
|
|
120
|
+
Queue.unbounded<Either.Either<void, Exit.Exit<void, IE | E>>>()
|
|
121
121
|
),
|
|
122
122
|
([duplex, queue]) => readableOffer(duplex, queue, onError)
|
|
123
123
|
),
|
|
@@ -199,7 +199,7 @@ export const fromReadableChannel = <E, A = Uint8Array>(
|
|
|
199
199
|
Effect.tap(
|
|
200
200
|
Effect.zip(
|
|
201
201
|
Effect.sync(evaluate),
|
|
202
|
-
Queue.unbounded<Either.Either<Exit.Exit<void, E
|
|
202
|
+
Queue.unbounded<Either.Either<void, Exit.Exit<void, E>>>()
|
|
203
203
|
),
|
|
204
204
|
([readable, queue]) => readableOffer(readable, queue, onError)
|
|
205
205
|
),
|
|
@@ -270,7 +270,7 @@ export const writeEffect = <A>(
|
|
|
270
270
|
|
|
271
271
|
const readableOffer = <E>(
|
|
272
272
|
readable: Readable | NodeJS.ReadableStream,
|
|
273
|
-
queue: Queue.Queue<Either.Either<Exit.Exit<void, E
|
|
273
|
+
queue: Queue.Queue<Either.Either<void, Exit.Exit<void, E>>>,
|
|
274
274
|
onError: (error: unknown) => E
|
|
275
275
|
) =>
|
|
276
276
|
Effect.sync(() => {
|
|
@@ -293,7 +293,7 @@ const readableOffer = <E>(
|
|
|
293
293
|
|
|
294
294
|
const readableTake = <E, A>(
|
|
295
295
|
readable: Readable | NodeJS.ReadableStream,
|
|
296
|
-
queue: Queue.Queue<Either.Either<Exit.Exit<void, E
|
|
296
|
+
queue: Queue.Queue<Either.Either<void, Exit.Exit<void, E>>>,
|
|
297
297
|
chunkSize: number | undefined
|
|
298
298
|
) => {
|
|
299
299
|
const read = readChunkChannel<A>(readable, chunkSize)
|