UNPKG

nock

Version:

HTTP server mocking and expectations library for Node.js

94 lines (93 loc) • 2.47 kB
{ "name": "nock", "description": "HTTP server mocking and expectations library for Node.js", "tags": [ "Mock", "HTTP", "testing", "isolation" ], "version": "15.0.1", "author": "Pedro Teixeira <pedro.teixeira@gmail.com>", "repository": { "type": "git", "url": "https://github.com/nock/nock.git" }, "bugs": { "url": "https://github.com/nock/nock/issues" }, "engines": { "node": ">=20.12.1" }, "main": "./dist/index.js", "type": "module", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "dependencies": { "@mswjs/interceptors": "^0.44.0" }, "devDependencies": { "@eslint/js": "^9.27.0", "@sinonjs/fake-timers": "^11.2.2", "@types/node": "^22.15.3", "assert-rejects": "^1.0.0", "c8": "^11.0.0", "chai": "^4.1.2", "dirty-chai": "^2.0.1", "eslint": "^9.27.0", "eslint-config-prettier": "^10.1.5", "eslint-plugin-mocha": "^11.0.0", "eslint-plugin-n": "^17.18.0", "form-data": "^4.0.0", "globals": "^16.1.0", "got": "^11.8.6", "mocha": "^11.7.2", "npm-run-all": "^4.1.5", "prettier": "3.6.2", "rimraf": "^3.0.0", "semantic-release": "^25.0.3", "sinon": "^17.0.1", "sinon-chai": "^3.7.0", "typescript": "^6.0.3", "typescript-eslint": "^8.58.2", "undici": "^7.9.0" }, "scripts": { "format:fix": "prettier --write '**/*.{js,json,md,ts,yml,yaml}'", "format": "prettier --check '**/*.{js,json,md,ts,yml,yaml}'", "lint": "run-p lint:js lint:ts", "lint:js": "eslint --cache --cache-location './.cache/eslint' '**/*.{js,ts}'", "lint:fix": "eslint --cache --cache-location './.cache/eslint' --fix '**/*.{js,ts}'", "lint:ts": "tsc --noEmit", "build": "rimraf dist && node scripts/build.js && tsc -p tsconfig.build.json", "test": "c8 --reporter=lcov --reporter=text mocha --recursive tests", "test:coverage": "open coverage/lcov-report/index.html", "test:leak": "node --expose-gc scripts/test-leak.js", "test:build": "npm run build && node scripts/test-build.js" }, "license": "MIT", "files": [ "dist" ], "release": { "branches": [ "+([0-9])?(.{+([0-9]),x}).x", "main", "next", "next-major", { "name": "beta", "prerelease": true }, { "name": "alpha", "prerelease": true } ] } }