// npm package
@antv/g-components
Components for g
versions
244
maintainers
51
license
MIT
first publish
2021-06-02
publisher
alex_zjt
tarball
272,419 B
AUTO-PUBLISHED·1 version indexed·latest published 2025-12-15
// publisher campaignby alex_zjt
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· @2.0.39-beta.0· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s).
- @2.0.39-beta.0··AUTO-PUBLISHED·publisher: alex_zjtheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3914public-github-push
→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-components", "version": "2.0.39-beta.0", "description": "Components for g", "keywords": [ "antv", "g" ], "homepage": "https://github.com/antvis/g#readme", "bugs": { "url": "https://github.com/antvis/g/issues" }, "repository": { "type": "git", "url": "git+https://github.com/antvis/g.git", "directory": "packages/g-components" }, "license": "MIT", "author": "https://github.com/orgs/antvis/people", "exports": { "types": "./types/index.d.ts", "import": "./dist/index.esm.js", "default": "./dist/index.js" }, "main": "dist/index.js", "unpkg": "dist/index.umd.min.js", "module": "dist/index.esm.js", "types": "types/index.d.ts", "files": [ "package.json", "dist", "types", "LICENSE", "README.md" ], "dependencies": { "@antv/util": "^3.3.5", "@babel/runtime": "^7.25.6", "gl-matrix": "^3.4.3", "tslib": "^2.5.3", "@antv/g-lite": "2.3.3-beta.2" }, "devDependencies": { "@types/gl-matrix": "^2.4.5" }, "publishConfig": { "access": "public" }, "gitHead": "89a517f161e783e64278a4f0d800850db6b5b420", "scripts": { "build:types": "tsc --emitDeclarationOnly --noCheck", "build": "npm run clean && npm run build:types && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-components", "version": "2.0.39-beta.0", "description": "Components for g", "keywords": [ "antv", "g" ], "homepage": "https://github.com/antvis/g#readme", "bugs": { "url": "https://github.com/antvis/g/issues" }, "repository": { "type": "git", "url": "git+https://github.com/antvis/g.git", "directory": "packages/g-components" }, "license": "MIT", "author": "https://github.com/orgs/antvis/people", "exports": { "types": "./types/index.d.ts", "import": "./dist/index.esm.js", "default": "./dist/index.js" }, "main": "dist/index.js", "unpkg": "dist/index.umd.min.js", "module": "dist/index.esm.js", "types": "types/index.d.ts", "files": [ "package.json", "dist", "types", "LICENSE", "README.md" ], "dependencies": { "@antv/util": "^3.3.5", "@babel/runtime": "^7.25.6", "gl-matrix": "^3.4.3", "tslib": "^2.5.3", "@antv/g-lite": "2.3.3-beta.2" }, "devDependencies": { "@types/gl-matrix": "^2.4.5" }, "publishConfig": { "access": "public" }, "gitHead": "89a517f161e783e64278a4f0d800850db6b5b420", "scripts": { "build:types": "tsc --emitDeclar --- index.js (entry) --- /*! * @antv/g-components * @description Components for g * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:10 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); var util = require('@antv/util'); var glMatrix = require('gl-matrix'); var _superPropGet = require('@babel/runtime/helpers/superPropGet'); var _excluded = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"], _excluded2 = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"], _excluded3 = ["body --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-components * @description Components for g * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:10 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import _objectSpread from '@babel/runtime/helpers/objectSpread2'; import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; import _createClass from '@babel/runtime/helpers/createClass'; import _callSuper from '@babel/runtime/helpers/callSuper'; import _inherits from '@babel/runtime/helpers/inherits'; import { CustomElement, ElementEvent, Shape, Path, PropertySyntax, CSS, deg2rad } from '@antv/g-lite'; import { isNil, isNumberEqual } from '@antv/util'; import { vec3 } from 'gl-matrix'; import _superPropGet from '@babel/runtime/helpers/superPropGet'; var _excluded = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"], _excluded2 = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"], _excluded3 = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"]; /** * support 3 types of arrow line: * 1. Line * 2. Polyline * 3. Path * * support 2 types of arrow head: * 1. default(Path) * 2. custom */ var Arrow = /*#__PURE__*/function (_CustomElement) { function Arrow(config) { var _this; _classCallCheck(this, Arrow); _this = _callSuper(this, Arrow, [_objectSpread(_objectSpread({}, config), {}, { type: Arrow.tag })]); var _this$attributes = _this.attributes, body = _this$attributes.body, startHead = _this$attributes.startHead, endHead = _this$attributes.endHead; _this$attributes.startHeadOffset; _this$attributes.endHeadOffset; var rest = _objectWithoutProperties(_this$attributes, --- dist/index.js (bundled) --- /*! * @antv/g-components * @description Components for g * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:10 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); var util = require('@antv/util'); var glMatrix = require('gl-matrix'); var _superPropGet = require('@babel/runtime/helpers/superPropGet'); var _excluded = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"], _excluded2 = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"], _excluded3 = ["body", "startHead", "endHead", "startHeadOffset", "endHeadOffset"]; /** * support 3 types of arrow line: * 1. Line * 2. Polyline * 3. Path * * support 2 types of arrow head: * 1. default(Path) * 2. custom */ var Arrow = /*#__PURE__*/function (_CustomElement) { function Arrow(config) { var _this; _classCallCheck(this, Arrow); _this = _callSuper(this, Arrow, [_objectSpread(_objectSpread({}, config), {}, { type: Arrow.tag })]); var _this$attributes = _this.attributes, body = _this$attributes.body, startHead = _this$attributes.startHead, endHead = _this$attributes.endHead; _this$attributes.startHeadOffset; _this$attributes.endHeadOffset; var rest = _objectWithoutProperties(_this$attributes, _excluded); if (!body) { --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-components * @description Components for g * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:10 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.Components={}),t.window.G)}(this,function(t,e){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);e>r;r++)n[r]=t[r];return n}function n(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function a(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o,i,s=[],u=!0,d=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){d=!0,a=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw a}}return s}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
