UNPKG

cp-axios

Version:

axios wrapper that provides an advanced cancellation api

104 lines (103 loc) 2.68 kB
{ "name": "cp-axios", "version": "0.3.1", "description": "axios wrapper that provides an advanced cancellation api", "author": { "name": "Dmitriy Mozgovoy", "email": "robotshara@gmail.com", "url": "http://github.com/DigitalBrainJS/" }, "repository": "https://github.com/DigitalBrainJS/cp-axios.git", "bugs": { "url": "https://github.com/DigitalBrainJS/cp-axios/issues" }, "main": "./lib/index.js", "unpkg": { "default": "./dist/cp-axios.umd.js" }, "directories": { "lib": "lib" }, "scripts": { "test": "mocha ./test/runner.js --exit --timeout=3000", "test:watch": "nodemon --watch lib/ --watch ./test/tests --exec \\\"npm test\\\"", "changelog": "auto-changelog -p", "version": "npm run changelog && git add CHANGELOG.md", "test:coverage": "nyc --check-coverage npm run test", "coverage:report": "nyc report --reporter=html --reporter=text", "coveralls": "nyc report --reporter=text-lcov | coveralls", "prepublishOnly": "npm run lint && npm run build && npm run test:coverage", "postversion": "git push && git push --tags", "build": "rollup -c", "build:watch": "nodemon --watch lib/ --exec \\\"npm run build\\\"", "dev": "cross-env NODE_ENV=development \"npm run test:watch\"", "playground": "node playground/generator.js || true", "playground:watch": "nodemon --watch ./playground --watch lib/ --exec \\\"npm run playground\\\"", "lint": "eslint lib/**/*.js", "fix": "eslint --fix lib/**/*.js" }, "keywords": [ "axios", "fetch", "ajax", "AbortController", "CancelToken", "signal", "promise", "abortable", "cancelable", "close", "request", "abort", "cancel" ], "license": "MIT", "dependencies": { "axios": ">=0.19.0", "c-promise2": "^0.13.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-multi-entry": "*", "@rollup/plugin-node-resolve": "^11.2.0", "auto-changelog": "^2.2.1", "coveralls": "^3.1.0", "cross-env": "^7.0.3", "eslint": "^7.22.0", "mocha": "^8.3.2", "nodemon": "^2.0.7", "npm": "^6.14.11", "nyc": "^15.1.0", "rollup": "^2.42.3", "rollup-plugin-terser": "^7.0.2" }, "nyc": { "lines": 60, "functions": 60, "branches": 60, "statements": 60, "watermarks": { "lines": [ 80, 95 ], "functions": [ 80, 95 ], "branches": [ 80, 95 ], "statements": [ 80, 95 ] }, "reporter": [ "lcov", "text-summary" ] } }