// npm package
@antv/li-p2
property panel for location insight editor
versions
37
maintainers
51
license
Apache-2.0
first publish
2023-04-28
publisher
lvisei
tarball
1,552,690 B
AUTO-PUBLISHED·1 version indexed·latest published 2024-05-17
// publisher campaignby lvisei
9 caught packages from this accountThis is not an isolated catch. The same publisher has shipped 8 other packages that our pipeline flagged — the shape of a coordinated campaign, not a one-off. Each link below opens that sibling's analysis.
// offending code· @1.8.2· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 other host(s).
- @1.8.2··AUTO-PUBLISHED·publisher: lviseiheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-4063public-github-push
→ No suspicious destination, no remote-exec shape — 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/li-p2", "version": "1.8.2", "description": "property panel for location insight editor", "keywords": [ "li", "property panel" ], "homepage": "https://locationinsight.antv.antgroup.com", "repository": { "type": "git", "url": "https://github.com/antvis/L7VP.git" }, "license": "Apache-2.0", "author": "https://github.com/orgs/antvis/people", "sideEffects": [ "**/*.less" ], "main": "dist/cjs/index.js", "jsdelivr": "dist/umd/li-p2.min.js", "unpkg": "dist/umd/li-p2.min.js", "module": "dist/esm/index.js", "typings": "dist/esm/index.d.ts", "files": [ "dist", "README.md", "!dist/umd/report.html" ], "scripts": { "build": "npm run clean && father build", "bundle": "cross-env BUNDLE_ENV=bundle npm run build", "clean": "rimraf dist", "dev": "father dev", "docs:build": "dumi build", "docs:build-analyze": "ANALYZE=1 dumi build", "doctor": "father doctor", "ci": "npm run doctor", "prettier": "prettier --write \"src/*.{tsx,ts,less,md,json}\"", "start": "dumi dev" }, "dependencies": { "@formily/antd-v5": "^1.1.2", "@formily/core": "^2.2.24", "@formily/react": "^2.2.24", "@formily/reactive": "^2.2.24", "@formily/shared": "^2.2.24", "ahooks": "^3.7.0", "classnames": "^2.3.1", "colorbrewer": "^1.5.3", "dayjs": "^1.11.7", "lodash-es": "^4.17.21", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1" }, "devDep --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/esm/index.d.ts (bundled) --- /** * 筛选器组件 */ export * from './components/Filter'; /** * formily 组件 */ export * from './components/Formily'; /** * 图层属性组件 */ export * from './LayerAttribute'; --- dist/esm/index.js (bundled) --- /** * 筛选器组件 */ export * from "./components/Filter"; /** * formily 组件 */ export * from "./components/Formily"; /** * 图层属性组件 */ export * from "./LayerAttribute"; --- dist/esm/utils/index.d.ts (bundled) --- export declare const getUId: () => string; --- dist/esm/utils/index.js (bundled) --- export var getUId = function getUId() { var s4 = function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }; return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }; --- dist/esm/components/Formily/index.d.ts (bundled) --- export { default as ColorPicker } from './ColorPicker'; export { COLOR_RANGES, default as ColorRangeSelector } from './ColorRangeSelector'; export type { ColorRange } from './ColorRangeSelector/Internal/types'; export { default as ControlPositionSelect } from './ControlPositionSelect'; export { default as FieldSelect } from './FieldSelect'; export type { FieldSelectOptionType } from './FieldSelect/Select/types'; export { default as FilterConfiguration } from './FilterConfiguration'; export { default as FilterDateConfig } from './FilterConfiguration/components/FilterDateConfig'; export { default as FilterNumberConfig } from './FilterConfiguration/components/FilterNumberConfig'; export { default as FilterStringConfig } from './FilterConfiguration/components/FilterStringConfig'; export type { FilterConfigType, FilterDateConfigType, FilterNumberConfigType, FilterStringConfigType, } from './FilterConfiguration/type'; export { default as FormCollapse } from './FormCollapse'; export { default as Offset } from './Offset'; export { default as RibbonSelect } from './RibbonSelect'; export { default as Slider } from './Slider'; export { default as SliderRange } from './SliderRange'; export { default as TimeGranularitySelect } from './TimeGranularitySelect'; --- dist/esm/components/Formily/index.js (bundled) --- export { default as ColorPicker } from "./ColorPicker"; export { COLOR_RANGES, default as ColorRangeSelector } from "./ColorRangeSelector"; export { default as ControlPositionSelect } from "./ControlPositionSelect"; export { default as FieldSelect } from "./FieldSelect"; export { default as FilterConfiguration } from "./FilterConfiguration"; export { default as FilterDateConfig } from "./FilterConfiguration/components/FilterDateConfig"; export { default as FilterNumberConfig } from "./FilterConfiguration/components/FilterNumberConfig"; export { default as FilterStringConfig } from "./FilterConfiguration/components/FilterStringConfig"; export { default as FormCollapse } from "./FormCollapse"; export { default as Offset } from "./Offset"; export { default as RibbonSelect } from "./RibbonSelect"; export { default as Slider } from "./Slider"; export { default as SliderRange } from "./SliderRange"; export { default as TimeGranularitySelect } from "./TimeGranularitySelect"; --- dist/esm/components/Formily/TimeGranularitySelect/index.d.ts (bundled) --- import type { ReactFC } from '@formily/react'; import type { SelectProps } from 'antd'; declare const TimeGranularitySelect: ReactFC<SelectProps>; export default TimeGranularitySelect; --- dist/esm/components/Formily/TimeGranularitySelect/index.js (bundled) --- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } import { connect, mapProps } from '@formily/react'; import InternalSelect from "./Select"; var TimeGranularitySelect = connect(InternalSelect, mapProps({ dataSource: 'options', loading: true }, function (props, field) { return _objectSpread(_objectSpread({}, props), {}, { field: field }); })); export defa --- dist/esm/components/Formily/TimeGranularitySelect/Select/helper.d.ts (bundled) --- import type { DefaultOptionType } from 'antd/es/select'; export declare const DEFAULT_OPTIONS: { lavel: string; value: string; other: string; }[]; export declare const getOptions: (format?: string) => DefaultOptionType[]; --- dist/esm/components/Formily/TimeGranularitySelect/Select/helper.js (bundled) --- import { isEmpty } from 'lodash-es'; export var DEFAULT_OPTIONS = [{ lavel: 'YYYY/MM/DD HH:mm:ss', value: 'YYYY/MM/DD HH:mm:ss', other: 'YYYY-MM-DD HH:mm:ss' }, { lavel: 'YYYY/MM/DD HH', value: 'YYYY/MM/DD HH', other: 'YYYY-MM-DD HH' }, { lavel: 'YYYY/MM/DD', value: 'YYYY/MM/DD', other: 'YYYY-MM-DD' }, { lavel: 'YYYY/MM', value: 'YYYY/MM', other: 'YYYY-MM' }, { lavel: 'YYYY', value: 'YYYY', other: 'YYYY' }]; export var getOptions = function getOptions(format) { if (!format) { return DEFAULT_OPTIONS.map(function (item) { return { label: item.lavel, value: item.value }; }); } var isDiagonalLineSplit = format.indexOf('/') !== -1; var options = DEFAULT_OPTIONS.map(function (item) { return { label: isDiagonalLineSplit ? item.value : item.other, value: isDiagonalLineSplit ? item.value : item.other }; }); var formatIndex = DEFAULT_OPTIONS.findIndex(function (item) { return item.value === format || item.other === format; }); if (!isEmpty(formatIndex)) { return options; } return options.slice(formatIndex); }; --- dist/esm/components/Formily/TimeGranularitySelect/Select/index.d.ts (bundled) --- import type { SelectProps as AntdSelectProps } from 'antd'; import React from 'react'; export type SelectProps = AntdSelectProps & { type: string; }; declare const InternalSelect: React.FC<SelectProps>; export default InternalSelect; --- dist/esm/components/Formily/TimeGranularitySelect/Select/index.js (bundled) --- var _excluded = ["options", "value", "type"]; function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw
