// npm 패키지
@antv/dom-util
A common util collection for antv projects
버전
5
메인테이너
51
라이선스
MIT
최초 publish
2019-04-09
publisher
kasmine
tarball
36,869 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2022-01-25
// publisher 캠페인by kasmine
이 계정에서 catch된 패키지 2건고립된 catch가 아닙니다. 동일 publisher가 1개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.0.4· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @2.0.4··AUTO-PUBLISHED·publisher: kasmineheuristic 75/100static flags 1llm benign (0.85) via ollamarecent-owner-changedormant-takeover:prev=atool@2.0.3osv-flagged:MAL-2026-3873public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/dom-util", "version": "2.0.4", "description": "A common util collection for antv projects", "main": "lib/index.js", "types": "lib/index.d.ts", "module": "esm/index.js", "files": [ "src", "package.json", "esm", "lib", "README.md" ], "scripts": { "build": "npm run clean && run-p build:*", "build:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm", "build:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib", "clean": "rm -rf lib && rm -rf esm", "coverage": "npm run coverage-generator && npm run coverage-viewer", "coverage-generator": "torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts __tests__/mocha.opts", "coverage-viewer": "torch-coverage", "test": "torch --renderer --compile --opts __tests__/mocha.opts", "test-live": "torch --compile --interactive --opts __tests__/mocha.opts", "tsc": "tsc --noEmit", "typecheck": "tsc --noEmit" }, "repository": { "type": "git", "url": "git+https://github.com/antvis/util.git" }, "keywords": [ "util", "antv", "g" ], "author": "https://github.com/orgs/antvis/people", "license": "MIT", "bugs": { "url": "https://github.com/antvis/util/issues" }, "devDependencies": { "@antv/torch": "^1.0.0", "chai": "^4.2.0", "less": "^3.9.0", "npm-run-all": "^4.1.5" }, "homepage": "https://github.com/antvis/util#readme", "dependencies": { --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- lib/add-event-listener.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function addEventListener(target, eventType, callback) { if (target) { if (typeof target.addEventListener === 'function') { target.addEventListener(eventType, callback, false); return { remove: function () { target.removeEventListener(eventType, callback, false); }, }; // @ts-ignore } if (typeof target.attachEvent === 'function') { // @ts-ignore target.attachEvent('on' + eventType, callback); return { remove: function () { // @ts-ignore target.detachEvent('on' + eventType, callback); }, }; } } } exports.default = addEventListener; //# sourceMappingURL=add-event-listener.js.map --- lib/get-height.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var get_style_1 = require("./get-style"); function getHeight(el, defaultValue) { var height = (0, get_style_1.default)(el, 'height', defaultValue); if (height === 'auto') { height = el.offsetHeight; } return parseFloat(height); } exports.default = getHeight; //# sourceMappingURL=get-height.js.map --- lib/get-outer-height.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var get_style_1 = require("./get-style"); var get_height_1 = require("./get-height"); function getOuterHeight(el, defaultValue) { var height = (0, get_height_1.default)(el, defaultValue); var bTop = parseFloat((0, get_style_1.default)(el, 'borderTopWidth')) || 0; var pTop = parseFloat((0, get_style_1.default)(el, 'paddingTop')) || 0; var pBottom = parseFloat((0, get_style_1.default)(el, 'paddingBottom')) || 0; var bBottom = parseFloat((0, get_style_1.default)(el, 'borderBottomWidth')) || 0; var mTop = parseFloat((0, get_style_1.default)(el, 'marginTop')) || 0; var mBottom = parseFloat((0, get_style_1.default)(el, 'marginBottom')) || 0; return height + bTop + bBottom + pTop + pBottom + mTop + mBottom; } exports.default = getOuterHeight; //# sourceMappingURL=get-outer-height.js.map --- esm/add-event-listener.js (bundled) --- export default function addEventListener(target, eventType, callback) { if (target) { if (typeof target.addEventListener === 'function') { target.addEventListener(eventType, callback, false); return { remove: function () { target.removeEventListener(eventType, callback, false); }, }; // @ts-ignore } if (typeof target.attachEvent === 'function') { // @ts-ignore target.attachEvent('on' + eventType, callback); return { remove: function () { // @ts-ignore target.detachEvent('on' + eventType, callback); }, }; } } } //# sourceMappingURL=add-event-listener.js.map --- esm/get-height.js (bundled) --- import getStyle from './get-style'; export default function getHeight(el, defaultValue) { var height = getStyle(el, 'height', defaultValue); if (height === 'auto') { height = el.offsetHeight; } return parseFloat(height); } //# sourceMappingURL=get-height.js.map --- esm/get-outer-height.js (bundled) --- import getStyle from './get-style'; import getHeight from './get-height'; export default function getOuterHeight(el, defaultValue) { var height = getHeight(el, defaultValue); var bTop = parseFloat(getStyle(el, 'borderTopWidth')) || 0; var pTop = parseFloat(getStyle(el, 'paddingTop')) || 0; var pBottom = parseFloat(getStyle(el, 'paddingBottom')) || 0; var bBottom = parseFloat(getStyle(el, 'borderBottomWidth')) || 0; var mTop = parseFloat(getStyle(el, 'marginTop')) || 0; var mBottom = parseFloat(getStyle(el, 'marginBottom')) || 0; return height + bTop + bBottom + pTop + pBottom + mTop + mBottom; } //# sourceMappingURL=get-outer-height.js.map
