@jsenv/plugin-supervisor 1.6.0 → 1.6.2
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/dist/jsenv_plugin_supervisor.js +22 -10
- package/package.json +3 -3
|
@@ -27,15 +27,23 @@ if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || has
|
|
|
27
27
|
flagForceColor = 1;
|
|
28
28
|
}
|
|
29
29
|
function envForceColor() {
|
|
30
|
-
if ('FORCE_COLOR' in env) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return
|
|
30
|
+
if (!('FORCE_COLOR' in env)) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (env.FORCE_COLOR === 'true') {
|
|
34
|
+
return 1;
|
|
35
|
+
}
|
|
36
|
+
if (env.FORCE_COLOR === 'false') {
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
if (env.FORCE_COLOR.length === 0) {
|
|
40
|
+
return 1;
|
|
38
41
|
}
|
|
42
|
+
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
43
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
return level;
|
|
39
47
|
}
|
|
40
48
|
function translateLevel(level) {
|
|
41
49
|
if (level === 0) {
|
|
@@ -91,10 +99,10 @@ function _supportsColor(haveStream, {
|
|
|
91
99
|
return 1;
|
|
92
100
|
}
|
|
93
101
|
if ('CI' in env) {
|
|
94
|
-
if ('GITHUB_ACTIONS'
|
|
102
|
+
if (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {
|
|
95
103
|
return 3;
|
|
96
104
|
}
|
|
97
|
-
if (['TRAVIS', '
|
|
105
|
+
if (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
98
106
|
return 1;
|
|
99
107
|
}
|
|
100
108
|
return min;
|
|
@@ -2131,6 +2139,10 @@ process.platform === "win32";
|
|
|
2131
2139
|
|
|
2132
2140
|
process.platform === "linux";
|
|
2133
2141
|
|
|
2142
|
+
process.platform === "darwin";
|
|
2143
|
+
process.platform === "linux";
|
|
2144
|
+
process.platform === "freebsd";
|
|
2145
|
+
|
|
2134
2146
|
/*
|
|
2135
2147
|
* This plugin provides a way for jsenv to supervisor js execution:
|
|
2136
2148
|
* - Know how many js are executed, when they are done, collect errors, etc...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-supervisor",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"/dist/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "6.4.
|
|
29
|
+
"@jsenv/ast": "6.4.3",
|
|
30
30
|
"@jsenv/urls": "2.5.4",
|
|
31
|
-
"@jsenv/sourcemap": "1.2.
|
|
31
|
+
"@jsenv/sourcemap": "1.2.29",
|
|
32
32
|
"launch-editor": "2.9.1"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|