base-queue 1.0.5 → 1.0.7
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/appenders/json_name.js +8 -2
- package/package.json +1 -1
- package/test/package.js +1 -1
package/appenders/json_name.js
CHANGED
|
@@ -36,7 +36,7 @@ exports = module.exports = class json_name extends base {
|
|
|
36
36
|
return t
|
|
37
37
|
} catch (e) {
|
|
38
38
|
e.message = `${fname} error: ${e.message})`
|
|
39
|
-
t.parent.logMsg({msg: e.message.error, type: "error"})
|
|
39
|
+
t.parent.logMsg({ msg: e.message.error, type: "error" })
|
|
40
40
|
throw e
|
|
41
41
|
// t.parent.app_reject(`${fname} error: ${e.message})`)
|
|
42
42
|
}
|
|
@@ -57,7 +57,13 @@ exports = module.exports = class json_name extends base {
|
|
|
57
57
|
dat.props.log = t.parent.logMsg
|
|
58
58
|
dat.props.relative_path = t.relative_path
|
|
59
59
|
obj = t.get_objects_to_process()[0]
|
|
60
|
-
t.
|
|
60
|
+
is = t.get_include_names()
|
|
61
|
+
obj_a = new obj(dat.props)
|
|
62
|
+
if (typeof obj_a != "undefined" &&
|
|
63
|
+
typeof obj_a.name != "undefined" &&
|
|
64
|
+
is.indexOf(obj_a.name) > -1) {
|
|
65
|
+
t.main_process_objects.push(new obj(dat.props))
|
|
66
|
+
}
|
|
61
67
|
})
|
|
62
68
|
} catch (e) {
|
|
63
69
|
e.message = `${fname} error: ${e.message}`
|
package/package.json
CHANGED