New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@esm2cjs/human-signals

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esm2cjs/human-signals - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

20

build/cjs/main.js

@@ -29,9 +29,17 @@ var __defProp = Object.defineProperty;

const signals = (0, import_signals.getSignals)();
return signals.reduce(getSignalByName, {});
return Object.fromEntries(signals.map(getSignalByName));
};
const getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) {
return {
...signalByNameMemo,
[name]: { name, number, description, supported, action, forced, standard }
};
const getSignalByName = function({
name,
number,
description,
supported,
action,
forced,
standard
}) {
return [
name,
{ name, number, description, supported, action, forced, standard }
];
};

@@ -38,0 +46,0 @@ const signalsByName = getSignalsByName();

@@ -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": "@esm2cjs/human-signals",
"version": "3.0.1",
"version": "4.0.0",
"exports": {

@@ -57,8 +57,8 @@ ".": {

"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"
},

@@ -65,0 +65,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc