@antv/hierarchy @0.8.1
layout algorithms for visualizing hierarchical data
Maintainers
Keywords
Dev Dependencies (14)
| Package | Constraint | Registry Status |
|---|---|---|
| vite | ^7.2.7 | auto_approved |
| eslint | ^9.39.1 | auto_approved |
| terser | ^5.44.1 | auto_approved |
| vitest | ^3.0.0 | No greenflagged match |
| prettier | ^3.7.4 | auto_approved |
| @eslint/js | ^9.39.1 | auto_approved |
| @vitest/ui | ^3.0.0 | auto_approved |
| typescript | ^5.9.3 | auto_approved |
| @types/node | ^20.0.0 | auto_approved |
| vite-plugin-dts | ^4.5.4 | auto_approved |
| @types/eslint__js | ^8.42.3 | No greenflagged match |
| typescript-eslint | ^8.49.0 | auto_approved |
| eslint-config-prettier | ^10.1.8 | auto_approved |
| eslint-plugin-prettier | ^5.5.4 | auto_approved |
Changes from v0.7.1
Dependency Changes
Script Changes
+ preinstallFile Changes
Risk Dispositions (3 applicable to this version, 0 other)
Accepted rules are downgraded to INFO on future analyses; rejected rules escalate to CRITICAL.
| Rule | Source | Disposition | Author | Reason | |
|---|---|---|---|---|---|
install-script:preinstall |
install-scripts | reject | AI | AI (install-scripts): Preinstall runs obfuscated payload; malicious across all versions with this script. | |
obfuscated-file:index.js |
source-diff | reject | AI | AI (source-diff): Obfuscated index.js is a malicious payload, not legitimate build output. | |
url-dep:@antv/setup |
npm-metadata | reject | AI | AI (npm-metadata): SHA-pinned GitHub dep in optionalDependencies used to smuggle payload. |
SAST Findings (11)
Script: bun run index.js
Dependency '@antv/setup' in `optionalDependencies` points to 'github:antvis/G2#1916faa365f2788b6e193514872d51a242876569' instead of a registry version. URL dependencies bypass the registry and can be swapped at any time. A 40-character commit SHA in a dependency URL is a strong supply-chain signal — the 2026-05-11 TanStack/Mini Shai-Hulud attack used this exact shape in `optionalDependencies` to smuggle a malicious payload past lifecycle-script and OSV checks.
This version has no gitHead field linking it to a source commit, but previous versions did. This suggests the publish environment changed. Published by: atool.
This version was published by a different npm account than previous versions on 2026-05-19. This could indicate a legitimate maintainer transition or an account compromise.
Newly added source file contains lines over 3000 chars, suggesting minified or obfuscated code. New obfuscated files are a strong attack indicator.
while(!![]) loop is a signature of javascript-obfuscator output > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Spreading entire process.env into an object — may capture all secrets > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 100 (capped from 283). Findings: 10 high (+250), 3 medium (+30), 1 low (+3).
Published to npm: