UNPKG

react-api-utils

Version:

A React utility library for making API calls using React Query and Axios, providing context-based configuration and custom hooks for seamless integration.

88 lines (87 loc) 2.56 kB
{ "name": "react-api-utils", "version": "0.0.5", "type": "module", "author": "Vikram Samak", "description": "A React utility library for making API calls using React Query and Axios, providing context-based configuration and custom hooks for seamless integration.", "keywords": [ "react", "react-query", "axios", "api-helper", "api-calls", "react-library", "context-provider", "typescript", "http-client", "data-fetching", "async-storage", "state-management" ], "license": "MIT", "homepage": "https://github.com/vikramsamak/react-api-utils#readme", "repository": { "type": "git", "url": "git+https://github.com/vikramsamak/react-api-utils.git" }, "bugs": { "url": "https://github.com/vikramsamak/react-api-utils/issues" }, "main": "dist/react-api-utils-umd.js", "module": "dist/react-api-utils-es.js", "types": "dist/react-api-utils-es.d.ts", "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", "format": "prettier --write .", "npm-publish": "npm run build && npm version patch && npm publish", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build" }, "dependencies": { "@react-native-async-storage/async-storage": "^2.1.0", "@tanstack/query-async-storage-persister": "^5.62.9", "@tanstack/react-query": "^5.62.10", "@tanstack/react-query-persist-client": "^5.62.10", "axios": "^1.7.9", "react": "^18.3.1", "react-dom": "^18.3.1", "vite-plugin-dts": "^4.4.0" }, "devDependencies": { "@chromatic-com/storybook": "^3.2.3", "@eslint/js": "^9.17.0", "@storybook/addon-essentials": "^8.4.7", "@storybook/addon-interactions": "^8.4.7", "@storybook/addon-onboarding": "^8.4.7", "@storybook/blocks": "^8.4.7", "@storybook/react": "^8.4.7", "@storybook/react-vite": "^8.4.7", "@storybook/test": "^8.4.7", "@types/react": "^18.3.18", "@types/react-dom": "^18.3.5", "@vitejs/plugin-react-swc": "^3.5.0", "eslint": "^9.17.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.16", "eslint-plugin-storybook": "^0.11.1", "globals": "^15.14.0", "prettier": "^3.4.2", "storybook": "^8.4.7", "typescript": "~5.6.2", "typescript-eslint": "^8.18.2", "vite": "^6.0.5" }, "eslintConfig": { "extends": [ "plugin:storybook/recommended" ] } }