UNPKG

react-use-resource

Version:

Convert a promise returning function into a suspense compatible resource.

91 lines (90 loc) 2.76 kB
{ "name": "react-use-resource", "version": "0.5.0", "description": "Convert a promise returning function into a suspense compatible resource.", "keywords": [ "react", "suspense", "hooks", "data-fetching" ], "main": "lib/index.js", "module": "lib/index.es.js", "jsnext:main": "lib/index.es.js", "types": "lib/index.d.ts", "scripts": { "build": "yarn build:lib && yarn build:web", "build:lib": "rollup -c rollup.config.lib.js", "build:web": "cross-env NODE_ENV=production rollup -c rollup.config.web.js", "start": "rollup -c rollup.config.web.js -w", "start:ssr": "ts-node --project tsconfig.ssr.json -r tsconfig-paths/register web/ssr.tsx", "lint": "eslint {src,web}/**/*.ts", "lint:fix": "eslint {src,web}/**/*.ts --fix", "release": "standard-version" }, "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "repository": { "type": "git", "url": "git+https://github.com/feerzlay/react-use-resource.git" }, "author": "Denis Yakshov", "license": "MIT", "bugs": { "url": "https://github.com/feerzlay/react-use-resource/issues" }, "homepage": "https://github.com/feerzlay/react-use-resource#readme", "dependencies": {}, "devDependencies": { "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", "@rollup/plugin-commonjs": "^17.0.0", "@rollup/plugin-node-resolve": "^11.0.1", "@rollup/plugin-replace": "^2.3.4", "@types/express": "^4.17.9", "@types/node": "^14.14.14", "@types/react": "^16.14.2", "@types/react-dom": "^16.9.10", "@types/react-router-dom": "^5.1.6", "@typescript-eslint/eslint-plugin": "^4.10.0", "@typescript-eslint/parser": "^4.10.0", "cross-env": "^7.0.3", "dotenv": "^8.2.0", "eslint": "^7.16.0", "eslint-config-prettier": "^7.1.0", "eslint-plugin-prettier": "^3.3.0", "eslint-plugin-react": "^7.21.5", "express": "^4.17.1", "history": "^5.0.0", "husky": "^4.3.6", "prettier": "^2.2.1", "react": "^16.14.0", "react-dom": "^16.14.0", "react-router-dom": "^5.2.0", "react-ssr-prepass": "^1.2.1", "rollup": "^2.35.1", "rollup-plugin-cleaner": "^1.0.0", "rollup-plugin-copy": "^3.3.0", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-serve": "^1.1.0", "rollup-plugin-systemjs-loader": "^1.0.1", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.29.0", "standard-version": "^9.0.0", "systemjs": "^6.8.2", "ts-node": "^9.1.1", "tsconfig-paths": "^3.9.0", "typescript": "^4.1.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0" }, "files": [ "README.md", "LICENSE", "lib" ] }