queueobj 14.0.3 → 14.0.5

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 CHANGED
@@ -127,7 +127,7 @@ exports = module.exports = class QueueObj {
127
127
  }
128
128
 
129
129
  process(props = {}) {
130
- let t = this, fname = `app.process`, log_appender
130
+ let t = this, fname = `app.process`, xlog
131
131
 
132
132
  // if (typeof props.data_to_process_array == 'undefined')
133
133
  // t.reject('base_queue no props.data_to_process_array')
@@ -138,10 +138,9 @@ exports = module.exports = class QueueObj {
138
138
  if (typeof props.process_objects == 'undefined')
139
139
  t.reject(`props.process_objects not defined`)
140
140
 
141
- if (typeof props.log_appender != "undefined")
142
- log_appender = props.log_appender
143
- else
144
- log_appender = "console"
141
+ xlog = {appender: "console"}
142
+ if (typeof props.xlog != "undefined" && typeof props.xlog.appender != "undefined")
143
+ xlog = props.xlog
145
144
  try {
146
145
  t.log_queue = new log_queue({
147
146
  parent: t,
@@ -149,7 +148,7 @@ exports = module.exports = class QueueObj {
149
148
  exclude_logMsg: props.exclude_logMsg,
150
149
  resolve: t.resolve,
151
150
  reject: t.reject
152
- }).init({ appender: log_appender })
151
+ }).init(xlog)
153
152
  t.base_queue = new base_queue({
154
153
  parent: t,
155
154
  relative_path: "./appenders/",
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "14.0.3",
5
+ "version": "14.0.5",
6
6
  "bundleDependencies": [],
7
7
  "dependencies": {
8
- "base-queue": "^1.0.1",
8
+ "base-queue": "^1.0.2",
9
9
  "chai": "^4.3.7",
10
10
  "colors": "^1.4.0",
11
11
  "diffler": "^2.0.4",
package/test/package.js CHANGED
@@ -6,10 +6,10 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "14.0.3",
9
+ "version": "14.0.5",
10
10
  "bundleDependencies": [],
11
11
  "dependencies": {
12
- "base-queue": "^1.0.1",
12
+ "base-queue": "^1.0.2",
13
13
  "chai": "^4.3.7",
14
14
  "colors": "^1.4.0",
15
15
  "diffler": "^2.0.4",
@@ -69,7 +69,6 @@ const packageMock = {
69
69
  "start": "node app.js"
70
70
  }
71
71
 
72
-
73
72
  describe('package.json', function () {
74
73
  it('should pass', function () {
75
74
  const difference = jsonHasDifferences(packagejson, packageMock)