file-obj-queue 1.0.18 → 1.0.19

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.
@@ -79,3 +79,4 @@ jobs:
79
79
 
80
80
  - run: npm run build --if-present
81
81
  - run: npm test
82
+ - run: npm run test_files
package/app.js CHANGED
@@ -26,6 +26,9 @@ class file_obj {
26
26
  if (props.check) {
27
27
  t.do_checks()
28
28
  }
29
+ t.logMsg(`file-obj-queue.constructor`)
30
+
31
+ return t
29
32
  }
30
33
 
31
34
  do_checks() {
@@ -87,13 +90,28 @@ exports = module.exports = class FilesQueue {
87
90
  try {
88
91
  if (typeof props.input_data == 'undefined')
89
92
  throw new Error('props.input_data is not defined')
90
- t.qJson = new queue({
91
- class_obj: file_obj,
92
- appender: 'all',
93
- stats: true,
94
- debug: true
95
- })
96
- t.qJson.init({ input_data: props.input_data }).process()
93
+ try {
94
+ t.logMsg(`jrm debug 1/29 1000`)
95
+ t.qJson = new queue({
96
+ class_obj: file_obj,
97
+ appender: 'all',
98
+ stats: true,
99
+ debug: true
100
+ })
101
+ t.logMsg(`jrm debug 1/29 1001`)
102
+ } catch (e) {
103
+ e.message = "queuejson error: " + e.message
104
+ t.logMsg(e.message)
105
+ throw (e)
106
+ }
107
+ try {
108
+ t.qJson.init({ input_data: props.input_data })
109
+ } catch (e) {
110
+ e.message = "queuejson.init error: " + e.message
111
+ t.logMsg(e.message)
112
+ throw (e)
113
+ }
114
+ t.qJson.process()
97
115
  return t
98
116
  } catch (e) {
99
117
  e.message = "FilesQueue app.js init error: " + e.message
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "1.0.18",
5
+ "version": "1.0.19",
6
6
  "bundleDependencies": [],
7
7
  "dependencies": {
8
8
  "chai": "^4.3.7",
@@ -10,7 +10,7 @@
10
10
  "fs": "^0.0.1-security",
11
11
  "mocha": "^10.2.0",
12
12
  "node-console-colors": "^1.1.4",
13
- "queuejson": "^9.0.3",
13
+ "queuejson": "^9.0.4",
14
14
  "valid-path": "^2.1.0"
15
15
  },
16
16
  "scripts": {
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.18",
9
+ "version": "1.0.19",
10
10
  "bundleDependencies": [],
11
11
  "dependencies": {
12
12
  "chai": "^4.3.7",
@@ -14,7 +14,7 @@ const packageMock = {
14
14
  "fs": "^0.0.1-security",
15
15
  "mocha": "^10.2.0",
16
16
  "node-console-colors": "^1.1.4",
17
- "queuejson": "^9.0.3",
17
+ "queuejson": "^9.0.4",
18
18
  "valid-path": "^2.1.0"
19
19
  },
20
20
  "scripts": {