// npm package
@antv/g-plugin-yoga
A G plugin for Yoga layout engine
versions
202
maintainers
51
license
MIT
first publish
2022-03-04
publisher
wang1212
tarball
1,945,624 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.3.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.3.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3958public-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-yoga", "version": "2.3.1", "description": "A G plugin for Yoga layout engine", "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", "yoga-layout-prebuilt": "^1.10.0", "@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-yoga", "version": "2.3.1", "description": "A G plugin for Yoga layout engine", "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", "yoga-layout-prebuilt": "^1.10.0", "@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 --- index.js (entry) --- /*! * @antv/g-plugin-yoga * @description A G plugin for Yoga layout engine * @version 2.3.1 * @date 12/24/2025, 11:57:00 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 _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var yoga = require('yoga-layout-prebuilt'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var yoga__namespace = /*#__PURE__*/_ --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-yoga * @description A G plugin for Yoga layout engine * @version 2.3.1 * @date 12/24/2025, 11:57:00 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, Shape, AABB, UnitType, CSSKeywordValue, CSS, PropertySyntax, AbstractRendererPlugin } from '@antv/g-lite'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; import * as yoga from 'yoga-layout-prebuilt'; import yoga__default, { EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_LEFT, FLEX_DIRECTION_ROW, ALIGN_FLEX_START, POSITION_TYPE_RELATIVE } from 'yoga-layout-prebuilt'; // eslint-disable-next-line @typescript-eslint/no-namespace var YogaConstants; (function (_YogaConstants) { var FlexDirection = function (FlexDirection) { FlexDirection[FlexDirection["column"] = yoga.FLEX_DIRECTION_COLUMN] = "column"; FlexDirection[FlexDirection["column-reverse"] = yoga.FLEX_DIRECTION_COLUMN_REVERSE] = "column-reverse"; FlexDirection[FlexDirection["row"] = yoga.FLEX_DIRECTION_ROW] = "row"; FlexDirection[FlexDirection["row-reverse"] = yoga.FLEX_DIRECTION_ROW_REVERSE] = "row-reverse"; return FlexDirection; }({}); _YogaConstants.FlexDirection = FlexDirection; var JustifyContent = function (JustifyContent) { JustifyContent[JustifyContent["flex-start"] = yoga.JUSTIFY_FLEX_START] = "flex-start"; JustifyContent[JustifyContent["flex-end"] = yoga.JUSTIFY_FLEX_END] = "flex-end"; JustifyContent[JustifyContent["center"] = yoga.JUSTIFY_CENTER] = "center"; JustifyContent[JustifyContent["space-between"] = yoga.JUSTIFY_SPACE_BETWEEN] = "space-between"; Justify --- dist/index.js (bundled) --- /*! * @antv/g-plugin-yoga * @description A G plugin for Yoga layout engine * @version 2.3.1 * @date 12/24/2025, 11:57:00 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 _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var yoga = require('yoga-layout-prebuilt'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var yoga__namespace = /*#__PURE__*/_interopNamespaceDefault(yoga); // eslint-disable-next-line @typescript-eslint/no-namespace var YogaConstants; (function (_YogaConstants) { var FlexDirection = function (FlexDirection) { FlexDirection[FlexDirection["column"] = yoga__namespace.FLEX_DIRECTION_COLUMN] = "column"; FlexDirection[FlexDirection["column-reverse"] = yoga__namespace.FLEX_DIRECTION_COLUMN_REVERSE] = "column-reverse"; FlexDirection[FlexDirection["row"] = yoga__namespace.FLEX_DIRECTION_ROW] = "row"; FlexDirection[FlexDirection["row-reverse"] = yoga__namespace.FLEX_DIRECTION_ROW_REVERSE] = "row-reverse"; return FlexDirection; }({}); _YogaConstants.FlexDirection = FlexDirection; var JustifyContent = function (JustifyContent) { JustifyContent[JustifyContent["flex-start"] = yoga__namespace.J --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-yoga * @description A G plugin for Yoga layout engine * @version 2.3.1 * @date 12/24/2025, 11:57:00 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G.Yoga={}),e.window.G)}(this,function(exports,gLite){"use strict";function _typeof(e){return _typeof="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},_typeof(e)}function toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function toPropertyKey(e){var n=toPrimitive(e,"string");return"symbol"==_typeof(n)?n:n+""}function _defineProperty$1(e,n,r){return(n=toPropertyKey(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ownKeys(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function _objectSpread2(e){for(var n=1;arguments.length>n;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(r),!0).forEach(function(n){_defineProperty$1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _classCallCheck$1(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function
