base-queue 3.0.0 → 3.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/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "3.0.0",
5
+ "version": "3.0.1",
6
6
  "bundleDependencies": [],
7
7
  "dependencies": {
8
8
  "chai": "^4.3.7",
9
9
  "colors": "^1.4.0",
10
10
  "diffler": "^2.0.4",
11
11
  "fs": "^0.0.1-security",
12
- "log-queue": "^3.0.0",
12
+ "log-queue": "^3.0.1",
13
13
  "mocha": "^10.2.0",
14
14
  "valid-path": "^2.1.0"
15
15
  },
package/test/package.js CHANGED
@@ -6,14 +6,14 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "3.0.0",
9
+ "version": "3.0.1",
10
10
  "bundleDependencies": [],
11
11
  "dependencies": {
12
12
  "chai": "^4.3.7",
13
13
  "colors": "^1.4.0",
14
14
  "diffler": "^2.0.4",
15
15
  "fs": "^0.0.1-security",
16
- "log-queue": "^3.0.0",
16
+ "log-queue": "^3.0.1",
17
17
  "mocha": "^10.2.0",
18
18
  "valid-path": "^2.1.0"
19
19
  },
@@ -56,7 +56,6 @@ const packageMock = {
56
56
  "start": "node app.js"
57
57
  }
58
58
 
59
-
60
59
  describe('package.json', function () {
61
60
  it('should pass', function () {
62
61
  const difference = jsonHasDifferences(packagejson, packageMock)
@@ -68,8 +68,8 @@ var tst4 = class test4 {
68
68
 
69
69
  var lq = require("log-queue"),
70
70
  log = new lq({
71
- exclude_logMsg: ["debug"], /* example ["debug", "info"] */
72
- }).init({appender: "http", hostname: "127.0.0.1", port: 3001}),
71
+ exclude_logMsg: ["debug"], /* example ["debug", "info", "error"] */
72
+ }).init({ appender: "http", hostname: "127.0.0.1", port: 3001 }),
73
73
  a_resolve, a_reject,
74
74
  promise = new Promise((resolve, reject) => {
75
75
  a_resolve = resolve
@@ -89,6 +89,7 @@ var lq = require("log-queue"),
89
89
 
90
90
  promise.then((success) => {
91
91
  log.logMsg({ msg: `All object processed successfully`.success.italic.bold, type: "success" })
92
+ log.server()
92
93
  }, (error) => {
93
94
  if (typeof error == "string") {
94
95
  log.logMsg({ msg: `error: ${error}`.error.italic.bold, type: "error" })
@@ -96,6 +97,5 @@ promise.then((success) => {
96
97
  let add_s = (error.error_count > 1) ? 's' : ''
97
98
  log.logMsg({ msg: `${error.error_count} error${add_s} detected`.error.italic.bold, type: "error" })
98
99
  }
100
+ log.server()
99
101
  })
100
-
101
- log.server()
@@ -101,7 +101,6 @@ var lq = require("log-queue"),
101
101
  reject: a_reject
102
102
  }).load({
103
103
  appender: "json_all",
104
- exclude_logMsg: ["debug", "silly", "info"], /* default [] */
105
104
  process_objects: [file_object],
106
105
  data_to_process_array: file_data
107
106
  }).process()