UNPKG

react-refetch

Version:

A simple, declarative, and composable way to fetch data for React components.

86 lines (85 loc) 2.8 kB
{ "name": "react-refetch", "version": "3.0.1", "description": "A simple, declarative, and composable way to fetch data for React components.", "main": "./lib/index.js", "types": "./lib/index.d.ts", "scripts": { "build": "babel src --out-dir lib; cp src/*.d.ts lib", "clean": "rimraf lib dist coverage", "lint": "eslint src test", "prepare": "npm run clean && npm run lint && npm run build", "test": "mocha --require @babel/register --recursive --require ./test/setup.js --exit", "test:watch": "npm test -- --watch", "test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require ./test/setup.js" }, "repository": { "type": "git", "url": "https://github.com/heroku/react-refetch.git" }, "files": [ "lib" ], "keywords": [ "react", "reactjs", "fetch", "data", "ajax", "hot", "reload", "hmr", "live", "edit" ], "author": "Heroku", "license": "MIT", "bugs": { "url": "https://github.com/heroku/react-refetch/issues" }, "homepage": "https://github.com/heroku/react-refetch", "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/node": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-decorators": "^7.0.0", "@babel/plugin-proposal-do-expressions": "^7.0.0", "@babel/plugin-proposal-export-default-from": "^7.0.0", "@babel/plugin-proposal-export-namespace-from": "^7.0.0", "@babel/plugin-proposal-function-bind": "^7.0.0", "@babel/plugin-proposal-function-sent": "^7.0.0", "@babel/plugin-proposal-json-strings": "^7.0.0", "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", "@babel/plugin-proposal-numeric-separator": "^7.0.0", "@babel/plugin-proposal-optional-chaining": "^7.0.0", "@babel/plugin-proposal-pipeline-operator": "^7.0.0", "@babel/plugin-proposal-throw-expressions": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/preset-react": "^7.0.0", "babel-eslint": "^10.0.3", "eslint": "^6.5.1", "eslint-config-rackt": "^1.1.1", "eslint-plugin-react": "^7.16.0", "expect": "^1.8.0", "isparta": "4.0.0", "jsdom": "^7.2.2", "mocha": "^6.2.2", "prop-types": "^15.7.2", "react": "^16.8.6", "react-dom": "^16.8.6", "rimraf": "^2.3.4", "whatwg-fetch": "*" }, "dependencies": { "hoist-non-react-statics": "^3.3.0", "invariant": "^2.2.4", "warning": "^4.0.3" }, "peerDependencies": { "react": "^0.14.0 || ^15.0.0-0 || ^16.0.0-0" } }