// npm package
@antv/g-plugin-css-select
A G plugin for using CSS select syntax in query selector
versions
249
maintainers
51
license
MIT
first publish
2021-06-02
publisher
wang1212
tarball
384,298 B
AUTO-PUBLISHED·1 version indexed·latest published 2025-12-24
// publisher campaignby wang1212
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.1.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s), 1 other host(s).
- @2.1.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3940public-github-push
→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-css-select", "version": "2.1.1", "description": "A G plugin for using CSS select syntax in query selector", "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" }, "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": { "@babel/runtime": "^7.25.6", "css-select": "^3.1.2", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0" }, "devDependencies": { "@rollup/plugin-json": "^6.0.0" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && rollup -c", "build:types": "rimraf types && tsc --emitDeclarationOnly --noCheck", "build": "npm run build:js && npm run build:types", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-plugin-css-select", "version": "2.1.1", "description": "A G plugin for using CSS select syntax in query selector", "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" }, "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": { "@babel/runtime": "^7.25.6", "css-select": "^3.1.2", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0" }, "devDependencies": { "@rollup/plugin-json": "^6.0.0" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && rollup -c", "build:types": "rimraf types && tsc --emitDeclarationOnly --noCheck", "buil --- index.js (entry) --- /*! * @antv/g-plugin-css-select * @description A G plugin for using CSS select syntax in query selector * @version 2.1.1 * @date 12/24/2025, 11:56:24 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; 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 cssSelect = require('css-select'); var CSSSceneGraphSelector = /*#__PURE__*/function () { function CSSSceneGraphSelector(sceneGraphAdapter) { _classCallCheck(this, CSSSceneGraphSelector); this.sceneGraphAdapter = sceneGraphAdapter; } return _createClass(CSSSceneGraphSelector, [{ key: "is", value: function is(query, element) { return cssSelect.is(element, query, { adapter: this.sceneGraphAdapter }); } }, { key: "selectOne", value: function selectOne(query, root) { return cssSelect.selectOne(query, root, { adapter: this.sceneGraphAdapter }); } }, { key: "selectAll", value --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-css-select * @description A G plugin for using CSS select syntax in query selector * @version 2.1.1 * @date 12/24/2025, 11:56:24 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 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 { DefaultSceneGraphSelector, AbstractRendererPlugin } from '@antv/g-lite'; import { is, selectOne, selectAll } from 'css-select'; var CSSSceneGraphSelector = /*#__PURE__*/function () { function CSSSceneGraphSelector(sceneGraphAdapter) { _classCallCheck(this, CSSSceneGraphSelector); this.sceneGraphAdapter = sceneGraphAdapter; } return _createClass(CSSSceneGraphSelector, [{ key: "is", value: function is$1(query, element) { return is(element, query, { adapter: this.sceneGraphAdapter }); } }, { key: "selectOne", value: function selectOne$1(query, root) { return selectOne(query, root, { adapter: this.sceneGraphAdapter }); } }, { key: "selectAll", value: function selectAll$1(query, root) { return selectAll(query, root, { adapter: this.sceneGraphAdapter }); } }]); }(); /** * implements interface Adapter * @see https://github.com/fb55/css-select/blob/1aa44bdd64aaf2ebdfd7f338e2e76bed36521957/src/types.ts#L6-L96 */ var SceneGraphAdapter = /*#__PURE__*/function () { function SceneGraphAdapter() { _classCallCheck(this, SceneGraphAdapter); } return _createClass(SceneGraphAdapter, [{ key: "isTag", value: function isTag(node) { return true; } }, { key: "existsOne", value: function existsOne(test, nodes) { var _this = this; return nodes.some(function (checked) { var groups = _this.getChildren(checked); return _this.isTag(checked) && (t --- dist/index.js (bundled) --- /*! * @antv/g-plugin-css-select * @description A G plugin for using CSS select syntax in query selector * @version 2.1.1 * @date 12/24/2025, 11:56:24 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; 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 cssSelect = require('css-select'); var CSSSceneGraphSelector = /*#__PURE__*/function () { function CSSSceneGraphSelector(sceneGraphAdapter) { _classCallCheck(this, CSSSceneGraphSelector); this.sceneGraphAdapter = sceneGraphAdapter; } return _createClass(CSSSceneGraphSelector, [{ key: "is", value: function is(query, element) { return cssSelect.is(element, query, { adapter: this.sceneGraphAdapter }); } }, { key: "selectOne", value: function selectOne(query, root) { return cssSelect.selectOne(query, root, { adapter: this.sceneGraphAdapter }); } }, { key: "selectAll", value: function selectAll(query, root) { return cssSelect.selectAll(query, root, { adapter: this.sceneGraphAdapter }); } }]); }(); /** * implements interface Adapter * @see https://github.com/fb55/css-select/blob/1aa44bdd64aaf2ebdfd7f338e2e76bed36521957/src/types.ts#L6-L96 */ var SceneGraphAdapter = /*#__PURE__*/function () { function SceneGraphAdapter() { _classCallCheck(this, SceneGraphAdapter); } return _createClass(SceneGraphAdapter, [{ key: "isTag", value: function isTag(node) { return true; } }, { key: "existsOne", value: function existsOne(test, nodes) { var _this = this; return nodes.some(function (checked) { var groups = _this.getChildren(checked); return _this.isTag(checked) && (test(checke --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-css-select * @description A G plugin for using CSS select syntax in query selector * @version 2.1.1 * @date 12/24/2025, 11:56:24 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G.CSSSelect={}),e.window.G)}(this,function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function i(e,t){for(var r=0;t.length>r;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function s(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
