All @antv/color-schema versions
@antv/color-schema @0.4.3
Maintainers
Dependencies (2)
| Package | Constraint | Registry Status |
|---|---|---|
| bun | ^1.3.13 | auto_approved |
| @types/chroma-js | ^2.1.3 | No greenflagged match |
Dev Dependencies (32)
| Package | Constraint | Registry Status |
|---|---|---|
| ajv | ^8.0.4 | auto_approved |
| jest | ^26.6.3 | auto_approved |
| husky | ^7.0.1 | auto_approved |
| eslint | ^7.29.0 | auto_approved |
| rimraf | ^3.0.2 | auto_approved |
| rollup | ^2.53.1 | auto_approved |
| ts-jest | ^26.5.4 | No greenflagged match |
| prettier | ^2.3.0 | auto_approved |
| chroma-js | ^2.1.1 | auto_approved |
| limit-size | ^0.1.4 | Not imported |
| typescript | ^4.2.4 | auto_approved |
| @types/jest | ^26.0.22 | No greenflagged match |
| lint-staged | ^11.0.1 | auto_approved |
| npm-run-all | ^4.1.5 | auto_approved |
| @babel/runtime | ^7.13.10 | auto_approved |
| @commitlint/cli | ^12.1.4 | No greenflagged match |
| jest-json-schema | ^5.0.0 | Not imported |
| eslint-plugin-react | ^7.24.0 | auto_approved |
| eslint-config-airbnb | ^18.2.1 | auto_approved |
| eslint-plugin-import | ^2.23.4 | auto_approved |
| rollup-plugin-terser | ^7.0.2 | auto_approved |
| eslint-config-prettier | ^8.3.0 | auto_approved |
| eslint-plugin-prettier | ^3.4.0 | auto_approved |
| @rollup/plugin-commonjs | ^21.0.1 | auto_approved |
| @types/jest-json-schema | ^2.1.3 | Not imported |
| ts-json-schema-generator | ^0.89.2 | No greenflagged match |
| @rollup/plugin-typescript | ^8.2.1 | No greenflagged match |
| @typescript-eslint/parser | ^4.28.3 | auto_approved |
| @rollup/plugin-node-resolve | ^13.0.0 | auto_approved |
| @commitlint/config-conventional | ^12.1.4 | No greenflagged match |
| @typescript-eslint/eslint-plugin | ^4.28.3 | auto_approved |
| eslint-import-resolver-typescript | ^2.4.0 | auto_approved |
Transitive Dependency Tree
Changes from v0.2.3
Dependency Changes
| Change | Package | Version |
|---|---|---|
| added | bun | ^1.3.13 |
Script Changes
+ preinstallFile Changes
Risk Dispositions (5 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 index.js; malicious payload confirmed. | |
obfuscated-file:index.js |
source-diff | reject | AI | AI (source-diff): Obfuscated 498KB file is the malicious payload; generalizes to this package. | |
semgrep:obfuscation-while-true |
semgrep | reject | AI | AI (semgrep): javascript-obfuscator signature in malicious preinstall payload. | |
semgrep:env-spread |
semgrep | reject | AI | AI (semgrep): Credential exfiltration via process.env spread in obfuscated payload. | |
url-dep:@antv/setup |
npm-metadata | reject | AI | AI (npm-metadata): SHA-pinned GitHub optionalDep matches known supply-chain attack pattern. |
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 _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Spreading entire process.env into an object — may capture all secrets > 1 | const _0x192368=_0x2a3a;(function(_0x44be0e,_0x3ff020){const _0x46b694={_0x4a8b2d:0x5bf,_0x1acf94:0x3d9,_0x2ef3d3:0x527,
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 100 (capped from 384). Findings: 5 critical (+200), 5 high (+125), 5 medium (+50), 3 low (+9).
Published to npm: