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

@flowio/events

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowio/events - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

7

lib/trigger-once-events.js

@@ -58,5 +58,11 @@ 'use strict';

console.log('[ERROR] Failed to execute callback function for subscribed event[' + event + '] due to error[' + error.message + '] in provided callback function', error);
this.emitter.trigger('error', new Error('Failed to execute callback function for subscribed event[' + event + '] due to error[' + error.message + '] in provided callback function'));
}
}
}
}, {
key: 'onError',
value: function onError(callback) {
this.emitter.on('error', callback);
}

@@ -90,2 +96,3 @@ /**

console.log('[ERROR] Failed to execute all callbacks for triggered event[' + event + '] due to error[' + error.message + '] in provided callback function', error);
this.emitter.trigger('error', new Error('Failed to execute all callbacks for triggered event[' + event + '] due to error[' + error.message + '] in provided callback function'));
}

@@ -92,0 +99,0 @@ }

5

package.json
{
"name": "@flowio/events",
"version": "0.0.2",
"version": "0.0.3",
"description": "Event Bus (Pub/Sub)",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {

@@ -7,0 +10,0 @@ "build": "babel ./src --out-dir ./lib --copy-files",

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