Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
25
node_modules/human-signals/README.md
generated
vendored
25
node_modules/human-signals/README.md
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
[](https://www.npmjs.com/package/human-signals)
|
||||
[](/types/main.d.ts)
|
||||
[](/src/main.d.ts)
|
||||
[](https://codecov.io/gh/ehmicky/human-signals)
|
||||
[](https://twitter.com/intent/follow?screen_name=ehmicky)
|
||||
[](https://fosstodon.org/@ehmicky)
|
||||
[](https://medium.com/@ehmicky)
|
||||
|
||||
Human-friendly process signals.
|
||||
|
|
@ -16,6 +16,16 @@ this includes:
|
|||
- [default actions](#action), including whether they [can be prevented](#forced)
|
||||
- whether the signal is [supported](#supported) by the current OS
|
||||
|
||||
# Hire me
|
||||
|
||||
Please
|
||||
[reach out](https://www.linkedin.com/feed/update/urn:li:activity:7018596298127781890/)
|
||||
if you're looking for a Node.js API or CLI engineer (10 years of experience).
|
||||
Most recently I have been [Netlify Build](https://github.com/netlify/build)'s
|
||||
and [Netlify Plugins](https://www.netlify.com/products/build/plugins/)'
|
||||
technical lead for 2.5 years. I am available for full-time remote positions in
|
||||
either US or EU time zones.
|
||||
|
||||
# Example
|
||||
|
||||
```js
|
||||
|
|
@ -50,10 +60,13 @@ console.log(signalsByNumber[8])
|
|||
npm install human-signals
|
||||
```
|
||||
|
||||
This package works in Node.js >=14.18.0. It is an ES module and must be loaded
|
||||
using
|
||||
This package works in Node.js >=14.18.0.
|
||||
|
||||
This is an ES module. It must be loaded using
|
||||
[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),
|
||||
not `require()`.
|
||||
not `require()`. If TypeScript is used, it must be configured to
|
||||
[output ES modules](https://www.typescriptlang.org/docs/handbook/esm-node.html),
|
||||
not CommonJS.
|
||||
|
||||
# Usage
|
||||
|
||||
|
|
@ -154,7 +167,7 @@ Thanks go to our wonderful contributors:
|
|||
<!-- markdownlint-disable -->
|
||||
<table>
|
||||
<tr>
|
||||
<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>
|
||||
<td align="center"><a href="https://fosstodon.org/@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>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
152
node_modules/human-signals/build/src/core.js
generated
vendored
152
node_modules/human-signals/build/src/core.js
generated
vendored
|
|
@ -6,268 +6,268 @@ name:"SIGHUP",
|
|||
number:1,
|
||||
action:"terminate",
|
||||
description:"Terminal closed",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGINT",
|
||||
number:2,
|
||||
action:"terminate",
|
||||
description:"User interruption with CTRL-C",
|
||||
standard:"ansi"},
|
||||
|
||||
standard:"ansi"
|
||||
},
|
||||
{
|
||||
name:"SIGQUIT",
|
||||
number:3,
|
||||
action:"core",
|
||||
description:"User interruption with CTRL-\\",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGILL",
|
||||
number:4,
|
||||
action:"core",
|
||||
description:"Invalid machine instruction",
|
||||
standard:"ansi"},
|
||||
|
||||
standard:"ansi"
|
||||
},
|
||||
{
|
||||
name:"SIGTRAP",
|
||||
number:5,
|
||||
action:"core",
|
||||
description:"Debugger breakpoint",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGABRT",
|
||||
number:6,
|
||||
action:"core",
|
||||
description:"Aborted",
|
||||
standard:"ansi"},
|
||||
|
||||
standard:"ansi"
|
||||
},
|
||||
{
|
||||
name:"SIGIOT",
|
||||
number:6,
|
||||
action:"core",
|
||||
description:"Aborted",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGBUS",
|
||||
number:7,
|
||||
action:"core",
|
||||
description:
|
||||
"Bus error due to misaligned, non-existing address or paging error",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGEMT",
|
||||
number:7,
|
||||
action:"terminate",
|
||||
description:"Command should be emulated but is not implemented",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGFPE",
|
||||
number:8,
|
||||
action:"core",
|
||||
description:"Floating point arithmetic error",
|
||||
standard:"ansi"},
|
||||
|
||||
standard:"ansi"
|
||||
},
|
||||
{
|
||||
name:"SIGKILL",
|
||||
number:9,
|
||||
action:"terminate",
|
||||
description:"Forced termination",
|
||||
standard:"posix",
|
||||
forced:true},
|
||||
|
||||
forced:true
|
||||
},
|
||||
{
|
||||
name:"SIGUSR1",
|
||||
number:10,
|
||||
action:"terminate",
|
||||
description:"Application-specific signal",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGSEGV",
|
||||
number:11,
|
||||
action:"core",
|
||||
description:"Segmentation fault",
|
||||
standard:"ansi"},
|
||||
|
||||
standard:"ansi"
|
||||
},
|
||||
{
|
||||
name:"SIGUSR2",
|
||||
number:12,
|
||||
action:"terminate",
|
||||
description:"Application-specific signal",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGPIPE",
|
||||
number:13,
|
||||
action:"terminate",
|
||||
description:"Broken pipe or socket",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGALRM",
|
||||
number:14,
|
||||
action:"terminate",
|
||||
description:"Timeout or timer",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGTERM",
|
||||
number:15,
|
||||
action:"terminate",
|
||||
description:"Termination",
|
||||
standard:"ansi"},
|
||||
|
||||
standard:"ansi"
|
||||
},
|
||||
{
|
||||
name:"SIGSTKFLT",
|
||||
number:16,
|
||||
action:"terminate",
|
||||
description:"Stack is empty or overflowed",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGCHLD",
|
||||
number:17,
|
||||
action:"ignore",
|
||||
description:"Child process terminated, paused or unpaused",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGCLD",
|
||||
number:17,
|
||||
action:"ignore",
|
||||
description:"Child process terminated, paused or unpaused",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGCONT",
|
||||
number:18,
|
||||
action:"unpause",
|
||||
description:"Unpaused",
|
||||
standard:"posix",
|
||||
forced:true},
|
||||
|
||||
forced:true
|
||||
},
|
||||
{
|
||||
name:"SIGSTOP",
|
||||
number:19,
|
||||
action:"pause",
|
||||
description:"Paused",
|
||||
standard:"posix",
|
||||
forced:true},
|
||||
|
||||
forced:true
|
||||
},
|
||||
{
|
||||
name:"SIGTSTP",
|
||||
number:20,
|
||||
action:"pause",
|
||||
description:"Paused using CTRL-Z or \"suspend\"",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGTTIN",
|
||||
number:21,
|
||||
action:"pause",
|
||||
description:"Background process cannot read terminal input",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGBREAK",
|
||||
number:21,
|
||||
action:"terminate",
|
||||
description:"User interruption with CTRL-BREAK",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGTTOU",
|
||||
number:22,
|
||||
action:"pause",
|
||||
description:"Background process cannot write to terminal output",
|
||||
standard:"posix"},
|
||||
|
||||
standard:"posix"
|
||||
},
|
||||
{
|
||||
name:"SIGURG",
|
||||
number:23,
|
||||
action:"ignore",
|
||||
description:"Socket received out-of-band data",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGXCPU",
|
||||
number:24,
|
||||
action:"core",
|
||||
description:"Process timed out",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGXFSZ",
|
||||
number:25,
|
||||
action:"core",
|
||||
description:"File too big",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGVTALRM",
|
||||
number:26,
|
||||
action:"terminate",
|
||||
description:"Timeout or timer",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGPROF",
|
||||
number:27,
|
||||
action:"terminate",
|
||||
description:"Timeout or timer",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGWINCH",
|
||||
number:28,
|
||||
action:"ignore",
|
||||
description:"Terminal window size changed",
|
||||
standard:"bsd"},
|
||||
|
||||
standard:"bsd"
|
||||
},
|
||||
{
|
||||
name:"SIGIO",
|
||||
number:29,
|
||||
action:"terminate",
|
||||
description:"I/O is available",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGPOLL",
|
||||
number:29,
|
||||
action:"terminate",
|
||||
description:"Watched event",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGINFO",
|
||||
number:29,
|
||||
action:"ignore",
|
||||
description:"Request for process information",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGPWR",
|
||||
number:30,
|
||||
action:"terminate",
|
||||
description:"Device running out of power",
|
||||
standard:"systemv"},
|
||||
|
||||
standard:"systemv"
|
||||
},
|
||||
{
|
||||
name:"SIGSYS",
|
||||
number:31,
|
||||
action:"core",
|
||||
description:"Invalid system call",
|
||||
standard:"other"},
|
||||
|
||||
standard:"other"
|
||||
},
|
||||
{
|
||||
name:"SIGUNUSED",
|
||||
number:31,
|
||||
action:"terminate",
|
||||
description:"Invalid system call",
|
||||
standard:"other"}];
|
||||
//# sourceMappingURL=core.js.map
|
||||
standard:"other"
|
||||
}];
|
||||
|
|
@ -20,7 +20,7 @@ export type SignalName = `SIG${string}`
|
|||
*/
|
||||
export type SignalNumber = number
|
||||
|
||||
export type Signal = {
|
||||
export interface Signal {
|
||||
/**
|
||||
* Standard name of the signal, for example 'SIGINT'.
|
||||
*/
|
||||
28
node_modules/human-signals/build/src/main.js
generated
vendored
28
node_modules/human-signals/build/src/main.js
generated
vendored
|
|
@ -5,32 +5,27 @@ import{getSignals}from"./signals.js";
|
|||
|
||||
|
||||
|
||||
const getSignalsByName=function(){
|
||||
const getSignalsByName=()=>{
|
||||
const signals=getSignals();
|
||||
return Object.fromEntries(signals.map(getSignalByName));
|
||||
};
|
||||
|
||||
const getSignalByName=function({
|
||||
const getSignalByName=({
|
||||
name,
|
||||
number,
|
||||
description,
|
||||
supported,
|
||||
action,
|
||||
forced,
|
||||
standard})
|
||||
{
|
||||
return[
|
||||
name,
|
||||
{name,number,description,supported,action,forced,standard}];
|
||||
|
||||
};
|
||||
standard
|
||||
})=>[name,{name,number,description,supported,action,forced,standard}];
|
||||
|
||||
export const signalsByName=getSignalsByName();
|
||||
|
||||
|
||||
|
||||
|
||||
const getSignalsByNumber=function(){
|
||||
const getSignalsByNumber=()=>{
|
||||
const signals=getSignals();
|
||||
const length=SIGRTMAX+1;
|
||||
const signalsA=Array.from({length},(value,number)=>
|
||||
|
|
@ -39,7 +34,7 @@ getSignalByNumber(number,signals));
|
|||
return Object.assign({},...signalsA);
|
||||
};
|
||||
|
||||
const getSignalByNumber=function(number,signals){
|
||||
const getSignalByNumber=(number,signals)=>{
|
||||
const signal=findSignalByNumber(number,signals);
|
||||
|
||||
if(signal===undefined){
|
||||
|
|
@ -55,14 +50,14 @@ description,
|
|||
supported,
|
||||
action,
|
||||
forced,
|
||||
standard}};
|
||||
|
||||
|
||||
standard
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
const findSignalByNumber=function(number,signals){
|
||||
const findSignalByNumber=(number,signals)=>{
|
||||
const signal=signals.find(({name})=>constants.signals[name]===number);
|
||||
|
||||
if(signal!==undefined){
|
||||
|
|
@ -72,5 +67,4 @@ return signal;
|
|||
return signals.find((signalA)=>signalA.number===number);
|
||||
};
|
||||
|
||||
export const signalsByNumber=getSignalsByNumber();
|
||||
//# sourceMappingURL=main.js.map
|
||||
export const signalsByNumber=getSignalsByNumber();
|
||||
13
node_modules/human-signals/build/src/realtime.js
generated
vendored
13
node_modules/human-signals/build/src/realtime.js
generated
vendored
|
|
@ -1,19 +1,16 @@
|
|||
|
||||
export const getRealtimeSignals=function(){
|
||||
export const getRealtimeSignals=()=>{
|
||||
const length=SIGRTMAX-SIGRTMIN+1;
|
||||
return Array.from({length},getRealtimeSignal);
|
||||
};
|
||||
|
||||
const getRealtimeSignal=function(value,index){
|
||||
return{
|
||||
const getRealtimeSignal=(value,index)=>({
|
||||
name:`SIGRT${index+1}`,
|
||||
number:SIGRTMIN+index,
|
||||
action:"terminate",
|
||||
description:"Application-specific signal (realtime)",
|
||||
standard:"posix"};
|
||||
|
||||
};
|
||||
standard:"posix"
|
||||
});
|
||||
|
||||
const SIGRTMIN=34;
|
||||
export const SIGRTMAX=64;
|
||||
//# sourceMappingURL=realtime.js.map
|
||||
export const SIGRTMAX=64;
|
||||
15
node_modules/human-signals/build/src/signals.js
generated
vendored
15
node_modules/human-signals/build/src/signals.js
generated
vendored
|
|
@ -5,7 +5,7 @@ import{getRealtimeSignals}from"./realtime.js";
|
|||
|
||||
|
||||
|
||||
export const getSignals=function(){
|
||||
export const getSignals=()=>{
|
||||
const realtimeSignals=getRealtimeSignals();
|
||||
const signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);
|
||||
return signals;
|
||||
|
|
@ -17,19 +17,18 @@ return signals;
|
|||
|
||||
|
||||
|
||||
const normalizeSignal=function({
|
||||
const normalizeSignal=({
|
||||
name,
|
||||
number:defaultNumber,
|
||||
description,
|
||||
action,
|
||||
forced=false,
|
||||
standard})
|
||||
{
|
||||
standard
|
||||
})=>{
|
||||
const{
|
||||
signals:{[name]:constantSignal}}=
|
||||
constants;
|
||||
signals:{[name]:constantSignal}
|
||||
}=constants;
|
||||
const supported=constantSignal!==undefined;
|
||||
const number=supported?constantSignal:defaultNumber;
|
||||
return{name,number,description,supported,action,forced,standard};
|
||||
};
|
||||
//# sourceMappingURL=signals.js.map
|
||||
};
|
||||
20
node_modules/human-signals/package.json
generated
vendored
20
node_modules/human-signals/package.json
generated
vendored
|
|
@ -1,16 +1,17 @@
|
|||
{
|
||||
"name": "human-signals",
|
||||
"version": "4.3.0",
|
||||
"version": "4.3.1",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"types": "./build/types/main.d.ts",
|
||||
"types": "./build/src/main.d.ts",
|
||||
"default": "./build/src/main.js"
|
||||
},
|
||||
"main": "./build/src/main.js",
|
||||
"types": "./build/types/main.d.ts",
|
||||
"types": "./build/src/main.d.ts",
|
||||
"files": [
|
||||
"build/src/**/*.{js,json}",
|
||||
"build/types/**/*.d.ts"
|
||||
"build/src/**/*.{js,json,d.ts}",
|
||||
"!build/src/**/*.test.js",
|
||||
"!build/src/{helpers,fixtures}"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
|
|
@ -47,13 +48,12 @@
|
|||
},
|
||||
"author": "ehmicky <ehmicky@gmail.com> (https://github.com/ehmicky)",
|
||||
"directories": {
|
||||
"lib": "src",
|
||||
"test": "test"
|
||||
"lib": "src"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ehmicky/dev-tasks": "^1.0.102",
|
||||
"ajv": "^8.11.0",
|
||||
"test-each": "^5.5.0"
|
||||
"@ehmicky/dev-tasks": "^2.0.71",
|
||||
"ajv": "^8.12.0",
|
||||
"test-each": "^5.7.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.18.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue