npm / magic-string / 1.4.3

magic-string 1.4.3

Source
https://github.com/Rich-Harris/magic-string
Artifact scanned
magic-string-1.4.3.tgz (npm tarball · 22.4 KB · SHA-256 6c9d770ddb80…)
Compared with
magic-string-1.4.2.tgz (0 signals introduced since)
Files
4 scanned, 1 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 2 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 17:09

Signals

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

  1. info whitespace-anomaly dist/index.mjs:4:1

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

    var BitSet = class BitSet {
    	constructor(arg) {
    		this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
    	}
  2. info dynamic-execution dist/index.mjs:203:56

    `btoa` encodes a value as base64 at runtime — used in exfiltration patterns (ast pass, confidence 0.55)

    	toUrl() {
    		return `data:application/json;charset=utf-8;base64,${btoa(this.toString())}`;
    	}
    };

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 magic-string-1.4.3.tgz https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz
printf '%s  %s\n' 6c9d770ddb800796303481b4bdacd7c308dfe83edd0ff8fa5377438c03889d08 magic-string-1.4.3.tgz | shasum -a 256 -c -
mkdir pkg && tar -xzf magic-string-1.4.3.tgz -C pkg --strip-components 1
disclude scan --untrusted --severity info pkg