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

bare-events

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-events - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

14

index.js

@@ -278,11 +278,11 @@ const errors = require('./lib/errors')

if (name !== 'error') emitter.on('error', onerror)
if (signal) signal.addEventListener('abort', onabort)
if (name !== 'error') emitter.on('error', onerror)
emitter.once(name, (...args) => {
if (name !== 'error') emitter.off('error', onerror)
emitter.once(name, (...args) => {
if (signal) signal.removeEventListener('abort', onabort)
if (name !== 'error') emitter.off('error', onerror)
resolve(args)

@@ -292,2 +292,4 @@ })

function onerror (err) {
emitter.off('error', onerror)
reject(err)

@@ -297,3 +299,5 @@ }

function onabort () {
reject(errors.OPERATION_ABORTED(signal.reason))
signal.removeEventListener('abort', onabort)
onerror(errors.OPERATION_ABORTED(signal.reason))
}

@@ -300,0 +304,0 @@ })

{
"name": "bare-events",
"version": "2.4.0",
"version": "2.4.1",
"description": "Event emitters for JavaScript",

@@ -5,0 +5,0 @@ "main": "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