UNPKG

use-query-rd

Version:

A drop in replacement for apollo client's `useQuery` hook with a return type that mimics Elm's RemoteData ADT

98 lines (97 loc) 2.52 kB
{ "name": "use-query-rd", "version": "2.0.3", "description": "A drop in replacement for apollo client's `useQuery` hook with a return type that mimics Elm's RemoteData ADT", "keywords": [ "apollo", "elm", "useQuery" ], "homepage": "https://github.com/agmoss/use-query-rd#readme", "bugs": { "url": "https://github.com/agmoss/use-query-rd/issues" }, "repository": { "type": "git", "url": "git+https://github.com/agmoss/use-query-rd.git" }, "license": "MIT", "author": "Andrew Moss <andrew@m0ss.dev>", "sideEffects": false, "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "directories": { "src": "src" }, "files": [ "dist" ], "scripts": { "build": "tsc -p tsconfig.build.json", "lint:src": "eslint 'src/**/*.ts' --fix", "lint:spec": "eslint '__specs__/**/*.ts' --fix", "lint:markdown": "markdownlint --fix '**/*.md'", "lint": "run-s lint:*", "prerelease": "yarn run build", "release": "release-it", "test": "jest" }, "devDependencies": { "@apollo/client": "^3.6.10", "@release-it/conventional-changelog": "^5.1.1", "@types/jest": "^29.4.0", "@types/node": "18.15.0", "@typescript-eslint/eslint-plugin": "^5.54.1", "@typescript-eslint/parser": "^5.54.1", "eslint": "^8.36.0", "eslint-config-standard-with-typescript": "^34.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-n": "^15.6.1", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-react": "^7.32.2", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", "jest": "^29.5.0", "markdownlint-cli": "^0.33.0", "npm-run-all": "^4.1.5", "react": "^18.2.0", "react-dom": "^18.2.0", "release-it": "^15.8.0", "ts-jest": "^29.0.5", "ts-node": "^10.9.1", "typescript": "^4.8.4" }, "peerDependencies": { "@apollo/client": "^3.0.0", "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "peerDependenciesMeta": { "react": { "optional": true }, "react-dom": { "optional": true } }, "engines": { "node": ">=14" }, "release-it": { "plugins": { "@release-it/conventional-changelog": { "preset": "angular", "infile": "CHANGELOG.md" } }, "git": { "commitMessage": "chore: release v${version}" }, "github": { "release": true, "web": true } } }