Comparing version 1.0.5 to 1.0.6
@@ -17,2 +17,3 @@ const uuid = require('node-uuid') | ||
this.events = {} | ||
this.debug = config.debug | ||
this.maxProceses = config.maxProceses || 1 | ||
@@ -35,3 +36,3 @@ this.process = config.process | ||
emit(event, payload) { | ||
if (this.debug && console) console.log(`[${new Date()}][${event}]`) | ||
if (this.debug && console) console.log(`[${new Date()}][${event}]`, payload) | ||
if (this.events[event]) this.events[event](payload) | ||
@@ -38,0 +39,0 @@ } |
@@ -27,2 +27,3 @@ 'use strict'; | ||
this.events = {}; | ||
this.debug = config.debug; | ||
this.maxProceses = config.maxProceses || 1; | ||
@@ -48,3 +49,3 @@ this.process = config.process; | ||
value: function emit(event, payload) { | ||
if (this.debug && console) console.log('[' + new Date() + '][' + event + ']'); | ||
if (this.debug && console) console.log('[' + new Date() + '][' + event + ']', payload); | ||
if (this.events[event]) this.events[event](payload); | ||
@@ -51,0 +52,0 @@ } |
{ | ||
"name": "jobq", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "job queuer", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
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
21493
511