File tree 3 files changed +21
-2
lines changed
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,15 @@ Bugfixes:
12
12
13
13
Other improvements:
14
14
15
+ ## [ v11.1.0] ( https://github.com/purescript-node/purescript-node-process/releases/tag/v11.1.0 ) - 2023-07-24
16
+
17
+ New Features:
18
+ - Add FFI for ` getUid ` /` getPid ` (#43 by @JordanMartinez )
19
+
15
20
## [ v11.0.1] ( https://github.com/purescript-node/purescript-node-process/releases/tag/v11.0.1 ) - 2023-07-21
16
21
17
22
Bugfixes:
18
- - Fix FFI for ` channelRef ` /` channelUnref ` (#40 by @JordanMartinez )
23
+ - Fix FFI for ` channelRef ` /` channelUnref ` (#42 by @JordanMartinez )
19
24
20
25
## [ v11.0.0] ( https://github.com/purescript-node/purescript-node-process/releases/tag/v11.0.0 ) - 2023-07-21
21
26
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ export const setExitCodeImpl = (code) => {
30
30
process . exitCode = code ;
31
31
} ;
32
32
export const getExitCodeImpl = ( ) => process . exitCode ;
33
+ export const getGidImpl = ( ) => process . getgid ( ) ;
34
+ export const getUidImpl = ( ) => process . getuid ( ) ;
33
35
export const hasUncaughtExceptionCaptureCallback = ( ) => process . hasUncaughtExceptionCaptureCallback ;
34
36
export const killImpl = ( pid ) => process . kill ( pid ) ;
35
37
export const killStrImpl = ( pid , sig ) => process . kill ( pid , sig ) ;
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ module Node.Process
38
38
, exit'
39
39
, setExitCode
40
40
, getExitCode
41
+ , getGid
42
+ , getUid
41
43
, hasUncaughtExceptionCaptureCallback
42
44
, kill
43
45
, killStr
@@ -76,7 +78,7 @@ import Prelude
76
78
77
79
import Data.Maybe (Maybe )
78
80
import Data.Nullable (Nullable , toMaybe )
79
- import Data.Posix (Pid )
81
+ import Data.Posix (Gid , Pid , Uid )
80
82
import Data.Posix.Signal (Signal )
81
83
import Data.Posix.Signal as Signal
82
84
import Data.String as String
@@ -384,6 +386,16 @@ getExitCode = map toMaybe getExitCodeImpl
384
386
385
387
foreign import getExitCodeImpl :: Effect (Nullable Int )
386
388
389
+ getGid :: Effect (Maybe Gid )
390
+ getGid = map toMaybe getGidImpl
391
+
392
+ foreign import getGidImpl :: Effect (Nullable Gid )
393
+
394
+ getUid :: Effect (Maybe Uid )
395
+ getUid = map toMaybe getUidImpl
396
+
397
+ foreign import getUidImpl :: Effect (Nullable Uid )
398
+
387
399
foreign import hasUncaughtExceptionCaptureCallback :: Effect (Boolean )
388
400
389
401
kill :: Pid -> Effect Unit
You can’t perform that action at this time.
0 commit comments