react-use-promise
Version:
React hook for handling promises.
59 lines (58 loc) • 1.55 kB
JSON
{
"name": "react-use-promise",
"version": "0.5.0",
"description": "React hook for handling promises.",
"keywords": [
"hook",
"hooks",
"promise",
"promises",
"react"
],
"repository": "git@github.com:bsonntag/react-use-promise.git",
"license": "MIT",
"author": "Benjamim Sonntag <benjamimsonntag@gmail.com>",
"main": "dist/index.js",
"types": "index.d.ts",
"scripts": {
"bundle": "rm -rf dist && babel src --out-dir dist --ignore **/*.test.js",
"bundle:watch": "babel src --out-dir dist --watch --ignore **/*.test.js",
"example": "parcel --dist-dir build example/index.html",
"lint": "eslint .",
"test": "jest",
"test:watch": "jest --watch --notify",
"version": "npm run bundle && git add dist"
},
"jest": {
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": [
"jest-setup.js"
],
"coverageReporters": [
"html",
"lcov",
"text"
],
"testEnvironment": "jsdom"
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"babel-jest": "^27.1.0",
"eslint": "^5.7.0",
"eslint-config-seegno": "^11.0.1",
"husky": "^1.3.1",
"jest": "^27.1.0",
"lint-staged": "^8.1.3",
"parcel": "^2.0.0-rc.0",
"react": "^16.8.2",
"react-dom": "^16.8.2",
"react-testing-library": "^5.8.0",
"sort-package-json": "^1.18.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.2 || ^18.0.0"
}
}