// npm 패키지
miz
Generate mock data, just like a person.
버전
3
메인테이너
1
라이선스
MIT
최초 publish
2021-01-29
publisher
atool
tarball
25,499 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2021-02-02
// publisher 캠페인by atool
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @1.0.1· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 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
→ 의심 전송지 없음, 원격 실행 형태 없음 — 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})});
