npm / js-tokens / 10.0.0

js-tokens 10.0.0

Source
https://github.com/lydell/js-tokens
Tag scanned
v10.0.0
Compared with
v9.0.1 (0 signals introduced since)
Files
24 scanned, 9 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 7 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.0.0
Scanned (UTC)
2026-10-14 19:17

Signals

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

  1. info whitespace-anomaly test/fixtures/valid/slashes.js:3:1

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

    typeof/[//]\//g
        /v1/g/ /r1/ /g
        //
        /x++/v2/
  2. info unicode-surrogate test/index.test.js:117:12

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

        match("💩");
        match("\ud83d"); // First half of 💩
      });
  3. info unicode-mixed-script test/index.test.js:672:12

    identifier `a_56åπ` mixes scripts: Latin + Greek (in string/comment) (raw pass, confidence 0.40)

        match("π0");
        match("a_56åπ");
        match("℮");
        match("℘");
  4. info unicode-mixed-script test/index.test.js:747:13

    identifier `a_56åπ` mixes scripts: Latin + Greek (in string/comment) (raw pass, confidence 0.40)

        match("#π0");
        match("#a_56åπ");
        match("#℮");
        match("#℘");
  5. info unicode-surrogate test/index.test.js:1016:12

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

        match("💩");
        match("\ud83d"); // First half of 💩
      });
  6. info unicode-surrogate test/index.test.js:1036:12

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

        match("💩", false);
        match("\ud83d", false); // First half of 💩
      });
  7. info unicode-mixed-script test/index.test.js:1155:12

    identifier `a_56åπ` mixes scripts: Latin + Greek (in string/comment) (raw pass, confidence 0.40)

        match("π0");
        match("a_56åπ");
        match("℮");
        match("℘");

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/lydell/js-tokens js-tokens && cd js-tokens
git checkout v10.0.0
disclude scan --severity info --diff v9.0.1 .