// npm 패키지
amapcn
An AMap (高德地图)-powered map component library for React, styled with Tailwind CSS.
버전
4
메인테이너
1
라이선스
MIT
최초 publish
2026-05-14
publisher
atool
tarball
273,201 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2026-05-18
// publisher 캠페인by atool
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.1.2· no static-pattern hits
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 3 known-vendor host(s).
- @0.1.2··AUTO-PUBLISHED·publisher: atoolheuristic 75/100static flags 0llm benign (0.85) via ollamapublisher-multi-name-burst:4osv-flagged:MAL-2026-4127
→ 의심 전송지 없음, 원격 실행 형태 없음 — 3 known-vendor host(s).
// offending code· no static-pattern hits
--- package.json (entry) --- { "name": "amapcn", "version": "0.1.2", "description": "An AMap (高德地图)-powered map component library for React, styled with Tailwind CSS.", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } } }, "files": [ "dist" ], "sideEffects": false, "scripts": { "build": "tsup", "dev": "tsup --watch" }, "peerDependencies": { "next-themes": "^0.4", "react": ">=18", "react-dom": ">=18" }, "dependencies": { "@amap/amap-jsapi-loader": "^1.0.1", "clsx": "^2.1.1", "lucide-react": ">=0.300", "tailwind-merge": "^2.6.0" }, "devDependencies": { "@types/geojson": "^7946.0.16", "@types/react": "^19", "@types/react-dom": "^19", "react": "^19.0.0", "react-dom": "^19.0.0", "tsup": "^8.4.0", "typescript": "^5" }, "repository": "git@github.com:hustcc/amapcn.git", "license": "MIT", "keywords": [ "amap", "map", "react", --- index.js (entry) --- "use client"; "use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __objRest = (source, exclude) => { var target = {}; for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.ind --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.d.ts (bundled) --- import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { ReactNode } from 'react'; type AMapNS = any; type AMapInstance = any; declare global { interface Window { _AMapSecurityConfig?: { securityJsCode?: string; }; } } type MapContextValue = { map: AMapInstance | null; AMap: AMapNS | null; isLoaded: boolean; }; declare function useMap(): MapContextValue; type MapProps = { children?: ReactNode; /** Map center [longitude, latitude] in GCJ-02 */ center?: [number, number]; /** Map zoom level (3-18) */ zoom?: number; /** Custom map styles for light and dark themes */ styles?: { light?: string; dark?: string; }; /** Additional CSS class for the container */ className?: string; /** AMap JS API key */ amapKey?: string; /** AMap JS API security code (required for 2.0) */ securityJsCode?: string; /** Fit the map to these bounds [[sw_lng, sw_lat], [ne_lng, ne_lat]] */ bounds?: [[number, number], [number, number]]; /** Map view mode. Note: only takes effect on initial mount */ viewMode?: "2D" | "3D"; /** Callback when map finishes loading */ onLoad?: () => void; /** Callback when map is clicked */ onClick?: (lngLat: { lng: number; lat: number; }) => void; /** Callback when map pan/move ends */ onMoveEnd?: () => void; /** Callback when map zoom ends */ onZoomEnd?: () => void; /** Callback when AMap fails to load */ onError?: (error: Error) => void; }; type MapRef = AMapInstance; declare const Map: react.ForwardRefExoticComponent<MapProps & react.RefAttributes<any>>; type MapMarkerProps = { /** Longitude (GCJ-02) */ longitude: number; /** Latitude (GCJ-02) */ latitude: number; children: ReactNode; onClick?: () => void; onMouseEnter?: () => void; onMouseLeave?: () => void; draggable?: boolean; onDragStart?: ( --- dist/index.js (bundled) --- "use client"; "use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __objRest = (source, exclude) => { var target = {}; for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop]; if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) { if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop]; } return target; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) _ --- dist/index.mjs (bundled) --- "use client"; var __create = Object.create; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __objRest = (source, exclude) => { var target = {}; for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop]; if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) { if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop]; } return target; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __t
