UNPKG

http-request-mock

Version:

Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.

140 lines (139 loc) 4.02 kB
{ "name": "http-request-mock", "version": "2.0.2", "description": "Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.", "main": "src/index.js", "module": "http-request-mock.esm.mjs", "browser": "http-request-mock.js", "bin": { "http-request-mock-cli": "tool/bin/cli.js", "http-request-mock": "tool/bin/cli.js" }, "scripts": { "test": "jest --no-cache --testTimeout 8000", "test-debug": "jest --no-cache --testTimeout 8000 --detectOpenHandles", "coverage": "jest --no-cache --coverage --testTimeout 8000", "clean": "del-cli dist", "dev": "node ./script/development.js", "build": "node ./script/build.js", "release": "node ./script/release.js", "link-dist": "cd dist && npm link", "unlink-dist": "cd dist && npm unlink http-request-mock" }, "keywords": [ "xhr mock", "XMLHttpRequest mock", "xhr-mock", "fetch mock", "fetch-mock", "wx.request mock", "response mock", "ajax mock", "AJAX mock", "ajax-mock", "intercept", "interceptor", "http mock", "https mock", "request mock", "mock", "network mock", "network-mock", "mocking", "mocks", "mocker", "interceptor", "http interceptor", "http mock", "http-interceptor", "http-mock", "http request", "https request", "fetch interceptor", "fetch-interceptor", "xhr interceptor", "xhr-interceptor", "low level interceptor", "node-http-mock", "node-http-request-mock", "request mock", "request mocks", "request-mock", "request-mocks", "axios mock", "fetch mock", "jquery mock", "got mock", "superagent mock", "ky mock" ], "author": "shuilonghu", "license": "MIT", "devDependencies": { "@babel/core": "^7.15.5", "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-object-rest-spread": "^7.15.6", "@babel/plugin-proposal-optional-chaining": "^7.11.0", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-transform-arrow-functions": "^7.10.4", "@babel/plugin-transform-async-to-generator": "^7.10.4", "@babel/plugin-transform-classes": "^7.15.4", "@babel/plugin-transform-runtime": "^7.11.5", "@babel/preset-env": "^7.15.6", "@babel/preset-typescript": "^7.10.4", "@babel/runtime": "^7.15.4", "@commitlint/cli": "^17.6.6", "@commitlint/config-conventional": "^13.1.0", "@types/node": "^18.16.19", "@types/webpack": "^5.28.1", "@typescript-eslint/eslint-plugin": "^5.6.0", "@typescript-eslint/parser": "^5.6.0", "axios": "^1.6.8", "babel-loader": "^8.1.0", "babel-polyfill": "^6.26.0", "copy-dir": "^1.3.0", "del-cli": "^3.0.1", "eslint": "^8.4.1", "got": "^11.8.2", "husky": "^4.3.0", "jest": "^27.2.1", "jquery": "^3.6.0", "ky": "^0.28.5", "mocha": "^9.0.3", "node-fetch": "^2.6.5", "node-loader": "^1.0.2", "standard-version": "^9.0.0", "superagent": "^6.1.0", "ts-jest": "^27.0.4", "ts-loader": "^8.3.0", "ts-node": "^9.1.1", "typescript": "^4.9.5", "webpack": "^5.88.1", "webpack-cli": "^4.8.0", "webpack-watch-files-plugin": "^1.2.1" }, "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "repository": { "type": "git", "url": "https://github.com/huturen/http-request-mock.git" }, "homepage": "https://huturen.github.io/http-request-mock-docs/", "engines": { "node": "^12.18.0 || >=14.13.1" }, "dependencies": { "@ngneat/falso": "^4.0.0", "@types/follow-redirects": "^1.14.1", "chokidar": "^3.5.2", "commander": "^12.1.0", "follow-redirects": "^1.15.0", "http-proxy": "^1.18.1" }, "publishConfig": { "access": "public" } }