@n1k1t/mock-server
Version:
Powerful util to setup mocks over HTTP APIs
132 lines (131 loc) • 3.88 kB
JSON
{
"name": "@n1k1t/mock-server",
"version": "0.1.58",
"description": "Powerful util to setup mocks over HTTP APIs",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"bin": {
"mock": "lib/bin/index.js"
},
"scripts": {
"test": "NODE_ENV=test TZ=UTC npx jest",
"start": "node lib/src/index",
"start:dev": "NODE_ENV=development npx concurrently --names vite,server -c gray,cyan \"npx vite serve -l error\" \"npx ts-node test\"",
"gui:build": "npx vite build --mode production",
"gui:build:check": "npx tsc --noEmit --project src/gui/app",
"server:build": "rm -rf lib && npx tsc",
"server:build:check": "npx tsc --noEmit",
"build": "npm run server:build && npm run gui:build",
"build:check": "npm run server:build:check && npm run gui:build:check",
"prepare": "npx husky",
"preversion": "npm test",
"version": "git add -A .",
"postversion": "npm run build && git push && git push --tags"
},
"jest": {
"preset": "ts-jest",
"passWithNoTests": true,
"testEnvironment": "node",
"testMatch": [
"<rootDir>/src/**/*.spec.ts"
],
"coverageReporters": [
"cobertura",
"text"
],
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts",
"!<rootDir>/src/gui/**"
],
"setupFilesAfterEnv": [
"jest-extended/all"
],
"setupFiles": [],
"transform": {
".+\\.ts?$": [
"ts-jest",
{
"isolatedModules": true
}
]
}
},
"engines": {
"node": ">=22.14.0"
},
"keywords": [
"mock",
"mock-server",
"expectation",
"request",
"response",
"stub",
"cache",
"framework",
"web",
"http",
"rest",
"restful",
"router",
"app",
"api"
],
"homepage": "https://github.com/n1k1t/mock-server",
"author": "n1k1t",
"license": "MIT",
"devDependencies": {
"@jest/globals": "29.7.0",
"@n1k1t/unit-generator": "0.1.13",
"@types/commander": "2.12.2",
"@types/express": "4.17.13",
"@types/http-proxy": "1.17.9",
"@types/jest": "29.5.14",
"@types/lodash": "4.14.184",
"@types/mime-types": "2.1.4",
"@types/minimatch": "5.1.2",
"@types/node": "22.13.4",
"@types/node-gzip": "1.1.3",
"@types/uuid": "8.3.4",
"@types/ws": "8.5.13",
"chart.js": "4.4.8",
"concurrently": "9.1.2",
"fnv1a": "1.1.1",
"husky": "9.1.7",
"jest": "29.7.0",
"jest-extended": "4.0.2",
"ts-jest": "29.1.1",
"ts-node": "10.9.2",
"typescript": "5.7.2",
"vite": "6.2.3",
"vite-plugin-commonjs": "0.10.4",
"vite-plugin-node-polyfills": "0.23.0"
},
"dependencies": {
"@faker-js/faker": "9.2.0",
"@n1k1t/typebox": "0.31.14",
"axios": "0.27.2",
"body-parser": "1.20.3",
"colors": "1.4.0",
"commander": "9.4.0",
"dayjs": "1.11.13",
"deepmerge": "4.3.1",
"fast-xml-parser": "4.5.0",
"handlebars": "4.7.7",
"https-proxy-agent": "7.0.6",
"ioredis": "5.4.1",
"jsonpath-plus": "7.2.0",
"lodash": "4.17.21",
"mime-types": "2.1.35",
"minimatch": "5.1.0",
"mongodb": "4.12.1",
"node-gzip": "1.1.2",
"random-animal-name": "0.1.1",
"reflect-metadata": "0.2.1",
"rfdc": "1.3.0",
"rxjs": "7.8.1",
"socket.io": "4.5.3",
"socket.io-client": "4.5.4",
"uuid": "9.0.0",
"ws": "8.18.0"
}
}