UNPKG

react-use-cancel-token

Version:
60 lines (59 loc) 1.74 kB
{ "name": "react-use-cancel-token", "version": "1.0.3", "description": "A handy react hook to cancel axios requests", "keywords": [ "React", "Axios", "Cancel token", "react-hook" ], "author": "AXeL-dev", "license": "MIT", "repository": "AXeL-dev/react-use-cancel-token", "homepage": "https://axel-dev.github.io/react-use-cancel-token/", "main": "dist/index.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", "jsnext:main": "dist/index.es.js", "engines": { "node": ">=8", "npm": ">=5" }, "scripts": { "test": "cross-env CI=1 react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom", "build": "rollup -c && tsc -d --emitDeclarationOnly --noEmit false --declarationDir dist", "start": "rollup -c -w", "prepare": "yarn run build", "predeploy": "cd example && yarn install && yarn run build:github", "deploy": "gh-pages -d example/build" }, "dependencies": { "axios": "^0.27.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0" }, "devDependencies": { "@babel/core": "^7.2.2", "@babel/runtime": "^7.3.1", "@rollup/plugin-babel": "^5.2.0", "@rollup/plugin-commonjs": "^15.0.0", "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-typescript": "^5.0.2", "@rollup/plugin-url": "^5.0.1", "@testing-library/react-hooks": "^3.2.1", "@types/jest": "^23.3.13", "@types/react": "^16.7.22", "cross-env": "^5.2.0", "gh-pages": "^2.0.1", "react": "^16.9.0", "react-scripts": "^3.4.0", "react-test-renderer": "^16.9.0", "rollup": "^2.26.9", "rollup-plugin-peer-deps-external": "^2.2.0", "tslib": "^2.0.1", "typescript": "^3.2.4" } }