|
Ran
|
Files
47
|
Run time
3s
|
Badge
README BADGES
|
push
github
chore(deps): update dependency ansis to v4.3.0 (#3394) This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [ansis](https://redirect.github.com/webdiscus/ansis) | [`4.2.0` → `4.3.0`](https://renovatebot.com/diffs/npm/ansis/4.2.0/4.3.0) |  |  | --- ### Release Notes <details> <summary>webdiscus/ansis (ansis)</summary> ### [`v4.3.0`](https://redirect.github.com/webdiscus/ansis/blob/HEAD/CHANGELOG.md#430-2026-05-11) [Compare Source](https://redirect.github.com/webdiscus/ansis/compare/v4.2.0...b514d49cc) - feat: add support for OSC 8 hyperlink: `link(url, text)` - feat: add constructor overload to pass a mock `globalThis` object for controlled color auto-detection ```js import { Ansis } from 'ansis'; const color = new Ansis({ process: { env: { FORCE_COLOR: '1' }, argv: ['node', 'app.js'], stdout: { isTTY: false }, platform: 'linux', }, }); console.log(color.level); // 1 ``` - fix(color-support): correctly handle edge cases using ENV variables and CLI flags | Fixed edge case | Old behavior (bug) | New behavior (correct) | | :-------------------------------- | ------------------ | ---------------------------------------------------------------------------------------- | | `FORCE_COLOR=1`, `NO_COLOR=1` | disable color | enable color ([`FORCE_COLOR`](https://force-color.org) takes precedence over `NO_COLOR`) | | `NO_COLOR=1`, `--color` | disable color | enable color (CLI color flags take precedence over `NO_COLOR`) | | `FORCE_COLOR=1`, `--no-color` | disable color | enable color (`FORCE_COLOR` has the highest priority) | | `--no-color --color` | disable color ... (continued)
956 of 996 branches covered (95.98%)
1396 of 1396 relevant lines covered (100.0%)
72.38 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|