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

sg-event-emitter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sg-event-emitter - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

lib/EventEmitter.js

@@ -50,5 +50,7 @@ 'use strict';

value: function dispatchEvent(name) {
var additionalData = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
if (this.listeners[name]) {
this.listeners[name].forEach(function (listener) {
listener();
listener(additionalData);
});

@@ -55,0 +57,0 @@ }

{
"name": "sg-event-emitter",
"version": "0.1.1",
"version": "0.1.2",
"description": "Simple service registry",

@@ -12,3 +12,3 @@ "main": "lib/EventEmitter.js",

"build": "./node_modules/.bin/babel src --out-dir lib",
"prebublish": "npm run test-all"
"prepublish": "npm run test-all"
},

@@ -15,0 +15,0 @@ "repository": {

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