Skip to content

Commit 390688d

Browse files
Update timeout to Milliseconds (#48)
1 parent d66ec37 commit 390688d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Breaking changes:
4545
- Restrict end-user's ability to configure `stdio` to only those appended to `safeStdio` (#46 by @JordanMartinez)
4646

4747
See the module docs for `Node.ChildProcess`.
48-
- All `ChildProcess`-creating functions have been updated to support no args and all args variants (#46 by @JordanMartinez)
48+
- All `ChildProcess`-creating functions have been updated to support no args and all args variants (#46, #48 by @JordanMartinez)
4949

5050
New features:
5151
- Added event handler for `spawn` event (#43 by @JordanMartinez)

src/Node/ChildProcess.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ type SpawnOptions =
338338
, shell :: Maybe Shell
339339
, windowsVerbatimArguments :: Maybe Boolean
340340
, windowsHide :: Maybe Boolean
341-
, timeout :: Maybe Number
341+
, timeout :: Maybe Milliseconds
342342
, killSignal :: Maybe KillSignal
343343
}
344344

@@ -477,7 +477,7 @@ type ExecResult =
477477
type ExecOptions =
478478
{ cwd :: Maybe String
479479
, env :: Maybe (Object String)
480-
, timeout :: Maybe Number
480+
, timeout :: Maybe Milliseconds
481481
, maxBuffer :: Maybe Number
482482
, killSignal :: Maybe KillSignal
483483
, uid :: Maybe Uid
@@ -616,7 +616,7 @@ execFile cmd args = coerce $ UnsafeCP.execFileOpts cmd args { encoding: "buffer"
616616
type ExecFileOptions =
617617
{ cwd :: Maybe String
618618
, env :: Maybe (Object String)
619-
, timeout :: Maybe Number
619+
, timeout :: Maybe Milliseconds
620620
, maxBuffer :: Maybe Number
621621
, killSignal :: Maybe KillSignal
622622
, uid :: Maybe Uid

src/Node/UnsafeChildProcess/Unsafe.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ type JsExecOptions =
145145
( cwd :: String
146146
, env :: Object String
147147
, encoding :: String
148-
, timeout :: Number
148+
, timeout :: Milliseconds
149149
, maxBuffer :: Number
150150
, killSignal :: KillSignal
151151
, uid :: Uid
@@ -245,7 +245,7 @@ type JsExecFileOptions =
245245
( cwd :: String
246246
, env :: Object String
247247
, encoding :: String
248-
, timeout :: Number
248+
, timeout :: Milliseconds
249249
, maxBuffer :: Number
250250
, killSignal :: KillSignal
251251
, uid :: Uid
@@ -372,7 +372,7 @@ type JsSpawnOptions =
372372
, shell :: Shell
373373
, windowsVerbatimArguments :: Boolean
374374
, windowsHide :: Boolean
375-
, timeout :: Number
375+
, timeout :: Milliseconds
376376
, killSignal :: KillSignal
377377
)
378378

0 commit comments

Comments
 (0)