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 +5 -6
- package/package.json +2 -2
- package/test/package.js +2 -3
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`,
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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(
|
|
151
|
+
}).init(xlog)
|
|
153
152
|
t.base_queue = new base_queue({
|
|
154
153
|
parent: t,
|
|
155
154
|
relative_path: "./appenders/",
|
package/package.json
CHANGED
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.
|
|
9
|
+
"version": "14.0.5",
|
|
10
10
|
"bundleDependencies": [],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"base-queue": "^1.0.
|
|
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)
|