@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.
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.37.0](https://github.com/wix-private/cairo/compare/@wix/bex-bundled-mini-essentials@2.35.0...@wix/bex-bundled-mini-essentials@2.37.0) (2025-11-27)
7
+
8
+ **Note:** Version bump only for package @wix/bex-bundled-mini-essentials
9
+
10
+ # [2.36.0](https://github.com/wix-private/cairo/compare/@wix/bex-bundled-mini-essentials@2.35.0...@wix/bex-bundled-mini-essentials@2.36.0) (2025-11-27)
11
+
12
+ **Note:** Version bump only for package @wix/bex-bundled-mini-essentials
13
+
14
+ # [2.35.0](https://github.com/wix-private/cairo/compare/@wix/bex-bundled-mini-essentials@2.34.0...@wix/bex-bundled-mini-essentials@2.35.0) (2025-11-27)
15
+
16
+ **Note:** Version bump only for package @wix/bex-bundled-mini-essentials
17
+
18
+ # [2.34.0](https://github.com/wix-private/cairo/compare/@wix/bex-bundled-mini-essentials@2.33.0...@wix/bex-bundled-mini-essentials@2.34.0) (2025-11-23)
19
+
20
+ **Note:** Version bump only for package @wix/bex-bundled-mini-essentials
21
+
6
22
  # [2.33.0](https://github.com/wix-private/cairo/compare/@wix/bex-bundled-mini-essentials@2.32.0...@wix/bex-bundled-mini-essentials@2.33.0) (2025-11-16)
7
23
 
8
24
  **Note:** Version bump only for package @wix/bex-bundled-mini-essentials
@@ -1514,21 +1514,19 @@ var require_supports_color = __commonJS({
1514
1514
  var tty = require("tty");
1515
1515
  var hasFlag = require_has_flag();
1516
1516
  var { env: env3 } = process;
1517
- var flagForceColor;
1517
+ var forceColor;
1518
1518
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1519
- flagForceColor = 0;
1519
+ forceColor = 0;
1520
1520
  } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1521
- flagForceColor = 1;
1521
+ forceColor = 1;
1522
1522
  }
1523
- function envForceColor() {
1524
- if ("FORCE_COLOR" in env3) {
1525
- if (env3.FORCE_COLOR === "true") {
1526
- return 1;
1527
- }
1528
- if (env3.FORCE_COLOR === "false") {
1529
- return 0;
1530
- }
1531
- return env3.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
1523
+ if ("FORCE_COLOR" in env3) {
1524
+ if (env3.FORCE_COLOR === "true") {
1525
+ forceColor = 1;
1526
+ } else if (env3.FORCE_COLOR === "false") {
1527
+ forceColor = 0;
1528
+ } else {
1529
+ forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
1532
1530
  }
1533
1531
  }
1534
1532
  function translateLevel(level) {
@@ -1542,22 +1540,15 @@ var require_supports_color = __commonJS({
1542
1540
  has16m: level >= 3
1543
1541
  };
1544
1542
  }
1545
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1546
- const noFlagForceColor = envForceColor();
1547
- if (noFlagForceColor !== void 0) {
1548
- flagForceColor = noFlagForceColor;
1549
- }
1550
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1543
+ function supportsColor(haveStream, streamIsTTY) {
1551
1544
  if (forceColor === 0) {
1552
1545
  return 0;
1553
1546
  }
1554
- if (sniffFlags) {
1555
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1556
- return 3;
1557
- }
1558
- if (hasFlag("color=256")) {
1559
- return 2;
1560
- }
1547
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1548
+ return 3;
1549
+ }
1550
+ if (hasFlag("color=256")) {
1551
+ return 2;
1561
1552
  }
1562
1553
  if (haveStream && !streamIsTTY && forceColor === void 0) {
1563
1554
  return 0;
@@ -1574,7 +1565,7 @@ var require_supports_color = __commonJS({
1574
1565
  return 1;
1575
1566
  }
1576
1567
  if ("CI" in env3) {
1577
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
1568
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
1578
1569
  return 1;
1579
1570
  }
1580
1571
  return min;
@@ -1586,7 +1577,7 @@ var require_supports_color = __commonJS({
1586
1577
  return 3;
1587
1578
  }
1588
1579
  if ("TERM_PROGRAM" in env3) {
1589
- const version = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1580
+ const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1590
1581
  switch (env3.TERM_PROGRAM) {
1591
1582
  case "iTerm.app":
1592
1583
  return version >= 3 ? 3 : 2;
@@ -1605,17 +1596,14 @@ var require_supports_color = __commonJS({
1605
1596
  }
1606
1597
  return min;
1607
1598
  }
1608
- function getSupportLevel(stream, options = {}) {
1609
- const level = supportsColor(stream, {
1610
- streamIsTTY: stream && stream.isTTY,
1611
- ...options
1612
- });
1599
+ function getSupportLevel(stream) {
1600
+ const level = supportsColor(stream, stream && stream.isTTY);
1613
1601
  return translateLevel(level);
1614
1602
  }
1615
1603
  module2.exports = {
1616
1604
  supportsColor: getSupportLevel,
1617
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
1618
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
1605
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
1606
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
1619
1607
  };
1620
1608
  }
1621
1609
  });