@effect/platform-node 0.18.1 → 0.19.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.
Files changed (148) hide show
  1. package/CommandExecutor.d.ts +1 -4
  2. package/CommandExecutor.d.ts.map +1 -1
  3. package/CommandExecutor.js +4 -0
  4. package/CommandExecutor.js.map +1 -1
  5. package/FileSystem.d.ts +1 -1
  6. package/FileSystem.d.ts.map +1 -1
  7. package/FileSystem.js.map +1 -1
  8. package/Http/Etag.d.ts +1 -6
  9. package/Http/Etag.d.ts.map +1 -1
  10. package/Http/Etag.js +6 -0
  11. package/Http/Etag.js.map +1 -1
  12. package/Http/FormData.d.ts +3 -8
  13. package/Http/FormData.d.ts.map +1 -1
  14. package/Http/FormData.js +6 -0
  15. package/Http/FormData.js.map +1 -1
  16. package/Http/NodeClient.d.ts +4 -7
  17. package/Http/NodeClient.d.ts.map +1 -1
  18. package/Http/NodeClient.js +4 -0
  19. package/Http/NodeClient.js.map +1 -1
  20. package/Http/Platform.d.ts +2 -7
  21. package/Http/Platform.d.ts.map +1 -1
  22. package/Http/Platform.js +6 -0
  23. package/Http/Platform.js.map +1 -1
  24. package/Http/Server.d.ts +6 -11
  25. package/Http/Server.d.ts.map +1 -1
  26. package/Http/Server.js +6 -0
  27. package/Http/Server.js.map +1 -1
  28. package/KeyValueStore.d.ts +1 -6
  29. package/KeyValueStore.d.ts.map +1 -1
  30. package/KeyValueStore.js +1 -1
  31. package/KeyValueStore.js.map +1 -1
  32. package/NodeContext.d.ts +4 -1
  33. package/NodeContext.d.ts.map +1 -1
  34. package/NodeContext.js +3 -2
  35. package/NodeContext.js.map +1 -1
  36. package/Path.d.ts +1 -1
  37. package/Path.d.ts.map +1 -1
  38. package/Path.js.map +1 -1
  39. package/Sink.d.ts +2 -2
  40. package/Sink.d.ts.map +1 -1
  41. package/Sink.js.map +1 -1
  42. package/Stream.d.ts +3 -6
  43. package/Stream.d.ts.map +1 -1
  44. package/Stream.js +4 -0
  45. package/Stream.js.map +1 -1
  46. package/index.d.ts +55 -0
  47. package/index.d.ts.map +1 -0
  48. package/index.js +35 -0
  49. package/index.js.map +1 -0
  50. package/internal/commandExecutor.js +18 -18
  51. package/internal/commandExecutor.js.map +1 -1
  52. package/internal/fileSystem.js +7 -6
  53. package/internal/fileSystem.js.map +1 -1
  54. package/internal/http/etag.js +2 -2
  55. package/internal/http/etag.js.map +1 -1
  56. package/internal/http/formData.d.ts +1 -1
  57. package/internal/http/formData.d.ts.map +1 -1
  58. package/internal/http/formData.js +28 -27
  59. package/internal/http/formData.js.map +1 -1
  60. package/internal/http/incomingMessage.js +3 -3
  61. package/internal/http/incomingMessage.js.map +1 -1
  62. package/internal/http/nodeClient.js +7 -6
  63. package/internal/http/nodeClient.js.map +1 -1
  64. package/internal/http/platform.js +3 -2
  65. package/internal/http/platform.js.map +1 -1
  66. package/internal/http/server.js +7 -7
  67. package/internal/http/server.js.map +1 -1
  68. package/internal/path.js +2 -2
  69. package/internal/path.js.map +1 -1
  70. package/internal/runtime.js +2 -2
  71. package/internal/runtime.js.map +1 -1
  72. package/internal/sink.js +5 -4
  73. package/internal/sink.js.map +1 -1
  74. package/internal/stream.js +12 -11
  75. package/internal/stream.js.map +1 -1
  76. package/mjs/CommandExecutor.mjs +3 -0
  77. package/mjs/CommandExecutor.mjs.map +1 -1
  78. package/mjs/FileSystem.mjs.map +1 -1
  79. package/mjs/Http/Etag.mjs +5 -0
  80. package/mjs/Http/Etag.mjs.map +1 -1
  81. package/mjs/Http/FormData.mjs +5 -0
  82. package/mjs/Http/FormData.mjs.map +1 -1
  83. package/mjs/Http/NodeClient.mjs +3 -0
  84. package/mjs/Http/NodeClient.mjs.map +1 -1
  85. package/mjs/Http/Platform.mjs +5 -0
  86. package/mjs/Http/Platform.mjs.map +1 -1
  87. package/mjs/Http/Server.mjs +5 -0
  88. package/mjs/Http/Server.mjs.map +1 -1
  89. package/mjs/KeyValueStore.mjs +1 -1
  90. package/mjs/KeyValueStore.mjs.map +1 -1
  91. package/mjs/NodeContext.mjs +3 -3
  92. package/mjs/NodeContext.mjs.map +1 -1
  93. package/mjs/Path.mjs.map +1 -1
  94. package/mjs/Sink.mjs.map +1 -1
  95. package/mjs/Stream.mjs +3 -0
  96. package/mjs/Stream.mjs.map +1 -1
  97. package/mjs/index.mjs +27 -0
  98. package/mjs/index.mjs.map +1 -0
  99. package/mjs/internal/commandExecutor.mjs +18 -18
  100. package/mjs/internal/commandExecutor.mjs.map +1 -1
  101. package/mjs/internal/fileSystem.mjs +7 -6
  102. package/mjs/internal/fileSystem.mjs.map +1 -1
  103. package/mjs/internal/http/etag.mjs +2 -2
  104. package/mjs/internal/http/etag.mjs.map +1 -1
  105. package/mjs/internal/http/formData.mjs +28 -27
  106. package/mjs/internal/http/formData.mjs.map +1 -1
  107. package/mjs/internal/http/incomingMessage.mjs +3 -3
  108. package/mjs/internal/http/incomingMessage.mjs.map +1 -1
  109. package/mjs/internal/http/nodeClient.mjs +7 -6
  110. package/mjs/internal/http/nodeClient.mjs.map +1 -1
  111. package/mjs/internal/http/platform.mjs +3 -2
  112. package/mjs/internal/http/platform.mjs.map +1 -1
  113. package/mjs/internal/http/server.mjs +7 -7
  114. package/mjs/internal/http/server.mjs.map +1 -1
  115. package/mjs/internal/path.mjs +2 -2
  116. package/mjs/internal/path.mjs.map +1 -1
  117. package/mjs/internal/runtime.mjs +2 -2
  118. package/mjs/internal/runtime.mjs.map +1 -1
  119. package/mjs/internal/sink.mjs +5 -4
  120. package/mjs/internal/sink.mjs.map +1 -1
  121. package/mjs/internal/stream.mjs +12 -11
  122. package/mjs/internal/stream.mjs.map +1 -1
  123. package/package.json +15 -6
  124. package/src/CommandExecutor.ts +1 -1
  125. package/src/FileSystem.ts +1 -1
  126. package/src/Http/Etag.ts +1 -1
  127. package/src/Http/FormData.ts +3 -3
  128. package/src/Http/NodeClient.ts +4 -4
  129. package/src/Http/Platform.ts +2 -2
  130. package/src/Http/Server.ts +6 -6
  131. package/src/KeyValueStore.ts +1 -1
  132. package/src/NodeContext.ts +2 -2
  133. package/src/Path.ts +1 -1
  134. package/src/Sink.ts +2 -2
  135. package/src/Stream.ts +3 -3
  136. package/src/index.ts +66 -0
  137. package/src/internal/commandExecutor.ts +6 -6
  138. package/src/internal/fileSystem.ts +4 -4
  139. package/src/internal/http/etag.ts +2 -2
  140. package/src/internal/http/formData.ts +6 -6
  141. package/src/internal/http/incomingMessage.ts +4 -4
  142. package/src/internal/http/nodeClient.ts +6 -6
  143. package/src/internal/http/platform.ts +2 -2
  144. package/src/internal/http/server.ts +9 -9
  145. package/src/internal/path.ts +2 -2
  146. package/src/internal/runtime.ts +3 -3
  147. package/src/internal/sink.ts +4 -4
  148. package/src/internal/stream.ts +5 -5
