@hyper-fetch/react
Version:
React hooks and utils for the hyper-fetch
94 lines (93 loc) • 2.26 kB
JSON
{
"name": "@hyper-fetch/react",
"version": "8.2.0",
"description": "React hooks and utils for the hyper-fetch",
"author": "Maciej Pyrc <maciekpyrc@gmail.com>, Kacper Skawina <kacper.skawina@gmail.com>",
"homepage": "https://hyperfetch.bettertyped.com/",
"license": "Apache-2.0",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"exports": {
".": {
"types": {
"import": "./dist/index.d.ts"
},
"default": {
"require": "./dist/index.mjs",
"import": "./dist/index.mjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
"test": "vitest run",
"start": "yarn build && npx run-when-changed --watch 'src/**/*.ts' --exec 'yarn build'",
"build": "vite build",
"lint": "eslint . --fix",
"format": "prettier --write .",
"typecheck": "tsc --noEmit --emitDeclarationOnly false && tsc --noEmit -p __tests__/tsconfig.json",
"tests": "yarn lint-staged",
"release": "yarn semantic-release --extends ../../release.config.js -t 'react-hyper-fetch-v${version}'"
},
"peerDependencies": {
"@hyper-fetch/core": "*",
"@hyper-fetch/sockets": "*",
"react": ">= 18.0.0"
},
"peerDependenciesMeta": {
"@hyper-fetch/sockets": {
"optional": true
}
},
"dependencies": {
"@better-hooks/lifecycle": "^2.0.0",
"@better-hooks/performance": "^2.1.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"vitest related --run --passWithNoTests"
]
},
"eslintConfig": {
"extends": [
"react"
]
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.com/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BetterTyped/hyper-fetch.git",
"directory": "packages/react"
},
"bugs": {
"url": "https://github.com/BetterTyped/hyper-fetch/issues"
},
"keywords": [
"react",
"hyper-fetch",
"fetch",
"xhr",
"queue",
"cache",
"persist",
"hooks",
"useFetch",
"useSubmit",
"useCache",
"useQueue",
"graphql",
"swr",
"dispatcher",
"websockets",
"ajax",
"sse",
"sockets",
"events",
"usewebsockets"
]
}