@wix/bex-utils 1.34.0 → 1.35.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/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/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -6967,21 +6967,19 @@ var require_supports_color = __commonJS({
|
|
|
6967
6967
|
var tty = require("tty");
|
|
6968
6968
|
var hasFlag = require_has_flag();
|
|
6969
6969
|
var { env: env3 } = process;
|
|
6970
|
-
var
|
|
6970
|
+
var forceColor;
|
|
6971
6971
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
6972
|
-
|
|
6972
|
+
forceColor = 0;
|
|
6973
6973
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
6974
|
-
|
|
6974
|
+
forceColor = 1;
|
|
6975
6975
|
}
|
|
6976
|
-
|
|
6977
|
-
if (
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
}
|
|
6984
|
-
return env3.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
|
|
6976
|
+
if ("FORCE_COLOR" in env3) {
|
|
6977
|
+
if (env3.FORCE_COLOR === "true") {
|
|
6978
|
+
forceColor = 1;
|
|
6979
|
+
} else if (env3.FORCE_COLOR === "false") {
|
|
6980
|
+
forceColor = 0;
|
|
6981
|
+
} else {
|
|
6982
|
+
forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
|
|
6985
6983
|
}
|
|
6986
6984
|
}
|
|
6987
6985
|
function translateLevel(level) {
|
|
@@ -6995,22 +6993,15 @@ var require_supports_color = __commonJS({
|
|
|
6995
6993
|
has16m: level >= 3
|
|
6996
6994
|
};
|
|
6997
6995
|
}
|
|
6998
|
-
function supportsColor(haveStream,
|
|
6999
|
-
const noFlagForceColor = envForceColor();
|
|
7000
|
-
if (noFlagForceColor !== void 0) {
|
|
7001
|
-
flagForceColor = noFlagForceColor;
|
|
7002
|
-
}
|
|
7003
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
6996
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7004
6997
|
if (forceColor === 0) {
|
|
7005
6998
|
return 0;
|
|
7006
6999
|
}
|
|
7007
|
-
if (
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
return 2;
|
|
7013
|
-
}
|
|
7000
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
7001
|
+
return 3;
|
|
7002
|
+
}
|
|
7003
|
+
if (hasFlag("color=256")) {
|
|
7004
|
+
return 2;
|
|
7014
7005
|
}
|
|
7015
7006
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7016
7007
|
return 0;
|
|
@@ -7027,7 +7018,7 @@ var require_supports_color = __commonJS({
|
|
|
7027
7018
|
return 1;
|
|
7028
7019
|
}
|
|
7029
7020
|
if ("CI" in env3) {
|
|
7030
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"
|
|
7021
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
|
|
7031
7022
|
return 1;
|
|
7032
7023
|
}
|
|
7033
7024
|
return min;
|
|
@@ -7039,7 +7030,7 @@ var require_supports_color = __commonJS({
|
|
|
7039
7030
|
return 3;
|
|
7040
7031
|
}
|
|
7041
7032
|
if ("TERM_PROGRAM" in env3) {
|
|
7042
|
-
const version =
|
|
7033
|
+
const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
7043
7034
|
switch (env3.TERM_PROGRAM) {
|
|
7044
7035
|
case "iTerm.app":
|
|
7045
7036
|
return version >= 3 ? 3 : 2;
|
|
@@ -7058,17 +7049,14 @@ var require_supports_color = __commonJS({
|
|
|
7058
7049
|
}
|
|
7059
7050
|
return min;
|
|
7060
7051
|
}
|
|
7061
|
-
function getSupportLevel(stream
|
|
7062
|
-
const level = supportsColor(stream,
|
|
7063
|
-
streamIsTTY: stream && stream.isTTY,
|
|
7064
|
-
...options
|
|
7065
|
-
});
|
|
7052
|
+
function getSupportLevel(stream) {
|
|
7053
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7066
7054
|
return translateLevel(level);
|
|
7067
7055
|
}
|
|
7068
7056
|
module2.exports = {
|
|
7069
7057
|
supportsColor: getSupportLevel,
|
|
7070
|
-
stdout:
|
|
7071
|
-
stderr:
|
|
7058
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7059
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7072
7060
|
};
|
|
7073
7061
|
}
|
|
7074
7062
|
});
|