queueobj 12.0.0 → 12.0.3
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/README.md +8 -6
- package/app.js +2 -2
- package/lib/appenders/base.js +1 -2
- package/package.json +2 -2
- package/test/app.js +2 -2
- package/test/package.js +2 -2
- package/tests/test_all.js +1 -1
- package/tests/test_bottom_one.js +1 -1
- package/tests/test_func_all.js +1 -1
- package/tests/test_name.js +3 -3
- package/tests/test_status.js +1 -1
- package/tests/test_sync_all.js +1 -1
- package/tests/test_top_one.js +1 -1
- package/tests/test_version.js +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
[](https://www.npmjs.org/package/queueobj)
|
|
2
|
+
[](https://github.com/jman717/queueobj/blob/master/LICENSE)
|
|
3
|
+
|
|
4
|
+
[](https://nodei.co/npm/queueobj/)
|
|
5
|
+
|
|
1
6
|
Queue javascript objects dynamically then process the queue according to the appender.
|
|
2
7
|
|
|
8
|
+
---------
|
|
9
|
+
|
|
3
10
|
Included tag appenders:
|
|
4
11
|
|
|
5
12
|
* all - synchronous - process all added objects.
|
|
@@ -11,11 +18,6 @@ Included tag appenders:
|
|
|
11
18
|
* name - synchronous - queue and process all objects by name.
|
|
12
19
|
* version - synchronous - queue and process all objects by version.
|
|
13
20
|
|
|
14
|
-
Installation
|
|
15
|
-
---------
|
|
16
|
-
|
|
17
|
-
[](https://nodei.co/npm/queueobj/)
|
|
18
|
-
|
|
19
21
|
Mocha Test
|
|
20
22
|
---------
|
|
21
23
|
```
|
|
@@ -40,7 +42,7 @@ Usage
|
|
|
40
42
|
---------
|
|
41
43
|
```js
|
|
42
44
|
|
|
43
|
-
var colors = require('colors')
|
|
45
|
+
var colors = require('node-console-colors')
|
|
44
46
|
var queue = require("queueobj");
|
|
45
47
|
|
|
46
48
|
class test1 {
|
package/app.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Main processing app
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
var colors = require('colors'),
|
|
7
|
-
file_queue = new require('file-obj-queue'),
|
|
6
|
+
var colors = require('node-console-colors'),
|
|
7
|
+
file_queue = new require('file-obj-queue'),
|
|
8
8
|
file_requre_data = [
|
|
9
9
|
{ props: { id: 100, name: "all", path: "./lib/appenders/all.js", absolute_path: __filename, check: true } },
|
|
10
10
|
{ props: { id: 101, name: "func_all", path: "./lib/appenders/func_all.js", absolute_path: __filename, check: true } },
|
package/lib/appenders/base.js
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
* @author Jim Manton: jrman@risebroadband.net
|
|
3
3
|
* @since 2017-10-01
|
|
4
4
|
* lib/appenders/base.js
|
|
5
|
-
* jrm debug 8/4 https://www.npmjs.com/package/temporary-stamp
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
|
-
var colors = require('colors')
|
|
7
|
+
var colors = require('node-console-colors')
|
|
9
8
|
|
|
10
9
|
class process_all_obj {
|
|
11
10
|
constructor(props) {
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "12.0.
|
|
5
|
+
"version": "12.0.3",
|
|
6
6
|
"bundleDependencies": [],
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"chai": "^4.3.7",
|
|
9
9
|
"diffler": "^2.0.4",
|
|
10
|
-
"file-obj-queue": "^
|
|
10
|
+
"file-obj-queue": "^1.0.1",
|
|
11
11
|
"mocha": "^10.2.0",
|
|
12
12
|
"node-console-colors": "^1.1.4",
|
|
13
13
|
"queuejson": "^8.4.0"
|
package/test/app.js
CHANGED
|
@@ -39,8 +39,8 @@ describe('require', function () {
|
|
|
39
39
|
assert(require('../lib/appenders/base'))
|
|
40
40
|
})
|
|
41
41
|
|
|
42
|
-
it('colors
|
|
43
|
-
assert(require('colors'))
|
|
42
|
+
it('node-console-colors', function () {
|
|
43
|
+
assert(require('node-console-colors'))
|
|
44
44
|
})
|
|
45
45
|
|
|
46
46
|
it('all appender', function () {
|
package/test/package.js
CHANGED
|
@@ -6,12 +6,12 @@ const packageMock = {
|
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jim Manton"
|
|
8
8
|
},
|
|
9
|
-
"version": "12.0.
|
|
9
|
+
"version": "12.0.3",
|
|
10
10
|
"bundleDependencies": [],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chai": "^4.3.7",
|
|
13
13
|
"diffler": "^2.0.4",
|
|
14
|
-
"file-obj-queue": "^
|
|
14
|
+
"file-obj-queue": "^1.0.1",
|
|
15
15
|
"mocha": "^10.2.0",
|
|
16
16
|
"node-console-colors": "^1.1.4",
|
|
17
17
|
"queuejson": "^8.4.0"
|
package/tests/test_all.js
CHANGED
package/tests/test_bottom_one.js
CHANGED
package/tests/test_func_all.js
CHANGED
package/tests/test_name.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* test_name.js
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
var colors = require('colors'),
|
|
7
|
+
var colors = require('node-console-colors'),
|
|
8
8
|
queue = require("../app.js")
|
|
9
9
|
|
|
10
10
|
class test1 {
|
|
@@ -32,8 +32,8 @@ class test2 {
|
|
|
32
32
|
|
|
33
33
|
process(callback) {
|
|
34
34
|
let t = this, msg = `some kinda problem here test2 id(${this.id}) name(${this.name})`
|
|
35
|
-
callback({error: {msg: msg}}) //this will show errors
|
|
36
|
-
|
|
35
|
+
// callback({error: {msg: msg}}) //this will show errors
|
|
36
|
+
callback({success: {msg: `processing test2 id(${this.id}) name(${this.name})`}}) //this will show no errors
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
ping() {
|
package/tests/test_status.js
CHANGED
package/tests/test_sync_all.js
CHANGED
package/tests/test_top_one.js
CHANGED