@@ -3,15 +3,15 @@
3
3
  *
4
4
  * Also includes exports from [`@effect/platform/Http/Server`](https://effect-ts.github.io/platform/platform/Http/Server.ts.html).
5
5
  */
6
- import type { LazyArg } from "@effect/data/Function"
7
- import type * as Config from "@effect/io/Config"
8
- import type * as ConfigError from "@effect/io/ConfigError"
9
- import type * as Effect from "@effect/io/Effect"
10
- import type * as Layer from "@effect/io/Layer"
11
- import type * as Scope from "@effect/io/Scope"
12
6
  import * as internal from "@effect/platform-node/internal/http/server"
13
7
  import type * as Platform from "@effect/platform/Http/Platform"
14
8
  import type * as Server from "@effect/platform/Http/Server"
9
+ import type * as Config from "effect/Config"
10
+ import type * as ConfigError from "effect/ConfigError"
11
+ import type * as Effect from "effect/Effect"
12
+ import type { LazyArg } from "effect/Function"
13
+ import type * as Layer from "effect/Layer"
14
+ import type * as Scope from "effect/Scope"
15
15
  import type * as Http from "node:http"
16
16
  import type * as Net from "node:net"
17
17
 
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
5
5
  */
6
- import * as Layer from "@effect/io/Layer"
7
6
  import * as FileSystem from "@effect/platform-node/FileSystem"
8
7
  import * as Path from "@effect/platform-node/Path"
9
8
  import type * as PlatformError from "@effect/platform/Error"
10
9
  import * as KeyValueStore from "@effect/platform/KeyValueStore"
10
+ import * as Layer from "effect/Layer"
11
11
 
12
12
  /**
13
13
  * @since 1.0.0
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { pipe } from "@effect/data/Function"
5
- import * as Layer from "@effect/io/Layer"
6
4
  import * as CommandExecutor from "@effect/platform-node/CommandExecutor"
7
5
  import * as FileSystem from "@effect/platform-node/FileSystem"
8
6
  import * as Path from "@effect/platform-node/Path"
7
+ import { pipe } from "effect/Function"
8
+ import * as Layer from "effect/Layer"
9
9
 
10
10
  /**
11
11
  * @since 1.0.0
package/src/Path.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
 
5
- import type { Layer } from "@effect/io/Layer"
6
5
  import * as internal from "@effect/platform-node/internal/path"
7
6
  import type { Path } from "@effect/platform/Path"
7
+ import type { Layer } from "effect/Layer"
8
8
 
9
9
  export {
10
10
  /**
package/src/Sink.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
 
5
- import type { LazyArg } from "@effect/data/Function"
6
5
  import * as internal from "@effect/platform-node/internal/sink"
7
- import type { Sink } from "@effect/stream/Sink"
6
+ import type { LazyArg } from "effect/Function"
7
+ import type { Sink } from "effect/Sink"
8
8
  import type { Writable } from "stream"
9
9
 
10
10
  /**
package/src/Stream.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import type { LazyArg } from "@effect/data/Function"
5
- import type { Effect } from "@effect/io/Effect"
6
4
  import * as internal from "@effect/platform-node/internal/stream"
7
5
  import type { SizeInput } from "@effect/platform/FileSystem"
8
- import type { Stream } from "@effect/stream/Stream"
6
+ import type { Effect } from "effect/Effect"
7
+ import type { LazyArg } from "effect/Function"
8
+ import type { Stream } from "effect/Stream"
9
9
  import type { Readable } from "stream"
10
10
 
11
11
  /**
package/src/index.ts ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ export * as Command from "@effect/platform-node/Command"
5
+
6
+ /**
7
+ * @since 1.0.0
8
+ */
9
+ export * as CommandExecutor from "@effect/platform-node/CommandExecutor"
10
+
11
+ /**
12
+ * @since 1.0.0
13
+ */
14
+ export * as Effectify from "@effect/platform-node/Effectify"
15
+
16
+ /**
17
+ * @since 1.0.0
18
+ */
19
+ export * as Error from "@effect/platform-node/Error"
20
+
21
+ /**
22
+ * @since 1.0.0
23
+ */
24
+ export * as FileSystem from "@effect/platform-node/FileSystem"
25
+
26
+ /**
27
+ * @since 1.0.0
28
+ */
29
+ export * as HttpClient from "@effect/platform-node/HttpClient"
30
+
31
+ /**
32
+ * @since 1.0.0
33
+ */
34
+ export * as HttpServer from "@effect/platform-node/HttpServer"
35
+
36
+ /**
37
+ * @since 1.0.0
38
+ *
39
+ * Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
40
+ */
41
+ export * as KeyValueStore from "@effect/platform-node/KeyValueStore"
42
+
43
+ /**
44
+ * @since 1.0.0
45
+ */
46
+ export * as NodeContext from "@effect/platform-node/NodeContext"
47
+
48
+ /**
49
+ * @since 1.0.0
50
+ */
51
+ export * as Path from "@effect/platform-node/Path"
52
+
53
+ /**
54
+ * @since 1.0.0
55
+ */
56
+ export * as Runtime from "@effect/platform-node/Runtime"
57
+
58
+ /**
59
+ * @since 1.0.0
60
+ */
61
+ export * as Sink from "@effect/platform-node/Sink"
62
+
63
+ /**
64
+ * @since 1.0.0
65
+ */
66
+ export * as Stream from "@effect/platform-node/Stream"
@@ -1,7 +1,3 @@
1
- import { constUndefined, pipe } from "@effect/data/Function"
2
- import * as Option from "@effect/data/Option"
3
- import * as Effect from "@effect/io/Effect"
4
- import * as Layer from "@effect/io/Layer"
5
1
  import { handleErrnoException } from "@effect/platform-node/internal/error"
6
2
  import { fromWritable } from "@effect/platform-node/internal/sink"
7
3
  import { fromReadable } from "@effect/platform-node/internal/stream"
@@ -9,8 +5,12 @@ import * as Command from "@effect/platform/Command"
9
5
  import * as CommandExecutor from "@effect/platform/CommandExecutor"
10
6
  import type * as Error from "@effect/platform/Error"
11
7
  import * as FileSystem from "@effect/platform/FileSystem"
12
- import * as Sink from "@effect/stream/Sink"
13
- import * as Stream from "@effect/stream/Stream"
8
+ import * as Effect from "effect/Effect"
9
+ import { constUndefined, pipe } from "effect/Function"
10
+ import * as Layer from "effect/Layer"
11
+ import * as Option from "effect/Option"
12
+ import * as Sink from "effect/Sink"
13
+ import * as Stream from "effect/Stream"
14
14
  import * as ChildProcess from "node:child_process"
15
15
 
16
16
  const inputToStdioOption = (stdin: Option.Option<Command.Command.Input>): "pipe" | "inherit" =>
@@ -1,11 +1,11 @@
1
- import { pipe } from "@effect/data/Function"
2
- import * as Option from "@effect/data/Option"
3
- import * as Effect from "@effect/io/Effect"
4
- import * as Layer from "@effect/io/Layer"
5
1
  import { handleErrnoException } from "@effect/platform-node/internal/error"
6
2
  import { effectify } from "@effect/platform/Effectify"
7
3
  import * as Error from "@effect/platform/Error"
8
4
  import * as FileSystem from "@effect/platform/FileSystem"
5
+ import * as Effect from "effect/Effect"
6
+ import { pipe } from "effect/Function"
7
+ import * as Layer from "effect/Layer"
8
+ import * as Option from "effect/Option"
9
9
  import * as Crypto from "node:crypto"
10
10
  import * as NFS from "node:fs"
11
11
  import * as OS from "node:os"
@@ -1,8 +1,8 @@
1
- import * as Effect from "@effect/io/Effect"
2
- import * as Layer from "@effect/io/Layer"
3
1
  import type * as FileSystem from "@effect/platform/FileSystem"
4
2
  import type * as Body from "@effect/platform/Http/Body"
5
3
  import * as Etag from "@effect/platform/Http/Etag"
4
+ import * as Effect from "effect/Effect"
5
+ import * as Layer from "effect/Layer"
6
6
 
7
7
  const fromFileInfo = (info: FileSystem.File.Info) => {
8
8
  const mtime = info.mtime._tag === "Some"
@@ -1,14 +1,14 @@
1
- import * as Chunk from "@effect/data/Chunk"
2
- import { pipe } from "@effect/data/Function"
3
- import * as Option from "@effect/data/Option"
4
- import * as Effect from "@effect/io/Effect"
5
- import * as FiberRef from "@effect/io/FiberRef"
6
1
  import * as NodeStream from "@effect/platform-node/Stream"
7
2
  import * as FileSystem from "@effect/platform/FileSystem"
8
3
  import * as FormData from "@effect/platform/Http/FormData"
9
4
  import * as Path from "@effect/platform/Path"
10
- import * as Stream from "@effect/stream/Stream"
11
5
  import Busboy from "busboy"
6
+ import * as Chunk from "effect/Chunk"
7
+ import * as Effect from "effect/Effect"
8
+ import * as FiberRef from "effect/FiberRef"
9
+ import { pipe } from "effect/Function"
10
+ import * as Option from "effect/Option"
11
+ import * as Stream from "effect/Stream"
12
12
  import * as NodeFs from "node:fs"
13
13
  import type { IncomingHttpHeaders } from "node:http"
14
14
  import type { Readable } from "node:stream"
@@ -1,11 +1,11 @@
1
- import * as Option from "@effect/data/Option"
2
- import * as Effect from "@effect/io/Effect"
3
- import * as FiberRef from "@effect/io/FiberRef"
4
1
  import * as NodeStream from "@effect/platform-node/Stream"
5
2
  import * as Headers from "@effect/platform/Http/Headers"
6
3
  import * as IncomingMessage from "@effect/platform/Http/IncomingMessage"
7
4
  import * as UrlParams from "@effect/platform/Http/UrlParams"
8
- import type * as Stream from "@effect/stream/Stream"
5
+ import * as Effect from "effect/Effect"
6
+ import * as FiberRef from "effect/FiberRef"
7
+ import * as Option from "effect/Option"
8
+ import type * as Stream from "effect/Stream"
9
9
  import type * as Http from "node:http"
10
10
 
11
11
  /** @internal */
@@ -1,8 +1,3 @@
1
- import * as Context from "@effect/data/Context"
2
- import { pipe } from "@effect/data/Function"
3
- import * as Effect from "@effect/io/Effect"
4
- import * as Layer from "@effect/io/Layer"
5
- import type * as Scope from "@effect/io/Scope"
6
1
  import type * as NodeClient from "@effect/platform-node/Http/NodeClient"
7
2
  import { IncomingMessageImpl } from "@effect/platform-node/internal/http/incomingMessage"
8
3
  import * as NodeSink from "@effect/platform-node/Sink"
@@ -12,7 +7,12 @@ import * as Error from "@effect/platform/Http/ClientError"
12
7
  import type * as ClientRequest from "@effect/platform/Http/ClientRequest"
13
8
  import * as ClientResponse from "@effect/platform/Http/ClientResponse"
14
9
  import * as UrlParams from "@effect/platform/Http/UrlParams"
15
- import * as Stream from "@effect/stream/Stream"
10
+ import * as Context from "effect/Context"
11
+ import * as Effect from "effect/Effect"
12
+ import { pipe } from "effect/Function"
13
+ import * as Layer from "effect/Layer"
14
+ import type * as Scope from "effect/Scope"
15
+ import * as Stream from "effect/Stream"
16
16
  import * as Http from "node:http"
17
17
  import * as Https from "node:https"
18
18
  import { Readable } from "node:stream"
@@ -1,9 +1,9 @@
1
- import { pipe } from "@effect/data/Function"
2
- import * as Layer from "@effect/io/Layer"
3
1
  import * as FileSystem from "@effect/platform-node/FileSystem"
4
2
  import * as Etag from "@effect/platform-node/Http/Etag"
5
3
  import * as Platform from "@effect/platform/Http/Platform"
6
4
  import * as ServerResponse from "@effect/platform/Http/ServerResponse"
5
+ import { pipe } from "effect/Function"
6
+ import * as Layer from "effect/Layer"
7
7
  import Mime from "mime"
8
8
  import * as Fs from "node:fs"
9
9
  import { Readable } from "node:stream"
@@ -1,11 +1,3 @@
1
- import type { LazyArg } from "@effect/data/Function"
2
- import * as Option from "@effect/data/Option"
3
- import * as Config from "@effect/io/Config"
4
- import * as Effect from "@effect/io/Effect"
5
- import * as Fiber from "@effect/io/Fiber"
6
- import * as Layer from "@effect/io/Layer"
7
- import * as Runtime from "@effect/io/Runtime"
8
- import type * as Scope from "@effect/io/Scope"
9
1
  import * as internalFormData from "@effect/platform-node/internal/http/formData"
10
2
  import { IncomingMessageImpl } from "@effect/platform-node/internal/http/incomingMessage"
11
3
  import * as internalPlatform from "@effect/platform-node/internal/http/platform"
@@ -21,7 +13,15 @@ import * as Error from "@effect/platform/Http/ServerError"
21
13
  import * as ServerRequest from "@effect/platform/Http/ServerRequest"
22
14
  import type * as ServerResponse from "@effect/platform/Http/ServerResponse"
23
15
  import type * as Path from "@effect/platform/Path"
24
- import * as Stream from "@effect/stream/Stream"
16
+ import * as Config from "effect/Config"
17
+ import * as Effect from "effect/Effect"
18
+ import * as Fiber from "effect/Fiber"
19
+ import type { LazyArg } from "effect/Function"
20
+ import * as Layer from "effect/Layer"
21
+ import * as Option from "effect/Option"
22
+ import * as Runtime from "effect/Runtime"
23
+ import type * as Scope from "effect/Scope"
24
+ import * as Stream from "effect/Stream"
25
25
  import type * as Http from "node:http"
26
26
  import type * as Net from "node:net"
27
27
  import { Readable } from "node:stream"
@@ -1,7 +1,7 @@
1
- import * as Effect from "@effect/io/Effect"
2
- import * as Layer from "@effect/io/Layer"
3
1
  import { BadArgument } from "@effect/platform/Error"
4
2
  import { Path } from "@effect/platform/Path"
3
+ import * as Effect from "effect/Effect"
4
+ import * as Layer from "effect/Layer"
5
5
  import * as NodePath from "node:path"
6
6
  import * as NodeUrl from "node:url"
7
7
 
@@ -1,7 +1,7 @@
1
- import * as Effect from "@effect/io/Effect"
2
- import * as Fiber from "@effect/io/Fiber"
3
- import type * as FiberId from "@effect/io/FiberId"
4
1
  import { defaultTeardown, type RunMain } from "@effect/platform/Runtime"
2
+ import * as Effect from "effect/Effect"
3
+ import * as Fiber from "effect/Fiber"
4
+ import type * as FiberId from "effect/FiberId"
5
5
 
6
6
  /** @internal */
7
7
  export const runMain: RunMain = <E, A>(
@@ -1,8 +1,8 @@
1
- import type { LazyArg } from "@effect/data/Function"
2
- import { pipe } from "@effect/data/Function"
3
- import * as Effect from "@effect/io/Effect"
4
1
  import type { FromWritableOptions } from "@effect/platform-node/Sink"
5
- import * as Sink from "@effect/stream/Sink"
2
+ import * as Effect from "effect/Effect"
3
+ import type { LazyArg } from "effect/Function"
4
+ import { pipe } from "effect/Function"
5
+ import * as Sink from "effect/Sink"
6
6
  import type { Writable } from "node:stream"
7
7
 
8
8
  /** @internal */
@@ -1,10 +1,10 @@
1
- import type { LazyArg } from "@effect/data/Function"
2
- import { pipe } from "@effect/data/Function"
3
- import * as Option from "@effect/data/Option"
4
- import * as Effect from "@effect/io/Effect"
5
1
  import type { FromReadableOptions } from "@effect/platform-node/Stream"
6
2
  import type { SizeInput } from "@effect/platform/FileSystem"
7
- import * as Stream from "@effect/stream/Stream"
3
+ import * as Effect from "effect/Effect"
4
+ import type { LazyArg } from "effect/Function"
5
+ import { pipe } from "effect/Function"
6
+ import * as Option from "effect/Option"
7
+ import * as Stream from "effect/Stream"
8
8
  import type { Readable } from "node:stream"
9
9
 
10
10
  /** @internal */