@effect/platform 0.18.7 → 0.19.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.
Files changed (155) hide show
  1. package/Command/dist/effect-platform-Command.cjs.dev.js +419 -26
  2. package/Command/dist/effect-platform-Command.cjs.prod.js +419 -26
  3. package/Command/dist/effect-platform-Command.esm.js +382 -9
  4. package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.dev.js +72 -7
  5. package/CommandExecutor/dist/effect-platform-CommandExecutor.cjs.prod.js +72 -7
  6. package/CommandExecutor/dist/effect-platform-CommandExecutor.esm.js +71 -2
  7. package/Effectify/dist/effect-platform-Effectify.cjs.dev.js +55 -3
  8. package/Effectify/dist/effect-platform-Effectify.cjs.prod.js +55 -3
  9. package/Effectify/dist/effect-platform-Effectify.esm.js +38 -2
  10. package/Error/dist/effect-platform-Error.cjs.dev.js +87 -5
  11. package/Error/dist/effect-platform-Error.cjs.prod.js +87 -5
  12. package/Error/dist/effect-platform-Error.esm.js +68 -2
  13. package/FileSystem/dist/effect-platform-FileSystem.cjs.dev.js +287 -20
  14. package/FileSystem/dist/effect-platform-FileSystem.cjs.prod.js +287 -20
  15. package/FileSystem/dist/effect-platform-FileSystem.esm.js +256 -9
  16. package/Http/App/dist/effect-platform-Http-App.cjs.dev.js +15 -0
  17. package/Http/App/dist/effect-platform-Http-App.cjs.mjs +6 -1
  18. package/Http/App/dist/effect-platform-Http-App.cjs.prod.js +15 -0
  19. package/Http/App/dist/effect-platform-Http-App.esm.js +6 -1
  20. package/Http/Body/dist/effect-platform-Http-Body.cjs.dev.js +4 -4
  21. package/Http/Body/dist/effect-platform-Http-Body.cjs.prod.js +4 -4
  22. package/Http/Body/dist/effect-platform-Http-Body.esm.js +4 -4
  23. package/Http/Client/dist/effect-platform-Http-Client.cjs.dev.js +6 -6
  24. package/Http/Client/dist/effect-platform-Http-Client.cjs.prod.js +6 -6
  25. package/Http/Client/dist/effect-platform-Http-Client.esm.js +6 -6
  26. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.dev.js +5 -5
  27. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.cjs.prod.js +5 -5
  28. package/Http/ClientRequest/dist/effect-platform-Http-ClientRequest.esm.js +5 -5
  29. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.dev.js +4 -4
  30. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.cjs.prod.js +4 -4
  31. package/Http/ClientResponse/dist/effect-platform-Http-ClientResponse.esm.js +4 -4
  32. package/Http/FormData/dist/effect-platform-Http-FormData.cjs.dev.js +3 -3
  33. package/Http/FormData/dist/effect-platform-Http-FormData.cjs.prod.js +3 -3
  34. package/Http/FormData/dist/effect-platform-Http-FormData.esm.js +3 -3
  35. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.dev.js +2 -2
  36. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.cjs.prod.js +2 -2
  37. package/Http/IncomingMessage/dist/effect-platform-Http-IncomingMessage.esm.js +2 -2
  38. package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.dev.js +11 -11
  39. package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.mjs +0 -1
  40. package/Http/Middleware/dist/effect-platform-Http-Middleware.cjs.prod.js +11 -11
  41. package/Http/Middleware/dist/effect-platform-Http-Middleware.esm.js +11 -10
  42. package/Http/Platform/dist/effect-platform-Http-Platform.cjs.dev.js +3 -3
  43. package/Http/Platform/dist/effect-platform-Http-Platform.cjs.prod.js +3 -3
  44. package/Http/Platform/dist/effect-platform-Http-Platform.esm.js +2 -2
  45. package/Http/Router/dist/effect-platform-Http-Router.cjs.dev.js +5 -5
  46. package/Http/Router/dist/effect-platform-Http-Router.cjs.prod.js +5 -5
  47. package/Http/Router/dist/effect-platform-Http-Router.esm.js +5 -5
  48. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.dev.js +4 -4
  49. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.cjs.prod.js +4 -4
  50. package/Http/ServerRequest/dist/effect-platform-Http-ServerRequest.esm.js +4 -4
  51. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.dev.js +4 -4
  52. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.cjs.prod.js +4 -4
  53. package/Http/ServerResponse/dist/effect-platform-Http-ServerResponse.esm.js +4 -4
  54. package/HttpClient/dist/effect-platform-HttpClient.cjs.dev.js +9 -9
  55. package/HttpClient/dist/effect-platform-HttpClient.cjs.prod.js +9 -9
  56. package/HttpClient/dist/effect-platform-HttpClient.esm.js +9 -9
  57. package/HttpServer/dist/effect-platform-HttpServer.cjs.dev.js +15 -15
  58. package/HttpServer/dist/effect-platform-HttpServer.cjs.prod.js +15 -15
  59. package/HttpServer/dist/effect-platform-HttpServer.esm.js +15 -15
  60. package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.dev.js +227 -18
  61. package/KeyValueStore/dist/effect-platform-KeyValueStore.cjs.prod.js +227 -18
  62. package/KeyValueStore/dist/effect-platform-KeyValueStore.esm.js +199 -10
  63. package/Path/dist/effect-platform-Path.cjs.dev.js +142 -9
  64. package/Path/dist/effect-platform-Path.cjs.prod.js +142 -9
  65. package/Path/dist/effect-platform-Path.esm.js +122 -7
  66. package/Runtime/dist/effect-platform-Runtime.cjs.dev.js +44 -4
  67. package/Runtime/dist/effect-platform-Runtime.cjs.prod.js +44 -4
  68. package/Runtime/dist/effect-platform-Runtime.esm.js +26 -3
  69. package/dist/App-18152f12.cjs.dev.js +93 -0
  70. package/dist/App-1ca51fa7.esm.js +65 -0
  71. package/dist/App-d8b904fa.cjs.prod.js +93 -0
  72. package/dist/{Body-ec1353f9.esm.js → Body-40ced606.esm.js} +1 -1
  73. package/dist/{Body-86ef2922.cjs.dev.js → Body-4a7ad057.cjs.dev.js} +1 -1
  74. package/dist/{Body-b77eac75.cjs.prod.js → Body-c26fa93f.cjs.prod.js} +1 -1
  75. package/dist/{Client-537f76ae.cjs.prod.js → Client-03fea3d9.cjs.prod.js} +3 -3
  76. package/dist/{Client-cdbd4ff7.esm.js → Client-55ef15d5.esm.js} +3 -3
  77. package/dist/{Client-0fbb38ab.cjs.dev.js → Client-c05eadcd.cjs.dev.js} +3 -3
  78. package/dist/{ClientRequest-fc429335.esm.js → ClientRequest-490c76cd.esm.js} +1 -1
  79. package/dist/{ClientRequest-750d8d59.cjs.prod.js → ClientRequest-a729f345.cjs.prod.js} +1 -1
  80. package/dist/{ClientRequest-00e89da8.cjs.dev.js → ClientRequest-c5336a28.cjs.dev.js} +1 -1
  81. package/dist/{ClientResponse-7e4fe7b5.esm.js → ClientResponse-6e84da40.esm.js} +1 -1
  82. package/dist/{ClientResponse-f9f19afb.cjs.prod.js → ClientResponse-c19fd519.cjs.prod.js} +1 -1
  83. package/dist/{ClientResponse-75423399.cjs.dev.js → ClientResponse-df62564e.cjs.dev.js} +1 -1
  84. package/dist/{FormData-ee0b1cf2.cjs.dev.js → FormData-6d030595.cjs.prod.js} +1 -1
  85. package/dist/{FormData-902afd18.cjs.prod.js → FormData-7ea13198.cjs.dev.js} +1 -1
  86. package/dist/{FormData-f54de878.esm.js → FormData-bd727d2f.esm.js} +1 -1
  87. package/dist/{Middleware-f9a073d7.cjs.prod.js → Middleware-6de1c21d.cjs.prod.js} +14 -20
  88. package/dist/{Middleware-e2edf820.cjs.dev.js → Middleware-b1d126b4.cjs.dev.js} +14 -20
  89. package/dist/{Middleware-240f91f6.esm.js → Middleware-d38ef616.esm.js} +15 -20
  90. package/dist/{Router-bf32317a.esm.js → Router-2ee665b4.esm.js} +2 -2
  91. package/dist/{Router-bd2b3014.cjs.dev.js → Router-43e62bd9.cjs.dev.js} +2 -2
  92. package/dist/{Router-6c80a4c9.cjs.prod.js → Router-53ec1aea.cjs.prod.js} +2 -2
  93. package/dist/{ServerRequest-03161edc.esm.js → ServerRequest-a641c507.esm.js} +1 -1
  94. package/dist/{ServerRequest-8d9c2c6b.cjs.dev.js → ServerRequest-cb289dae.cjs.dev.js} +1 -1
  95. package/dist/{ServerRequest-938f3ed0.cjs.prod.js → ServerRequest-ec4da01b.cjs.prod.js} +1 -1
  96. package/dist/{ServerResponse-93038062.esm.js → ServerResponse-03c252ea.esm.js} +2 -2
  97. package/dist/{ServerResponse-b63b7192.cjs.dev.js → ServerResponse-9af42ecb.cjs.dev.js} +2 -2
  98. package/dist/{ServerResponse-eae85b08.cjs.prod.js → ServerResponse-db87bde2.cjs.prod.js} +2 -2
  99. package/dist/{body-33521da5.cjs.prod.js → body-95276637.cjs.prod.js} +3 -3
  100. package/dist/{body-c7d7a944.cjs.dev.js → body-cea7c1c9.cjs.dev.js} +3 -3
  101. package/dist/{body-20d78ec1.esm.js → body-db8cfb3d.esm.js} +1 -1
  102. package/dist/{clientRequest-3e72ec54.cjs.prod.js → clientRequest-539df396.cjs.prod.js} +1 -1
  103. package/dist/{clientRequest-1e9e0b0d.esm.js → clientRequest-6121a7f6.esm.js} +1 -1
  104. package/dist/{clientRequest-423fd562.cjs.dev.js → clientRequest-dae0c34e.cjs.dev.js} +1 -1
  105. package/dist/declarations/src/Http/App.d.ts +28 -1
  106. package/dist/declarations/src/Http/App.d.ts.map +1 -1
  107. package/dist/declarations/src/Http/Middleware.d.ts +0 -5
  108. package/dist/declarations/src/Http/Middleware.d.ts.map +1 -1
  109. package/dist/declarations/src/index.d.ts.map +1 -1
  110. package/dist/effect-platform.cjs.dev.js +49 -68
  111. package/dist/effect-platform.cjs.prod.js +49 -68
  112. package/dist/effect-platform.esm.js +20 -58
  113. package/package.json +8 -5
  114. package/src/Http/App.ts +76 -3
  115. package/src/Http/Middleware.ts +0 -6
  116. package/src/index.ts +10 -10
  117. package/src/internal/http/middleware.ts +21 -19
  118. package/src/internal/http/router.ts +1 -1
  119. package/src/internal/http/serverResponse.ts +1 -1
  120. package/dist/App-0916639a.cjs.prod.js +0 -7
  121. package/dist/App-44aa3275.cjs.dev.js +0 -7
  122. package/dist/App-687366d8.esm.js +0 -5
  123. package/dist/Command-032c414c.cjs.dev.js +0 -446
  124. package/dist/Command-25ef5e94.cjs.prod.js +0 -446
  125. package/dist/Command-d8ab0c8d.esm.js +0 -403
  126. package/dist/CommandExecutor-158ea1d3.cjs.dev.js +0 -87
  127. package/dist/CommandExecutor-5807b66b.esm.js +0 -80
  128. package/dist/CommandExecutor-7fcae408.cjs.prod.js +0 -87
  129. package/dist/Effectify-2d8c3af9.cjs.dev.js +0 -66
  130. package/dist/Effectify-38757ba5.cjs.prod.js +0 -66
  131. package/dist/Effectify-e5a9d266.esm.js +0 -43
  132. package/dist/Error-09496a70.cjs.dev.js +0 -100
  133. package/dist/Error-2c4e6ce2.cjs.prod.js +0 -100
  134. package/dist/Error-3099667c.esm.js +0 -75
  135. package/dist/FileSystem-3d439a05.cjs.prod.js +0 -308
  136. package/dist/FileSystem-4c7daaf0.cjs.dev.js +0 -308
  137. package/dist/FileSystem-7e31dccd.esm.js +0 -271
  138. package/dist/HttpClient-44d9df26.cjs.prod.js +0 -26
  139. package/dist/HttpClient-5179b5b7.esm.js +0 -24
  140. package/dist/HttpClient-6782fcab.cjs.dev.js +0 -26
  141. package/dist/HttpServer-16159c3a.cjs.dev.js +0 -32
  142. package/dist/HttpServer-50f8df76.esm.js +0 -30
  143. package/dist/HttpServer-93c0fbb3.cjs.prod.js +0 -32
  144. package/dist/KeyValueStore-2f9a70bf.esm.js +0 -210
  145. package/dist/KeyValueStore-f6c5b981.cjs.prod.js +0 -244
  146. package/dist/KeyValueStore-f9c93610.cjs.dev.js +0 -244
  147. package/dist/Path-3574641f.cjs.prod.js +0 -154
  148. package/dist/Path-46f84ba7.esm.js +0 -128
  149. package/dist/Path-7ba7e370.cjs.dev.js +0 -154
  150. package/dist/Runtime-1edd577a.cjs.dev.js +0 -55
  151. package/dist/Runtime-515efccf.cjs.prod.js +0 -55
  152. package/dist/Runtime-7265fb98.esm.js +0 -31
  153. /package/dist/{clientResponse-47df36b8.esm.js → clientResponse-0ace0007.esm.js} +0 -0
  154. /package/dist/{clientResponse-2e4c45a9.cjs.dev.js → clientResponse-43bb73b9.cjs.dev.js} +0 -0
  155. /package/dist/{clientResponse-4d53f425.cjs.prod.js → clientResponse-82dae5d8.cjs.prod.js} +0 -0
