npm / @vitest/utils / 5.1.0-beta.1

@vitest/utils 5.1.0-beta.1

Source
https://github.com/vitest-dev/vitest
Artifact scanned
utils-5.1.0-beta.1.tgz (npm tarball · 40.3 KB · SHA-256 e5d8aa14efb2…)
Compared with
utils-5.0.5.tgz (0 signals introduced since)
Files
35 scanned, 1 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 4 info
Scan time
0.1 s
LLM review
LLM review by claude-haiku-5-5 (Anthropic): nothing at warn or critical to review.
Disclude version
4.3.0
Scanned (UTC)
2026-10-23 23:27

Signals

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

  1. info unicode-surrogate dist/display.js:235:18

    orphaned high surrogate \uD800 (no matching low surrogate) (token pass, confidence 0.65)

    function isHighSurrogate(char) {
    	return char >= "\ud800" && char <= "\udbff";
    }
  2. info unicode-surrogate dist/display.js:235:38

    orphaned high surrogate \uDBFF (no matching low surrogate) (token pass, confidence 0.65)

    function isHighSurrogate(char) {
    	return char >= "\ud800" && char <= "\udbff";
    }
  3. info whitespace-anomaly dist/source-map.d.ts:4:1

    file mixes tab and space indentation (25 tab-indented and 4 space-indented lines) (raw pass, confidence 0.40)

    type OriginalMapping = {
        source: string | null;
        line: number;
        column: number;
  4. info whitespace-anomaly dist/source-map.js:11:1

    file mixes tab and space indentation (264 tab-indented and 151 space-indented lines) (raw pass, confidence 0.40)

    for (let i = 0; i < chars.length; i++) {
      const c = chars.charCodeAt(i);
      intToChar[i] = c;
      charToInt[c] = i;

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. 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.3.0
curl -fsSL -o utils-5.1.0-beta.1.tgz https://registry.npmjs.org/@vitest/utils/-/utils-5.1.0-beta.1.tgz
printf '%s  %s\n' e5d8aa14efb20541f2ddf99a2bd8d18814651540dbdcb233aa455e9e2fc69af9 utils-5.1.0-beta.1.tgz | shasum -a 256 -c -
mkdir pkg && tar -xzf utils-5.1.0-beta.1.tgz -C pkg --strip-components 1
disclude scan --untrusted --severity info pkg