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

component-emitter

Package Overview
Dependencies
Maintainers
32
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-emitter - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

7

History.md
1.3.0 / 2018-04-15
==================
* removed bower support
* expose emitter on `exports`
* prevent de-optimization from using `arguments`
1.2.1 / 2016-04-18

@@ -3,0 +10,0 @@ ==================

14

index.js

@@ -114,2 +114,9 @@

}
// Remove event specific arrays for event types that no
// one is subscribed for to avoid memory leak.
if (callbacks.length === 0) {
delete this._callbacks['$' + event];
}
return this;

@@ -128,5 +135,10 @@ };

this._callbacks = this._callbacks || {};
var args = [].slice.call(arguments, 1)
var args = new Array(arguments.length - 1)
, callbacks = this._callbacks['$' + event];
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
if (callbacks) {

@@ -133,0 +145,0 @@ callbacks = callbacks.slice(0);

7

package.json
{
"name": "component-emitter",
"description": "Event emitter",
"version": "1.2.1",
"version": "1.3.0",
"license": "MIT",

@@ -23,3 +23,6 @@ "devDependencies": {

},
"files": ["index.js", "LICENSE"]
"files": [
"index.js",
"LICENSE"
]
}
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