// npm package
@antv/g-plugin-a11y
A G plugin for accessibility
versions
160
maintainers
51
license
MIT
first publish
2022-06-24
publisher
wang1212
tarball
182,941 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· @1.4.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s).
- @1.4.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3932public-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-plugin-a11y", "version": "1.4.1", "description": "A G plugin for accessibility", "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", "tslib": "^2.5.3", "@antv/g-lite": "2.7.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-a11y", "version": "1.4.1", "description": "A G plugin for accessibility", "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", "tslib": "^2.5.3", "@antv/g-lite": "2.7.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" } } --- index.js (entry) --- /*! * @antv/g-plugin-a11y * @description A G plugin for accessibility * @version 1.4.1 * @date 12/24/2025, 11:56:07 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; 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 A11yPlugin = /*#__PURE__*/function () { function A11yPlugin(a11yPluginOptions, textExtractor, ariaManager) { _classCallCheck(this, A11yPlugin); this.a11yPluginOptions = a11yPluginOptions; this.textExtractor = textExtractor; this.ariaManager = ariaManager; } return _createClass(A11yPlugin, [{ key: "apply", value: function apply(context) { var _this = this; this.context = context; var renderingService = context.renderingService, renderingContext = context.renderingContext; var canvas = renderingContext.root.ownerDocument.defaultView; var _this$a11yPluginOptio --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-a11y * @description A G plugin for accessibility * @version 1.4.1 * @date 12/24/2025, 11:56:07 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 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 { ElementEvent, isBrowser, Shape, AbstractRendererPlugin } from '@antv/g-lite'; var A11yPlugin = /*#__PURE__*/function () { function A11yPlugin(a11yPluginOptions, textExtractor, ariaManager) { _classCallCheck(this, A11yPlugin); this.a11yPluginOptions = a11yPluginOptions; this.textExtractor = textExtractor; this.ariaManager = ariaManager; } return _createClass(A11yPlugin, [{ key: "apply", value: function apply(context) { var _this = this; this.context = context; var renderingService = context.renderingService, renderingContext = context.renderingContext; var canvas = renderingContext.root.ownerDocument.defaultView; var _this$a11yPluginOptio = this.a11yPluginOptions, enableExtractingText = _this$a11yPluginOptio.enableExtractingText, enableARIA = _this$a11yPluginOptio.enableARIA; var handleMounted = function handleMounted(e) { var object = e.target; if (enableExtractingText && !_this.isSVG()) { if (object.nodeName === Shape.TEXT) { _this.textExtractor.getOrCreateEl(object); Object.keys(object.attributes).forEach(function (name) { _this.textExtractor.updateAttribute(name, object); }); _this.textExtractor.updateAttribute('modelMatrix', object); } } if (enableARIA) { _this.ariaManager.createOrUpdateA11yDOM(object); } }; var handleAttributeChanged --- dist/index.js (bundled) --- /*! * @antv/g-plugin-a11y * @description A G plugin for accessibility * @version 1.4.1 * @date 12/24/2025, 11:56:07 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; 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 A11yPlugin = /*#__PURE__*/function () { function A11yPlugin(a11yPluginOptions, textExtractor, ariaManager) { _classCallCheck(this, A11yPlugin); this.a11yPluginOptions = a11yPluginOptions; this.textExtractor = textExtractor; this.ariaManager = ariaManager; } return _createClass(A11yPlugin, [{ key: "apply", value: function apply(context) { var _this = this; this.context = context; var renderingService = context.renderingService, renderingContext = context.renderingContext; var canvas = renderingContext.root.ownerDocument.defaultView; var _this$a11yPluginOptio = this.a11yPluginOptions, enableExtractingText = _this$a11yPluginOptio.enableExtractingText, enableARIA = _this$a11yPluginOptio.enableARIA; var handleMounted = function handleMounted(e) { var object = e.target; if (enableExtractingText && !_this.isSVG()) { if (object.nodeName === gLite.Shape.TEXT) { _this.textExtractor.getOrCreateEl(object); Object.keys(object.attributes).forEach(function (name) { _this.textExtractor.updateAttribute(name, object); }); _this.textExtractor.updateAttribute('modelMatrix', object); } } if (enableARIA) { _this.ariaManager.createOrUpdateA11yDOM(object); } }; var handleAttributeChanged = function han --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-a11y * @description A G plugin for accessibility * @version 1.4.1 * @date 12/24/2025, 11:56:07 AM * @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.A11y={}),t.window.G)}(this,function(t,e){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function r(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function s(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=fu
