Spaces:
Paused
Paused
| { | |
| "name": "msw", | |
| "version": "2.7.3", | |
| "description": "Seamless REST/GraphQL API mocking library for browser and Node.js.", | |
| "main": "./lib/core/index.js", | |
| "module": "./lib/core/index.mjs", | |
| "types": "./lib/core/index.d.ts", | |
| "exports": { | |
| ".": { | |
| "types": "./lib/core/index.d.ts", | |
| "require": "./lib/core/index.js", | |
| "import": "./lib/core/index.mjs", | |
| "default": "./lib/core/index.js" | |
| }, | |
| "./browser": { | |
| "types": "./lib/browser/index.d.ts", | |
| "browser": { | |
| "require": "./lib/browser/index.js", | |
| "import": "./lib/browser/index.mjs" | |
| }, | |
| "node": null, | |
| "require": "./lib/browser/index.js", | |
| "import": "./lib/browser/index.mjs", | |
| "default": "./lib/browser/index.js" | |
| }, | |
| "./node": { | |
| "types": "./lib/node/index.d.ts", | |
| "node": { | |
| "require": "./lib/node/index.js", | |
| "import": "./lib/node/index.mjs" | |
| }, | |
| "browser": null, | |
| "require": "./lib/node/index.js", | |
| "import": "./lib/node/index.mjs", | |
| "default": "./lib/node/index.mjs" | |
| }, | |
| "./native": { | |
| "types": "./lib/native/index.d.ts", | |
| "react-native": { | |
| "require": "./lib/native/index.js", | |
| "import": "./lib/native/index.mjs" | |
| }, | |
| "browser": null, | |
| "require": "./lib/native/index.js", | |
| "import": "./lib/native/index.mjs", | |
| "default": "./lib/native/index.js" | |
| }, | |
| "./core/http": { | |
| "types": "./lib/core/http.d.ts", | |
| "require": "./lib/core/http.js", | |
| "import": "./lib/core/http.mjs", | |
| "default": "./lib/core/http.js" | |
| }, | |
| "./core/graphql": { | |
| "types": "./lib/core/graphql.d.ts", | |
| "require": "./lib/core/graphql.js", | |
| "import": "./lib/core/graphql.mjs", | |
| "default": "./lib/core/graphql.js" | |
| }, | |
| "./core/ws": { | |
| "types": "./lib/core/ws.d.ts", | |
| "require": "./lib/core/ws.js", | |
| "import": "./lib/core/ws.mjs", | |
| "default": "./lib/core/ws.js" | |
| }, | |
| "./mockServiceWorker.js": "./lib/mockServiceWorker.js", | |
| "./package.json": "./package.json" | |
| }, | |
| "bin": { | |
| "msw": "cli/index.js" | |
| }, | |
| "engines": { | |
| "node": ">=18" | |
| }, | |
| "lint-staged": { | |
| "**/*.ts": [ | |
| "eslint --fix" | |
| ], | |
| "**/*.{ts,json}": [ | |
| "prettier --write" | |
| ] | |
| }, | |
| "homepage": "https://mswjs.io", | |
| "repository": { | |
| "type": "git", | |
| "url": "https://github.com/mswjs/msw" | |
| }, | |
| "author": { | |
| "name": "Artem Zakharchenko", | |
| "url": "https://github.com/kettanaito" | |
| }, | |
| "license": "MIT", | |
| "funding": "https://github.com/sponsors/mswjs", | |
| "files": [ | |
| "config/constants.js", | |
| "config/scripts/postinstall.js", | |
| "cli", | |
| "lib", | |
| "src", | |
| "browser", | |
| "node", | |
| "native", | |
| "LICENSE.md", | |
| "README.md" | |
| ], | |
| "keywords": [ | |
| "api", | |
| "mock", | |
| "mocking", | |
| "worker", | |
| "prototype", | |
| "server", | |
| "service", | |
| "handler", | |
| "testing", | |
| "front-end", | |
| "back-end" | |
| ], | |
| "sideEffects": false, | |
| "dependencies": { | |
| "@bundled-es-modules/cookie": "^2.0.1", | |
| "@bundled-es-modules/statuses": "^1.0.1", | |
| "@bundled-es-modules/tough-cookie": "^0.1.6", | |
| "@inquirer/confirm": "^5.0.0", | |
| "@mswjs/interceptors": "^0.37.0", | |
| "@open-draft/deferred-promise": "^2.2.0", | |
| "@open-draft/until": "^2.1.0", | |
| "@types/cookie": "^0.6.0", | |
| "@types/statuses": "^2.0.4", | |
| "graphql": "^16.8.1", | |
| "headers-polyfill": "^4.0.2", | |
| "is-node-process": "^1.2.0", | |
| "outvariant": "^1.4.3", | |
| "path-to-regexp": "^6.3.0", | |
| "picocolors": "^1.1.1", | |
| "strict-event-emitter": "^0.5.1", | |
| "type-fest": "^4.26.1", | |
| "yargs": "^17.7.2" | |
| }, | |
| "devDependencies": { | |
| "@commitlint/cli": "^18.4.4", | |
| "@commitlint/config-conventional": "^18.4.4", | |
| "@fastify/websocket": "^8.3.1", | |
| "@open-draft/test-server": "^0.4.2", | |
| "@ossjs/release": "^0.8.1", | |
| "@playwright/test": "^1.48.0", | |
| "@types/express": "^4.17.21", | |
| "@types/fs-extra": "^11.0.4", | |
| "@types/glob": "^8.1.0", | |
| "@types/json-bigint": "^1.0.4", | |
| "@types/node": "18.x", | |
| "@typescript-eslint/eslint-plugin": "^8.8.1", | |
| "@typescript-eslint/parser": "^8.8.1", | |
| "@web/dev-server": "^0.4.6", | |
| "axios": "^1.7.7", | |
| "babel-minify": "^0.5.1", | |
| "commitizen": "^4.3.1", | |
| "cross-env": "^7.0.3", | |
| "cross-fetch": "^4.0.0", | |
| "cz-conventional-changelog": "3.3.0", | |
| "esbuild": "^0.24.0", | |
| "esbuild-loader": "^4.2.2", | |
| "eslint": "^8.57.0", | |
| "eslint-config-prettier": "^9.1.0", | |
| "eslint-plugin-prettier": "^5.2.1", | |
| "express": "^5.0.0", | |
| "fastify": "^4.26.0", | |
| "fs-extra": "^11.2.0", | |
| "fs-teardown": "^0.3.0", | |
| "glob": "^11.0.0", | |
| "jsdom": "^25.0.1", | |
| "json-bigint": "^1.0.0", | |
| "lint-staged": "^15.2.10", | |
| "page-with": "^0.6.1", | |
| "prettier": "^3.4.2", | |
| "regenerator-runtime": "^0.14.1", | |
| "rimraf": "^6.0.1", | |
| "simple-git-hooks": "^2.9.0", | |
| "ts-node": "^10.9.2", | |
| "tsup": "^8.3.0", | |
| "typescript": "^5.5.2", | |
| "undici": "^6.20.0", | |
| "url-loader": "^4.1.1", | |
| "vitest": "^2.1.8", | |
| "vitest-environment-miniflare": "^2.14.4", | |
| "webpack": "^5.95.0", | |
| "webpack-http-server": "^0.5.0" | |
| }, | |
| "peerDependencies": { | |
| "typescript": ">= 4.8.x" | |
| }, | |
| "peerDependenciesMeta": { | |
| "typescript": { | |
| "optional": true | |
| } | |
| }, | |
| "config": { | |
| "commitizen": { | |
| "path": "./node_modules/cz-conventional-changelog" | |
| } | |
| }, | |
| "simple-git-hooks": { | |
| "pre-commit": "pnpm lint-staged", | |
| "prepare-commit-msg": "grep -qE '^[^#]' .git/COMMIT_EDITMSG || (exec < /dev/tty && pnpm cz --hook || true)", | |
| "commit-msg": "pnpm commitlint --edit $1" | |
| }, | |
| "scripts": { | |
| "start": "tsup --watch", | |
| "clean": "rimraf ./lib", | |
| "lint": "eslint \"{cli,src}/**/*.ts\"", | |
| "build": "pnpm clean && cross-env NODE_ENV=production tsup && pnpm patch:dts", | |
| "patch:dts": "node \"./config/scripts/patch-ts.js\"", | |
| "check:exports": "node \"./config/scripts/validate-esm.js\"", | |
| "test": "pnpm test:unit && pnpm test:node && pnpm test:browser && pnpm test:native", | |
| "test:unit": "vitest", | |
| "test:node": "vitest --config=./test/node/vitest.config.mts", | |
| "test:native": "vitest --config=./test/native/vitest.config.mts", | |
| "test:browser": "playwright test -c ./test/browser/playwright.config.ts", | |
| "test:modules:node": "vitest --config=./test/modules/node/vitest.config.mts", | |
| "test:modules:browser": "playwright test -c ./test/modules/browser/playwright.config.ts", | |
| "test:e2e": "vitest run --config=./test/e2e/vitest.config.mts", | |
| "test:ts": "vitest --typecheck --config=./test/typings/vitest.config.mts", | |
| "release": "release publish", | |
| "postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\"" | |
| } | |
| } |