UNPKG

@mr-hooks/use-retry

Version:

A hook for auto retrying asynchronous operations with a backoff strategy

59 lines (58 loc) 1.72 kB
{ "name": "@mr-hooks/use-retry", "version": "1.0.1", "description": "A hook for auto retrying asynchronous operations with a backoff strategy", "repository": "https://github.com/mr-hooks/use-retry", "exports": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "type": "module", "types": "dist/types.d.ts", "scripts": { "test": "npm run test:unit && npm run test:lint", "test:unit": "jest", "test:lint": "eslint . --ext .js,.jsx,.ts,.tsx", "build": "rollup -c --bundleConfigAsCjs", "watch:build": "nodemon --watch src -e ts,js --exec 'rollup -c --bundleConfigAsCjs'" }, "keywords": [ "react", "hook", "retry", "async", "swc", "fetchye" ], "author": "code-forger", "license": "MIT", "devDependencies": { "@babel/preset-env": "^7.22.9", "@babel/preset-react": "^7.22.5", "@babel/preset-typescript": "^7.22.5", "@rollup/plugin-commonjs": "^25.0.3", "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-typescript": "^11.1.2", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3", "@types/jest": "^29.5.3", "@types/react": "^18.2.17", "eslint": "^8.46.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.1.0", "jest": "^29.6.2", "jest-environment-jsdom": "^29.6.2", "nodemon": "^3.0.1", "rollup": "^3.27.0", "rollup-plugin-dts": "^5.3.0", "rollup-plugin-peer-deps-external": "^2.2.4", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "tslib": "^2.6.1", "typescript": "^5.1.6" }, "peerDependencies": { "react": ">=16.8.0" } }