react-online-hook
Version:
React hook to monitor network status.
62 lines (61 loc) • 1.78 kB
JSON
{
"name": "react-online-hook",
"version": "1.0.4",
"description": "React hook to monitor network status.",
"main": "lib/cjs/index.js",
"module": "lib/ejs/index.js",
"types": "lib/cjs/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"prepublishOnly": "npm run build && npm run test",
"build": "tsc && tsc -p tsconfig-ejs.json && babel --config-file ./babel.cjs-module.config.json lib/cjs/index.js -o lib/cjs/index.js",
"test": "npm run test:e2e && npm run test:unit -- --coverage",
"test:unit": "npm run build && jest --env=jsdom",
"test:unit:watch": "npm run test:unit -- --watchAll",
"test:e2e": "npx cypress run --headless"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Uzwername/react-online-hook.git"
},
"keywords": [
"react",
"hooks",
"network",
"online",
"offline"
],
"author": {
"name": "Igor Bykov",
"email": "igor.bykov@protonmail.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/Uzwername/react-online-hook/issues"
},
"homepage": "https://github.com/Uzwername/react-online-hook#readme",
"peerDependencies": {
"react": ">=16.8"
},
"devDependencies": {
"@babel/cli": "7.10.5",
"@babel/core": "^7.11.1",
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@testing-library/react": "^10.4.8",
"@testing-library/react-hooks": "^3.4.1",
"@types/node": "^14.0.27",
"@types/react": "^16.9.44",
"babel-jest": "^26.3.0",
"babel-plugin-add-module-exports": "1.0.2",
"cypress": "^4.12.1",
"jest": "^26.2.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"typescript": "3.9.7"
},
"dependencies": {}
}