// npm package
miz
Generate mock data, just like a person.
versions
3
maintainers
1
license
MIT
first publish
2021-01-29
publisher
atool
tarball
25,499 B
AUTO-PUBLISHED·1 version indexed·latest published 2021-02-02
// publisher campaignby atool
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.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s).
- @1.0.1··AUTO-PUBLISHED·publisher: atoolheuristic 75/100static flags 1llm benign (0.85) via ollamapublisher-multi-name-burst:5osv-flagged:MAL-2026-4148public-github-push
→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- install scripts --- ### prepublishOnly npm run build --- package/package.json (excerpt) --- { "name": "miz", "version": "1.0.1", "description": "Generate mock data, just like a person.", "license": "MIT", "main": "lib/index.js", "module": "esm/index.js", "unpkg": "dist/miz.min.js", "types": "lib/index.d.ts", "files": [ "lib", "esm", "dist" ], "scripts": { "clean": "rimraf -rf lib esm dist", "size": "limit-size", "lint-staged": "lint-staged", "test": "jest", "build:umd": "rimraf ./dist && rollup -c", "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib", "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm", "build": "npm run build:cjs && npm run build:esm && npm run build:umd", "prepublishOnly": "npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/hustcc/miz.git" }, "keywords": [ "mock", "faker", "miz", "mock-data", "fake-variable" ], "author": "hustcc", "bugs": { "url": "https://github.com/hustcc/miz/issues" }, "homepage": "https://github.com/hustcc/miz#readme", "devDependencies": { "@commitlint/cli": "^11.0.0", "@types/jest": "^26.0.20", "jest": "^26.6.3", "limit-size": "^0.1.4", "lint-staged": "^10.5.3", "prettier": "^2.2.1", "rimraf": "^3.0.2", "rollup": "^2.38.3", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-size": "^0.2.2", "rollup-plugin-typescript": "^1.0.1", "rollup-plugin-uglify": "^6.0.4", "ts-jest": "^26.5.0", "typescrip --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/miz.min.js (bundled) --- !function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((n="undefined"!=typeof globalThis?globalThis:n||self).miz={})}(this,function(n){"use strict";var t=(r.prototype.mock=function(){return this.m()},r);function r(n){this.m=n}var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$";function o(n,r,e){return void 0===e&&(e=0),r<n&&(n^=r,n^=r^=n),n=Math.random()*(r-n)+n,e=e,e=Math.pow(10,e),Math.round(n*e)/e}function u(){return!!o(0,1)}function i(){return e[o(0,e.length-1)]}function f(n){return n<0&&(n=0),new Array(n).fill(0).map(i).join("")}var c={apply:function(n){return new t(n)},arrayOf:function(n,r,e){return r=r||20,e=e||r,new t(function(){return new Array(o(r,e)).fill(0).map(function(){return n.mock()})})},bool:function(){return new t(u)},constant:function(n){return new t(function(){return n})},number:function(n,r,e){return r=r||n,new t(function(){return o(n,r,e)})},oneOf:function(n){if(!(n instanceof Array)||0===n.length)throw new Error("The parameter of mocker oneOf should be an array which is not empty.");return new t(function(){return n[o(0,n.length-1)]})},shape:function(e){if("object"!=typeof e)throw new Error("The parameter of mocker shape should be object.");return new t(function(){var n,r={};for(n in e)r[n]=e[n].mock();return r})},string:function(n){return void 0===n&&(n=8),new t(function(){return f(n)})}};n.M=c,n.Mocker=t,n.randomBool=u,n.randomChar=i,n.randomFloat=o,n.randomString=f,Object.defineProperty(n,"__esModule",{value:!0})});
