// npm package
@antv/x6-plugin-history
history plugin for X6
versions
10
maintainers
51
license
MIT
first publish
2022-11-08
publisher
newbyvector
tarball
159,257 B
AUTO-PUBLISHED·1 version indexed·latest published 2023-10-02
// publisher campaignby newbyvector
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.2.4· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 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
→ No suspicious destination, no remote-exec shape — 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
