// npm 패키지
@antv/dipper-hooks
## Getting Started
버전
1
메인테이너
51
최초 publish
2022-01-21
publisher
lzxue
tarball
75,204 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2022-01-21
// publisher 캠페인by lzxue
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.2.1· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @0.2.1··AUTO-PUBLISHED·publisher: lzxueheuristic 75/100static flags 1llm benign (0.85) via ollamafirst-version-of-packageosv-flagged:MAL-2026-3871install-path-npm-publish
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- install scripts --- ### prepublishOnly npm run build --- package/package.json (excerpt) --- { "name": "@antv/dipper-hooks", "version": "0.2.1", "scripts": { "start": "dumi dev", "docs:build": "dumi build", "docs:deploy": "gh-pages -d docs-dist", "build": "father-build", "deploy": "npm run docs:build && npm run docs:deploy", "watch": "father-build --watch", "release": "npm run build && npm publish", "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", "test": "umi-test", "sync": "tnpm sync", "test:coverage": "umi-test --coverage", "prepublishOnly": "npm run build" }, "main": "dist/index.js", "module": "dist/index.esm.js", "typings": "dist/index.d.ts", "files": [ "dist", "lib", "es", "README.md" ], "gitHooks": { "pre-commit": "lint-staged" }, "lint-staged": { "*.{js,jsx,less,md,json}": [ "prettier --write" ], "*.ts?(x)": [ "prettier --parser=typescript --write" ] }, "dependencies": { "@antv/dipper-core": "^0.2.1", "react": "^16.12.0 || ^17.0.0" }, "devDependencies": { "@testing-library/jest-dom": "^5.15.1", "@testing-library/react": "^12.1.2", "@types/jest": "^27.0.3", "@umijs/fabric": "^2.8.1", "@umijs/test": "^3.0.5", "dumi": "^1.1.0", "father-build": "^1.17.2", "gh-pages": "^3.0.0", "lint-staged": "^10.0.7", "prettier": "^2.2.1", "yorkie": "^2.0.0" }, "publishConfig": { "access": "public" }, "gitHead": "099a1b60345ddfed6ded0c8f2f28559f73c939a7" } --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.d.ts (bundled) --- export * from './useConfigService'; export * from './useLayerGroup'; export * from './useSceneService'; export * from './useLayerService'; export * from './useDipperContainer'; export * from './usePanelService'; export * from './useWidgets'; export * from './useWidgetsService'; --- dist/index.esm.js (bundled) --- import require$$0, { useState, useEffect, useCallback } from 'react'; import { TYPES, ConfigEventEnum, LayerEventEnum, LayerGroupEventEnum, Dipper, WidgetsServiceEnum, WidgetsEventEnum } from '@antv/dipper-core'; function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' --- dist/index.js (bundled) --- 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var require$$0 = require('react'); var dipperCore = require('@antv/dipper-core'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0); function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } va --- dist/useConfigService.d.ts (bundled) --- import { IConfigService, IConfig } from '@antv/dipper-core'; export declare function useConfigService(): { globalConfig: Partial<IConfig>; setConfig: (field: string, value: any) => void; updateLegend: (id: string, value: any) => void; updateControl: (type: string, value: any) => void; setWidgetsOptions: (key: string, options: Record<string, any>) => void; getWidgetsOptions: (key: string) => Record<string, any>; setWidgetsValue: (key: string, options: Record<string, any>) => void; getWidgetsValue: (key: string) => Record<string, any>; configService: IConfigService; }; --- dist/useDipperContainer.d.ts (bundled) --- import { Dipper } from '@antv/dipper-core'; import type { IConfig } from '@antv/dipper-core'; export declare function useDipperContainer(cfg: IConfig | undefined): { sceneContainer: Dipper | undefined; }; --- dist/useLayerGroup.d.ts (bundled) --- /// <reference types="react" /> import type { IFeature } from '@antv/dipper-core'; import { LayerGroup } from '@antv/dipper-core'; export declare const useLayerGroup: (targetLayer?: string | LayerGroup<any> | null | undefined) => { layerGroup: LayerGroup<any> | null; layerData: import("@turf/turf").FeatureCollection<import("@turf/turf").Geometry, import("@turf/turf").Properties>; setLayerData: import("react").Dispatch<import("react").SetStateAction<import("@turf/turf").FeatureCollection<import("@turf/turf").Geometry, import("@turf/turf").Properties>>>; selectFeatures: IFeature[]; setSelectFeatures: (selectFeatures: IFeature[]) => void; updateProperties: (...args: any[]) => void; }; --- dist/useLayerService.d.ts (bundled) --- import type { ILayerService } from '@antv/dipper-core'; export declare function useLayerService(): { layerService: ILayerService; }; --- dist/usePanelService.d.ts (bundled) --- import type { IPanelService } from '@antv/dipper-core'; export declare function usePanelService(): { siderBarService: IPanelService; }; --- dist/useReferredState.d.ts (bundled) --- import React from 'react'; export default function useReferredState<T>(initialValue?: T): (React.MutableRefObject<T | undefined> | ((value: T) => void))[]; --- dist/useSceneService.d.ts (bundled) --- import type { ISceneService } from '@antv/dipper-core'; export declare function useSceneService(): { sceneService: ISceneService; }; --- dist/useWidgets.d.ts (bundled) --- import { IWidget } from '@antv/dipper-core'; import type { IWidgetProps } from '@antv/dipper-core'; export declare function useWidgets(id: string): { widgetsOptions: IWidgetProps<any> | undefined; widget: IWidget<any, any> | undefined; widgetsValue: any; setOption: (option: Partial<IWidgetProps<any>>) => void | undefined; setValues: (values: any) => void | undefined; }; --- dist/useWidgetsService.d.ts (bundled) --- import type { IWidgetsService } from '@antv/dipper-core'; export declare function useWidgetsService(): { widgetsService: IWidgetsService; };
