From c8544aaa5b9756d515684f268bed71a324f2da3c Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Thu, 20 Jul 2023 14:44:20 -0700 Subject: [PATCH] Update timeout to Milliseconds --- CHANGELOG.md | 2 +- src/Node/ChildProcess.purs | 6 +++--- src/Node/UnsafeChildProcess/Unsafe.purs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5711154..9cec30e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,7 +45,7 @@ Breaking changes: - Restrict end-user's ability to configure `stdio` to only those appended to `safeStdio` (#46 by @JordanMartinez) See the module docs for `Node.ChildProcess`. -- All `ChildProcess`-creating functions have been updated to support no args and all args variants (#46 by @JordanMartinez) +- All `ChildProcess`-creating functions have been updated to support no args and all args variants (#46, #48 by @JordanMartinez) New features: - Added event handler for `spawn` event (#43 by @JordanMartinez) diff --git a/src/Node/ChildProcess.purs b/src/Node/ChildProcess.purs index fc902f2..0c5b7d6 100644 --- a/src/Node/ChildProcess.purs +++ b/src/Node/ChildProcess.purs @@ -338,7 +338,7 @@ type SpawnOptions = , shell :: Maybe Shell , windowsVerbatimArguments :: Maybe Boolean , windowsHide :: Maybe Boolean - , timeout :: Maybe Number + , timeout :: Maybe Milliseconds , killSignal :: Maybe KillSignal } @@ -477,7 +477,7 @@ type ExecResult = type ExecOptions = { cwd :: Maybe String , env :: Maybe (Object String) - , timeout :: Maybe Number + , timeout :: Maybe Milliseconds , maxBuffer :: Maybe Number , killSignal :: Maybe KillSignal , uid :: Maybe Uid @@ -616,7 +616,7 @@ execFile cmd args = coerce $ UnsafeCP.execFileOpts cmd args { encoding: "buffer" type ExecFileOptions = { cwd :: Maybe String , env :: Maybe (Object String) - , timeout :: Maybe Number + , timeout :: Maybe Milliseconds , maxBuffer :: Maybe Number , killSignal :: Maybe KillSignal , uid :: Maybe Uid diff --git a/src/Node/UnsafeChildProcess/Unsafe.purs b/src/Node/UnsafeChildProcess/Unsafe.purs index 51772cf..2101ac8 100644 --- a/src/Node/UnsafeChildProcess/Unsafe.purs +++ b/src/Node/UnsafeChildProcess/Unsafe.purs @@ -145,7 +145,7 @@ type JsExecOptions = ( cwd :: String , env :: Object String , encoding :: String - , timeout :: Number + , timeout :: Milliseconds , maxBuffer :: Number , killSignal :: KillSignal , uid :: Uid @@ -245,7 +245,7 @@ type JsExecFileOptions = ( cwd :: String , env :: Object String , encoding :: String - , timeout :: Number + , timeout :: Milliseconds , maxBuffer :: Number , killSignal :: KillSignal , uid :: Uid @@ -372,7 +372,7 @@ type JsSpawnOptions = , shell :: Shell , windowsVerbatimArguments :: Boolean , windowsHide :: Boolean - , timeout :: Number + , timeout :: Milliseconds , killSignal :: KillSignal )