serverless-spy 2.2.4 → 2.2.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/.jsii +3 -3
- package/dist/releasetag.txt +1 -1
- package/lib/src/ServerlessSpy.js +1 -1
- package/node_modules/bundle-name/index.js +2 -2
- package/node_modules/bundle-name/package.json +6 -5
- package/node_modules/bundle-name/readme.md +2 -2
- package/node_modules/default-browser/index.d.ts +5 -4
- package/node_modules/default-browser/index.js +13 -11
- package/node_modules/default-browser/package.json +14 -12
- package/node_modules/default-browser/windows.js +11 -5
- package/node_modules/default-browser-id/index.js +8 -32
- package/node_modules/default-browser-id/package.json +5 -8
- package/node_modules/default-browser-id/readme.md +2 -2
- package/node_modules/open/index.js +10 -10
- package/node_modules/{is-wsl → open/node_modules/is-wsl}/index.d.ts +2 -2
- package/node_modules/open/node_modules/is-wsl/index.js +27 -0
- package/node_modules/{is-wsl → open/node_modules/is-wsl}/package.json +21 -9
- package/node_modules/open/node_modules/is-wsl/readme.md +21 -0
- package/node_modules/open/package.json +9 -8
- package/node_modules/open/xdg-open +338 -137
- package/node_modules/run-applescript/index.d.ts +28 -4
- package/node_modules/run-applescript/index.js +20 -7
- package/node_modules/run-applescript/package.json +10 -9
- package/node_modules/run-applescript/readme.md +44 -6
- package/package.json +2 -2
- package/node_modules/big-integer/BigInteger.d.ts +0 -2393
- package/node_modules/big-integer/BigInteger.js +0 -1453
- package/node_modules/big-integer/BigInteger.min.js +0 -1
- package/node_modules/big-integer/LICENSE +0 -24
- package/node_modules/big-integer/README.md +0 -589
- package/node_modules/big-integer/bower.json +0 -29
- package/node_modules/big-integer/package.json +0 -48
- package/node_modules/big-integer/tsconfig.json +0 -24
- package/node_modules/bplist-parser/README.md +0 -48
- package/node_modules/bplist-parser/bplistParser.js +0 -363
- package/node_modules/bplist-parser/package.json +0 -34
- package/node_modules/bplist-parser/test/airplay.bplist +0 -0
- package/node_modules/bplist-parser/test/iTunes-small.bplist +0 -0
- package/node_modules/bplist-parser/test/int64.bplist +0 -0
- package/node_modules/bplist-parser/test/int64.xml +0 -10
- package/node_modules/bplist-parser/test/parseTest.js +0 -104
- package/node_modules/bplist-parser/test/sample1.bplist +0 -0
- package/node_modules/bplist-parser/test/sample2.bplist +0 -0
- package/node_modules/bplist-parser/test/uid.bplist +0 -0
- package/node_modules/bplist-parser/test/utf16.bplist +0 -0
- package/node_modules/bplist-parser/test/utf16_chinese.plist +0 -0
- package/node_modules/cross-spawn/CHANGELOG.md +0 -130
- package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/cross-spawn/README.md +0 -96
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -45
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/default-browser/node_modules/execa/index.d.ts +0 -937
- package/node_modules/default-browser/node_modules/execa/index.js +0 -309
- package/node_modules/default-browser/node_modules/execa/lib/command.js +0 -120
- package/node_modules/default-browser/node_modules/execa/lib/error.js +0 -87
- package/node_modules/default-browser/node_modules/execa/lib/kill.js +0 -102
- package/node_modules/default-browser/node_modules/execa/lib/pipe.js +0 -42
- package/node_modules/default-browser/node_modules/execa/lib/promise.js +0 -36
- package/node_modules/default-browser/node_modules/execa/lib/stdio.js +0 -49
- package/node_modules/default-browser/node_modules/execa/lib/stream.js +0 -119
- package/node_modules/default-browser/node_modules/execa/lib/verbose.js +0 -19
- package/node_modules/default-browser/node_modules/execa/package.json +0 -87
- package/node_modules/default-browser/node_modules/execa/readme.md +0 -824
- package/node_modules/default-browser/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/default-browser/node_modules/human-signals/README.md +0 -178
- package/node_modules/default-browser/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/default-browser/node_modules/human-signals/build/src/main.d.ts +0 -73
- package/node_modules/default-browser/node_modules/human-signals/build/src/main.js +0 -70
- package/node_modules/default-browser/node_modules/human-signals/build/src/realtime.js +0 -16
- package/node_modules/default-browser/node_modules/human-signals/build/src/signals.js +0 -34
- package/node_modules/default-browser/node_modules/human-signals/package.json +0 -61
- package/node_modules/default-browser/node_modules/is-stream/index.d.ts +0 -81
- package/node_modules/default-browser/node_modules/is-stream/index.js +0 -29
- package/node_modules/default-browser/node_modules/is-stream/license +0 -9
- package/node_modules/default-browser/node_modules/is-stream/package.json +0 -44
- package/node_modules/default-browser/node_modules/is-stream/readme.md +0 -60
- package/node_modules/default-browser/node_modules/mimic-fn/index.d.ts +0 -52
- package/node_modules/default-browser/node_modules/mimic-fn/index.js +0 -71
- package/node_modules/default-browser/node_modules/mimic-fn/license +0 -9
- package/node_modules/default-browser/node_modules/mimic-fn/package.json +0 -45
- package/node_modules/default-browser/node_modules/mimic-fn/readme.md +0 -90
- package/node_modules/default-browser/node_modules/npm-run-path/index.d.ts +0 -90
- package/node_modules/default-browser/node_modules/npm-run-path/index.js +0 -52
- package/node_modules/default-browser/node_modules/npm-run-path/license +0 -9
- package/node_modules/default-browser/node_modules/npm-run-path/package.json +0 -49
- package/node_modules/default-browser/node_modules/npm-run-path/readme.md +0 -104
- package/node_modules/default-browser/node_modules/onetime/index.d.ts +0 -59
- package/node_modules/default-browser/node_modules/onetime/index.js +0 -41
- package/node_modules/default-browser/node_modules/onetime/license +0 -9
- package/node_modules/default-browser/node_modules/onetime/package.json +0 -45
- package/node_modules/default-browser/node_modules/onetime/readme.md +0 -94
- package/node_modules/default-browser/node_modules/path-key/index.d.ts +0 -31
- package/node_modules/default-browser/node_modules/path-key/index.js +0 -12
- package/node_modules/default-browser/node_modules/path-key/license +0 -9
- package/node_modules/default-browser/node_modules/path-key/package.json +0 -41
- package/node_modules/default-browser/node_modules/path-key/readme.md +0 -57
- package/node_modules/default-browser/node_modules/strip-final-newline/index.js +0 -14
- package/node_modules/default-browser/node_modules/strip-final-newline/license +0 -9
- package/node_modules/default-browser/node_modules/strip-final-newline/package.json +0 -43
- package/node_modules/default-browser/node_modules/strip-final-newline/readme.md +0 -35
- package/node_modules/execa/index.d.ts +0 -564
- package/node_modules/execa/index.js +0 -268
- package/node_modules/execa/lib/command.js +0 -52
- package/node_modules/execa/lib/error.js +0 -88
- package/node_modules/execa/lib/kill.js +0 -115
- package/node_modules/execa/lib/promise.js +0 -46
- package/node_modules/execa/lib/stdio.js +0 -52
- package/node_modules/execa/lib/stream.js +0 -97
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -74
- package/node_modules/execa/readme.md +0 -663
- package/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/get-stream/index.d.ts +0 -105
- package/node_modules/get-stream/index.js +0 -61
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -47
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/human-signals/CHANGELOG.md +0 -11
- package/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/human-signals/README.md +0 -165
- package/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/human-signals/build/src/core.js.map +0 -1
- package/node_modules/human-signals/build/src/main.d.ts +0 -52
- package/node_modules/human-signals/build/src/main.js +0 -71
- package/node_modules/human-signals/build/src/main.js.map +0 -1
- package/node_modules/human-signals/build/src/realtime.js +0 -19
- package/node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/node_modules/human-signals/build/src/signals.js +0 -35
- package/node_modules/human-signals/build/src/signals.js.map +0 -1
- package/node_modules/human-signals/package.json +0 -64
- package/node_modules/is-stream/index.d.ts +0 -79
- package/node_modules/is-stream/index.js +0 -28
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/package.json +0 -42
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/is-wsl/index.js +0 -31
- package/node_modules/is-wsl/license +0 -9
- package/node_modules/is-wsl/node_modules/is-docker/cli.js +0 -5
- package/node_modules/is-wsl/node_modules/is-docker/index.d.ts +0 -15
- package/node_modules/is-wsl/node_modules/is-docker/index.js +0 -29
- package/node_modules/is-wsl/node_modules/is-docker/license +0 -9
- package/node_modules/is-wsl/node_modules/is-docker/package.json +0 -42
- package/node_modules/is-wsl/node_modules/is-docker/readme.md +0 -27
- package/node_modules/is-wsl/readme.md +0 -36
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/merge-stream/LICENSE +0 -21
- package/node_modules/merge-stream/README.md +0 -78
- package/node_modules/merge-stream/index.js +0 -41
- package/node_modules/merge-stream/package.json +0 -19
- package/node_modules/mimic-fn/index.d.ts +0 -54
- package/node_modules/mimic-fn/index.js +0 -13
- package/node_modules/mimic-fn/license +0 -9
- package/node_modules/mimic-fn/package.json +0 -42
- package/node_modules/mimic-fn/readme.md +0 -69
- package/node_modules/npm-run-path/index.d.ts +0 -89
- package/node_modules/npm-run-path/index.js +0 -47
- package/node_modules/npm-run-path/license +0 -9
- package/node_modules/npm-run-path/package.json +0 -44
- package/node_modules/npm-run-path/readme.md +0 -115
- package/node_modules/onetime/index.d.ts +0 -64
- package/node_modules/onetime/index.js +0 -44
- package/node_modules/onetime/license +0 -9
- package/node_modules/onetime/package.json +0 -43
- package/node_modules/onetime/readme.md +0 -94
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -38
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/strip-final-newline/index.js +0 -16
- package/node_modules/strip-final-newline/license +0 -9
- package/node_modules/strip-final-newline/package.json +0 -40
- package/node_modules/strip-final-newline/readme.md +0 -30
- package/node_modules/titleize/index.d.ts +0 -17
- package/node_modules/titleize/index.js +0 -7
- package/node_modules/titleize/license +0 -9
- package/node_modules/titleize/package.json +0 -42
- package/node_modules/titleize/readme.md +0 -25
- package/node_modules/untildify/index.d.ts +0 -14
- package/node_modules/untildify/index.js +0 -12
- package/node_modules/untildify/license +0 -9
- package/node_modules/untildify/package.json +0 -43
- package/node_modules/untildify/readme.md +0 -30
- package/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
- /package/node_modules/{default-browser/node_modules/execa → open/node_modules/is-wsl}/license +0 -0
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
[](https://codecov.io/gh/ehmicky/human-signals)
|
|
2
|
-
[](https://travis-ci.org/ehmicky/human-signals)
|
|
3
|
-
[](https://www.npmjs.com/package/human-signals)
|
|
4
|
-
[](https://gitter.im/ehmicky/human-signals)
|
|
5
|
-
[](https://twitter.com/intent/follow?screen_name=ehmicky)
|
|
6
|
-
[](https://medium.com/@ehmicky)
|
|
7
|
-
|
|
8
|
-
Human-friendly process signals.
|
|
9
|
-
|
|
10
|
-
This is a map of known process signals with some information about each signal.
|
|
11
|
-
|
|
12
|
-
Unlike
|
|
13
|
-
[`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)
|
|
14
|
-
this includes:
|
|
15
|
-
|
|
16
|
-
- human-friendly [descriptions](#description)
|
|
17
|
-
- [default actions](#action), including whether they [can be prevented](#forced)
|
|
18
|
-
- whether the signal is [supported](#supported) by the current OS
|
|
19
|
-
|
|
20
|
-
# Example
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
const { signalsByName, signalsByNumber } = require('human-signals')
|
|
24
|
-
|
|
25
|
-
console.log(signalsByName.SIGINT)
|
|
26
|
-
// {
|
|
27
|
-
// name: 'SIGINT',
|
|
28
|
-
// number: 2,
|
|
29
|
-
// description: 'User interruption with CTRL-C',
|
|
30
|
-
// supported: true,
|
|
31
|
-
// action: 'terminate',
|
|
32
|
-
// forced: false,
|
|
33
|
-
// standard: 'ansi'
|
|
34
|
-
// }
|
|
35
|
-
|
|
36
|
-
console.log(signalsByNumber[8])
|
|
37
|
-
// {
|
|
38
|
-
// name: 'SIGFPE',
|
|
39
|
-
// number: 8,
|
|
40
|
-
// description: 'Floating point arithmetic error',
|
|
41
|
-
// supported: true,
|
|
42
|
-
// action: 'core',
|
|
43
|
-
// forced: false,
|
|
44
|
-
// standard: 'ansi'
|
|
45
|
-
// }
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
# Install
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm install human-signals
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
# Usage
|
|
55
|
-
|
|
56
|
-
## signalsByName
|
|
57
|
-
|
|
58
|
-
_Type_: `object`
|
|
59
|
-
|
|
60
|
-
Object whose keys are signal [names](#name) and values are
|
|
61
|
-
[signal objects](#signal).
|
|
62
|
-
|
|
63
|
-
## signalsByNumber
|
|
64
|
-
|
|
65
|
-
_Type_: `object`
|
|
66
|
-
|
|
67
|
-
Object whose keys are signal [numbers](#number) and values are
|
|
68
|
-
[signal objects](#signal).
|
|
69
|
-
|
|
70
|
-
## signal
|
|
71
|
-
|
|
72
|
-
_Type_: `object`
|
|
73
|
-
|
|
74
|
-
Signal object with the following properties.
|
|
75
|
-
|
|
76
|
-
### name
|
|
77
|
-
|
|
78
|
-
_Type_: `string`
|
|
79
|
-
|
|
80
|
-
Standard name of the signal, for example `'SIGINT'`.
|
|
81
|
-
|
|
82
|
-
### number
|
|
83
|
-
|
|
84
|
-
_Type_: `number`
|
|
85
|
-
|
|
86
|
-
Code number of the signal, for example `2`. While most `number` are
|
|
87
|
-
cross-platform, some are different between different OS.
|
|
88
|
-
|
|
89
|
-
### description
|
|
90
|
-
|
|
91
|
-
_Type_: `string`
|
|
92
|
-
|
|
93
|
-
Human-friendly description for the signal, for example
|
|
94
|
-
`'User interruption with CTRL-C'`.
|
|
95
|
-
|
|
96
|
-
### supported
|
|
97
|
-
|
|
98
|
-
_Type_: `boolean`
|
|
99
|
-
|
|
100
|
-
Whether the current OS can handle this signal in Node.js using
|
|
101
|
-
[`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).
|
|
102
|
-
|
|
103
|
-
The list of supported signals
|
|
104
|
-
[is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/master/docs/6_networking_ipc/signals.md#cross-platform-signals).
|
|
105
|
-
|
|
106
|
-
### action
|
|
107
|
-
|
|
108
|
-
_Type_: `string`\
|
|
109
|
-
_Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`, `'unpause'`
|
|
110
|
-
|
|
111
|
-
What is the default action for this signal when it is not handled.
|
|
112
|
-
|
|
113
|
-
### forced
|
|
114
|
-
|
|
115
|
-
_Type_: `boolean`
|
|
116
|
-
|
|
117
|
-
Whether the signal's default action cannot be prevented. This is `true` for
|
|
118
|
-
`SIGTERM`, `SIGKILL` and `SIGSTOP`.
|
|
119
|
-
|
|
120
|
-
### standard
|
|
121
|
-
|
|
122
|
-
_Type_: `string`\
|
|
123
|
-
_Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`
|
|
124
|
-
|
|
125
|
-
Which standard defined that signal.
|
|
126
|
-
|
|
127
|
-
# Support
|
|
128
|
-
|
|
129
|
-
If you found a bug or would like a new feature, _don't hesitate_ to
|
|
130
|
-
[submit an issue on GitHub](../../issues).
|
|
131
|
-
|
|
132
|
-
For other questions, feel free to
|
|
133
|
-
[chat with us on Gitter](https://gitter.im/ehmicky/human-signals).
|
|
134
|
-
|
|
135
|
-
Everyone is welcome regardless of personal background. We enforce a
|
|
136
|
-
[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and
|
|
137
|
-
inclusive environment.
|
|
138
|
-
|
|
139
|
-
# Contributing
|
|
140
|
-
|
|
141
|
-
This project was made with ❤️. The simplest way to give back is by starring and
|
|
142
|
-
sharing it online.
|
|
143
|
-
|
|
144
|
-
If the documentation is unclear or has a typo, please click on the page's `Edit`
|
|
145
|
-
button (pencil icon) and suggest a correction.
|
|
146
|
-
|
|
147
|
-
If you would like to help us fix a bug or add a new feature, please check our
|
|
148
|
-
[guidelines](CONTRIBUTING.md). Pull requests are welcome!
|
|
149
|
-
|
|
150
|
-
Thanks go to our wonderful contributors:
|
|
151
|
-
|
|
152
|
-
<!-- ALL-CONTRIBUTORS-LIST:START -->
|
|
153
|
-
<!-- prettier-ignore-start -->
|
|
154
|
-
<!-- markdownlint-disable -->
|
|
155
|
-
<table>
|
|
156
|
-
<tr>
|
|
157
|
-
<td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt=""/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Documentation">📖</a></td>
|
|
158
|
-
<td align="center"><a href="http://www.electrovir.com"><img src="https://avatars0.githubusercontent.com/u/1205860?v=4" width="100px;" alt=""/><br /><sub><b>electrovir</b></sub></a><br /><a href="https://github.com/ehmicky/human-signals/commits?author=electrovir" title="Code">💻</a></td>
|
|
159
|
-
</tr>
|
|
160
|
-
</table>
|
|
161
|
-
|
|
162
|
-
<!-- markdownlint-enable -->
|
|
163
|
-
<!-- prettier-ignore-end -->
|
|
164
|
-
|
|
165
|
-
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SIGNALS=void 0;
|
|
2
|
-
|
|
3
|
-
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"}];exports.SIGNALS=SIGNALS;
|
|
273
|
-
//# sourceMappingURL=core.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core.js"],"names":["SIGNALS","name","number","action","description","standard","forced"],"mappings":";;AAEO,KAAMA,CAAAA,OAAO,CAAG;AACrB;AACEC,IAAI,CAAE,QADR;AAEEC,MAAM,CAAE,CAFV;AAGEC,MAAM,CAAE,WAHV;AAIEC,WAAW,CAAE,iBAJf;AAKEC,QAAQ,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GEC,MAAM,CAAE,QAHV;AAIEC,WAAW,CAAE,iCAJf;AAKEC,QAAQ,CAAE,OALZ,CAnPqB;;AA0PrB;AACEJ,IAAI,CAAE,QADR;AAEEC,MAAM,CAAE,EAFV;AAGEC,MAAM,CAAE,WAHV;AAIEC,WAAW,CAAE,6BAJf;AAKEC,QAAQ,CAAE,SALZ,CA1PqB;;AAiQrB;AACEJ,IAAI,CAAE,QADR;AAEEC,MAAM,CAAE,EAFV;AAGEC,MAAM,CAAE,MAHV;AAIEC,WAAW,CAAE,qBAJf;AAKEC,QAAQ,CAAE,OALZ,CAjQqB;;AAwQrB;AACEJ,IAAI,CAAE,WADR;AAEEC,MAAM,CAAE,EAFV;AAGEC,MAAM,CAAE,WAHV;AAIEC,WAAW,CAAE,qBAJf;AAKEC,QAAQ,CAAE,OALZ,CAxQqB,CAAhB,C","sourcesContent":["/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n"],"file":"src/core.js"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Object whose keys are signal names and values are signal objects.
|
|
3
|
-
*/
|
|
4
|
-
export declare const signalsByName: { [signalName: string]: Signal }
|
|
5
|
-
/**
|
|
6
|
-
* Object whose keys are signal numbers and values are signal objects.
|
|
7
|
-
*/
|
|
8
|
-
export declare const signalsByNumber: { [signalNumber: string]: Signal }
|
|
9
|
-
|
|
10
|
-
export declare type SignalAction =
|
|
11
|
-
| 'terminate'
|
|
12
|
-
| 'core'
|
|
13
|
-
| 'ignore'
|
|
14
|
-
| 'pause'
|
|
15
|
-
| 'unpause'
|
|
16
|
-
export declare type SignalStandard =
|
|
17
|
-
| 'ansi'
|
|
18
|
-
| 'posix'
|
|
19
|
-
| 'bsd'
|
|
20
|
-
| 'systemv'
|
|
21
|
-
| 'other'
|
|
22
|
-
|
|
23
|
-
export declare type Signal = {
|
|
24
|
-
/**
|
|
25
|
-
* Standard name of the signal, for example 'SIGINT'.
|
|
26
|
-
*/
|
|
27
|
-
name: string
|
|
28
|
-
/**
|
|
29
|
-
* Code number of the signal, for example 2. While most number are cross-platform, some are different between different OS.
|
|
30
|
-
*/
|
|
31
|
-
number: number
|
|
32
|
-
/**
|
|
33
|
-
* Human-friendly description for the signal, for example 'User interruption with CTRL-C'.
|
|
34
|
-
*/
|
|
35
|
-
description: string
|
|
36
|
-
/**
|
|
37
|
-
* Whether the current OS can handle this signal in Node.js using process.on(name, handler). The list of supported signals is OS-specific.
|
|
38
|
-
*/
|
|
39
|
-
supported: boolean
|
|
40
|
-
/**
|
|
41
|
-
* What is the default action for this signal when it is not handled.
|
|
42
|
-
*/
|
|
43
|
-
action: SignalAction
|
|
44
|
-
/**
|
|
45
|
-
* Whether the signal's default action cannot be prevented. This is true for SIGTERM, SIGKILL and SIGSTOP.
|
|
46
|
-
*/
|
|
47
|
-
forced: boolean
|
|
48
|
-
/**
|
|
49
|
-
* Which standard defined that signal.
|
|
50
|
-
*/
|
|
51
|
-
standard: SignalStandard
|
|
52
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.signalsByNumber=exports.signalsByName=void 0;var _os=require("os");
|
|
2
|
-
|
|
3
|
-
var _signals=require("./signals.js");
|
|
4
|
-
var _realtime=require("./realtime.js");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const getSignalsByName=function(){
|
|
9
|
-
const signals=(0,_signals.getSignals)();
|
|
10
|
-
return signals.reduce(getSignalByName,{});
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const getSignalByName=function(
|
|
14
|
-
signalByNameMemo,
|
|
15
|
-
{name,number,description,supported,action,forced,standard})
|
|
16
|
-
{
|
|
17
|
-
return{
|
|
18
|
-
...signalByNameMemo,
|
|
19
|
-
[name]:{name,number,description,supported,action,forced,standard}};
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const signalsByName=getSignalsByName();exports.signalsByName=signalsByName;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const getSignalsByNumber=function(){
|
|
29
|
-
const signals=(0,_signals.getSignals)();
|
|
30
|
-
const length=_realtime.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=function(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=function(number,signals){
|
|
61
|
-
const signal=signals.find(({name})=>_os.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
|
-
const signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumber;
|
|
71
|
-
//# sourceMappingURL=main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/main.js"],"names":["getSignalsByName","signals","reduce","getSignalByName","signalByNameMemo","name","number","description","supported","action","forced","standard","signalsByName","getSignalsByNumber","length","SIGRTMAX","signalsA","Array","from","value","getSignalByNumber","Object","assign","signal","findSignalByNumber","undefined","find","constants","signalA","signalsByNumber"],"mappings":"2HAAA;;AAEA;AACA;;;;AAIA,KAAMA,CAAAA,gBAAgB,CAAG,UAAW;AAClC,KAAMC,CAAAA,OAAO,CAAG,yBAAhB;AACA,MAAOA,CAAAA,OAAO,CAACC,MAAR,CAAeC,eAAf,CAAgC,EAAhC,CAAP;AACD,CAHD;;AAKA,KAAMA,CAAAA,eAAe,CAAG;AACtBC,gBADsB;AAEtB,CAAEC,IAAF,CAAQC,MAAR,CAAgBC,WAAhB,CAA6BC,SAA7B,CAAwCC,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAFsB;AAGtB;AACA,MAAO;AACL,GAAGP,gBADE;AAEL,CAACC,IAAD,EAAQ,CAAEA,IAAF,CAAQC,MAAR,CAAgBC,WAAhB,CAA6BC,SAA7B,CAAwCC,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAFH,CAAP;;AAID,CARD;;AAUO,KAAMC,CAAAA,aAAa,CAAGZ,gBAAgB,EAAtC,C;;;;;AAKP,KAAMa,CAAAA,kBAAkB,CAAG,UAAW;AACpC,KAAMZ,CAAAA,OAAO,CAAG,yBAAhB;AACA,KAAMa,CAAAA,MAAM,CAAGC,mBAAW,CAA1B;AACA,KAAMC,CAAAA,QAAQ,CAAGC,KAAK,CAACC,IAAN,CAAW,CAAEJ,MAAF,CAAX,CAAuB,CAACK,KAAD,CAAQb,MAAR;AACtCc,iBAAiB,CAACd,MAAD,CAASL,OAAT,CADF,CAAjB;;AAGA,MAAOoB,CAAAA,MAAM,CAACC,MAAP,CAAc,EAAd,CAAkB,GAAGN,QAArB,CAAP;AACD,CAPD;;AASA,KAAMI,CAAAA,iBAAiB,CAAG,SAASd,MAAT,CAAiBL,OAAjB,CAA0B;AAClD,KAAMsB,CAAAA,MAAM,CAAGC,kBAAkB,CAAClB,MAAD,CAASL,OAAT,CAAjC;;AAEA,GAAIsB,MAAM,GAAKE,SAAf,CAA0B;AACxB,MAAO,EAAP;AACD;;AAED,KAAM,CAAEpB,IAAF,CAAQE,WAAR,CAAqBC,SAArB,CAAgCC,MAAhC,CAAwCC,MAAxC,CAAgDC,QAAhD,EAA6DY,MAAnE;AACA,MAAO;AACL,CAACjB,MAAD,EAAU;AACRD,IADQ;AAERC,MAFQ;AAGRC,WAHQ;AAIRC,SAJQ;AAKRC,MALQ;AAMRC,MANQ;AAORC,QAPQ,CADL,CAAP;;;AAWD,CAnBD;;;;AAuBA,KAAMa,CAAAA,kBAAkB,CAAG,SAASlB,MAAT,CAAiBL,OAAjB,CAA0B;AACnD,KAAMsB,CAAAA,MAAM,CAAGtB,OAAO,CAACyB,IAAR,CAAa,CAAC,CAAErB,IAAF,CAAD,GAAcsB,cAAU1B,OAAV,CAAkBI,IAAlB,IAA4BC,MAAvD,CAAf;;AAEA,GAAIiB,MAAM,GAAKE,SAAf,CAA0B;AACxB,MAAOF,CAAAA,MAAP;AACD;;AAED,MAAOtB,CAAAA,OAAO,CAACyB,IAAR,CAAaE,OAAO,EAAIA,OAAO,CAACtB,MAAR,GAAmBA,MAA3C,CAAP;AACD,CARD;;AAUO,KAAMuB,CAAAA,eAAe,CAAGhB,kBAAkB,EAA1C,C","sourcesContent":["import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n"],"file":"src/main.js"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;
|
|
2
|
-
const getRealtimeSignals=function(){
|
|
3
|
-
const length=SIGRTMAX-SIGRTMIN+1;
|
|
4
|
-
return Array.from({length},getRealtimeSignal);
|
|
5
|
-
};exports.getRealtimeSignals=getRealtimeSignals;
|
|
6
|
-
|
|
7
|
-
const getRealtimeSignal=function(value,index){
|
|
8
|
-
return{
|
|
9
|
-
name:`SIGRT${index+1}`,
|
|
10
|
-
number:SIGRTMIN+index,
|
|
11
|
-
action:"terminate",
|
|
12
|
-
description:"Application-specific signal (realtime)",
|
|
13
|
-
standard:"posix"};
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const SIGRTMIN=34;
|
|
18
|
-
const SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX;
|
|
19
|
-
//# sourceMappingURL=realtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/realtime.js"],"names":["getRealtimeSignals","length","SIGRTMAX","SIGRTMIN","Array","from","getRealtimeSignal","value","index","name","number","action","description","standard"],"mappings":";AACO,KAAMA,CAAAA,kBAAkB,CAAG,UAAW;AAC3C,KAAMC,CAAAA,MAAM,CAAGC,QAAQ,CAAGC,QAAX,CAAsB,CAArC;AACA,MAAOC,CAAAA,KAAK,CAACC,IAAN,CAAW,CAAEJ,MAAF,CAAX,CAAuBK,iBAAvB,CAAP;AACD,CAHM,C;;AAKP,KAAMA,CAAAA,iBAAiB,CAAG,SAASC,KAAT,CAAgBC,KAAhB,CAAuB;AAC/C,MAAO;AACLC,IAAI,CAAG,QAAOD,KAAK,CAAG,CAAE,EADnB;AAELE,MAAM,CAAEP,QAAQ,CAAGK,KAFd;AAGLG,MAAM,CAAE,WAHH;AAILC,WAAW,CAAE,wCAJR;AAKLC,QAAQ,CAAE,OALL,CAAP;;AAOD,CARD;;AAUA,KAAMV,CAAAA,QAAQ,CAAG,EAAjB;AACO,KAAMD,CAAAA,QAAQ,CAAG,EAAjB,C","sourcesContent":["// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n"],"file":"src/realtime.js"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getSignals=void 0;var _os=require("os");
|
|
2
|
-
|
|
3
|
-
var _core=require("./core.js");
|
|
4
|
-
var _realtime=require("./realtime.js");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const getSignals=function(){
|
|
9
|
-
const realtimeSignals=(0,_realtime.getRealtimeSignals)();
|
|
10
|
-
const signals=[..._core.SIGNALS,...realtimeSignals].map(normalizeSignal);
|
|
11
|
-
return signals;
|
|
12
|
-
};exports.getSignals=getSignals;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const normalizeSignal=function({
|
|
21
|
-
name,
|
|
22
|
-
number:defaultNumber,
|
|
23
|
-
description,
|
|
24
|
-
action,
|
|
25
|
-
forced=false,
|
|
26
|
-
standard})
|
|
27
|
-
{
|
|
28
|
-
const{
|
|
29
|
-
signals:{[name]:constantSignal}}=
|
|
30
|
-
_os.constants;
|
|
31
|
-
const supported=constantSignal!==undefined;
|
|
32
|
-
const number=supported?constantSignal:defaultNumber;
|
|
33
|
-
return{name,number,description,supported,action,forced,standard};
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=signals.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/signals.js"],"names":["getSignals","realtimeSignals","signals","SIGNALS","map","normalizeSignal","name","number","defaultNumber","description","action","forced","standard","constantSignal","constants","supported","undefined"],"mappings":"gGAAA;;AAEA;AACA;;;;AAIO,KAAMA,CAAAA,UAAU,CAAG,UAAW;AACnC,KAAMC,CAAAA,eAAe,CAAG,kCAAxB;AACA,KAAMC,CAAAA,OAAO,CAAG,CAAC,GAAGC,aAAJ,CAAa,GAAGF,eAAhB,EAAiCG,GAAjC,CAAqCC,eAArC,CAAhB;AACA,MAAOH,CAAAA,OAAP;AACD,CAJM,C;;;;;;;;AAYP,KAAMG,CAAAA,eAAe,CAAG,SAAS;AAC/BC,IAD+B;AAE/BC,MAAM,CAAEC,aAFuB;AAG/BC,WAH+B;AAI/BC,MAJ+B;AAK/BC,MAAM,CAAG,KALsB;AAM/BC,QAN+B,CAAT;AAOrB;AACD,KAAM;AACJV,OAAO,CAAE,CAAE,CAACI,IAAD,EAAQO,cAAV,CADL;AAEFC,aAFJ;AAGA,KAAMC,CAAAA,SAAS,CAAGF,cAAc,GAAKG,SAArC;AACA,KAAMT,CAAAA,MAAM,CAAGQ,SAAS,CAAGF,cAAH,CAAoBL,aAA5C;AACA,MAAO,CAAEF,IAAF,CAAQC,MAAR,CAAgBE,WAAhB,CAA6BM,SAA7B,CAAwCL,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAAP;AACD,CAdD","sourcesContent":["import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n"],"file":"src/signals.js"}
|