queueobj 15.1.9 → 15.1.11
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 +9 -4
- package/package.json +3 -5
package/app.js
CHANGED
|
@@ -129,9 +129,6 @@ exports = module.exports = class QueueObj {
|
|
|
129
129
|
process(props = {}) {
|
|
130
130
|
let t = this, fname = `app.process`, xlog
|
|
131
131
|
|
|
132
|
-
// if (typeof props.data_to_process_array == 'undefined')
|
|
133
|
-
// t.reject('base_queue no props.data_to_process_array')
|
|
134
|
-
|
|
135
132
|
if (typeof props.appender == 'undefined')
|
|
136
133
|
t.reject('base_queue no props.appender')
|
|
137
134
|
if (typeof props.process_objects == 'undefined')
|
|
@@ -167,7 +164,7 @@ exports = module.exports = class QueueObj {
|
|
|
167
164
|
return this.qJson.get_class_obj_array()
|
|
168
165
|
}
|
|
169
166
|
|
|
170
|
-
logMsg(props = { msg: '', type: '' }) {
|
|
167
|
+
logMsg(props = { msg: '', stack: '', type: '' }) {
|
|
171
168
|
let t = this, fname = "QueueObj.logMsg"
|
|
172
169
|
try {
|
|
173
170
|
if (typeof props.msg == "undefined")
|
|
@@ -176,6 +173,14 @@ exports = module.exports = class QueueObj {
|
|
|
176
173
|
throw new Error(`no type property in (${JSON.stringify(props)}) `)
|
|
177
174
|
if (t.log_queue != null && typeof t.log_queue.logMsg != 'undefined') {
|
|
178
175
|
t.log_queue.logMsg(props)
|
|
176
|
+
try {
|
|
177
|
+
if (typeof props.stack === 'string') {
|
|
178
|
+
var arr = props.stack.split("\n")[1].replace(/ /g, "")
|
|
179
|
+
t.log_queue.logMsg({msg: arr, 'type': 'error'})
|
|
180
|
+
}
|
|
181
|
+
} catch (e) {
|
|
182
|
+
qObj.logMsg({ msg: e.message, 'stack': e.stack, 'type': "error" })
|
|
183
|
+
}
|
|
179
184
|
} else {
|
|
180
185
|
throw new Error(`t.log_queue does not exist`)
|
|
181
186
|
}
|
package/package.json
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "15.1.
|
|
5
|
+
"version": "15.1.11",
|
|
6
6
|
"bundleDependencies": [],
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"base-queue": "^3.0.
|
|
8
|
+
"base-queue": "^3.0.7",
|
|
9
9
|
"colors": "^1.4.0",
|
|
10
|
-
"
|
|
11
|
-
"http": "^0.0.1-security",
|
|
12
|
-
"log-queue": "^3.0.7",
|
|
10
|
+
"log-queue": "^3.0.8",
|
|
13
11
|
"valid-path": "^2.1.0"
|
|
14
12
|
},
|
|
15
13
|
"scripts": {
|