// npm 패키지
@antv/g-plugin-image-loader
A G plugin for loading image
버전
171
메인테이너
51
라이선스
MIT
최초 publish
2022-06-07
publisher
alex_zjt
tarball
309,213 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2025-12-15
// publisher 캠페인by alex_zjt
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.1.27-beta.0· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 2 known-vendor host(s).
- @2.1.27-beta.0··AUTO-PUBLISHED·publisher: alex_zjtheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3947public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 2 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-image-loader", "version": "2.1.27-beta.0", "description": "A G plugin for loading image", "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": { "@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" }, "publishConfig": { "access": "public" }, "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-plugin-image-loader", "version": "2.1.27-beta.0", "description": "A G plugin for loading image", "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": { "@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" }, "publishConfig": { "access": "public" }, "scripts": { "build:types": "tsc --emitDeclarationOnly --noCheck", "build": "npm run clean && npm run build:types && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync" --- index.js (entry) --- /*! * @antv/g-plugin-image-loader * @description A G plugin for loading image * @version 2.1.27-beta.0 * @date 12/12/2025, 2:49:44 PM * @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 _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); var util = require('@antv/util'); var glMatrix = require('gl-matrix'); var RefCountCache = /*#__PURE__*/function () { function RefCountCache() { _classCallCheck(this, RefCountCache); this.cacheStore = new Map(); } return _createClass(RefCountCache, [{ key: "onRefAdded", value: function onRefAdded(ref) {} }, { key: "has", value: function has(key) { return --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-image-loader * @description A G plugin for loading image * @version 2.1.27-beta.0 * @date 12/12/2025, 2:49:44 PM * @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 { ElementEvent, OffscreenCanvasCreator, parsedTransformToMat4, parseTransform, DisplayObject, GradientType, computeLinearGradient, computeRadialGradient, UnitType, Shape, AbstractRendererPlugin } from '@antv/g-lite'; import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime'; import _objectSpread from '@babel/runtime/helpers/objectSpread2'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; import { isString } from '@antv/util'; import { mat4 } from 'gl-matrix'; var RefCountCache = /*#__PURE__*/function () { function RefCountCache() { _classCallCheck(this, RefCountCache); this.cacheStore = new Map(); } return _createClass(RefCountCache, [{ key: "onRefAdded", value: function onRefAdded(ref) {} }, { key: "has", value: function has(key) { return this.cacheStore.has(key); } }, { key: "put", value: function put(key, item, ref) { if (this.cacheStore.has(key)) { return false; } this.cacheStore.set(key, { value: item, counter: new Set([ref.entity]) }); this.onRefAdded(ref); return true; } }, { key: "get", value: function get(key, ref) { var cacheItem = this.cacheStore.get(key); if (!cacheItem) { return null; } if (!cacheItem.counter.has(ref.entity)) { cacheItem.counter.add(ref.entity); this.onRefAdded(ref); } return cacheItem.value; } } --- dist/index.js (bundled) --- /*! * @antv/g-plugin-image-loader * @description A G plugin for loading image * @version 2.1.27-beta.0 * @date 12/12/2025, 2:49:44 PM * @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 _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); var util = require('@antv/util'); var glMatrix = require('gl-matrix'); var RefCountCache = /*#__PURE__*/function () { function RefCountCache() { _classCallCheck(this, RefCountCache); this.cacheStore = new Map(); } return _createClass(RefCountCache, [{ key: "onRefAdded", value: function onRefAdded(ref) {} }, { key: "has", value: function has(key) { return this.cacheStore.has(key); } }, { key: "put", value: function put(key, item, ref) { if (this.cacheStore.has(key)) { return false; } this.cacheStore.set(key, { value: item, counter: new Set([ref.entity]) }); this.onRefAdded(ref); return true; } }, { key: "get", value: function get(key, ref) { var cacheItem = this.cacheStore.get(key); if (!cacheItem) { return null; } if (!cacheItem.counter.has(ref.entity)) { cacheItem.counter.add(ref.entity); this.onRefAdded(ref); } return cacheItem.value; } }, { key: "update", value: function update(key, value, ref) { var cacheItem = this.cacheStore.get(key); if (!cacheItem) { r --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-image-loader * @description A G plugin for loading image * @version 2.1.27-beta.0 * @date 12/12/2025, 2:49:44 PM * @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.ImageLoader={}),e.window.G)}(this,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="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},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function o(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),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 c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function f(e,t){if(t&&("object"==r(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");return e}(e)}func
