// npm package
@antv/ckb
Chart Knowledge Base
versions
10
maintainers
51
license
MIT
first publish
2021-11-19
publisher
neoddish
tarball
237,331 B
AUTO-PUBLISHED·1 version indexed·latest published 2023-03-06
// publisher campaignby neoddish
7 caught packages from this accountThis is not an isolated catch. The same publisher has shipped 6 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· @2.0.4· no static-pattern hits
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 3 known-vendor host(s).
- @2.0.4··AUTO-PUBLISHED·publisher: neoddishheuristic 75/100static flags 0llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3860
→ No suspicious destination, no remote-exec shape — 3 known-vendor host(s).
// offending code· no static-pattern hits
--- package.json (entry) --- { "name": "@antv/ckb", "version": "2.0.4", "description": "Chart Knowledge Base", "author": { "name": "AntV", "url": "https://antv.vision/" }, "homepage": "https://ava.antv.vision/en/docs/guide/ckb/intro", "repository": { "type": "git", "url": "https://github.com/antvis/ava" }, "license": "MIT", "publishConfig": { "access": "public" }, "main": "lib/index.js", "types": "lib/index.d.ts", "unpkg": "dist/index.min.js", "module": "esm/index.js", "files": [ "esm", "dist", "lib" ], "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx './'", "lint-fix": "npm run lint -- --fix", "prettier": " prettier --check '**/*' --ignore-path=../../.prettierignore", "prettier-fix": "npm run prettier -- --write", "format": "npm run prettier-fix && npm run lint-fix", "lint-staged": "lint-staged", "clean": "rimraf lib esm dist", "build:umd": "rimraf ./dist && rollup -c", "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib", "build:esm": "rimraf ./esm && tsc --module es6 --outDir esm", "build": "run-p build:*", "test": "jest", "coverage": "jest --coverage", "watch": "yarn --- index.js (entry) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHART_ID_OPTIONS = exports.CKBOptions = exports.addChart = exports.CKBJson = void 0; var pack_1 = require("./pack"); Object.defineProperty(exports, "CKBJson", { enumerable: true, get: function () { return pack_1.CKBJson; } }); Object.defineProperty(exports, "addChart", { enumerable: true, get: function () { return pack_1.addChart; } }); var options_1 = require("./options"); Object.defineProperty(exports, "CKBOptions", { enumerable: true, get: function () { return options_1.CKBOptions; } }); var chartID_1 = require("./chartID"); Object.defineProperty(exports, "CHART_ID_OPTIONS", { enumerable: true, get: function () { return chartID_1.CHART_ID_OPTIONS; } }); --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/base.d.ts (bundled) --- import type { ChartKnowledgeBase } from './interface'; export declare const base: ChartKnowledgeBase; --- dist/chartID.d.ts (bundled) --- /** * @public */ export declare const CHART_ID_OPTIONS: readonly ["line_chart", "step_line_chart", "area_chart", "stacked_area_chart", "percent_stacked_area_chart", "interval_area_chart", "stream_chart", "column_chart", "grouped_column_chart", "stacked_column_chart", "percent_stacked_column_chart", "interval_column_chart", "range_column_chart", "waterfall_chart", "histogram", "bar_chart", "stacked_bar_chart", "percent_stacked_bar_chart", "grouped_bar_chart", "interval_bar_chart", "range_bar_chart", "radial_bar_chart", "mirror_bar_chart", "bullet_chart", "pie_chart", "donut_chart", "nested_pie_chart", "rose_chart", "scatter_plot", "bubble_chart", "non_ribbon_chord_diagram", "arc_diagram", "chord_diagram", "treemap", "sankey_diagram", "funnel_chart", "overlapping_funnel_chart", "mirror_funnel_chart", "box_plot", "heatmap", "density_heatmap", "gauge_chart", "radar_chart", "wordcloud", "candlestick_chart", "compact_box_tree", "dendrogram", "indented_tree", "radial_tree", "flow_diagram", "fruchterman_layout_graph", "force_directed_layout_graph", "fa2_layout_graph", "mds_layout_graph", "circular_layout_graph", "spiral_layout_graph", "radial_layout_graph", "concentric_layout_graph", "grid_layout_graph", "symbol_map", "chart_map", "column_map_3d", "scatter_map", "path_map", "isoline_map", "arc_map_3d", "choropleth_map", "choropleth_map_3d", "hexagonal_heat_map", "hexagonal_heat_map_3d", "classical_heat_map", "grid_heat_map", "bubble_map", "bubble_light_map", "packed_circles", "polar_treemap", "sunburst_diagram", "liquid_chart", "kpi_panel", "table"]; /** * @public */ export declare type ChartID = (typeof CHART_ID_OPTIONS)[number]; --- dist/index.d.ts (bundled) --- export { CKBJson, addChart } from './pack'; export { CKBOptions } from './options'; export { Language } from './i18n'; export { CHART_ID_OPTIONS } from './chartID'; export type { TransKnowledgeProps } from './i18n/interface'; export type { ChartID } from './chartID'; export type { ChartKnowledge, DataPrerequisite, LevelOfMeasurement, Family, Purpose, CoordinateSystem, GraphicCategory, Shape, Channel, RecommendRating, ChartKnowledgeJSON, FAMILY_OPTIONS, PURPOSE_OPTIONS, COORD_TYPE_OPTIONS, GRAPHIC_CATEGORY_OPTIONS, SHAPE_OPTIONS, LOM_OPTIONS, CHANNEL_OPTIONS, RECOMMEND_RATING_OPTIONS, DataPrerequisiteJSON, } from './interface'; --- dist/index.min.js (bundled) --- !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((a="undefined"!=typeof globalThis?globalThis:a||self).CKB={})}(this,(function(a){"use strict";var e={"en-US":null,"zh-CN":{concepts:{family:{LineCharts:"折线图类",ColumnCharts:"柱状图类",BarCharts:"条形图类",PieCharts:"饼图类",AreaCharts:"面积图类",ScatterCharts:"散点图类",FunnelCharts:"漏斗图类",HeatmapCharts:"热力图类",RadarCharts:"雷达图类",TreeGraph:"树形关系类",GeneralGraph:"关系图类",PointLayer:"点图层类",LineLayer:"线图层类",PolygonLayer:"面图层类",HeatmapLayer:"地图热力图类",Others:"其他类",Table:"表格类"},category:{Statistic:"统计图表",Diagram:"示意图",Graph:"关系图",Map:"地图",Other:"其他"},purpose:{Comparison:"比较",Trend:"趋势",Distribution:"分布",Rank:"排名",Proportion:"占比",Composition:"组成",Relation:"关系",Hierarchy:"层级",Flow:"流向",Spatial:"空间",Anomaly:"异常",Value:"数值"},coord:{NumberLine:"数轴",Cartesian2D:"二维直角坐标系",SymmetricCartesian:"对称直角坐标系",Cartesian3D:"三维直角坐标系",Polar:"极坐标系",NodeLink:"点线关系网络",Radar:"雷达型坐标系",Geo:"地理坐标系",Other:"其他"},shape:{Lines:"线形",Bars:"条形",Round:"圆形",Square:"方形",Area:"面形",Scatter:"散点形",Symmetric:"对称形",Network:"网络形",Map:"地图",Other:"其他"},channel:{Position:"位置",Length:"长度",Color:"颜色",Area:"面积",Angle:"角度",ArcLength:"弧长",Direction:"方向",Size:"大小",Opacity:"透明度",Stroke:"线色",LineWidth:"线粗",Lightness:"亮度"},lom:{Continuous:"连续",Discrete:"离散",Interval:"数值",Nominal:"无序名词",Ordinal:"有序名词",Time:"时间"},recRate:{Recommended:"推荐","Use with Caution":"慎用","Not Recommended":"不推荐"}},chartTypes:{line_chart:{name:"折线图",alias:["折线图","线图"],def:"使用折线的线段显示数据在一个具有顺序性的维度上的变化。"},step_line_chart:{name:"阶梯图",alias:["阶梯线"],def:"折线根据分类字段分为多根在 x 方向(时间)的信息是完全一致、颜色及 y 方向(变量)信息不一致的折线,通常用作同一时间区间内多个变量发展趋势的对比。"},area_chart:{name:"面积图",alias:[],def:"使用带填充区域的线段显示数据在一个具有顺序性的维度上的变化。"},stacked_area_chart:{name:"堆叠面积图",alias:[],def:"使用带不同样式的填充区域的层叠线段来显示多组数据在同一个具有顺序性的维度上的变化,线段在同一维度值上的端点高度按照数值累加。"},percent_stacked_area_chart:{name:"百分比堆叠面积图",alias:["%堆叠面积图","100%堆叠面积图"],def:"一种特殊的堆叠面积图,线段在同一维度值上的端点高度代表值在其中的占比,占比总和为百分之百。"},interval_area_c --- dist/interface.d.ts (bundled) --- import { ChartID } from './chartID'; /** * @public */ export declare const FAMILY_OPTIONS: readonly ["LineCharts", "ColumnCharts", "BarCharts", "PieCharts", "AreaCharts", "ScatterCharts", "FunnelCharts", "HeatmapCharts", "RadarCharts", "TreeGraph", "GeneralGraph", "PolygonLayer", "LineLayer", "PointLayer", "HeatmapLayer", "Table", "Others"]; /** * @public */ export declare type Family = (typeof FAMILY_OPTIONS)[number]; /** * @public */ export declare const PURPOSE_OPTIONS: readonly ["Comparison", "Trend", "Distribution", "Rank", "Proportion", "Composition", "Relation", "Hierarchy", "Flow", "Spatial", "Anomaly", "Value"]; /** * @public */ export declare type Purpose = (typeof PURPOSE_OPTIONS)[number]; /** * @public */ export declare const COORD_TYPE_OPTIONS: readonly ["NumberLine", "Cartesian2D", "SymmetricCartesian", "Cartesian3D", "Polar", "NodeLink", "Radar", "Geo", "Other"]; /** * @public */ export declare type CoordinateSystem = (typeof COORD_TYPE_OPTIONS)[number]; /** * @public */ export declare const GRAPHIC_CATEGORY_OPTIONS: readonly ["Statistic", "Diagram", "Graph", "Map", "Other"]; /** * @public */ export declare type GraphicCategory = (typeof GRAPHIC_CATEGORY_OPTIONS)[number]; /** * @public */ export declare const SHAPE_OPTIONS: readonly ["Lines", "Bars", "Round", "Square", "Area", "Scatter", "Symmetric", "Network", "Map", "Other"]; /** * @public */ export declare type Shape = (typeof SHAPE_OPTIONS)[number]; /** * @public */ export declare const LOM_OPTIONS: readonly ["Nominal", "Ordinal", "Interval", "Discrete", "Continuous", "Time"]; /** * @public */ export declare type LevelOfMeasurement = (typeof LOM_OPTIONS)[number]; /** * @public */ export interface DataPrerequisite { minQty: number; maxQty: number | '*'; fieldConditions: LevelOfMeasurement[]; } /** * @public */ export interface DataPrerequisiteJSON { minQty: number; maxQty: number | '*'; fieldConditions: string[]; } /** * @public */ export declar --- dist/options.d.ts (bundled) --- import { Language } from './i18n'; /** * @param lang - Language of the options. * @public */ export declare function CKBOptions(lang?: Language): { family: string[]; category: string[]; purpose: string[]; coord: string[]; shape: string[]; channel: string[]; lom: string[]; recRate: string[]; }; --- dist/pack.d.ts (bundled) --- import { Language } from './i18n'; import { TransKnowledgeProps } from './i18n/interface'; import type { ChartKnowledge, ChartKnowledgeBaseJSON } from './interface'; /** * Get a CKB object. * * @param lang - Language of the CKB. * @param completed - True if only charts with fully completed knowledge should be included. Default is false. * * @public */ export declare function CKBJson(lang?: Language, completed?: boolean): ChartKnowledgeBaseJSON; /** * @param chartKnowledge - Knowledge of the added chart. * @param trans - Versions of translation for the name, alias and definition of the added chart. * @deprecated * @public */ export declare function addChart(chartKnowledge: ChartKnowledge, trans: Record<Language, TransKnowledgeProps>): void; --- dist/i18n/index.d.ts (bundled) --- import { TranslateList } from './interface'; /** * Language Code * @public */ export declare type Language = 'en-US' | 'zh-CN'; export declare const translateMapping: Record<Language, TranslateList | null>; /** * Get TranslateL
