queueobj 10.1.2 → 10.1.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.
- package/package.json +1 -1
- package/test/package.js +1 -1
- package/test_all.js +1 -7
- package/test_bottom_one.js +2 -2
- package/test_func_all.js +2 -2
- package/test_status.js +2 -2
- package/test_sync_all.js +2 -2
- package/test_top_one.js +2 -2
package/package.json
CHANGED
package/test/package.js
CHANGED
package/test_all.js
CHANGED
|
@@ -31,13 +31,7 @@ class test4 {
|
|
|
31
31
|
let qObj = new queue(), props = { appender: 'all', stats: true }
|
|
32
32
|
|
|
33
33
|
qObj.load(props).add(new test1()).add(new test2()).add(new test3()).add(new test4()).process({}).then(res => {
|
|
34
|
-
qObj.logMsg(`success with all processing: (${
|
|
34
|
+
qObj.logMsg(`success with all processing: (${res})`.bold.italic.green)
|
|
35
35
|
}, err => {
|
|
36
|
-
// qObj.logMsg(`error with all processing: (${JSON.stringify(err)})`.red) //show all results
|
|
37
36
|
qObj.logMsg(`error with all processing: (${err})`.red) //show the execution time
|
|
38
|
-
err.responses.map((jItem, i) => {
|
|
39
|
-
if (typeof jItem.error != 'undefined' && typeof jItem.error.msg != 'undefined') {
|
|
40
|
-
qObj.logMsg(`error: ${jItem.error.msg}`.red) //show the error
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
37
|
})
|
package/test_bottom_one.js
CHANGED
|
@@ -23,7 +23,7 @@ class test3 {
|
|
|
23
23
|
let qObj = new queue(), props = { appender: 'bottom_one', stats: false}
|
|
24
24
|
|
|
25
25
|
qObj.load(props).add(new test1()).add(new test2(qObj)).add(new test3()).process({}).then(res => {
|
|
26
|
-
qObj.logMsg(`success with all sync processing: (${
|
|
26
|
+
qObj.logMsg(`success with all sync processing: (${res})`.bold.italic.green)
|
|
27
27
|
}, err => {
|
|
28
|
-
qObj.logMsg(`errors with all sync processing: (${
|
|
28
|
+
qObj.logMsg(`errors with all sync processing: (${err})`.red)
|
|
29
29
|
})
|
package/test_func_all.js
CHANGED
|
@@ -37,8 +37,8 @@ let tst1 = new test1(),
|
|
|
37
37
|
tst3 = new test3(qObj, tst4)
|
|
38
38
|
|
|
39
39
|
qObj.load(props).add(tst1.some_function).add(tst2.a_func).add(tst3.cool).process().then(res => {
|
|
40
|
-
qObj.logMsg(`success with func_all processing: (${
|
|
40
|
+
qObj.logMsg(`success with func_all processing: (${res})`.bold.italic.green)
|
|
41
41
|
}, err => {
|
|
42
|
-
qObj.logMsg(`errors with func_all processing: (${
|
|
42
|
+
qObj.logMsg(`errors with func_all processing: (${err})`.red)
|
|
43
43
|
})
|
|
44
44
|
|
package/test_status.js
CHANGED
|
@@ -74,9 +74,9 @@ let qObj = new queue(), props = { appender: 'status', stats: true }
|
|
|
74
74
|
qObj.load(props).add(new test1()).add(new test2()).add(new test3()).add(new test4())
|
|
75
75
|
|
|
76
76
|
qObj.process({ property: 'status', items: ['init'] }).then(res => {
|
|
77
|
-
qObj.logMsg(`success with status processing: (${
|
|
77
|
+
qObj.logMsg(`success with status processing: (${res})`.bold.italic.green)
|
|
78
78
|
}, err => {
|
|
79
|
-
qObj.logMsg(`errors with status processing: (${
|
|
79
|
+
qObj.logMsg(`errors with status processing: (${err})`.red)
|
|
80
80
|
})
|
|
81
81
|
|
|
82
82
|
// qObj.process({ property: 'status', items: ['error'] }).then(res => {
|
package/test_sync_all.js
CHANGED
|
@@ -71,9 +71,9 @@ let qObj = new queue(), props = { appender: 'sync_all' }
|
|
|
71
71
|
qObj.load(props).add(new test1()).add(new test2()).add(new test3()).add(tst4.custom_function)
|
|
72
72
|
|
|
73
73
|
qObj.process().then(res => {
|
|
74
|
-
qObj.logMsg(`success with all sync processing: (${
|
|
74
|
+
qObj.logMsg(`success with all sync processing: (${res})`.bold.italic.green)
|
|
75
75
|
}, err => {
|
|
76
|
-
qObj.logMsg(`errors with all sync processing: (${
|
|
76
|
+
qObj.logMsg(`errors with all sync processing: (${err})`.red)
|
|
77
77
|
})
|
|
78
78
|
|
|
79
79
|
|
package/test_top_one.js
CHANGED
|
@@ -23,8 +23,8 @@ class test3 {
|
|
|
23
23
|
let qObj = new queue(), props = { appender: 'top_one', stats: true}
|
|
24
24
|
|
|
25
25
|
qObj.load(props).add(new test1()).add(new test2(qObj)).add(new test3()).process({}).then(res => {
|
|
26
|
-
qObj.logMsg(`success with all sync processing: (${
|
|
26
|
+
qObj.logMsg(`success with all sync processing: (${res})`.bold.italic.green)
|
|
27
27
|
}, err => {
|
|
28
|
-
qObj.logMsg(`errors with all sync processing: (${
|
|
28
|
+
qObj.logMsg(`errors with all sync processing: (${err})`.red)
|
|
29
29
|
})
|
|
30
30
|
|