human-signals
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -10,12 +10,17 @@ import{constants}from"os"; | ||
const signals=getSignals(); | ||
return signals.reduce(getSignalByName,{}); | ||
return Object.fromEntries(signals.map(getSignalByName)); | ||
}; | ||
const getSignalByName=function( | ||
signalByNameMemo, | ||
{name,number,description,supported,action,forced,standard}) | ||
const getSignalByName=function({ | ||
name, | ||
number, | ||
description, | ||
supported, | ||
action, | ||
forced, | ||
standard}) | ||
{ | ||
return{ | ||
...signalByNameMemo, | ||
[name]:{name,number,description,supported,action,forced,standard}}; | ||
return[ | ||
name, | ||
{name,number,description,supported,action,forced,standard}]; | ||
@@ -22,0 +27,0 @@ }; |
{ | ||
"name": "human-signals", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"type": "module", | ||
@@ -50,9 +50,9 @@ "exports": "./build/src/main.js", | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.34", | ||
"@ehmicky/dev-tasks": "^1.0.72", | ||
"ajv": "^6.12.6", | ||
"test-each": "^3.0.1" | ||
"test-each": "^5.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.20.0" | ||
"node": ">=14.18.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
372
43549