// npm 패키지
@antv/g-dom-mutation-observer-api
A simple implementation of DOM MutationObserver API.
버전
130
메인테이너
51
라이선스
MIT
최초 publish
2022-09-15
publisher
alex_zjt
tarball
127,916 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2025-12-15
// publisher 캠페인by alex_zjt
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.0.39-beta.0· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other 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-3918public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-dom-mutation-observer-api", "version": "2.0.39-beta.0", "description": "A simple implementation of DOM MutationObserver API.", "keywords": [ "antv", "g", "rendering engine" ], "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", "@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-dom-mutation-observer-api", "version": "2.0.39-beta.0", "description": "A simple implementation of DOM MutationObserver API.", "keywords": [ "antv", "g", "rendering engine" ], "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", "@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 - --- index.js (entry) --- /*! * @antv/g-dom-mutation-observer-api * @description A simple implementation of DOM MutationObserver API. * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:12 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 gLite = require('@antv/g-lite'); var MutationRecord = /*#__PURE__*/function () { function MutationRecord(type, target) { _classCallCheck(this, MutationRecord); this.addedNodes = []; this.attributeName = null; this.attributeNamespace = null; this.nextSibling = null; this.oldValue = null; this.previousSibling = null; this.removedNodes = []; this.type = type; this.target = target; } return _createClass(MutationRecord, null, [{ key: "copy", value: function copy(original) { var record = new MutationRecord(original.type, original.target); record.addedNodes = original.addedNodes.slice(); record.removedNodes = original.removedNodes.slice(); record.previousSibling = original.previousSibling; record.nextSibling = original.nextSibl --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-dom-mutation-observer-api * @description A simple implementation of DOM MutationObserver API. * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:12 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; import _createClass from '@babel/runtime/helpers/createClass'; import { ElementEvent, MutationEvent, runtime } from '@antv/g-lite'; var MutationRecord = /*#__PURE__*/function () { function MutationRecord(type, target) { _classCallCheck(this, MutationRecord); this.addedNodes = []; this.attributeName = null; this.attributeNamespace = null; this.nextSibling = null; this.oldValue = null; this.previousSibling = null; this.removedNodes = []; this.type = type; this.target = target; } return _createClass(MutationRecord, null, [{ key: "copy", value: function copy(original) { var record = new MutationRecord(original.type, original.target); record.addedNodes = original.addedNodes.slice(); record.removedNodes = original.removedNodes.slice(); record.previousSibling = original.previousSibling; record.nextSibling = original.nextSibling; record.attributeName = original.attributeName; record.attributeNamespace = original.attributeNamespace; record.oldValue = original.oldValue; return record; } }]); }(); var uidCounter = 0; var registrationsTable = new WeakMap(); var Registration = /*#__PURE__*/function () { function Registration(observer, target, options) { _classCallCheck(this, Registration); this.transientObservedNodes = []; this.observer = observer; this.target = target; this.options = options; } return _createClass(Registration, [{ key: "enqueue", value: function enqueue(record) { var records = this.observer.records; var length = records.length; // There are cases where we replace the last record with the new record. --- dist/index.js (bundled) --- /*! * @antv/g-dom-mutation-observer-api * @description A simple implementation of DOM MutationObserver API. * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:12 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 gLite = require('@antv/g-lite'); var MutationRecord = /*#__PURE__*/function () { function MutationRecord(type, target) { _classCallCheck(this, MutationRecord); this.addedNodes = []; this.attributeName = null; this.attributeNamespace = null; this.nextSibling = null; this.oldValue = null; this.previousSibling = null; this.removedNodes = []; this.type = type; this.target = target; } return _createClass(MutationRecord, null, [{ key: "copy", value: function copy(original) { var record = new MutationRecord(original.type, original.target); record.addedNodes = original.addedNodes.slice(); record.removedNodes = original.removedNodes.slice(); record.previousSibling = original.previousSibling; record.nextSibling = original.nextSibling; record.attributeName = original.attributeName; record.attributeNamespace = original.attributeNamespace; record.oldValue = original.oldValue; return record; } }]); }(); var uidCounter = 0; var registrationsTable = new WeakMap(); var Registration = /*#__PURE__*/function () { function Registration(observer, target, options) { _classCallCheck(this, Registration); this.transientObservedNodes = []; this.observer = observer; this.target = target; this.options = options; } return _createClass(Registration, [{ key: "enqueue", value: function enqueue(record) { var records = this.observer.records; var length = records.length; // There are cases where we replace the last record with the new record. // For ex --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-dom-mutation-observer-api * @description A simple implementation of DOM MutationObserver API. * @version 2.0.39-beta.0 * @date 12/12/2025, 2:49:12 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.DOMMutationObserverAPI={}),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 i(e){return i="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},i(e)}function n(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function o(e,t){for(var r=0;t.length>r;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var a,u,l=function(){function e(t,i){r(this,e),this.addedNodes=[],this.attributeName=null,this.attributeNamespace=null,this.nextSibling=null,this.oldValue=null,this.previousSibling=null,this.removedNodes=[],this.type=t,this.target=i}return s(e,null,[{key:"copy",value:function(t){var r=new e(t.type,t.target);return r.addedNodes=t.addedNodes.slice(),r.removedNodes=t.removedNodes.slice(),r.previousSibling=t.previousSibling,r.nextSibling=t.nextSibling,r.attributeName=t.attributeName,r.attributeNamespace=t.attributeNamespace,r.oldValue=t.
