UNPKG

axios-hooks

Version:
88 lines (87 loc) 2.5 kB
{ "name": "axios-hooks", "version": "5.1.1", "description": "axios-hooks", "keywords": [ "axios", "react", "hooks" ], "license": "MIT", "author": "Simone Busoli <simone.busoli@gmail.com>", "homepage": "https://github.com/simoneb/axios-hooks", "repository": "simoneb/axios-hooks", "bugs": "https://github.com/simoneb/axios-hooks/issues", "main": "cjs/index.js", "module": "es/index.js", "types": "src/index.d.ts", "files": [ "cjs/", "es/", "src/" ], "scripts": { "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir cjs", "build:es": "babel src --out-dir es", "build": "run-p build:*", "clean": "rimraf cjs es", "format": "prettier --write \"{src,test}/**/*.{js?(x),md,ts?(x)}\"", "lint": "eslint . --ext .js,.jsx", "prepare": "npm run clean && npm run build && husky install", "pretest": "shx cp ./test/index.test.jsx ./test/index.test.tsx && shx cp ./test/index.test.ssr.jsx ./test/index.test.ssr.tsx", "test": "tsd && jest --no-cache" }, "dependencies": { "@babel/runtime": "7.26.10", "dequal": "2.0.3", "lru-cache": "^11.0.0" }, "peerDependencies": { "axios": ">=1.0.0", "react": "^16.8.0-0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@babel/cli": "7.26.4", "@babel/core": "7.26.10", "@babel/plugin-transform-runtime": "7.26.10", "@babel/preset-env": "7.26.9", "@babel/preset-react": "7.26.3", "@commitlint/cli": "19.8.0", "@commitlint/config-conventional": "19.8.0", "@testing-library/react": "12.1.5", "@testing-library/react-hooks": "7.0.2", "@types/jest": "29.5.14", "@types/node": "22.13.10", "@types/react": "18.2.20", "@types/react-dom": "18.2.7", "axios": "1.8.4", "cross-env": "7.0.3", "eslint": "8.57.0", "eslint-config-prettier": "10.1.1", "eslint-plugin-import": "2.31.0", "eslint-plugin-prettier": "5.2.3", "eslint-plugin-react": "7.37.4", "eslint-plugin-react-hooks": "5.2.0", "husky": "^9.0.3", "jest": "29.7.0", "jest-environment-jsdom": "^29.6.4", "lint-staged": "15.5.0", "npm-run-all": "4.1.5", "prettier": "3.5.3", "react": "17.0.2", "react-dom": "17.0.2", "rimraf": "6.0.1", "shx": "0.4.0", "ts-jest": "29.2.6", "tsd": "^0.31.0", "typescript": "5.8.2" }, "lint-staged": { "{src,test}/**/*.{js?(x),md}": [ "eslint --fix" ] }, "tsd": { "directory": "test-d" } }