@hyperingenuity/events 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -233,7 +233,7 @@ class EventBus {
233
233
 
234
234
  if (callbacks.size) {
235
235
  for (const callback of callbacks) {
236
- process.nextTick(() => {
236
+ setImmediate(() => {
237
237
  try {
238
238
  return callback(event, contexts.get(callback), this.$shared);
239
239
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperingenuity/events",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "JavaScript Event Emitter Library",
5
5
  "main": "index.js",
6
6
  "repository": "git@github.com:mdbarr/events.git",