// npm 패키지
@antv/x6-plugin-history
history plugin for X6
버전
10
메인테이너
51
라이선스
MIT
최초 publish
2022-11-08
publisher
newbyvector
tarball
159,257 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2023-10-02
// publisher 캠페인by newbyvector
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.2.4· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @2.2.4··AUTO-PUBLISHED·publisher: newbyvectorheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-4104public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/x6-plugin-history", "version": "2.2.4", "description": "history plugin for X6", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/index.js", "jsdelivr": "dist/index.js", "types": "lib/index.d.ts", "files": [ "dist", "es", "lib", "src" ], "keywords": [ "plugin", "history", "x6", "antv" ], "peerDependencies": { "@antv/x6": "^2.x" }, "devDependencies": { "@antv/x6": "^2.x" }, "author": { "name": "bubkoo", "email": "bubkoo.wy@gmail.com" }, "license": "MIT", "homepage": "https://x6.antv.antgroup.com/tutorial/plugins/history", "bugs": { "url": "https://github.com/antvis/x6/issues" }, "repository": { "type": "git", "url": "https://github.com/antvis/x6.git", "directory": "packages/x6-plugin-history" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "scripts": { "clean:turbo": "rss", "clean:build": "rss", "clean:coverage": "rss", "clean": "rss", "build:esm": "rss", "build:cjs": "rss", "build:umd": "rss", "build:dev": "rss", "build:watch": "rss", "build:watch:esm": "rss", "build:watch:cjs": "rss", "build": "rss", "prebuild": "rss", "test": "rss", "coveralls": "rss", "pretest": "rss" } } --- package.json (entry) --- { "name": "@antv/x6-plugin-history", "version": "2.2.4", "description": "history plugin for X6", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/index.js", "jsdelivr": "dist/index.js", "types": "lib/index.d.ts", "files": [ "dist", "es", "lib", "src" ], "keywords": [ "plugin", "history", "x6", "antv" ], "peerDependencies": { "@antv/x6": "^2.x" }, "devDependencies": { "@antv/x6": "^2.x" }, "author": { "name": "bubkoo", "email": "bubkoo.wy@gmail.com" }, "license": "MIT", "homepage": "https://x6.antv.antgroup.com/tutorial/plugins/history", "bugs": { "url": "https://github.com/antvis/x6/issues" }, "repository": { "type": "git", "url": "https://github.com/antvis/x6.git", "directory": "packages/x6-plugin-history" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "scripts": { "clean:turbo": "rss", "clean:build": "rss", "clean:coverage": "rss", "clean": "rss", "build:esm": "rss", "build:cjs": "rss", "build:umd": "rss", "build:dev": "rss", "build:watch": "rss", "build:watch:esm --- index.js (entry) --- "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.History = void 0; const x6_1 = require("@antv/x6"); require("./api"); class History extends x6_1.Basecoat { constructor(options = {}) { super(); this.name = 'history'; this.batchCommands = null; this.batchLevel = 0; this.lastBatchIndex = -1; this.freezed = false; this.stackSize = 0; // 0: not limit this.handlers = []; const { stackSize = 0 } = options; this.stackSize = stackSize; this.options = Util.getOptions(options); this.validator = ne --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.js (bundled) --- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/x6")):"function"==typeof define&&define.amd?define(["exports","@antv/x6"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).X6PluginHistory={},t.X6)}(this,(function(t,e){"use strict";function i(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var h=t.length-1;h>=0;h--)(s=t[h])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}e.Graph.prototype.isHistoryEnabled=function(){const t=this.getPlugin("history");return!!t&&t.isEnabled()},e.Graph.prototype.enableHistory=function(){const t=this.getPlugin("history");return t&&t.enable(),this},e.Graph.prototype.disableHistory=function(){const t=this.getPlugin("history");return t&&t.disable(),this},e.Graph.prototype.toggleHistory=function(t){const e=this.getPlugin("history");return e&&e.toggleEnabled(t),this},e.Graph.prototype.undo=function(t){const e=this.getPlugin("history");return e&&e.undo(t),this},e.Graph.prototype.redo=function(t){const e=this.getPlugin("history");return e&&e.redo(t),this},e.Graph.prototype.undoAndCancel=function(t){const e=this.getPlugin("history");return e&&e.cancel(t),this},e.Graph.prototype.canUndo=function(){const t=this.getPlugin("history");return!!t&&t.canUndo()},e.Graph.prototype.canRedo=function(){const t=this.getPlugin("history");return!!t&&t.canRedo()},e.Graph.prototype.cleanHistory=function(t){const e=this.getPlugin("history");return e&&e.clean(t),this},e.Graph.prototype.getHistoryStackSize=function(){return this.getPlugin("history").getSize()},e.Graph.prototype.getUndoStackSize=function(){return this.getPlugin("history").getUndoSize()},e.Graph.prototype.getRedoStackSize=function(){return this.getPlugin("history").getRedoSize()},e.Graph.prototype.getUndoRemainSize=function(){return this.getPlugin("history").getUndoRem
