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

@xmpp/events

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmpp/events - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

11

lib/EventEmitter.js

@@ -37,4 +37,11 @@ 'use strict'

['on', 'addListener', 'removeListener', 'once', 'emit', 'listenerCount'].forEach(name => {
EventEmitter.prototype[name] = function (...args) {
;[
'on',
'addListener',
'removeListener',
'once',
'emit',
'listenerCount',
].forEach(name => {
EventEmitter.prototype[name] = function(...args) {
this._emitter[name](...args)

@@ -41,0 +48,0 @@ }

9

lib/timeout.js

@@ -7,5 +7,8 @@ 'use strict'

module.exports = function timeout(promise, ms) {
return Promise.race([promise, delay(ms).then(() => {
throw new TimeoutError()
})])
return Promise.race([
promise,
delay(ms).then(() => {
throw new TimeoutError()
}),
])
}
{
"name": "@xmpp/events",
"description": "A modern and lightweight EventEmitter implementation.",
"repository": "github:node-xmpp/node-xmpp",
"homepage": "https://github.com/node-xmpp/node-xmpp/tree/master/packages/events",
"bugs": "http://github.com/node-xmpp/node-xmpp/issues",
"version": "0.2.0",
"repository": "github:xmppjs/xmpp.js",
"homepage": "https://github.com/xmppjs/xmpp.js/tree/master/packages/events",
"bugs": "http://github.com/xmppjs/xmpp.js/issues",
"version": "0.3.0",
"license": "ISC",

@@ -14,3 +14,7 @@ "keywords": [

"EventEmitter"
]
],
"engines": {
"node": ">= 6",
"npm": ">= 2"
}
}
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