npm / supports-color / 11.0.0

supports-color 11.0.0

Source
https://github.com/chalk/supports-color
Tag scanned
v11.0.0
Compared with
v10.2.2 (0 signals introduced since)
Files
8 scanned, 1 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
2.3 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.0.0
Scanned (UTC)
2026-10-14 19:02

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review dynamic-import test.js:9:41

    dynamic `import(...)` with a non-literal specifier (ast pass, confidence 0.80)

    
    const importFresh = async moduleName => import(`${moduleName}?${randomInt(100_000_000)}`);
    
    const importMain = async () => {
    likely benign LLM, confidence 0.80 A test helper that re-imports a module with a random query string to bypass the module cache.
    Reasoning

    The dynamic import uses a template string with a cache-busting query suffix built from a random integer, which is a common test-helper pattern for re-importing modules fresh. The specifier is caller-supplied but the context looks like a test utility rather than a payload loader; no decoding, remote fetch, or execution chain is visible. Residual doubt because the module name is non-literal and the snippet is short.

Reproduce This Scan

Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.0.0
git clone https://github.com/chalk/supports-color supports-color && cd supports-color
git checkout v11.0.0
disclude scan --severity info --diff v10.2.2 .