UNPKG

use-axios

Version:

Simple Axios hook for React. Use React Suspense to show loading indicator and Error Boundary to handle request errors.

60 lines (59 loc) 1.58 kB
{ "name": "use-axios", "version": "1.0.0", "description": "Simple Axios hook for React. Use React Suspense to show loading indicator and Error Boundary to handle request errors.", "keywords": [ "react", "hooks", "axios" ], "repository": { "type": "git", "url": "https://github.com/ArnoSaine/use-axios.git" }, "license": "ISC", "author": { "name": "Arno Saine", "email": "arno@mowhi.com" }, "type": "module", "exports": { ".": "./mjs/main.js", "./loading-state": "./mjs/loading-state/main.js" }, "main": "./cjs/main.js", "module": "./mjs/main.js", "files": [ "cjs", "mjs", "loading-state" ], "workspaces": [ ".", "examples/*" ], "scripts": { "build": "npm-run-all build:*", "postbuild": "npm run update-submodules", "build:cjs": "library-scripts build --type cjs --out-dir cjs", "build:mjs": "library-scripts build --type mjs --out-dir mjs", "build:examples": "npm run build --workspace=examples", "test": "npm test --workspace=examples", "update-submodules": "node scripts/update-submodules", "watch": "concurrently \"npm:watch:*\"", "watch:cjs": "library-scripts watch --type cjs --out-dir cjs", "watch:mjs": "library-scripts watch --type mjs --out-dir mjs" }, "dependencies": { "@babel/runtime": "^7.12.5", "@postinumero/use-async": "^0.1.2" }, "devDependencies": { "@postinumero/library-scripts": "^0.1.3", "concurrently": "^5.1.0", "npm-run-all": "^4.1.5" }, "publishConfig": { "tag": "latest" } }