UNPKG

@nutgaard/use-fetch

Version:

A useFetch hook to be used with react@^16.8.0

144 lines (143 loc) 4.35 kB
{ "name": "@nutgaard/use-fetch", "version": "2.4.1", "description": "A useFetch hook to be used with react@^16.8.0", "keywords": [ "fetch", "react", "hook", "usefetch", "use-fetch" ], "main": "dist/use-fetch.umd.js", "module": "dist/use-fetch.es5.js", "typings": "dist/types/use-fetch.d.ts", "files": [ "dist" ], "author": "Nicklas Utgaard <nutgaard@gmail.com>", "repository": { "type": "git", "url": "https://github.com/nutgaard/use-fetch" }, "publishConfig": { "access": "public" }, "license": "MIT", "engines": { "node": ">=8.0.0" }, "scripts": { "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "prebuild": "rimraf dist", "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src", "start": "rollup -c rollup.config.ts -w", "test": "jest --coverage --env=jsdom", "test:watch": "jest --coverage --watch --env=jsdom", "test:prod": "npm run lint && npm run test -- --no-cache", "deploy-docs": "ts-node tools/gh-pages-publish", "report-coverage": "codecov", "commit": "git-cz", "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "precommit": "lint-staged", "travis-deploy-once": "travis-deploy-once" }, "lint-staged": { "{src,test}/**/*.ts": [ "prettier --write", "git add" ] }, "config": { "commitizen": { "path": "node_modules/cz-conventional-changelog" } }, "jest": { "transform": { ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "global": { "branches": 90, "functions": 90, "lines": 95, "statements": 95 } } }, "prettier": { "semi": true, "singleQuote": true, "arrowParens": "always" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "peerDependencies": { "react": "^16.8.0" }, "devDependencies": { "@commitlint/cli": "^7.1.2", "@commitlint/config-conventional": "^7.1.2", "@testing-library/react-hooks": "^1.1.0", "@types/jest": "^23.3.2", "@types/node": "^10.11.0", "@types/react": "^16.8.23", "@types/react-dom": "^16.8.4", "codecov": "^3.2.0", "colors": "^1.3.2", "commitizen": "^3.0.0", "cross-env": "^5.2.0", "cz-conventional-changelog": "^2.1.0", "enzyme": "^3.10.0", "enzyme-adapter-react-16": "^1.14.0", "enzyme-to-json": "^3.3.5", "husky": "^1.0.1", "isomorphic-fetch": "^2.2.1", "jest": "^23.6.0", "jest-config": "^23.6.0", "lint-staged": "^8.0.0", "lodash.camelcase": "^4.3.0", "prettier": "^1.14.3", "prompt": "^1.0.0", "react": "^16.8.6", "react-dom": "^16.8.6", "replace-in-file": "^3.4.2", "rimraf": "^2.6.2", "rollup": "^0.67.0", "rollup-plugin-commonjs": "^9.1.8", "rollup-plugin-json": "^3.1.0", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", "rollup-plugin-typescript2": "^0.22.0", "semantic-release": "^15.13.18", "shelljs": "^0.8.3", "travis-deploy-once": "^5.0.9", "ts-jest": "^23.10.2", "ts-node": "^7.0.1", "tslint": "^5.11.0", "tslint-config-prettier": "^1.15.0", "tslint-config-standard": "^8.0.1", "typedoc": "^0.14.2", "typescript": "^3.0.3", "yet-another-fetch-mock": "^3.1.1" }, "dependencies": { "@nutgaard/use-async": "^2.2.1" } }