use-fetch-with-callbacks
Version:
A powerful React hook for HTTP requests with comprehensive callback support, request chaining, and TypeScript integration
119 lines (118 loc) • 3.58 kB
JSON
{
"name": "use-fetch-with-callbacks",
"version": "1.3.3",
"description": "A powerful React hook for HTTP requests with comprehensive callback support, request chaining, and TypeScript integration",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE",
"CHANGELOG.md",
"DEVELOPMENT.md"
],
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"prepublishOnly": "npm run build",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"build-storybook:gh-pages": "storybook build --output-dir storybook-static",
"preview-storybook": "npx http-server storybook-static -p 8080 -o",
"storybook:publish": "npm run build-storybook && gh-pages -d storybook-static",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write src/**/*.{ts,tsx}",
"format:check": "prettier --check src/**/*.{ts,tsx}",
"docs:generate": "node scripts/generate-docs.cjs",
"docs:markdown": "jsdoc2md --files src/useFetchWithCallbacks.ts > docs/api.md",
"docs:build": "npm run docs:generate",
"analyze": "node scripts/analyze-bundle.js",
"release": "npm run test && npm run lint && npm run build && npm run analyze",
"deploy:storybook": "npm run build-storybook:gh-pages && gh-pages -d storybook-static"
},
"keywords": [
"react",
"hook",
"fetch",
"typescript",
"callbacks",
"http",
"api",
"request",
"chaining",
"abort",
"timeout",
"concurrent",
"rest",
"ajax",
"xhr",
"promise",
"async",
"client",
"sdk",
"delete",
"patch",
"post",
"put",
"get"
],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/asudbury/use-fetch-with-callbacks.git"
},
"bugs": {
"url": "https://github.com/asudbury/use-fetch-with-callbacks/issues"
},
"homepage": "https://asudbury.github.io/use-fetch-with-callbacks",
"peerDependencies": {
"react": "^18.0.0"
},
"devDependencies": {
"@storybook/addon-a11y": "^7.6.0",
"@storybook/addon-interactions": "^7.6.0",
"@storybook/addon-links": "^7.6.0",
"@storybook/addon-measure": "^7.6.0",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/addon-outline": "^7.6.0",
"@storybook/addon-viewport": "^7.6.0",
"@storybook/blocks": "^7.6.0",
"@storybook/react": "^7.6.0",
"@storybook/react-vite": "^7.6.0",
"@storybook/test": "^7.6.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.3.1",
"@testing-library/user-event": "^14.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^3.2.4",
"esbuild": "0.25.6",
"eslint": "^8.0.0",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0",
"gh-pages": "^6.0.0",
"http-server": "^14.0.0",
"jsdoc": "^4.0.4",
"jsdoc-to-markdown": "^9.1.1",
"prettier": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
"vite-plugin-node-polyfills": "^0.24.0",
"vitest": "^3.2.4"
},
"engines": {
"node": ">=14.0.0"
},
"type": "module"
}