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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "10.1.2",
5
+ "version": "10.1.3",
6
6
  "bundleDependencies": false,
7
7
  "dependencies": {
8
8
  "chai": "^4.3.3",
package/test/package.js CHANGED
@@ -6,7 +6,7 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "10.1.2",
9
+ "version": "10.1.3",
10
10
  "bundleDependencies": false,
11
11
  "dependencies": {
12
12
  "chai": "^4.3.3",
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: (${JSON.stringify(res)})`.bold.italic.green)
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
  })
@@ -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: (${JSON.stringify(res)})`.bold.italic.green)
26
+ qObj.logMsg(`success with all sync processing: (${res})`.bold.italic.green)
27
27
  }, err => {
28
- qObj.logMsg(`errors with all sync processing: (${JSON.stringify(err)})`.red)
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: (${JSON.stringify(res)})`.bold.italic.green)
40
+ qObj.logMsg(`success with func_all processing: (${res})`.bold.italic.green)
41
41
  }, err => {
42
- qObj.logMsg(`errors with func_all processing: (${JSON.stringify(err)})`.red)
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: (${JSON.stringify(res)})`.bold.italic.green)
77
+ qObj.logMsg(`success with status processing: (${res})`.bold.italic.green)
78
78
  }, err => {
79
- qObj.logMsg(`errors with status processing: (${JSON.stringify(err)})`.red)
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: (${JSON.stringify(res)})`.bold.italic.green)
74
+ qObj.logMsg(`success with all sync processing: (${res})`.bold.italic.green)
75
75
  }, err => {
76
- qObj.logMsg(`errors with all sync processing: (${JSON.stringify(err)})`.red)
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: (${JSON.stringify(res)})`.bold.italic.green)
26
+ qObj.logMsg(`success with all sync processing: (${res})`.bold.italic.green)
27
27
  }, err => {
28
- qObj.logMsg(`errors with all sync processing: (${JSON.stringify(err)})`.red)
28
+ qObj.logMsg(`errors with all sync processing: (${err})`.red)
29
29
  })
30
30