@dotpi/tools 2.9.2 → 2.9.5
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.
- package/dotpi_root/bin/dotpi_prepare_system +8 -0
- package/dotpi_root/dist/@dotpi/avahi-monitor-module/package.json +1 -1
- package/dotpi_root/dist/@dotpi/javascript/package.json +1 -1
- package/dotpi_root/dist/@dotpi/module/package.json +2 -2
- package/dotpi_root/dist/@dotpi/module-module/package.json +3 -3
- package/package.json +5 -5
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.d.ts +0 -279
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.js +0 -292
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/package.json +0 -49
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/readme.md +0 -337
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/LICENSE +0 -201
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/README.md +0 -180
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/core.js +0 -273
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.js +0 -70
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/realtime.js +0 -16
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/signals.js +0 -34
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/package.json +0 -64
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.d.ts +0 -35
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.js +0 -8
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/package.json +0 -41
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/readme.md +0 -58
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.js +0 -21
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/package.json +0 -47
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/readme.md +0 -35
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.d.ts +0 -90
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.js +0 -55
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/package.json +0 -52
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/readme.md +0 -104
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.d.ts +0 -31
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.js +0 -12
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/package.json +0 -41
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/readme.md +0 -57
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.d.ts +0 -18
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.js +0 -26
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/package.json +0 -49
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/readme.md +0 -34
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.d.ts +0 -279
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.js +0 -292
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/readme.md +0 -337
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/ignore.js +0 -109
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.d.ts +0 -207
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.js +0 -264
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js +0 -223
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/default.js +0 -14
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/index.d.ts +0 -29
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/node.js +0 -7
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/readme.md +0 -25
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/package.json +0 -94
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/readme.md +0 -177
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/utilities.js +0 -1
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/LICENSE +0 -201
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/README.md +0 -180
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/core.js +0 -273
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.js +0 -70
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/realtime.js +0 -16
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/signals.js +0 -34
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/package.json +0 -64
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.d.ts +0 -35
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.js +0 -8
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/package.json +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/readme.md +0 -58
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.js +0 -21
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/package.json +0 -47
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/readme.md +0 -35
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.d.ts +0 -90
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.js +0 -55
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/package.json +0 -52
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/readme.md +0 -104
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.d.ts +0 -31
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.js +0 -12
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/package.json +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/readme.md +0 -57
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.d.ts +0 -51
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.js +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/package.json +0 -47
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/readme.md +0 -74
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.d.ts +0 -23
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.js +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/package.json +0 -39
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/readme.md +0 -36
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.d.ts +0 -18
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.js +0 -26
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/readme.md +0 -34
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const SIGNALS=[
|
|
4
|
-
{
|
|
5
|
-
name:"SIGHUP",
|
|
6
|
-
number:1,
|
|
7
|
-
action:"terminate",
|
|
8
|
-
description:"Terminal closed",
|
|
9
|
-
standard:"posix"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
name:"SIGINT",
|
|
13
|
-
number:2,
|
|
14
|
-
action:"terminate",
|
|
15
|
-
description:"User interruption with CTRL-C",
|
|
16
|
-
standard:"ansi"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name:"SIGQUIT",
|
|
20
|
-
number:3,
|
|
21
|
-
action:"core",
|
|
22
|
-
description:"User interruption with CTRL-\\",
|
|
23
|
-
standard:"posix"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name:"SIGILL",
|
|
27
|
-
number:4,
|
|
28
|
-
action:"core",
|
|
29
|
-
description:"Invalid machine instruction",
|
|
30
|
-
standard:"ansi"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name:"SIGTRAP",
|
|
34
|
-
number:5,
|
|
35
|
-
action:"core",
|
|
36
|
-
description:"Debugger breakpoint",
|
|
37
|
-
standard:"posix"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name:"SIGABRT",
|
|
41
|
-
number:6,
|
|
42
|
-
action:"core",
|
|
43
|
-
description:"Aborted",
|
|
44
|
-
standard:"ansi"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name:"SIGIOT",
|
|
48
|
-
number:6,
|
|
49
|
-
action:"core",
|
|
50
|
-
description:"Aborted",
|
|
51
|
-
standard:"bsd"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name:"SIGBUS",
|
|
55
|
-
number:7,
|
|
56
|
-
action:"core",
|
|
57
|
-
description:
|
|
58
|
-
"Bus error due to misaligned, non-existing address or paging error",
|
|
59
|
-
standard:"bsd"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name:"SIGEMT",
|
|
63
|
-
number:7,
|
|
64
|
-
action:"terminate",
|
|
65
|
-
description:"Command should be emulated but is not implemented",
|
|
66
|
-
standard:"other"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name:"SIGFPE",
|
|
70
|
-
number:8,
|
|
71
|
-
action:"core",
|
|
72
|
-
description:"Floating point arithmetic error",
|
|
73
|
-
standard:"ansi"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name:"SIGKILL",
|
|
77
|
-
number:9,
|
|
78
|
-
action:"terminate",
|
|
79
|
-
description:"Forced termination",
|
|
80
|
-
standard:"posix",
|
|
81
|
-
forced:true
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name:"SIGUSR1",
|
|
85
|
-
number:10,
|
|
86
|
-
action:"terminate",
|
|
87
|
-
description:"Application-specific signal",
|
|
88
|
-
standard:"posix"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name:"SIGSEGV",
|
|
92
|
-
number:11,
|
|
93
|
-
action:"core",
|
|
94
|
-
description:"Segmentation fault",
|
|
95
|
-
standard:"ansi"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name:"SIGUSR2",
|
|
99
|
-
number:12,
|
|
100
|
-
action:"terminate",
|
|
101
|
-
description:"Application-specific signal",
|
|
102
|
-
standard:"posix"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name:"SIGPIPE",
|
|
106
|
-
number:13,
|
|
107
|
-
action:"terminate",
|
|
108
|
-
description:"Broken pipe or socket",
|
|
109
|
-
standard:"posix"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name:"SIGALRM",
|
|
113
|
-
number:14,
|
|
114
|
-
action:"terminate",
|
|
115
|
-
description:"Timeout or timer",
|
|
116
|
-
standard:"posix"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name:"SIGTERM",
|
|
120
|
-
number:15,
|
|
121
|
-
action:"terminate",
|
|
122
|
-
description:"Termination",
|
|
123
|
-
standard:"ansi"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name:"SIGSTKFLT",
|
|
127
|
-
number:16,
|
|
128
|
-
action:"terminate",
|
|
129
|
-
description:"Stack is empty or overflowed",
|
|
130
|
-
standard:"other"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name:"SIGCHLD",
|
|
134
|
-
number:17,
|
|
135
|
-
action:"ignore",
|
|
136
|
-
description:"Child process terminated, paused or unpaused",
|
|
137
|
-
standard:"posix"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name:"SIGCLD",
|
|
141
|
-
number:17,
|
|
142
|
-
action:"ignore",
|
|
143
|
-
description:"Child process terminated, paused or unpaused",
|
|
144
|
-
standard:"other"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name:"SIGCONT",
|
|
148
|
-
number:18,
|
|
149
|
-
action:"unpause",
|
|
150
|
-
description:"Unpaused",
|
|
151
|
-
standard:"posix",
|
|
152
|
-
forced:true
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name:"SIGSTOP",
|
|
156
|
-
number:19,
|
|
157
|
-
action:"pause",
|
|
158
|
-
description:"Paused",
|
|
159
|
-
standard:"posix",
|
|
160
|
-
forced:true
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name:"SIGTSTP",
|
|
164
|
-
number:20,
|
|
165
|
-
action:"pause",
|
|
166
|
-
description:"Paused using CTRL-Z or \"suspend\"",
|
|
167
|
-
standard:"posix"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name:"SIGTTIN",
|
|
171
|
-
number:21,
|
|
172
|
-
action:"pause",
|
|
173
|
-
description:"Background process cannot read terminal input",
|
|
174
|
-
standard:"posix"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name:"SIGBREAK",
|
|
178
|
-
number:21,
|
|
179
|
-
action:"terminate",
|
|
180
|
-
description:"User interruption with CTRL-BREAK",
|
|
181
|
-
standard:"other"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
name:"SIGTTOU",
|
|
185
|
-
number:22,
|
|
186
|
-
action:"pause",
|
|
187
|
-
description:"Background process cannot write to terminal output",
|
|
188
|
-
standard:"posix"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
name:"SIGURG",
|
|
192
|
-
number:23,
|
|
193
|
-
action:"ignore",
|
|
194
|
-
description:"Socket received out-of-band data",
|
|
195
|
-
standard:"bsd"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name:"SIGXCPU",
|
|
199
|
-
number:24,
|
|
200
|
-
action:"core",
|
|
201
|
-
description:"Process timed out",
|
|
202
|
-
standard:"bsd"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
name:"SIGXFSZ",
|
|
206
|
-
number:25,
|
|
207
|
-
action:"core",
|
|
208
|
-
description:"File too big",
|
|
209
|
-
standard:"bsd"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name:"SIGVTALRM",
|
|
213
|
-
number:26,
|
|
214
|
-
action:"terminate",
|
|
215
|
-
description:"Timeout or timer",
|
|
216
|
-
standard:"bsd"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
name:"SIGPROF",
|
|
220
|
-
number:27,
|
|
221
|
-
action:"terminate",
|
|
222
|
-
description:"Timeout or timer",
|
|
223
|
-
standard:"bsd"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name:"SIGWINCH",
|
|
227
|
-
number:28,
|
|
228
|
-
action:"ignore",
|
|
229
|
-
description:"Terminal window size changed",
|
|
230
|
-
standard:"bsd"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
name:"SIGIO",
|
|
234
|
-
number:29,
|
|
235
|
-
action:"terminate",
|
|
236
|
-
description:"I/O is available",
|
|
237
|
-
standard:"other"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
name:"SIGPOLL",
|
|
241
|
-
number:29,
|
|
242
|
-
action:"terminate",
|
|
243
|
-
description:"Watched event",
|
|
244
|
-
standard:"other"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
name:"SIGINFO",
|
|
248
|
-
number:29,
|
|
249
|
-
action:"ignore",
|
|
250
|
-
description:"Request for process information",
|
|
251
|
-
standard:"other"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
name:"SIGPWR",
|
|
255
|
-
number:30,
|
|
256
|
-
action:"terminate",
|
|
257
|
-
description:"Device running out of power",
|
|
258
|
-
standard:"systemv"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
name:"SIGSYS",
|
|
262
|
-
number:31,
|
|
263
|
-
action:"core",
|
|
264
|
-
description:"Invalid system call",
|
|
265
|
-
standard:"other"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
name:"SIGUNUSED",
|
|
269
|
-
number:31,
|
|
270
|
-
action:"terminate",
|
|
271
|
-
description:"Invalid system call",
|
|
272
|
-
standard:"other"
|
|
273
|
-
}];
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What is the default action for this signal when it is not handled.
|
|
3
|
-
*/
|
|
4
|
-
export type SignalAction = 'terminate' | 'core' | 'ignore' | 'pause' | 'unpause'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Which standard defined that signal.
|
|
8
|
-
*/
|
|
9
|
-
export type SignalStandard = 'ansi' | 'posix' | 'bsd' | 'systemv' | 'other'
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Standard name of the signal, for example 'SIGINT'.
|
|
13
|
-
*/
|
|
14
|
-
export type SignalName =
|
|
15
|
-
| 'SIGHUP'
|
|
16
|
-
| 'SIGINT'
|
|
17
|
-
| 'SIGQUIT'
|
|
18
|
-
| 'SIGILL'
|
|
19
|
-
| 'SIGTRAP'
|
|
20
|
-
| 'SIGABRT'
|
|
21
|
-
| 'SIGIOT'
|
|
22
|
-
| 'SIGBUS'
|
|
23
|
-
| 'SIGEMT'
|
|
24
|
-
| 'SIGFPE'
|
|
25
|
-
| 'SIGKILL'
|
|
26
|
-
| 'SIGUSR1'
|
|
27
|
-
| 'SIGSEGV'
|
|
28
|
-
| 'SIGUSR2'
|
|
29
|
-
| 'SIGPIPE'
|
|
30
|
-
| 'SIGALRM'
|
|
31
|
-
| 'SIGTERM'
|
|
32
|
-
| 'SIGSTKFLT'
|
|
33
|
-
| 'SIGCHLD'
|
|
34
|
-
| 'SIGCLD'
|
|
35
|
-
| 'SIGCONT'
|
|
36
|
-
| 'SIGSTOP'
|
|
37
|
-
| 'SIGTSTP'
|
|
38
|
-
| 'SIGTTIN'
|
|
39
|
-
| 'SIGBREAK'
|
|
40
|
-
| 'SIGTTOU'
|
|
41
|
-
| 'SIGURG'
|
|
42
|
-
| 'SIGXCPU'
|
|
43
|
-
| 'SIGXFSZ'
|
|
44
|
-
| 'SIGVTALRM'
|
|
45
|
-
| 'SIGPROF'
|
|
46
|
-
| 'SIGWINCH'
|
|
47
|
-
| 'SIGIO'
|
|
48
|
-
| 'SIGPOLL'
|
|
49
|
-
| 'SIGINFO'
|
|
50
|
-
| 'SIGPWR'
|
|
51
|
-
| 'SIGSYS'
|
|
52
|
-
| 'SIGUNUSED'
|
|
53
|
-
| 'SIGRT1'
|
|
54
|
-
| 'SIGRT2'
|
|
55
|
-
| 'SIGRT3'
|
|
56
|
-
| 'SIGRT4'
|
|
57
|
-
| 'SIGRT5'
|
|
58
|
-
| 'SIGRT6'
|
|
59
|
-
| 'SIGRT7'
|
|
60
|
-
| 'SIGRT8'
|
|
61
|
-
| 'SIGRT9'
|
|
62
|
-
| 'SIGRT10'
|
|
63
|
-
| 'SIGRT11'
|
|
64
|
-
| 'SIGRT12'
|
|
65
|
-
| 'SIGRT13'
|
|
66
|
-
| 'SIGRT14'
|
|
67
|
-
| 'SIGRT15'
|
|
68
|
-
| 'SIGRT16'
|
|
69
|
-
| 'SIGRT17'
|
|
70
|
-
| 'SIGRT18'
|
|
71
|
-
| 'SIGRT19'
|
|
72
|
-
| 'SIGRT20'
|
|
73
|
-
| 'SIGRT21'
|
|
74
|
-
| 'SIGRT22'
|
|
75
|
-
| 'SIGRT23'
|
|
76
|
-
| 'SIGRT24'
|
|
77
|
-
| 'SIGRT25'
|
|
78
|
-
| 'SIGRT26'
|
|
79
|
-
| 'SIGRT27'
|
|
80
|
-
| 'SIGRT28'
|
|
81
|
-
| 'SIGRT29'
|
|
82
|
-
| 'SIGRT30'
|
|
83
|
-
| 'SIGRT31'
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Code number of the signal, for example 2.
|
|
87
|
-
* While most number are cross-platform, some are different between different
|
|
88
|
-
* OS.
|
|
89
|
-
*/
|
|
90
|
-
export type SignalNumber =
|
|
91
|
-
| 1
|
|
92
|
-
| 2
|
|
93
|
-
| 3
|
|
94
|
-
| 4
|
|
95
|
-
| 5
|
|
96
|
-
| 6
|
|
97
|
-
| 7
|
|
98
|
-
| 8
|
|
99
|
-
| 9
|
|
100
|
-
| 10
|
|
101
|
-
| 11
|
|
102
|
-
| 12
|
|
103
|
-
| 13
|
|
104
|
-
| 14
|
|
105
|
-
| 15
|
|
106
|
-
| 16
|
|
107
|
-
| 17
|
|
108
|
-
| 18
|
|
109
|
-
| 19
|
|
110
|
-
| 20
|
|
111
|
-
| 21
|
|
112
|
-
| 22
|
|
113
|
-
| 23
|
|
114
|
-
| 24
|
|
115
|
-
| 25
|
|
116
|
-
| 26
|
|
117
|
-
| 27
|
|
118
|
-
| 28
|
|
119
|
-
| 29
|
|
120
|
-
| 30
|
|
121
|
-
| 31
|
|
122
|
-
| 34
|
|
123
|
-
| 35
|
|
124
|
-
| 36
|
|
125
|
-
| 37
|
|
126
|
-
| 38
|
|
127
|
-
| 39
|
|
128
|
-
| 40
|
|
129
|
-
| 41
|
|
130
|
-
| 42
|
|
131
|
-
| 43
|
|
132
|
-
| 44
|
|
133
|
-
| 45
|
|
134
|
-
| 46
|
|
135
|
-
| 47
|
|
136
|
-
| 48
|
|
137
|
-
| 49
|
|
138
|
-
| 50
|
|
139
|
-
| 51
|
|
140
|
-
| 52
|
|
141
|
-
| 53
|
|
142
|
-
| 54
|
|
143
|
-
| 55
|
|
144
|
-
| 56
|
|
145
|
-
| 57
|
|
146
|
-
| 58
|
|
147
|
-
| 59
|
|
148
|
-
| 60
|
|
149
|
-
| 61
|
|
150
|
-
| 62
|
|
151
|
-
| 63
|
|
152
|
-
| 64
|
|
153
|
-
|
|
154
|
-
export interface Signal {
|
|
155
|
-
/**
|
|
156
|
-
* Standard name of the signal, for example 'SIGINT'.
|
|
157
|
-
*/
|
|
158
|
-
name: SignalName
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Code number of the signal, for example 2.
|
|
162
|
-
* While most number are cross-platform, some are different between different
|
|
163
|
-
* OS.
|
|
164
|
-
*/
|
|
165
|
-
number: SignalNumber
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Human-friendly description for the signal, for example
|
|
169
|
-
* 'User interruption with CTRL-C'.
|
|
170
|
-
*/
|
|
171
|
-
description: string
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Whether the current OS can handle this signal in Node.js using
|
|
175
|
-
* `process.on(name, handler)`. The list of supported signals is OS-specific.
|
|
176
|
-
*/
|
|
177
|
-
supported: boolean
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* What is the default action for this signal when it is not handled.
|
|
181
|
-
*/
|
|
182
|
-
action: SignalAction
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Whether the signal's default action cannot be prevented.
|
|
186
|
-
* This is true for SIGTERM, SIGKILL and SIGSTOP.
|
|
187
|
-
*/
|
|
188
|
-
forced: boolean
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Which standard defined that signal.
|
|
192
|
-
*/
|
|
193
|
-
standard: SignalStandard
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Object whose keys are signal names and values are signal objects.
|
|
198
|
-
*/
|
|
199
|
-
export declare const signalsByName: { [SignalNameType in SignalName]: Signal }
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Object whose keys are signal numbers and values are signal objects.
|
|
203
|
-
*/
|
|
204
|
-
export declare const signalsByNumber: {
|
|
205
|
-
[SignalNumberType in SignalNumber]: Signal
|
|
206
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import{constants}from"node:os";
|
|
2
|
-
|
|
3
|
-
import{SIGRTMAX}from"./realtime.js";
|
|
4
|
-
import{getSignals}from"./signals.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const getSignalsByName=()=>{
|
|
9
|
-
const signals=getSignals();
|
|
10
|
-
return Object.fromEntries(signals.map(getSignalByName))
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const getSignalByName=({
|
|
14
|
-
name,
|
|
15
|
-
number,
|
|
16
|
-
description,
|
|
17
|
-
supported,
|
|
18
|
-
action,
|
|
19
|
-
forced,
|
|
20
|
-
standard
|
|
21
|
-
})=>[name,{name,number,description,supported,action,forced,standard}];
|
|
22
|
-
|
|
23
|
-
export const signalsByName=getSignalsByName();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const getSignalsByNumber=()=>{
|
|
29
|
-
const signals=getSignals();
|
|
30
|
-
const length=SIGRTMAX+1;
|
|
31
|
-
const signalsA=Array.from({length},(value,number)=>
|
|
32
|
-
getSignalByNumber(number,signals)
|
|
33
|
-
);
|
|
34
|
-
return Object.assign({},...signalsA)
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const getSignalByNumber=(number,signals)=>{
|
|
38
|
-
const signal=findSignalByNumber(number,signals);
|
|
39
|
-
|
|
40
|
-
if(signal===undefined){
|
|
41
|
-
return{}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const{name,description,supported,action,forced,standard}=signal;
|
|
45
|
-
return{
|
|
46
|
-
[number]:{
|
|
47
|
-
name,
|
|
48
|
-
number,
|
|
49
|
-
description,
|
|
50
|
-
supported,
|
|
51
|
-
action,
|
|
52
|
-
forced,
|
|
53
|
-
standard
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const findSignalByNumber=(number,signals)=>{
|
|
61
|
-
const signal=signals.find(({name})=>constants.signals[name]===number);
|
|
62
|
-
|
|
63
|
-
if(signal!==undefined){
|
|
64
|
-
return signal
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return signals.find((signalA)=>signalA.number===number)
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const signalsByNumber=getSignalsByNumber();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export const getRealtimeSignals=()=>{
|
|
3
|
-
const length=SIGRTMAX-SIGRTMIN+1;
|
|
4
|
-
return Array.from({length},getRealtimeSignal)
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const getRealtimeSignal=(value,index)=>({
|
|
8
|
-
name:`SIGRT${index+1}`,
|
|
9
|
-
number:SIGRTMIN+index,
|
|
10
|
-
action:"terminate",
|
|
11
|
-
description:"Application-specific signal (realtime)",
|
|
12
|
-
standard:"posix"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const SIGRTMIN=34;
|
|
16
|
-
export const SIGRTMAX=64;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{constants}from"node:os";
|
|
2
|
-
|
|
3
|
-
import{SIGNALS}from"./core.js";
|
|
4
|
-
import{getRealtimeSignals}from"./realtime.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export const getSignals=()=>{
|
|
9
|
-
const realtimeSignals=getRealtimeSignals();
|
|
10
|
-
const signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);
|
|
11
|
-
return signals
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const normalizeSignal=({
|
|
21
|
-
name,
|
|
22
|
-
number:defaultNumber,
|
|
23
|
-
description,
|
|
24
|
-
action,
|
|
25
|
-
forced=false,
|
|
26
|
-
standard
|
|
27
|
-
})=>{
|
|
28
|
-
const{
|
|
29
|
-
signals:{[name]:constantSignal}
|
|
30
|
-
}=constants;
|
|
31
|
-
const supported=constantSignal!==undefined;
|
|
32
|
-
const number=supported?constantSignal:defaultNumber;
|
|
33
|
-
return{name,number,description,supported,action,forced,standard}
|
|
34
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "human-signals",
|
|
3
|
-
"version": "8.0.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"exports": {
|
|
6
|
-
"types": "./build/src/main.d.ts",
|
|
7
|
-
"default": "./build/src/main.js"
|
|
8
|
-
},
|
|
9
|
-
"main": "./build/src/main.js",
|
|
10
|
-
"types": "./build/src/main.d.ts",
|
|
11
|
-
"files": [
|
|
12
|
-
"build/src/**/*.{js,json,d.ts}",
|
|
13
|
-
"!build/src/**/*.test.js",
|
|
14
|
-
"!build/src/{helpers,fixtures}"
|
|
15
|
-
],
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "gulp test"
|
|
19
|
-
},
|
|
20
|
-
"description": "Human-friendly process signals",
|
|
21
|
-
"keywords": [
|
|
22
|
-
"signal",
|
|
23
|
-
"signals",
|
|
24
|
-
"handlers",
|
|
25
|
-
"error-handling",
|
|
26
|
-
"interrupts",
|
|
27
|
-
"sigterm",
|
|
28
|
-
"sigint",
|
|
29
|
-
"irq",
|
|
30
|
-
"process",
|
|
31
|
-
"exit",
|
|
32
|
-
"exit-code",
|
|
33
|
-
"status",
|
|
34
|
-
"operating-system",
|
|
35
|
-
"es6",
|
|
36
|
-
"javascript",
|
|
37
|
-
"typescript",
|
|
38
|
-
"linux",
|
|
39
|
-
"macos",
|
|
40
|
-
"windows",
|
|
41
|
-
"nodejs"
|
|
42
|
-
],
|
|
43
|
-
"license": "Apache-2.0",
|
|
44
|
-
"homepage": "https://www.github.com/ehmicky/human-signals",
|
|
45
|
-
"repository": {
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "git+https://github.com/ehmicky/human-signals.git"
|
|
48
|
-
},
|
|
49
|
-
"bugs": {
|
|
50
|
-
"url": "https://github.com/ehmicky/human-signals/issues"
|
|
51
|
-
},
|
|
52
|
-
"author": "ehmicky <ehmicky@gmail.com> (https://github.com/ehmicky)",
|
|
53
|
-
"directories": {
|
|
54
|
-
"lib": "src"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@ehmicky/dev-tasks": "^3.0.5",
|
|
58
|
-
"ajv": "^8.17.1",
|
|
59
|
-
"test-each": "^7.0.0"
|
|
60
|
-
},
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=18.18.0"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Check if a value is a plain object.
|
|
3
|
-
|
|
4
|
-
An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`.
|
|
5
|
-
|
|
6
|
-
@example
|
|
7
|
-
```
|
|
8
|
-
import isPlainObject from 'is-plain-obj';
|
|
9
|
-
import {runInNewContext} from 'node:vm';
|
|
10
|
-
|
|
11
|
-
isPlainObject({foo: 'bar'});
|
|
12
|
-
//=> true
|
|
13
|
-
|
|
14
|
-
isPlainObject(new Object());
|
|
15
|
-
//=> true
|
|
16
|
-
|
|
17
|
-
isPlainObject(Object.create(null));
|
|
18
|
-
//=> true
|
|
19
|
-
|
|
20
|
-
// This works across realms
|
|
21
|
-
isPlainObject(runInNewContext('({})'));
|
|
22
|
-
//=> true
|
|
23
|
-
|
|
24
|
-
isPlainObject([1, 2, 3]);
|
|
25
|
-
//=> false
|
|
26
|
-
|
|
27
|
-
class Unicorn {}
|
|
28
|
-
isPlainObject(new Unicorn());
|
|
29
|
-
//=> false
|
|
30
|
-
|
|
31
|
-
isPlainObject(Math);
|
|
32
|
-
//=> false
|
|
33
|
-
```
|
|
34
|
-
*/
|
|
35
|
-
export default function isPlainObject<Value>(value: unknown): value is Record<PropertyKey, Value>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export default function isPlainObject(value) {
|
|
2
|
-
if (typeof value !== 'object' || value === null) {
|
|
3
|
-
return false;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
const prototype = Object.getPrototypeOf(value);
|
|
7
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|