base-queue 1.0.4 → 1.0.6
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 +15 -3
- package/appenders/json_status.js +7 -0
- package/appenders/json_version.js +8 -1
- package/package.json +1 -1
- package/test/package.js +1 -1
package/appenders/json_name.js
CHANGED
|
@@ -14,7 +14,13 @@ exports = module.exports = class json_name extends base {
|
|
|
14
14
|
try {
|
|
15
15
|
t.aname = 'json_name'
|
|
16
16
|
t.main_process_objects = []
|
|
17
|
-
t.common_code = new common_code({
|
|
17
|
+
t.common_code = new common_code({
|
|
18
|
+
parent: t,
|
|
19
|
+
log: t.parent.logMsg,
|
|
20
|
+
include_func: t.get_include_names,
|
|
21
|
+
exclude_func: t.get_exclude_names,
|
|
22
|
+
by_what: t.aname
|
|
23
|
+
})
|
|
18
24
|
|
|
19
25
|
if (typeof props.data_to_process_array == 'undefined')
|
|
20
26
|
throw new Error(`props.data_to_process_array not defined`)
|
|
@@ -30,7 +36,7 @@ exports = module.exports = class json_name extends base {
|
|
|
30
36
|
return t
|
|
31
37
|
} catch (e) {
|
|
32
38
|
e.message = `${fname} error: ${e.message})`
|
|
33
|
-
t.parent.logMsg({msg: e.message.error, type: "error"})
|
|
39
|
+
t.parent.logMsg({ msg: e.message.error, type: "error" })
|
|
34
40
|
throw e
|
|
35
41
|
// t.parent.app_reject(`${fname} error: ${e.message})`)
|
|
36
42
|
}
|
|
@@ -51,7 +57,13 @@ exports = module.exports = class json_name extends base {
|
|
|
51
57
|
dat.props.log = t.parent.logMsg
|
|
52
58
|
dat.props.relative_path = t.relative_path
|
|
53
59
|
obj = t.get_objects_to_process()[0]
|
|
54
|
-
t.
|
|
60
|
+
is = t.get_include_status()
|
|
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
|
+
}
|
|
55
67
|
})
|
|
56
68
|
} catch (e) {
|
|
57
69
|
e.message = `${fname} error: ${e.message}`
|
package/appenders/json_status.js
CHANGED
|
@@ -13,6 +13,13 @@ exports = module.exports = class json_status extends base {
|
|
|
13
13
|
try {
|
|
14
14
|
t.aname = 'json_status'
|
|
15
15
|
t.main_process_objects = []
|
|
16
|
+
t.common_code = new common_code({
|
|
17
|
+
parent: t,
|
|
18
|
+
log: t.parent.logMsg,
|
|
19
|
+
include_func: t.get_include_status,
|
|
20
|
+
exclude_func: t.get_exclude_status,
|
|
21
|
+
by_what: t.aname
|
|
22
|
+
})
|
|
16
23
|
|
|
17
24
|
if (typeof props.data_to_process_array == 'undefined')
|
|
18
25
|
throw new Error(`props.data_to_process_array not defined`)
|
|
@@ -13,7 +13,14 @@ exports = module.exports = class json_version extends base {
|
|
|
13
13
|
try {
|
|
14
14
|
t.aname = 'json_version'
|
|
15
15
|
t.main_process_objects = []
|
|
16
|
-
|
|
16
|
+
t.common_code = new common_code({
|
|
17
|
+
parent: t,
|
|
18
|
+
log: t.parent.logMsg,
|
|
19
|
+
include_func: t.get_include_version,
|
|
20
|
+
exclude_func: t.get_exclude_version,
|
|
21
|
+
by_what: t.aname
|
|
22
|
+
})
|
|
23
|
+
|
|
17
24
|
if (typeof props.data_to_process_array == 'undefined')
|
|
18
25
|
throw new Error(`props.data_to_process_array not defined`)
|
|
19
26
|
|
package/package.json
CHANGED