xhr-mock
Version:
Utility for mocking XMLHttpRequest.
59 lines (58 loc) • 1.49 kB
JSON
{
"name": "xhr-mock",
"version": "2.5.1",
"description": "Utility for mocking XMLHttpRequest.",
"keywords": [
"mock",
"xhr",
"test",
"fake",
"request",
"ajax",
"browser",
"xmlhttprequest",
"jquery",
"superagent",
"axios"
],
"repository": "jameslnewell/xhr-mock",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
"lib",
"dist"
],
"browser": {
"./lib/proxy.js": "./lib/proxy.browser.js"
},
"dependencies": {
"global": "^4.3.0",
"url": "^0.11.0"
},
"devDependencies": {
"@alexlur/rollup-plugin-typescript": "^1.0.4",
"@types/jest": "22.2.0",
"@types/node": "^9.3.0",
"axios": "^0.19.0",
"jest": "^22.0.5",
"rollup": "^0.53.3",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-node-resolve": "^3.0.0",
"ts-jest": "^22.0.1",
"tslint": "^5.9.1",
"typescript": "2.7.2"
},
"scripts": {
"clean": "rm -rf ./lib ./dist",
"lint": "tslint -c ../../tslint.base.json '{src,test}/**/*.ts'",
"check": "tsc --pretty --noEmit --project tsconfig.test.json",
"build:cjs": "tsc --pretty --declaration",
"build:cjs:dev": "tsc --pretty --declaration --watch",
"build:umd": "rollup --config",
"build": "yarn run build:cjs && yarn run build:umd",
"test": "jest",
"test:watch": "jest --watch",
"ci": "yarn run clean && yarn run check && yarn run lint && yarn run build && yarn run test"
},
"license": "MIT"
}