UNPKG

use-fetch-smart

Version:

A smart React data-fetching hook with caching, retries, TTL, schema validation, and automatic token refresh.

71 lines (70 loc) 1.57 kB
{ "name": "use-fetch-smart", "version": "1.1.1", "description": "A smart React data-fetching hook with caching, retries, TTL, schema validation, and automatic token refresh.", "type": "module", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "files": [ "dist", "npm-readme/README.md" ], "readme": "npm-readme/README.md", "scripts": { "build": "tsup", "prepublishOnly": "npm run build" }, "keywords": [ "react", "react-hooks", "data-fetching", "axios", "cache", "swr", "react-query", "typescript", "mutation", "retry", "ttl", "persist", "jwt", "refresh-token", "schema-validation", "zod" ], "repository": { "type": "git", "url": "https://github.com/zaidshaikh2811/use-fetch-smart.git" }, "homepage": "https://github.com/zaidshaikh2811/use-fetch-smart", "bugs": { "url": "https://github.com/zaidshaikh2811/use-fetch-smart/issues" }, "author": "Zaid Shaikh", "license": "MIT", "peerDependencies": { "react": ">=17", "react-dom": ">=17" }, "dependencies": { "axios": "^1.6.0", "idb-keyval": "^6.2.2", "link": "^2.1.1" }, "devDependencies": { "@types/react": "^19.2.5", "tsup": "^8.5.1", "typescript": "^5.3.3" }, "overrides": { "glob": "^11.0.4" } }