@flowio/events
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
14798
5
167
2