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.
@@ -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({ parent: t, log: t.parent.logMsg })
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.common_code.init({ obj: obj, dat: dat })
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}`
@@ -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
@@ -2,7 +2,7 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "1.0.4",
5
+ "version": "1.0.6",
6
6
  "bundleDependencies": [],
7
7
  "dependencies": {
8
8
  "chai": "^4.3.7",
package/test/package.js CHANGED
@@ -6,7 +6,7 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "1.0.4",
9
+ "version": "1.0.6",
10
10
  "bundleDependencies": [],
11
11
  "dependencies": {
12
12
  "chai": "^4.3.7",