// npm 패키지
@antv/l7plot-component
Components for L7Plot
버전
22
메인테이너
51
라이선스
MIT
최초 publish
2021-08-24
publisher
lvisei
tarball
295,997 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2024-07-15
// publisher 캠페인by lvisei
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.0.11· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 2 known-vendor host(s).
- @0.0.11··AUTO-PUBLISHED·publisher: lviseiheuristic 75/100static flags 1llm benign (0.85) via ollamarecent-owner-changemature-packagedormant-takeover:prev=lviser@0.0.10osv-flagged:MAL-2026-4055public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 2 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/l7plot-component", "version": "0.0.11", "description": "Components for L7Plot", "main": "dist/lib/index.js", "types": "dist/lib/index.d.ts", "module": "dist/esm/index.js", "unpkg": "dist/umd/index.js", "files": [ "dist" ], "scripts": { "dev": "yarn run clean && yarn run dev:cjs", "dev:cjs": "tsc -p tsconfig.json --module CommonJS --outDir dist/lib --watch", "lint": "eslint src __tests__ --ext .js,.ts", "lint-fix": "eslint src __tests__ --ext .js,.ts --fix", "prettier": "prettier src __tests__ -c -w", "clean": "rimraf dist", "build": "yarn run clean && yarn run build:cjs && yarn run build:esm", "build:cjs": "tsc -p tsconfig.json --module CommonJS --outDir dist/lib", "build:esm": "tsc -p tsconfig.json --module ESNext --outDir dist/esm" }, "keywords": [ "antv", "l7", "l7plot", "component" ], "sideEffects": false, "author": "yunji", "license": "MIT", "homepage": "https://github.com/antvis/L7Plot#readme", "repository": { "type": "git", "url": "https://github.com/antvis/L7Plot.git" }, "bugs": { "url": "https://github.com/antvis/L7Plot/issues" }, "dependencies": { "@antv/dom-util": "^2.0.3", "@antv/util": "^2.0.14" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "gitHead": "a3077d0eb54ec6e8f65ccce745fe93549e39cfec" } --- package.json (entry) --- { "name": "@antv/l7plot-component", "version": "0.0.11", "description": "Components for L7Plot", "main": "dist/lib/index.js", "types": "dist/lib/index.d.ts", "module": "dist/esm/index.js", "unpkg": "dist/umd/index.js", "files": [ "dist" ], "scripts": { "dev": "yarn run clean && yarn run dev:cjs", "dev:cjs": "tsc -p tsconfig.json --module CommonJS --outDir dist/lib --watch", "lint": "eslint src __tests__ --ext .js,.ts", "lint-fix": "eslint src __tests__ --ext .js,.ts --fix", "prettier": "prettier src __tests__ -c -w", "clean": "rimraf dist", "build": "yarn run clean && yarn run build:cjs && yarn run build:esm", "build:cjs": "tsc -p tsconfig.json --module CommonJS --outDir dist/lib", "build:esm": "tsc -p tsconfig.json --module ESNext --outDir dist/esm" }, "keywords": [ "antv", "l7", "l7plot", "component" ], "sideEffects": false, "author": "yunji", "license": "MIT", "homepage": "https://github.com/antvis/L7Plot#readme", "repository": { "type": "git", "url": "https://github.com/antvis/L7Plot.git" }, "bugs": { "url": "https://github.com/antvis/L7Plot/issues" }, "dependencies": --- index.js (entry) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContinueLegend = exports.CategoryLegend = exports.Tooltip = exports.version = void 0; const tslib_1 = require("tslib"); var version_1 = require("./version"); Object.defineProperty(exports, "version", { enumerable: true, get: function () { return tslib_1.__importDefault(version_1).default; } }); // 类型定义导出 tslib_1.__exportStar(require("./types"), exports); var tooltip_1 = require("./tooltip"); Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return tooltip_1.Tooltip; } }); var legend_1 = require("./legend"); Object.defineProperty(exports, "CategoryLegend", { enumerable: true, get: function () { return legend_1.CategoryLegend; } }); Object.defineProperty(exports, "ContinueLegend", { enumerable: true, get: function () { return legend_1.ContinueLegend; } }); //# sourceMappingURL=index.js.map --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/lib/index.d.ts (bundled) --- export { default as version } from './version'; export * from './types'; export { Tooltip } from './tooltip'; export { CategoryLegend, ContinueLegend } from './legend'; --- dist/lib/index.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContinueLegend = exports.CategoryLegend = exports.Tooltip = exports.version = void 0; const tslib_1 = require("tslib"); var version_1 = require("./version"); Object.defineProperty(exports, "version", { enumerable: true, get: function () { return tslib_1.__importDefault(version_1).default; } }); // 类型定义导出 tslib_1.__exportStar(require("./types"), exports); var tooltip_1 = require("./tooltip"); Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return tooltip_1.Tooltip; } }); var legend_1 = require("./legend"); Object.defineProperty(exports, "CategoryLegend", { enumerable: true, get: function () { return legend_1.CategoryLegend; } }); Object.defineProperty(exports, "ContinueLegend", { enumerable: true, get: function () { return legend_1.ContinueLegend; } }); //# sourceMappingURL=index.js.map --- dist/lib/version.d.ts (bundled) --- declare const _default: "0.0.11"; export default _default; --- dist/lib/version.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = '0.0.11'; //# sourceMappingURL=version.js.map --- dist/lib/utils/dom.d.ts (bundled) --- export declare function hasClass(elements: HTMLElement, cName: string): boolean; export declare function clearDom(container: HTMLElement): void; --- dist/lib/utils/dom.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasClass = hasClass; exports.clearDom = clearDom; function hasClass(elements, cName) { return !!elements.className.match(new RegExp(`(\\s|^)${cName}(\\s|$)`)); } function clearDom(container) { const children = container.childNodes; const length = children.length; for (let i = length - 1; i >= 0; i--) { container.removeChild(children[i]); } } //# sourceMappingURL=dom.js.map --- dist/lib/types/component.d.ts (bundled) --- export interface ComponentOptions { /** * 唯一标定组件的 id */ id?: string; /** * 组件名称 legend, tooltip */ name?: string; /** * 容器的模板 */ containerTpl?: string; /** * 组件的父容器 */ parent?: HTMLElement | string; /** * 组件的容器样式名称 */ className?: string; /** * 是否显示 */ visible?: boolean; /** * 是否会捕捉事件 */ capture?: boolean; /** * 内部 DOM 的样式 */ domStyles?: Record<string, any>; } --- dist/lib/types/component.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=component.js.map --- dist/lib/types/index.d.ts (bundled) --- export * from './component'; export * from './tooltip'; export * from './legend'; --- dist/lib/types/index.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("./component"), exports); tslib_1.__exportStar(require("./tooltip"), exports); tslib_1.__exportStar(require("./legend"), exports); //# sourceMappingURL=index.js.map --- dist/lib/types/legend.d.ts (bundled) --- import { ComponentOptions } from './component'; /** * 分类列表项接口 */ export type CategoryLegendListItem = { /** * 唯一值,用于查找 */ id?: string; /** * 颜色 */ color: string; /** * 值 */ value: [number, number] | [string, string] | number | string; [key: string]: any; }; export type CategoryLegendCustomContent = (title: string, items: CategoryLegendListItem[]) => string | HTMLElement; /** * 分类 Legend 配置接口 */ export interface CategoryLegendOptions extends ComponentOptions { /** * 标题 */ title?: string; /** * 列表项集合 */ items: CategoryLegendListItem[]; /** * 列表项的模板 */ itemTpl?: string; /** * 自定义模板 */ customContent?: CategoryLegendCustomContent; /** * 传入各个 dom 的样式 */ domStyles?: Record<string, any>; } export type ContinueLegendCustomContent = (title: string, min: number, max: number, colors: string[]) => string | HTMLElement; /** * 连续 Legend 配置接口 */ export interface ContinueLegendOptions extends ComponentOptions { /** * 标题 */ title?: string; /** * 范围的最小值 */ min: number; /** * 范围的最大值 */ max: number; /** * 图例的颜色 */ colors: string[]; /** * 色带的模板 */ ribbonTpl?: string; /** * 自定义模板 */ customContent?: ContinueLegendCustomContent; /** * 传入各个 dom 的样式 */ domStyles?: Record<string, any>; } --- dist/lib/types/legend.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=legend.js.map --- dist/lib/types/tooltip.d.ts (bundled) --- import { ComponentOptions } from './component'; /** * 列表选项接口 */ export type TooltipListItem = { /** * 唯一值,用于查找 */ id?: string; /** * 名称 */ name: string; /** * 值 */ value: any; [key: string]: any; }; export type TooltipCustomContent = (title: string, items: TooltipListItem[]) => string | HTMLElement; /** * Tooltip 配置接口 */ export interface TooltipOptions extends ComponentOptions { /** * 标题 */ title?: string; /** * 是否显示标题 */ showTitle?: boolean; /** * 列表项集合 */ items: TooltipListItem[]; /** * 列表项的模板 */ itemTpl?: string; /** * 自定义模板 */ customContent?: TooltipCustomContent; /** * 传入各个 dom 的样式 */ domStyles?: Record<string, any>; } --- dist/lib/types/tooltip.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=tooltip.js.map --- dist/lib/tooltip/constants.d.ts (bundled) --- export declare const CONTAINER_CLASS = "l7plot-tooltip"; export declare const TITLE_CLASS = "l7plot-tooltip__title"; export declare const LIST_CLASS = "l7plot-tooltip__list"; export declare const LIST_ITEM_CLASS = "l7plot-tooltip__list-item"; export declare const NAME_CLASS = "l7plot-tooltip__name"; export declare const VALUE_CLASS = "l7plot-tooltip__value"; export declare const CONTAINER_TPL = "<div class=\"l7plot-tooltip\">\n <div class=\"l7plot-tooltip__title\"></div>\n <ul class=\"l7plot-tooltip__list\"></ul>\n</div>"; export declare const ITEM_TPL = "<li class=\"l7plot-tooltip__list-item\" data-index={index}>\n <span class=\"l7plot-tooltip__name\">{name}</span>\n <span class=\"l7plot-tooltip__value\">{value}</span>\n</li>"; --- dist/lib/tooltip/constants.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITEM_TPL = exports.CONTAINER_TPL = exports.VALUE_CLASS = exports.NAME_CLASS = exports.LIST_ITEM_CLASS = exports.LIST_CLASS = exports.TITLE_CLASS = exports.CONTAINER_CLASS = void 0; exports.CONTAINER_CLASS = 'l7plot-tooltip'; exports.TITLE_CLASS = 'l7plot-tooltip__title'; exports.LIST_CLASS = 'l7plot-tooltip__list'; exports.LIST_ITEM_CLASS = 'l7plot-tooltip__list-item'; exports.NAME_CLASS = 'l7plot-tooltip__name'; exports.VALUE_CLASS = 'l7plot-tooltip__value'; exports.CONTAINER_TPL = `<div class="${exports.CONTAINER_CLASS}"> <div class="${exports.TITLE_CLASS}"></div> <ul class="${exports.LIST_CLASS}"></ul> </div>`; exports.ITEM_TPL = `<li class="${exports.LIST_ITEM_CLASS}" data-index={index}> <span class="${exports.NAME_CLASS}">{name}</span> <span class="${exports.VALUE_CLASS}">{value}</span> </li>`; //# sourceMappingURL=constants.js.map --- dist/lib/tooltip/index.d.ts (bundled) --- import { Component } from '../core/component'; import { TooltipOptions } from '../types'; export declare class Tooltip<O extends TooltipOptions = TooltipOptions> extends Compo
