queueobj 10.3.0 → 10.5.0
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 +11 -7
- package/lib/appenders/base.js +0 -1
- package/package.json +9 -3
- package/test/base.js +22 -0
- package/test/package.js +9 -3
- package/{test_all.js → tests/test_all.js} +3 -3
- /package/{test_bottom_one.js → tests/test_bottom_one.js} +0 -0
- /package/{test_func_all.js → tests/test_func_all.js} +0 -0
- /package/{test_status.js → tests/test_status.js} +0 -0
- /package/{test_sync_all.js → tests/test_sync_all.js} +0 -0
- /package/{test_top_one.js → tests/test_top_one.js} +0 -0
- /package/{test_version.js → tests/test_version.js} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
# QueueObj
|
|
3
|
+
|
|
4
|
+
[](https://nodei.co/npm/log4js-tagline/)
|
|
5
|
+
|
|
2
6
|
Queue javascript objects dynamically then process the queue according to the appender.
|
|
3
7
|
|
|
4
8
|
Included tag appenders:
|
|
@@ -26,13 +30,13 @@ npm test
|
|
|
26
30
|
General Setup Test
|
|
27
31
|
---------
|
|
28
32
|
```
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
npm run test_all
|
|
34
|
+
npm run test_top_one
|
|
35
|
+
npm run test_bottom_one
|
|
36
|
+
npm run test_func_all
|
|
37
|
+
npm run test_sync_all
|
|
38
|
+
npm run test_status
|
|
39
|
+
npm run test_version
|
|
36
40
|
|
|
37
41
|
```
|
|
38
42
|
|
package/lib/appenders/base.js
CHANGED
package/package.json
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "10.
|
|
5
|
+
"version": "10.5.0",
|
|
6
6
|
"bundleDependencies": false,
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"chai": "^4.3.7",
|
|
9
|
-
"colors": "^1.4
|
|
9
|
+
"node-console-colors": "^1.1.4",
|
|
10
10
|
"diffler": "^2.0.4",
|
|
11
11
|
"mocha": "^10.2.0"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"start": "node app.ts",
|
|
15
15
|
"test": "mocha",
|
|
16
|
-
"ditched": "ditched -a"
|
|
16
|
+
"ditched": "ditched -a",
|
|
17
|
+
"test_all": "node ./tests/test_all",
|
|
18
|
+
"test_bottom_one": "node ./tests/test_bottom_one",
|
|
19
|
+
"test_func_all": "node ./tests/test_func_all",
|
|
20
|
+
"test_status": "node ./tests/test_status",
|
|
21
|
+
"test_top_one": "node ./tests/test_top_one",
|
|
22
|
+
"test_version": "node ./tests/test_version"
|
|
17
23
|
},
|
|
18
24
|
"keywords": [
|
|
19
25
|
"queue",
|
package/test/base.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var assert = require('assert');
|
|
2
|
+
|
|
3
|
+
describe('base', function () {
|
|
4
|
+
let base, bs
|
|
5
|
+
|
|
6
|
+
beforeEach(function () {
|
|
7
|
+
bs = require('../lib/appenders/base.js')
|
|
8
|
+
base = new bs({getParent: ()=>{}})
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
it('base should pass', function () {
|
|
12
|
+
assert(typeof base != 'undefined')
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
it('base.process is a function', function () {
|
|
16
|
+
assert(typeof base.process == 'function')
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
it('base.process_all is a function', function () {
|
|
20
|
+
assert(typeof base.process_all == 'function')
|
|
21
|
+
})
|
|
22
|
+
})
|
package/test/package.js
CHANGED
|
@@ -6,18 +6,24 @@ const packageMock = {
|
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jim Manton"
|
|
8
8
|
},
|
|
9
|
-
"version": "10.
|
|
9
|
+
"version": "10.5.0",
|
|
10
10
|
"bundleDependencies": false,
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chai": "^4.3.7",
|
|
13
|
-
"colors": "^1.4
|
|
13
|
+
"node-console-colors": "^1.1.4",
|
|
14
14
|
"diffler": "^2.0.4",
|
|
15
15
|
"mocha": "^10.2.0"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "node app.ts",
|
|
19
19
|
"test": "mocha",
|
|
20
|
-
"ditched": "ditched -a"
|
|
20
|
+
"ditched": "ditched -a",
|
|
21
|
+
"test_all": "node ./tests/test_all",
|
|
22
|
+
"test_bottom_one": "node ./tests/test_bottom_one",
|
|
23
|
+
"test_func_all": "node ./tests/test_func_all",
|
|
24
|
+
"test_status": "node ./tests/test_status",
|
|
25
|
+
"test_top_one": "node ./tests/test_top_one",
|
|
26
|
+
"test_version": "node ./tests/test_version"
|
|
21
27
|
},
|
|
22
28
|
"keywords": [
|
|
23
29
|
"queue",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var colors = require('colors')
|
|
2
2
|
|
|
3
|
-
var queue = require("
|
|
3
|
+
var queue = require("../app.js");
|
|
4
4
|
|
|
5
5
|
class test1 {
|
|
6
6
|
process(callback) {
|
|
@@ -17,8 +17,8 @@ class test2 {
|
|
|
17
17
|
|
|
18
18
|
class test3 {
|
|
19
19
|
process(callback) {
|
|
20
|
-
callback({success: { msg: `processing all test3` }})
|
|
21
|
-
|
|
20
|
+
// callback({success: { msg: `processing all test3` }})
|
|
21
|
+
callback({ error: { msg: `there is some problem thrown here on test3` } })
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|