@wix/bex-utils 2.72.0 → 2.77.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/@wix/bex-bundled-mini-essentials/CHANGELOG.md +16 -0
- package/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js +22 -34
- package/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js +22 -34
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js +22 -34
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/package.json +3 -3
|
@@ -6995,21 +6995,19 @@ var require_supports_color = __commonJS({
|
|
|
6995
6995
|
var tty = require("tty");
|
|
6996
6996
|
var hasFlag = require_has_flag();
|
|
6997
6997
|
var { env: env3 } = process;
|
|
6998
|
-
var
|
|
6998
|
+
var forceColor;
|
|
6999
6999
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
7000
|
-
|
|
7000
|
+
forceColor = 0;
|
|
7001
7001
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
7002
|
-
|
|
7002
|
+
forceColor = 1;
|
|
7003
7003
|
}
|
|
7004
|
-
|
|
7005
|
-
if (
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
}
|
|
7012
|
-
return env3.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
|
|
7004
|
+
if ("FORCE_COLOR" in env3) {
|
|
7005
|
+
if (env3.FORCE_COLOR === "true") {
|
|
7006
|
+
forceColor = 1;
|
|
7007
|
+
} else if (env3.FORCE_COLOR === "false") {
|
|
7008
|
+
forceColor = 0;
|
|
7009
|
+
} else {
|
|
7010
|
+
forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
|
|
7013
7011
|
}
|
|
7014
7012
|
}
|
|
7015
7013
|
function translateLevel(level) {
|
|
@@ -7023,22 +7021,15 @@ var require_supports_color = __commonJS({
|
|
|
7023
7021
|
has16m: level >= 3
|
|
7024
7022
|
};
|
|
7025
7023
|
}
|
|
7026
|
-
function supportsColor(haveStream,
|
|
7027
|
-
const noFlagForceColor = envForceColor();
|
|
7028
|
-
if (noFlagForceColor !== void 0) {
|
|
7029
|
-
flagForceColor = noFlagForceColor;
|
|
7030
|
-
}
|
|
7031
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
7024
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7032
7025
|
if (forceColor === 0) {
|
|
7033
7026
|
return 0;
|
|
7034
7027
|
}
|
|
7035
|
-
if (
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
return 2;
|
|
7041
|
-
}
|
|
7028
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
7029
|
+
return 3;
|
|
7030
|
+
}
|
|
7031
|
+
if (hasFlag("color=256")) {
|
|
7032
|
+
return 2;
|
|
7042
7033
|
}
|
|
7043
7034
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7044
7035
|
return 0;
|
|
@@ -7055,7 +7046,7 @@ var require_supports_color = __commonJS({
|
|
|
7055
7046
|
return 1;
|
|
7056
7047
|
}
|
|
7057
7048
|
if ("CI" in env3) {
|
|
7058
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"
|
|
7049
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
|
|
7059
7050
|
return 1;
|
|
7060
7051
|
}
|
|
7061
7052
|
return min;
|
|
@@ -7067,7 +7058,7 @@ var require_supports_color = __commonJS({
|
|
|
7067
7058
|
return 3;
|
|
7068
7059
|
}
|
|
7069
7060
|
if ("TERM_PROGRAM" in env3) {
|
|
7070
|
-
const version =
|
|
7061
|
+
const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
7071
7062
|
switch (env3.TERM_PROGRAM) {
|
|
7072
7063
|
case "iTerm.app":
|
|
7073
7064
|
return version >= 3 ? 3 : 2;
|
|
@@ -7086,17 +7077,14 @@ var require_supports_color = __commonJS({
|
|
|
7086
7077
|
}
|
|
7087
7078
|
return min;
|
|
7088
7079
|
}
|
|
7089
|
-
function getSupportLevel(stream
|
|
7090
|
-
const level = supportsColor(stream,
|
|
7091
|
-
streamIsTTY: stream && stream.isTTY,
|
|
7092
|
-
...options
|
|
7093
|
-
});
|
|
7080
|
+
function getSupportLevel(stream) {
|
|
7081
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7094
7082
|
return translateLevel(level);
|
|
7095
7083
|
}
|
|
7096
7084
|
module2.exports = {
|
|
7097
7085
|
supportsColor: getSupportLevel,
|
|
7098
|
-
stdout:
|
|
7099
|
-
stderr:
|
|
7086
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7087
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7100
7088
|
};
|
|
7101
7089
|
}
|
|
7102
7090
|
});
|