queueobj 11.0.0 → 11.0.1
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.
- package/app.js +2 -2
- package/package.json +1 -1
- package/test/package.js +1 -1
- package/tests/test_name.js +1 -1
package/app.js
CHANGED
|
@@ -10,7 +10,7 @@ var colors = require('colors'),
|
|
|
10
10
|
bottom_one = require('./lib/appenders/bottom_one'),
|
|
11
11
|
sync_all = require('./lib/appenders/sync_all'),
|
|
12
12
|
status = require('./lib/appenders/status'),
|
|
13
|
-
|
|
13
|
+
name = require('./lib/appenders/name'),
|
|
14
14
|
version = require('./lib/appenders/version')
|
|
15
15
|
|
|
16
16
|
class QueueObj {
|
|
@@ -150,7 +150,7 @@ class QueueObj {
|
|
|
150
150
|
t.sync_all = new sync_all(props)
|
|
151
151
|
break
|
|
152
152
|
case 'name':
|
|
153
|
-
t.name = new
|
|
153
|
+
t.name = new name(props)
|
|
154
154
|
break
|
|
155
155
|
default:
|
|
156
156
|
throw new Error(`appender(${props.appender}) not found`)
|
package/package.json
CHANGED
package/test/package.js
CHANGED
package/tests/test_name.js
CHANGED
|
@@ -31,7 +31,7 @@ class test2 {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
process(callback) {
|
|
34
|
-
let t = this, msg = `some kinda problem here`
|
|
34
|
+
let t = this, msg = `some kinda problem here test2 id(${this.id}) name(${this.name})`
|
|
35
35
|
callback({error: {msg: msg}}) //this will show errors
|
|
36
36
|
// callback({success: {msg: `processing test2 id(${this.id}) name(${this.name})`}}) //this will show no errors
|
|
37
37
|
}
|