// npm package
@antv/f-test-utils
FEngine for Test
versions
9
maintainers
51
license
MIT
first publish
2023-02-21
publisher
zengyue
tarball
13,889 B
AUTO-PUBLISHED·1 version indexed·latest published 2023-09-11
// publisher campaignby zengyue
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· @1.0.9· no static-pattern hits
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
- @1.0.9··AUTO-PUBLISHED·publisher: zengyueheuristic 75/100static flags 0llm benign (0.85) via ollamaosv-flagged:MAL-2026-3886
→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
// offending code· no static-pattern hits
--- package.json (entry) --- { "name": "@antv/f-test-utils", "version": "1.0.9", "description": "FEngine for Test", "main": "lib/index.js", "module": "es/index.js", "types": "es/index.d.ts", "keywords": [ "antv", "f2", "chart", "charts", "mobile", "visualization", "lottie" ], "dependencies": { "@babel/runtime": "^7.12.5", "tslib": "^2.3.1" }, "homepage": "https://f2.antv.vision", "author": "https://github.com/orgs/antvis/people", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/antvis/f2" }, "bugs": { "url": "https://github.com/antvis/f2/issues" }, "gitHead": "02f95773ae841f3c8f6cba86a07238957fa8965a" } --- index.js (entry) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createContext = void 0; exports.delay = delay; exports.gestureSimulator = exports.dispatchEvent = void 0; var _tslib = require("tslib"); var isTouch = function isTouch(eventType) { if (eventType.indexOf('touch') !== -1) return true; if (eventType.indexOf('press') !== -1) return true; return false; }; function delay(time) { var half = Math.round(time / 2); return new Promise(function (resolve) { // 用 2 个 setTimeout 是为了提升 ci 的成功率 setTimeout(function () { setTimeout(resolve, half); }, half); }); } var createContext = function createContext(title, _a) { if (title === void 0) { title = ''; } var _b = _a === void 0 ? {} : _a, _c = _b.width, width = _c === void 0 ? '300px' : _c, _d = _b.height, height = _d === void 0 ? '225px' : _d; var canvasEl = document.createElement('canvas'); if (title) { var titleEl = document.createElement('p'); titleEl.innerText = title + ':'; titleEl.style.fontSize = '12px'; document.body.appendChild(titleEl); } canvasEl.style.display = 'block'; canvasEl.style.width = width; canvasEl.style.heig