@@ -1,446 +0,0 @@
1
- 'use strict';
2
-
3
- var Chunk = require('effect/Chunk');
4
- var Effect = require('effect/Effect');
5
- var Function = require('effect/Function');
6
- var HashMap = require('effect/HashMap');
7
- var Option = require('effect/Option');
8
- var Pipeable = require('effect/Pipeable');
9
- var Stream = require('effect/Stream');
10
- var commandExecutor = require('./commandExecutor-17a55a1c.cjs.prod.js');
11
-
12
- function _interopNamespace(e) {
13
- if (e && e.__esModule) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
24
- });
25
- }
26
- n["default"] = e;
27
- return Object.freeze(n);
28
- }
29
-
30
- var Chunk__namespace = /*#__PURE__*/_interopNamespace(Chunk);
31
- var Effect__namespace = /*#__PURE__*/_interopNamespace(Effect);
32
- var HashMap__namespace = /*#__PURE__*/_interopNamespace(HashMap);
33
- var Option__namespace = /*#__PURE__*/_interopNamespace(Option);
34
- var Stream__namespace = /*#__PURE__*/_interopNamespace(Stream);
35
-
36
- /** @internal */
37
- const CommandTypeId$1 = /*#__PURE__*/Symbol.for("@effect/platform/Command");
38
-
39
- /** @internal */
40
- const isCommand$1 = u => typeof u === "object" && u != null && CommandTypeId$1 in u;
41
-
42
- /** @internal */
43
- const env$1 = /*#__PURE__*/Function.dual(2, (self, environment) => {
44
- switch (self._tag) {
45
- case "StandardCommand":
46
- {
47
- return {
48
- ...self,
49
- env: HashMap__namespace.union(self.env, HashMap__namespace.fromIterable(Object.entries(environment)))
50
- };
51
- }
52
- case "PipedCommand":
53
- {
54
- return pipeTo$1(env$1(self.left, environment), env$1(self.right, environment));
55
- }
56
- }
57
- });
58
-
59
- /** @internal */
60
- const exitCode$1 = self => Effect__namespace.flatMap(commandExecutor.CommandExecutor, executor => executor.exitCode(self));
61
-
62
- /** @internal */
63
- const feed$1 = /*#__PURE__*/Function.dual(2, (self, input) => stdin$1(self, Stream__namespace.fromChunk(Chunk__namespace.of(new TextEncoder().encode(input)))));
64
-
65
- /** @internal */
66
- const flatten$1 = self => Array.from(flattenLoop(self));
67
-
68
- /** @internal */
69
- const flattenLoop = self => {
70
- switch (self._tag) {
71
- case "StandardCommand":
72
- {
73
- return Chunk__namespace.of(self);
74
- }
75
- case "PipedCommand":
76
- {
77
- return Chunk__namespace.appendAll(flattenLoop(self.left), flattenLoop(self.right));
78
- }
79
- }
80
- };
81
-
82
- /** @internal */
83
- const lines$1 = (command, encoding = "utf-8") => Effect__namespace.flatMap(commandExecutor.CommandExecutor, executor => executor.lines(command, encoding));
84
-
85
- /** @internal */
86
- const make$1 = (command, ...args) => ({
87
- [CommandTypeId$1]: CommandTypeId$1,
88
- _tag: "StandardCommand",
89
- command,
90
- args,
91
- env: HashMap__namespace.empty(),
92
- cwd: Option__namespace.none(),
93
- // The initial process input here does not matter, we just want the child
94
- // process to default to `"pipe"` for the stdin stream.
95
- stdin: Option__namespace.some(Stream__namespace.empty),
96
- stdout: "pipe",
97
- stderr: "pipe",
98
- gid: Option__namespace.none(),
99
- uid: Option__namespace.none(),
100
- pipe() {
101
- return Pipeable.pipeArguments(this, arguments);
102
- }
103
- });
104
-
105
- /** @internal */
106
- const pipeTo$1 = /*#__PURE__*/Function.dual(2, (self, into) => ({
107
- [CommandTypeId$1]: CommandTypeId$1,
108
- _tag: "PipedCommand",
109
- left: self,
110
- right: into,
111
- pipe() {
112
- return Pipeable.pipeArguments(this, arguments);
113
- }
114
- }));
115
-
116
- /** @internal */
117
- const stderr$1 = /*#__PURE__*/Function.dual(2, (self, output) => {
118
- switch (self._tag) {
119
- case "StandardCommand":
120
- {
121
- return {
122
- ...self,
123
- stderr: output
124
- };
125
- }
126
- // For piped commands it only makes sense to provide `stderr` for the
127
- // right-most command as the rest will be piped in.
128
- case "PipedCommand":
129
- {
130
- return {
131
- ...self,
132
- right: stderr$1(self.right, output)
133
- };
134
- }
135
- }
136
- });
137
-
138
- /** @internal */
139
- const stdin$1 = /*#__PURE__*/Function.dual(2, (self, input) => {
140
- switch (self._tag) {
141
- case "StandardCommand":
142
- {
143
- return {
144
- ...self,
145
- stdin: Option__namespace.some(input)
146
- };
147
- }
148
- // For piped commands it only makes sense to provide `stdin` for the
149
- // left-most command as the rest will be piped in.
150
- case "PipedCommand":
151
- {
152
- return {
153
- ...self,
154
- left: stdin$1(self.left, input)
155
- };
156
- }
157
- }
158
- });
159
-
160
- /** @internal */
161
- const stdout$1 = /*#__PURE__*/Function.dual(2, (self, output) => {
162
- switch (self._tag) {
163
- case "StandardCommand":
164
- {
165
- return {
166
- ...self,
167
- stdout: output
168
- };
169
- }
170
- // For piped commands it only makes sense to provide `stderr` for the
171
- // right-most command as the rest will be piped in.
172
- case "PipedCommand":
173
- {
174
- return {
175
- ...self,
176
- right: stdout$1(self.right, output)
177
- };
178
- }
179
- }
180
- });
181
-
182
- /** @internal */
183
- const start$1 = command => Effect__namespace.flatMap(commandExecutor.CommandExecutor, executor => executor.start(command));
184
-
185
- /** @internal */
186
- const stream$1 = command => Stream__namespace.flatMap(commandExecutor.CommandExecutor, process => process.stream(command));
187
-
188
- /** @internal */
189
- const streamLines$1 = command => Stream__namespace.flatMap(commandExecutor.CommandExecutor, process => process.streamLines(command));
190
-
191
- /** @internal */
192
- const string$1 = /*#__PURE__*/Function.dual(args => isCommand$1(args[0]), (command, encoding) => Effect__namespace.flatMap(commandExecutor.CommandExecutor, executor => executor.string(command, encoding)));
193
-
194
- /** @internal */
195
- const workingDirectory$1 = /*#__PURE__*/Function.dual(2, (self, cwd) => {
196
- switch (self._tag) {
197
- case "StandardCommand":
198
- {
199
- return {
200
- ...self,
201
- cwd: Option__namespace.some(cwd)
202
- };
203
- }
204
- case "PipedCommand":
205
- {
206
- return pipeTo$1(workingDirectory$1(self.left, cwd), workingDirectory$1(self.right, cwd));
207
- }
208
- }
209
- });
210
-
211
- /**
212
- * @since 1.0.0
213
- */
214
-
215
- /**
216
- * @since 1.0.0
217
- */
218
- const CommandTypeId = CommandTypeId$1;
219
-
220
- /**
221
- * @since 1.0.0
222
- */
223
-
224
- /**
225
- * @since 1.0.0
226
- * @category models
227
- */
228
-
229
- /**
230
- * @since 1.0.0
231
- */
232
-
233
- /**
234
- * Configures the pipe that is established between the parent and child
235
- * processes' `stdin` stream.
236
- *
237
- * @since 1.0.0
238
- * @category models
239
- */
240
-
241
- /**
242
- * Configures the pipes that are established between the parent and child
243
- * processes `stderr` and `stdout` streams.
244
- *
245
- * @since 1.0.0
246
- * @category models
247
- */
248
-
249
- /**
250
- * @since 1.0.0
251
- * @category models
252
- */
253
-
254
- /**
255
- * @since 1.0.0
256
- * @category models
257
- */
258
-
259
- /**
260
- * Returns `true` if the specified value is a `Command`, otherwise returns
261
- * `false`.
262
- *
263
- * @since 1.0.0
264
- * @category refinements
265
- */
266
- const isCommand = isCommand$1;
267
-
268
- /**
269
- * Specify the environment variables that will be used when running this command.
270
- *
271
- * @since 1.0.0
272
- * @category combinators
273
- */
274
- const env = env$1;
275
-
276
- /**
277
- * Returns the exit code of the command after the process has completed
278
- * execution.
279
- *
280
- * @since 1.0.0
281
- * @category execution
282
- */
283
- const exitCode = exitCode$1;
284
-
285
- /**
286
- * Feed a string to standard input (default encoding of UTF-8).
287
- *
288
- * @since 1.0.0
289
- * @category combinators
290
- */
291
- const feed = feed$1;
292
-
293
- /**
294
- * Flatten this command to a non-empty array of standard commands.
295
- *
296
- * * For a `StandardCommand`, this simply returns a `1` element array
297
- * * For a `PipedCommand`, all commands in the pipe will be extracted out into
298
- * a array from left to right
299
- *
300
- * @since 1.0.0
301
- * @category combinators
302
- */
303
- const flatten = flatten$1;
304
-
305
- /**
306
- * Runs the command returning the output as an array of lines with the specified
307
- * encoding.
308
- *
309
- * @since 1.0.0
310
- * @category execution
311
- */
312
- const lines = lines$1;
313
-
314
- /**
315
- * Create a command with the specified process name and an optional list of
316
- * arguments.
317
- *
318
- * @since 1.0.0
319
- * @category constructors
320
- */
321
- const make = make$1;
322
-
323
- /**
324
- * Pipe one command to another command from left to right.
325
- *
326
- * Conceptually, the equivalent of piping one shell command to another:
327
- *
328
- * ```sh
329
- * command1 | command2
330
- * ```
331
- *
332
- * @since 1.0.0
333
- * @category combinators
334
- */
335
- const pipeTo = pipeTo$1;
336
-
337
- /**
338
- * Start running the command and return a handle to the running process.
339
- *
340
- * @since 1.0.0
341
- * @category execution
342
- */
343
- const start = start$1;
344
-
345
- /**
346
- * Start running the command and return the output as a `Stream`.
347
- *
348
- * @since 1.0.0
349
- * @category execution
350
- */
351
- const stream = stream$1;
352
-
353
- /**
354
- * Runs the command returning the output as an stream of lines with the
355
- * specified encoding.
356
- *
357
- * @since 1.0.0
358
- * @category execution
359
- */
360
- const streamLines = streamLines$1;
361
-
362
- /**
363
- * Runs the command returning the entire output as a string with the
364
- * specified encoding.
365
- *
366
- * If an encoding is not specified, the encoding will default to `utf-8`.
367
- *
368
- * @since 1.0.0
369
- * @category execution
370
- */
371
- const string = string$1;
372
-
373
- /**
374
- * Specify the standard error stream for a command.
375
- *
376
- * @since 1.0.0
377
- * @category combinators
378
- */
379
- const stderr = stderr$1;
380
-
381
- /**
382
- * Specify the standard input stream for a command.
383
- *
384
- * @since 1.0.0
385
- * @category combinators
386
- */
387
- const stdin = stdin$1;
388
-
389
- /**
390
- * Specify the standard output stream for a command.
391
- *
392
- * @since 1.0.0
393
- * @category combinators
394
- */
395
- const stdout = stdout$1;
396
-
397
- /**
398
- * Set the working directory that will be used when this command will be run.
399
- *
400
- * For piped commands, the working directory of each command will be set to the
401
- * specified working directory.
402
- *
403
- * @since 1.0.0
404
- * @category combinators
405
- */
406
- const workingDirectory = workingDirectory$1;
407
-
408
- var Command = /*#__PURE__*/Object.freeze({
409
- __proto__: null,
410
- CommandTypeId: CommandTypeId,
411
- isCommand: isCommand,
412
- env: env,
413
- exitCode: exitCode,
414
- feed: feed,
415
- flatten: flatten,
416
- lines: lines,
417
- make: make,
418
- pipeTo: pipeTo,
419
- start: start,
420
- stream: stream,
421
- streamLines: streamLines,
422
- string: string,
423
- stderr: stderr,
424
- stdin: stdin,
425
- stdout: stdout,
426
- workingDirectory: workingDirectory
427
- });
428
-
429
- exports.Command = Command;
430
- exports.CommandTypeId = CommandTypeId;
431
- exports.env = env;
432
- exports.exitCode = exitCode;
433
- exports.feed = feed;
434
- exports.flatten = flatten;
435
- exports.isCommand = isCommand;
436
- exports.lines = lines;
437
- exports.make = make;
438
- exports.pipeTo = pipeTo;
439
- exports.start = start;
440
- exports.stderr = stderr;
441
- exports.stdin = stdin;
442
- exports.stdout = stdout;
443
- exports.stream = stream;
444
- exports.streamLines = streamLines;
445
- exports.string = string;
446
- exports.workingDirectory = workingDirectory;