// npm 패키지
@antv/xflow-hook
## Getting Started
버전
82
메인테이너
51
라이선스
MIT
최초 publish
2021-11-02
publisher
newbyvector
tarball
128,540 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2023-04-06
// publisher 캠페인by newbyvector
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @1.0.55· no static-pattern hits
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 2 known-vendor host(s).
- @1.0.55··AUTO-PUBLISHED·publisher: newbyvectorheuristic 75/100static flags 0llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-4122
→ 의심 전송지 없음, 원격 실행 형태 없음 — 2 known-vendor host(s).
// offending code· no static-pattern hits
--- package.json (entry) --- { "private": false, "name": "@antv/xflow-hook", "version": "1.0.55", "license": "MIT", "main": "lib/index.js", "module": "es/index.js", "typings": "es/index.d.ts", "unpkg": "dist/index.umd.js", "files": [ "dist", "lib", "es" ], "publishConfig": { "registry": " https://registry.npmjs.org " }, "dependencies": { "toposort": "^2.0.2" }, "devDependencies": { "@babel/core": "^7.16.5", "@babel/preset-env": "^7.16.5", "@babel/preset-typescript": "^7.16.5", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.1.1", "@rollup/plugin-replace": "^3.0.0", "@rollup/plugin-typescript": "^8.3.0", "@types/toposort": "^2.0.3", "babel-jest": "^27.4.5", "jest": "^27.4.5", "lint-staged": "^11.2.6", "npm-run-all": "^4.1.5", "rimraf": "^3.0.2", "rollup": "^2.61.1", "rollup-plugin-auto-external": "^2.0.0", "rollup-plugin-filesize": "^9.1.1", "rollup-plugin-progress": "^1.1.2", "rollup-plugin-terser": "^7.0.2", "ts-jest": "^27.1.2", "tslib": "^2.3.1", "typescript": "^4.5.4" }, "jest": { "displayName": "xflow-hook", "preset": "ts-jest", "ve --- index.js (entry) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HookHub = exports.ScheduleTypeEnum = void 0; var tslib_1 = require("tslib"); var interface_1 = require("./interface"); var utils_1 = require("./utils"); var interface_2 = require("./interface"); Object.defineProperty(exports, "ScheduleTypeEnum", { enumerable: true, get: function () { return interface_2.ScheduleTypeEnum; } }); var HookHub = /** @class */ (function () { function HookHub(options) { var _a; var _this = this; /** scheduleType */ this.scheduleType = interface_1.ScheduleTypeEnum.ASYNC_SRRIES; /** hasRegistered */ this.hasHook = function (hookName) { return _this.hookMap.has(hookName); }; /** getHooks */ this.getHooks = function (runtimeHooks, sort) { if (runtimeHooks === void 0) { runtimeHooks = []; } if (sort === void 0) { sort = true; } var hooks = utils_1.HookUtils.normalize(runtimeHooks, _this.hookMap); if (!sort) { return hooks; } return utils_1.HookUtils.sort(hooks, _this.hookMap); }; /** regis --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.umd.js (bundled) --- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).XFlowHook={})}(this,(function(e){"use strict";function t(e,t,o,n){return new(o||(o=Promise))((function(r,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function h(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,h)}a((n=n.apply(e,t||[])).next())}))}var o;e.ScheduleTypeEnum=void 0,(o=e.ScheduleTypeEnum||(e.ScheduleTypeEnum={})).ASYNC_SRRIES="ASYNC_SRRIES",o.ASYNC_PARALLEL="ASYNC_PARALLEL";var n={exports:{}};function r(e,t){var o=e.length,n=new Array(o),r={},i=o,s=function(e){for(var t=new Map,o=0,n=e.length;o<n;o++){var r=e[o];t.has(r[0])||t.set(r[0],new Set),t.has(r[1])||t.set(r[1],new Set),t.get(r[0]).add(r[1])}return t}(t),h=function(e){for(var t=new Map,o=0,n=e.length;o<n;o++)t.set(e[o],o);return t}(e);for(t.forEach((function(e){if(!h.has(e[0])||!h.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)r[i]||a(e[i],i,new Set);return n;function a(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!h.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!r[t]){r[t]=!0;var u=s.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var l=u[--t];a(l,h.get(l),i)}while(t);i.delete(e)}n[--o]=e}}}n.exports=function(e){return r(function(e){for(var t=new Set,o=0,n=e.length;o<n;o++){var r=e[o];t.add(r[0]),t.add(r[1])}return Array.from(t)}(e),e)},n.exports.array=r;var i,s,h=n.exports;!function(e){let t;!function(e){e.INVALID_HOOK_BEFORE="INVALID_HOOK_BEFORE",e.INVALID_HOOK_AFTER="INVALID_HOOK_AFTER",e.INVALID_HOOK_ARGS_LENGTH="INVALID_HOOK_ARGS_LENGTH"}(t=e.ErrorEnum||(e.ErrorEnum={}));class o extends Error{const
