dcp-worker 3.2.13 → 3.2.14
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/.gitlab-ci.yml +30 -0
- package/.tidelift +2 -0
- package/lib/worker-loggers/console.js +2 -10
- package/package.json +3 -4
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @file .gitlab-ci.yml - GitLab CI configuration file.
|
|
2
|
+
# @author Bryan Hoang <bryan@distributive.network>
|
|
3
|
+
# @date September 2022
|
|
4
|
+
|
|
5
|
+
# Note: The CLI requires `glibc`.
|
|
6
|
+
image: node:14
|
|
7
|
+
|
|
8
|
+
stages:
|
|
9
|
+
- build
|
|
10
|
+
|
|
11
|
+
# Use in-house GitLab runners.
|
|
12
|
+
default:
|
|
13
|
+
tags:
|
|
14
|
+
- dcp
|
|
15
|
+
- linux
|
|
16
|
+
|
|
17
|
+
tidelift:
|
|
18
|
+
stage: build
|
|
19
|
+
variables:
|
|
20
|
+
# This should be kept in a GitLab Variable. Read more:
|
|
21
|
+
# https://docs.gitlab.com/ee/ci/variables/#create-a-custom-variable-in-the-ui
|
|
22
|
+
TIDELIFT_API_KEY: $TIDELIFT_API_KEY
|
|
23
|
+
script:
|
|
24
|
+
- echo "Downloading Tidelift CLI"
|
|
25
|
+
- curl https://download.tidelift.com/cli/tidelift -o tidelift
|
|
26
|
+
- echo "Setting permissions"
|
|
27
|
+
- chmod +x tidelift
|
|
28
|
+
- echo "Running alignment and saving to Tidelift"
|
|
29
|
+
- ./tidelift alignment save --wait
|
|
30
|
+
cache: []
|
package/.tidelift
ADDED
|
@@ -81,22 +81,14 @@ const consoleLogger = {
|
|
|
81
81
|
console.log(" ! Failed to submit results:", ev);
|
|
82
82
|
},
|
|
83
83
|
|
|
84
|
-
onError(ev) {
|
|
85
|
-
this.options.verbose && console.error(" ! Worker error:", ev);
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
onWarning(ev) {
|
|
89
|
-
this.options.verbose >= 2 && console.warn(" ! Worker warning:", ev);
|
|
90
|
-
},
|
|
91
|
-
|
|
92
84
|
onError(ev)
|
|
93
85
|
{
|
|
94
|
-
this.options.verbose && console.error("Worker Error:", ev);
|
|
86
|
+
this.options.verbose && console.error(" ! Worker Error:", ev);
|
|
95
87
|
},
|
|
96
88
|
|
|
97
89
|
onWarning(ev)
|
|
98
90
|
{
|
|
99
|
-
this.options.verbose && console.warn("Worker Warning:", ev);
|
|
91
|
+
this.options.verbose && console.warn(" ! Worker Warning:", ev);
|
|
100
92
|
}
|
|
101
93
|
};
|
|
102
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcp-worker",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"description": "JavaScript portion of DCP Workers for Node.js",
|
|
5
5
|
"main": "bin/dcp-worker",
|
|
6
6
|
"keywords": [
|
|
@@ -36,10 +36,9 @@
|
|
|
36
36
|
"blessed-contrib": "^4.11.0",
|
|
37
37
|
"bravojs": "^1.0.15",
|
|
38
38
|
"chalk": "^4.1.1",
|
|
39
|
-
"dcp-client": "^4.2.
|
|
39
|
+
"dcp-client": "^4.2.17",
|
|
40
40
|
"kvin": "^1.2.7",
|
|
41
|
-
"semver": "^7.3.5"
|
|
42
|
-
"telnet-console": "^1.0.4"
|
|
41
|
+
"semver": "^7.3.5"
|
|
43
42
|
},
|
|
44
43
|
"optionalDependencies": {},
|
|
45
44
|
"devDependencies": {
|