Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

callback-registry

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callback-registry - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

10

lib/index.js

@@ -11,3 +11,3 @@ "use strict";

callbacksForKey.push(callback);
return () => {
return function () {
var allForKey = callbacks[key];

@@ -17,3 +17,3 @@ if (!allForKey) {

}
allForKey = allForKey.reduce((acc, element, index) => {
allForKey = allForKey.reduce(function (acc, element, index) {
if (!(element === callback && acc.length === index)) {

@@ -27,3 +27,7 @@ acc.push(element);

}
function execute(key, ...argumentsArr) {
function execute(key) {
var argumentsArr = [];
for (var _i = 1; _i < arguments.length; _i++) {
argumentsArr[_i - 1] = arguments[_i];
}
var callbacksForKey = callbacks[key];

@@ -30,0 +34,0 @@ if (!callbacksForKey || callbacksForKey.length === 0) {

{
"name": "callback-registry",
"version": "2.3.2",
"version": "2.3.3",
"description": "Registry for callbacks",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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