UNPKG

msw-dynamic-http-middleware

Version:
69 lines (68 loc) 1.74 kB
{ "name": "msw-dynamic-http-middleware", "version": "0.9.2", "description": "Set API handlers for your mock server on runtime", "main": "dist/index.js", "typings": "dist/index.d.ts", "files": [ "dist", "src" ], "engines": { "node": ">=14" }, "scripts": { "start": "tsdx watch --tsconfig tsconfig.tsdx.json", "build": "npm run build:lib && npm run build:app && npm run copy:app", "build:lib": "tsdx build --tsconfig tsconfig.tsdx.json", "build:app": "cd msw-ui && npm run build", "copy:app": "cp -r msw-ui/dist -r dist/ui", "test": "tsdx test", "lint": "tsdx lint", "server": "", "prepublish": "npm run lint && npm run test && npm run build" }, "module": "dist/msw-dynamic-http-middleware.esm.js", "keywords": [ "msw", "http-middleware", "rest", "mocks" ], "author": "Frank van Wijk <info@frankvanwijk.nl>", "repository": { "type": "git", "url": "https://github.com/fvanwijk/msw-http-dynamic-middleware.git" }, "license": "MIT", "prettier": { "arrowParens": "avoid", "semi": true, "singleQuote": true, "printWidth": 120, "trailingComma": "all" }, "dependencies": { "pino": "6.13.0", "pino-pretty": "5.1.2" }, "devDependencies": { "@mswjs/http-middleware": "0.1.1", "@open-draft/test-server": "0.2.3", "@types/jest": "26.0.24", "@types/node-fetch": "2.5.12", "@types/pino": "6.3.11", "msw": "0.33.1", "node-fetch": "2.6.1", "prettier": "1.19.1", "ts-node": "10.1.0", "tsdx": "0.14.1", "tslib": "1.14.1", "typescript": "4.3.5" }, "peerDependencies": { "@mswjs/http-middleware": ">=0.1.1", "express": ">=4", "msw": ">=0.25" } }