// npm 패키지
@antv/gi-assets-basic
G6VP 基础资产包
버전
77
메인테이너
51
최초 publish
2022-11-09
publisher
iaaron
tarball
4,388,617 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2024-08-06
// publisher 캠페인by iaaron
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.4.40· 2 files flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @2.4.40··AUTO-PUBLISHED·publisher: iaaronheuristic 75/100static flags 2llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-4001public-github-pushbase64-decode
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 2 files flaggedpatterns: 2
--- package/package.json (excerpt) --- { "name": "@antv/gi-assets-basic", "version": "2.4.40", "description": "G6VP 基础资产包", "main": "lib/index.js", "module": "es/index.js", "types": "lib/index.d.ts", "repository": { "type": "git", "url": "https://github.com/antvis/G6VP.git" }, "sideEffects": [ "*.css", "*.less" ], "files": [ "es", "lib", "dist" ], "dependencies": { "@aligov/global-locale": "^1.0.5", "@aligov/global-string-format": "^1.0.7", "@ant-design/icons": "^4.7.0", "@antv/algorithm": "^0.1.26-beta.0", "@antv/g2plot": "^2.4.31", "@antv/graphin-icons": "^1.0.0", "@antv/util": "^3.2.5", "d3-scale": "^4.0.0", "deepmerge": "^4.2.2", "immer": "^9.0.0", "json2csv": "^5.0.7", "lodash": "^4.17.21", "nanoid": "^4.0.0", "re-resizable": "^6.9.9", "react-draggable": "^4.4.5", "use-immer": "^0.9.0", "@antv/gi-common-components": "1.3.16", "@antv/gi-sdk": "2.4.23" }, "peerDependencies": { "@antv/graphin": "^2.7.27", "antd": "4.x", "react": "17.x", "react-dom": "17.x" }, "publishConfig": { "access": "public" }, "scripts": { "build": "npm run clean && npm run build:es & npm run build:umd", "build:es": "father build", "build:umd": "webpack --mode production -c ../../webpack.config.js --env path=/packages/gi-assets-basic", "clean": "rimraf es esm lib dist", "docs": "dumi dev", "prettier": "prettier --write ./src/**/**/**/*.js", "remove:antd": --- package/lib/components/utils/graph.js (excerpt) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.scaleNodes = exports.default = exports.dataURLToImage = void 0; var scaleNodes = exports.scaleNodes = function scaleNodes(graphData) { var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 600; var _graphData$nodes = graphData.nodes, nodes = _graphData$nodes === void 0 ? [] : _graphData$nodes, _graphData$edges = graphData.edges, edges = _graphData$edges === void 0 ? [] : _graphData$edges; if (!(nodes === null || nodes === void 0 ? void 0 : nodes.length)) { return; } var minX = Infinity; var maxX = -Infinity; var minY = Infinity; var maxY = -Infinity; nodes.forEach(function (node) { if (node.x === undefined || node.y === undefined) { return; } if (node.x < minX) { minX = node.x; } if (node.x > maxX) { maxX = node.x; } if (node.y < minY) { minY = node.y; } if (node.y > maxY) { maxY = node.y; } }); var wRatio = (maxX - minX) / value; var hRatio = (maxY - minY) / value; var ratio = Math.max(wRatio, hRatio); if (ratio < 1) { return { nodes: nodes, edges: edges }; } return { nodes: nodes.map(function (node) { return Object.assign(Object.assign({}, node), { x: node.x ? node.x / ratio : undefined, y: node.y ? node.y / ratio : undefined }); }), edges: edges }; }; var dataURLToImage = exports.data
