{"_id":"redux-saga-watch-actions","_rev":"7-366e8c62e5c197c6726f0d2a6f2b7833","name":"redux-saga-watch-actions","description":"Easily create watchers to map actions to sagas","dist-tags":{"latest":"0.3.0-0"},"versions":{"0.0.1":{"name":"redux-saga-watch-actions","version":"0.0.1","description":"Easily create watchers to map actions to sagas","repository":{"type":"git","url":"git+https://github.com/heygrady/redux-saga-watch-actions.git"},"keywords":[],"bugs":{"url":"https://github.com/heygrady/redux-saga-watch-actions/issues"},"homepage":"https://github.com/heygrady/redux-saga-watch-actions#readme","author":{"name":"Grady Kuhnline","email":"github@heygrady.net"},"license":"MIT","browser":"dist/redux-saga-watch-actions.js","main":"lib/index.js","module":"es/index.js","jsnext:main":"es/index.js","files":["dist","lib","es","src"],"scripts":{"clean":"rimraf lib dist es coverage","lint":"yarn lint:src && yarn lint:examples","lint:src":"eslint src test build","lint:examples":"eslint examples","test":"cross-env BABEL_ENV=commonjs jest","test:watch":"yarn test -- --watch","test:cov":"yarn test -- --coverage","test:examples":"babel-node examples/testAll.js","check:src":"yarn lint:src && yarn test","check:examples":"yarn build:examples && yarn lint:examples && yarn test:examples","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/redux-saga-watch-actions.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js dist/redux-saga-watch-actions.min.js","build:examples":"babel-node examples/buildAll.js","build":"yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:umd:min","dev":"watch 'yarn build:commonjs' ./src","prepublish":"yarn clean && yarn check:src && yarn build","docs:clean":"rimraf _book","docs:prepare":"gitbook install","docs:build":"yarn docs:prepare && gitbook build -g reactjs/redux && cp logo/apple-touch-icon.png _book/gitbook/images/apple-touch-icon-precomposed-152.png && cp logo/favicon.ico _book/gitbook/images","docs:watch":"yarn docs:prepare && gitbook serve","docs:publish":"yarn docs:clean && yarn docs:build && cp CNAME _book && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push git@github.com:reactjs/redux gh-pages --force"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^7.1.1","babel-jest":"^18.0.0","babel-loader":"^6.2.10","babel-plugin-transform-es2015-modules-commonjs":"^6.18.0","babel-plugin-transform-runtime":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-preset-react":"^6.5.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.9.0","cross-env":"^3.1.3","eslint":"^3.12.2","eslint-config-standard":"^6.2.1","eslint-config-standard-react":"^4.2.0","eslint-plugin-flowtype":"^2.4.0","eslint-plugin-jasmine":"^2.2.0","eslint-plugin-promise":"^3.4.0","eslint-plugin-react":"^6.8.0","eslint-plugin-standard":"^2.0.1","eslint-watch":"^2.1.11","jest":"^18.0.0","mocha":"^3.2.0","nodemon":"^1.9.2","redux-saga":"^0.14.3","rimraf":"^2.5.4","watch":"^1.0.1","webpack":"^1.14.0"},"peerDependencies":{"redux-saga":"^0.14.3"},"npmName":"redux-saga-watch-actions","npmFileMap":[{"basePath":"/dist/","files":["*.js"]}],"jest":{"modulePaths":["<rootDir>/src/"],"testPathDirs":["tests"],"testRegex":"(/tests/.*\\.spec.js)$"},"gitHead":"1781ac11860ac6eeb33965ba004d50beffc5e41c","_id":"redux-saga-watch-actions@0.0.1","_shasum":"1deeb3948f476b8209d6e8ea4c6fa77aaeaca4b4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"heygrady","email":"github@heygrady.net"},"dist":{"shasum":"1deeb3948f476b8209d6e8ea4c6fa77aaeaca4b4","tarball":"https://registry.npmjs.org/redux-saga-watch-actions/-/redux-saga-watch-actions-0.0.1.tgz","integrity":"sha512-a7n68B9rvClYS0o/vtYk7BYZdClCFa3zG5ZLXeTbk44h05rLOxTbbWqvW2B8iVmf7U12mQbSq8O4B3tvskVd0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOVi594Vyd6XTcihMpFJO0R8sNSBH6ZZByHt1T3V7XoAiEAiQWLOggDbb0jLH4Yz4QNNstBhN8j0f6CRR/rdyOaWvw="}]},"maintainers":[{"name":"heygrady","email":"github@heygrady.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/redux-saga-watch-actions-0.0.1.tgz_1488411858194_0.022330964216962457"},"directories":{}},"0.0.2":{"name":"redux-saga-watch-actions","version":"0.0.2","description":"Easily create watchers to map actions to sagas","repository":{"type":"git","url":"git+https://github.com/heygrady/redux-saga-watch-actions.git"},"keywords":["redux","redux-saga","saga","redux-actions","actions"],"bugs":{"url":"https://github.com/heygrady/redux-saga-watch-actions/issues"},"homepage":"https://github.com/heygrady/redux-saga-watch-actions#readme","author":{"name":"Grady Kuhnline","email":"github@heygrady.net"},"license":"MIT","browser":"dist/redux-saga-watch-actions.js","main":"lib/index.js","module":"es/index.js","jsnext:main":"es/index.js","files":["dist","lib","es","src"],"scripts":{"clean":"rimraf lib dist es coverage","lint":"yarn lint:src && yarn lint:examples","lint:src":"eslint src test build","lint:examples":"eslint examples","test":"cross-env BABEL_ENV=commonjs jest","test:watch":"yarn test -- --watch","test:cov":"yarn test -- --coverage","test:examples":"babel-node examples/testAll.js","check:src":"yarn lint:src && yarn test","check:examples":"yarn build:examples && yarn lint:examples && yarn test:examples","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js dist/redux-saga-watch-actions.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js dist/redux-saga-watch-actions.min.js","build:examples":"babel-node examples/buildAll.js","build":"yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:umd:min","dev":"watch 'yarn build:commonjs' ./src","prepublish":"yarn clean && yarn check:src && yarn build","docs:clean":"rimraf _book","docs:prepare":"gitbook install","docs:build":"yarn docs:prepare && gitbook build -g reactjs/redux && cp logo/apple-touch-icon.png _book/gitbook/images/apple-touch-icon-precomposed-152.png && cp logo/favicon.ico _book/gitbook/images","docs:watch":"yarn docs:prepare && gitbook serve","docs:publish":"yarn docs:clean && yarn docs:build && cp CNAME _book && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push git@github.com:reactjs/redux gh-pages --force"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^7.1.1","babel-jest":"^18.0.0","babel-loader":"^6.2.10","babel-plugin-transform-es2015-modules-commonjs":"^6.18.0","babel-plugin-transform-runtime":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-preset-react":"^6.5.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.9.0","cross-env":"^3.1.3","eslint":"^3.12.2","eslint-config-standard":"^6.2.1","eslint-config-standard-react":"^4.2.0","eslint-plugin-flowtype":"^2.4.0","eslint-plugin-jasmine":"^2.2.0","eslint-plugin-promise":"^3.4.0","eslint-plugin-react":"^6.8.0","eslint-plugin-standard":"^2.0.1","eslint-watch":"^2.1.11","jest":"^18.0.0","mocha":"^3.2.0","nodemon":"^1.9.2","redux-saga":"^0.14.3","rimraf":"^2.5.4","watch":"^1.0.1","webpack":"^1.14.0"},"peerDependencies":{"redux-saga":"^0.14.3"},"npmName":"redux-saga-watch-actions","npmFileMap":[{"basePath":"/dist/","files":["*.js"]}],"jest":{"modulePaths":["<rootDir>/src/"],"testPathDirs":["tests"],"testRegex":"(/tests/.*\\.spec.js)$"},"gitHead":"3e6e7058675e3baeeaa4c372646ed91643a86707","_id":"redux-saga-watch-actions@0.0.2","_shasum":"6145267a691bc29aa0bbf11324f1506325c390ff","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"heygrady","email":"github@heygrady.net"},"dist":{"shasum":"6145267a691bc29aa0bbf11324f1506325c390ff","tarball":"https://registry.npmjs.org/redux-saga-watch-actions/-/redux-saga-watch-actions-0.0.2.tgz","integrity":"sha512-VGmCYdpVw8DIjTbiQYhJgNSNb2dTXtQqILStrqjFXEWrSxWz68M019xJnAlZliIBrX1W5Vy9pGA+0HGT5pYPuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICU+QifTkSjaOyaPyzBi2nOYnb7Dn0ip/RoFz9iBwz6sAiBq7nvwYDFR4BlJzot7hYDUlrBlntsRCpaHOBs8NrBvLg=="}]},"maintainers":[{"name":"heygrady","email":"github@heygrady.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/redux-saga-watch-actions-0.0.2.tgz_1488412505505_0.3266109258402139"},"directories":{}},"0.1.0":{"name":"redux-saga-watch-actions","version":"0.1.0","description":"Easily create watchers to map actions to sagas","repository":{"type":"git","url":"git+https://github.com/heygrady/redux-saga-watch-actions.git"},"keywords":["redux","redux-saga","saga","redux-actions","actions"],"bugs":{"url":"https://github.com/heygrady/redux-saga-watch-actions/issues"},"homepage":"https://github.com/heygrady/redux-saga-watch-actions#readme","author":{"name":"Grady Kuhnline","email":"github@heygrady.net"},"license":"MIT","main":"lib/index.js","module":"es/index.js","jsnext:main":"es/index.js","files":["dist","lib","es","src"],"config":{"account":"heygrady","name":"redux-saga-watch-actions"},"scripts":{"clean":"rimraf lib dist es coverage","dev":"yarn build:commonjs -- --watch","start":"echo 'Error: no start script' && exit 1","start:prod":"cross-env NODE_ENV=production yarn start","lint":"eslint src test build","lint:fix":"yarn lint -- --fix","test":"cross-env BABEL_ENV=commonjs jest","test:watch":"yarn test -- --watch","test:cov":"yarn test -- --coverage","test:cov:report":"yarn test:cov && cd coverage/lcov-report && http-server -c-1","build":"npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=es NODE_ENV=development rollup -c -i src/index.js -o dist/$npm_package_config_name.js","build:umd:min":"cross-env BABEL_ENV=es NODE_ENV=production rollup -c -i src/index.js -o dist/$npm_package_config_name.min.js","deploy":"yarn lint && yarn test && yarn build:prod && echo 'Error: no deploy script' && exit 1","prepare":"npm run clean && npm run lint && npm test && npm run build","examples:lint":"eslint examples","examples:test":"cross-env CI=true babel-node examples/testAll.js","docs:clean":"rimraf _book","docs:prepare":"gitbook install","docs:build:only":"gitbook build -g $npm_package_config_account/$npm_package_config_name","docs:build":"yarn run docs:prepare && yarn run docs:build:only","docs:watch:old":"yarn run docs:prepare && gitbook serve","docs:watch":"nohup onchange 'docs/**/*.md' 'README.md' 'SUMMARY.md' -- yarn run docs:build:only &>/dev/null & yarn docs:serve","docs:serve":"cd _book && http-server -p4000 -c-1 .","docs:publish":"yarn run docs:clean && yarn run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push git@github.com:$npm_package_config_account/$npm_package_config_name gh-pages --force && cd .. && yarn add --dev rimraf"},"devDependencies":{"babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-plugin-check-es2015-constants":"^6.22.0","babel-plugin-transform-es2015-arrow-functions":"^6.22.0","babel-plugin-transform-es2015-block-scoped-functions":"^6.22.0","babel-plugin-transform-es2015-block-scoping":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-computed-properties":"^6.24.1","babel-plugin-transform-es2015-destructuring":"^6.23.0","babel-plugin-transform-es2015-for-of":"^6.23.0","babel-plugin-transform-es2015-function-name":"^6.24.1","babel-plugin-transform-es2015-literals":"^6.22.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","babel-plugin-transform-es2015-object-super":"^6.24.1","babel-plugin-transform-es2015-parameters":"^6.24.1","babel-plugin-transform-es2015-shorthand-properties":"^6.24.1","babel-plugin-transform-es2015-spread":"^6.22.0","babel-plugin-transform-es2015-sticky-regex":"^6.24.1","babel-plugin-transform-es2015-template-literals":"^6.22.0","babel-plugin-transform-es2015-unicode-regex":"^6.24.1","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-regenerator":"^6.24.1","babel-register":"^6.24.1","cross-env":"^5.0.1","eslint":"~4.1.1","eslint-config-react-app":"^1.0.5","eslint-config-standard":"^10.2.1","eslint-config-standard-react":"^5.0.0","eslint-plugin-babel":"^4.1.1","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^5.0.3","eslint-plugin-markdown":"^1.0.0-beta.6","eslint-plugin-node":"^5.1.1","eslint-plugin-promise":"^3.5.0","eslint-plugin-react":"^7.1.0","eslint-plugin-standard":"^3.0.1","gitbook-cli":"^2.3.2","http-server":"^0.10.0","jest":"^20.0.4","onchange":"^3.2.1","redux-saga":"^0.16.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^1.1.1","rollup-plugin-uglify":"^2.0.1"},"peerDependencies":{"redux-saga":"^0.16.0"},"npmName":"redux-saga-watch-actions","npmFileMap":[{"basePath":"/dist/","files":["*.js"]}],"browserify":{"transform":["loose-envify"]},"jest":{"testPathIgnorePatterns":["/node_modules/","/_fun/","/_book/","/examples/"],"testRegex":"(/test/.*\\.spec.js)$"},"dependencies":{"invariant":"^2.2.2"},"gitHead":"415034df77c6f4ea3a4e92c4e5471cf7b35c1acf","_id":"redux-saga-watch-actions@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"heygrady","email":"github@heygrady.net"},"dist":{"integrity":"sha512-pFpnnTmz5VVA+T4SRoU5sFmC+mGmVSztHsgmRFLbGI3ReaS1X6z2H4izD5yUZ4M1RdvqPCFl313W1b2IpEQwOA==","shasum":"35d40449d2e9611b252cc19e04b1d360949bbb23","tarball":"https://registry.npmjs.org/redux-saga-watch-actions/-/redux-saga-watch-actions-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFD0+fWvDGrxEADH23VGBnueUC2hsRA2PZzgGfc3svmXAiEAjES3jBJJg0kOwYdt+ySUQTgT1ps0pjYpZmS5SLpPLfg="}]},"maintainers":[{"name":"heygrady","email":"github@heygrady.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-watch-actions-0.1.0.tgz_1510855047090_0.19868891220539808"},"directories":{}},"0.2.0":{"name":"redux-saga-watch-actions","version":"0.2.0","description":"Easily create watchers to map actions to sagas","repository":{"type":"git","url":"git+https://github.com/heygrady/redux-saga-watch-actions.git"},"keywords":["redux","redux-saga","saga","redux-actions","actions"],"bugs":{"url":"https://github.com/heygrady/redux-saga-watch-actions/issues"},"homepage":"https://github.com/heygrady/redux-saga-watch-actions#readme","author":{"name":"Grady Kuhnline","email":"github@heygrady.net"},"license":"MIT","main":"lib/index.js","module":"es/index.js","jsnext:main":"es/index.js","files":["dist","lib","es","src"],"config":{"account":"heygrady","name":"redux-saga-watch-actions"},"scripts":{"clean":"rimraf lib dist es coverage","dev":"yarn build:commonjs -- --watch","start":"echo 'Error: no start script' && exit 1","start:prod":"cross-env NODE_ENV=production yarn start","lint":"eslint src test build","lint:fix":"yarn lint -- --fix","test":"cross-env BABEL_ENV=commonjs jest","test:watch":"yarn test -- --watch","test:cov":"yarn test -- --coverage","test:cov:report":"yarn test:cov && cd coverage/lcov-report && http-server -c-1","build":"npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=es NODE_ENV=development rollup -c -i src/index.js -o dist/$npm_package_config_name.js","build:umd:min":"cross-env BABEL_ENV=es NODE_ENV=production rollup -c -i src/index.js -o dist/$npm_package_config_name.min.js","deploy":"yarn lint && yarn test && yarn build:prod && echo 'Error: no deploy script' && exit 1","prepare":"npm run clean && npm run lint && npm test && npm run build","examples:lint":"eslint examples","examples:test":"cross-env CI=true babel-node examples/testAll.js","docs:clean":"rimraf _book","docs:prepare":"gitbook install","docs:build:only":"gitbook build -g $npm_package_config_account/$npm_package_config_name","docs:build":"yarn run docs:prepare && yarn run docs:build:only","docs:watch:old":"yarn run docs:prepare && gitbook serve","docs:watch":"nohup onchange 'docs/**/*.md' 'README.md' 'SUMMARY.md' -- yarn run docs:build:only &>/dev/null & yarn docs:serve","docs:serve":"cd _book && http-server -p4000 -c-1 .","docs:publish":"yarn run docs:clean && yarn run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push git@github.com:$npm_package_config_account/$npm_package_config_name gh-pages --force && cd .. && yarn add --dev rimraf"},"devDependencies":{"babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-plugin-check-es2015-constants":"^6.22.0","babel-plugin-transform-es2015-arrow-functions":"^6.22.0","babel-plugin-transform-es2015-block-scoped-functions":"^6.22.0","babel-plugin-transform-es2015-block-scoping":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-computed-properties":"^6.24.1","babel-plugin-transform-es2015-destructuring":"^6.23.0","babel-plugin-transform-es2015-for-of":"^6.23.0","babel-plugin-transform-es2015-function-name":"^6.24.1","babel-plugin-transform-es2015-literals":"^6.22.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","babel-plugin-transform-es2015-object-super":"^6.24.1","babel-plugin-transform-es2015-parameters":"^6.24.1","babel-plugin-transform-es2015-shorthand-properties":"^6.24.1","babel-plugin-transform-es2015-spread":"^6.22.0","babel-plugin-transform-es2015-sticky-regex":"^6.24.1","babel-plugin-transform-es2015-template-literals":"^6.22.0","babel-plugin-transform-es2015-unicode-regex":"^6.24.1","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-register":"^6.24.1","cross-env":"^5.0.1","eslint":"~4.1.1","eslint-config-react-app":"^1.0.5","eslint-config-standard":"^10.2.1","eslint-config-standard-react":"^5.0.0","eslint-plugin-babel":"^4.1.1","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jsx-a11y":"^5.0.3","eslint-plugin-markdown":"^1.0.0-beta.6","eslint-plugin-node":"^5.1.1","eslint-plugin-promise":"^3.5.0","eslint-plugin-react":"^7.1.0","eslint-plugin-standard":"^3.0.1","gitbook-cli":"^2.3.2","http-server":"^0.10.0","jest":"^20.0.4","onchange":"^3.2.1","redux-saga":"^0.16.0","rimraf":"^2.6.2","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^1.1.1","rollup-plugin-uglify":"^2.0.1","uglify-es":"^3.1.10"},"peerDependencies":{"redux-saga":"^0.16.0"},"npmName":"redux-saga-watch-actions","npmFileMap":[{"basePath":"/dist/","files":["*.js"]}],"browserify":{"transform":["loose-envify"]},"jest":{"testPathIgnorePatterns":["/node_modules/","/_fun/","/_book/","/examples/"],"testRegex":"(/test/.*\\.spec.js)$"},"dependencies":{"invariant":"^2.2.2"},"gitHead":"e5aeb3c1f324751e13fa740aea1907e0536599c1","_id":"redux-saga-watch-actions@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"heygrady","email":"github@heygrady.net"},"dist":{"integrity":"sha512-FlGArCpnYEC0Rp3STHtGA2AVcYVcfyxyWa6/YmmiwflVFb4ZAjb6CnMCwms61TD0Fe6eW/Cw6Ct+D1bR9tQEtg==","shasum":"0886f3e0a9b3eac86363b9d7590e9872912f85d7","tarball":"https://registry.npmjs.org/redux-saga-watch-actions/-/redux-saga-watch-actions-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFshrCpFYrVWh2u4iJ+zP/GcoI/HHTnqdcMEq4CEVEVgIgMMAh/mJNcRdgNW7K9YZJC5vNLzMrKhaCwrrOE58+aMc="}]},"maintainers":[{"name":"heygrady","email":"github@heygrady.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-watch-actions-0.2.0.tgz_1511340783915_0.574252417543903"},"directories":{}},"0.3.0-0":{"name":"redux-saga-watch-actions","version":"0.3.0-0","description":"Easily create watchers to map actions to sagas","keywords":["redux","redux-saga","redux-loop","redux-actions","saga","actions"],"license":"MIT","author":{"name":"Grady Kuhnline","email":"github@heygrady.net"},"homepage":"https://github.com/heygrady/redux-saga-watch-actions#readme","repository":{"type":"git","url":"git+https://github.com//heygrady%2Fredux-saga-watch-actions.git"},"bugs":{"url":"https://github.com/heygrady/redux-saga-watch-actions/issues"},"main":"lib/index.js","unpkg":"dist/redux-saga-watch-actions.js","module":"es/index.js","scripts":{"build:commonjs":"cross-env MODULES_ENV=commonjs babel src --out-dir lib","build:es":"cross-env MODULES_ENV=esmodules babel src --out-dir es","build:umd":"rollup -c","build":"yarn build:commonjs && yarn build:es && yarn build:umd","clean":"rimraf lib dist es coverage","format":"prettier --write \"{example,src,test}/**/*.{js,jsx,ts,tsx}\" .babelrc.js rollup.config.js .eslintrc.json README.md \"docs/**/*.md\" && yarn lint --fix || true","lint":"eslint src test","dedupe":"npx yarn-deduplicate yarn.lock && yarn install","pretest":"yarn lint","prepare":"yarn clean && yarn build","preversion":"yarn format","postversion":"npm publish --access public","postpublish":"git push origin --all && git push origin --tags","test":"jest","coverage":"jest --coverage"},"peerDependencies":{"redux-saga":"^1.0.5"},"dependencies":{"@babel/runtime":"^7.5.5","tiny-invariant":"^1.0.6"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@zumper/babel-preset-react-app":"9.0.0-zumper.15","babel-eslint":"^10.0.2","babel-jest":"^24.8.0","cross-env":"^5.2.0","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-config-react-app":"^4.0.1","eslint-config-standard":"^13.0.1","eslint-config-standard-react":"^8.0.0","eslint-plugin-flowtype":"^2.50.3","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.14.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-node":"^9.1.0","eslint-plugin-prettier":"^3.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.6.1","eslint-plugin-standard":"^4.0.0","fs-extra":"^8.1.0","jest":"^24.8.0","jest-pnp-resolver":"^1.2.1","jest-resolve":"^24.8.0","lodash":"^4.17.15","prettier":"^1.18.2","redux-saga":"^1.0.5","rimraf":"^2.6.3","rollup":"^1.17.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.0.1","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.1.1"},"jest":{"collectCoverageFrom":["src/**/*.{js,jsx,ts,tsx}","!src/**/*.d.ts"],"coverageDirectory":"<rootDir>/coverage/","coveragePathIgnorePatterns":["<rootDir>/dist","<rootDir>/es","<rootDir>/lib","<rootDir>/node_modules"],"resolver":"jest-pnp-resolver","testMatch":["<rootDir>/test/**/*.spec.js"],"testPathIgnorePatterns":["<rootDir>/dist","<rootDir>/es","<rootDir>/lib","<rootDir>/node_modules"],"testURL":"https://localhost"},"gitHead":"b9a04de5fe97f9d2038d5575911b5a774262059a","_id":"redux-saga-watch-actions@0.3.0-0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"heygrady","email":"github@heygrady.net"},"dist":{"integrity":"sha512-3Z/zmIBk0OShRC3TB6ZOieKoeI+JqACN9lAmGGIShNnqpYxFrz5pyz5qEtg3vAvBGWrdwMaMEyUt+jMsh0Peuw==","shasum":"786c81d56a2d4fdc0cad9f83c79f9fa2bfe78139","tarball":"https://registry.npmjs.org/redux-saga-watch-actions/-/redux-saga-watch-actions-0.3.0-0.tgz","fileCount":11,"unpackedSize":58191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQT8JCRA9TVsSAnZWagAA8qsP/RBcJtUNwk0UZkKFhKBP\njFwoIru2LNRISsRXEk4WpKgK7KeJfL23nqVb1hCXv+rLQ3OfpOeA8Pbcc4CY\n6pPxzoZ7vT/UV0pAQK26u7g14eeuXUi8WumiwqOMjaqznLbq2LDgMdUI61SM\npuDFWCjinQk9S/iN+qs7k4/7Q+MQKwAeJkl1iZNtLuJ+3Z4u6u5mS7hnLaC8\nu7SNidHcTNECzuvorymKpcYbGK8mwKcmqRP+WYJNqgcnOQRGQjkRs1zth6oD\nZJJ4WCypv4zdd3/hCFitluvVnz9CK3TjN9YZD+VZQtijftxDhUVgp8OTl5yI\nwapsmoTE4QVjrcAjZYB/iPSBIqPs9Rrb/FllN6aBT9A1vs4fMTnLpj9nIQhu\nXAZFbQXc9KjIJiSKl3iaivE8mrskI850AKRNl1dIccirZQ1BCrKipE3E8nnv\nyXn6LxlrVwuhpX0GfWq7K9xmVQcnIJkNoI3uG8bCELBEcq8NbfRpN/7uo1LL\n/iFDwenVb+2zlCE8pfBsTiWcenG39w7YJIwbIWmV8eqp85PfF9yCkFGwhvRO\nzLqWxCDAKQkg8d1noRmphXm9QWAx8caTOVEmEZn/YkA0gYbmk+2bCFYzB5sM\nZYXzIqzyv9fQkiNpYKNhcA8v3y8CCbTbM0aTbum0o1wRfQCOPOBot7sI9Gm4\noLgE\r\n=IPgw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1xD+v0kd7OsF/tBbksE7FRW9VdoaaCpC8QN3SfdMvIAiEA9ekoG+v09Od7ID5GxaTi1q/4y7K2M+cpDLV05ezKqOA="}]},"maintainers":[{"name":"heygrady","email":"github@heygrady.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-watch-actions_0.3.0-0_1564557064833_0.1625919696170106"},"_hasShrinkwrap":false}},"readme":"# redux-saga-watch-actions\n\nHelper methods for managing sagas that respond to actions. Similar in style to [`redux-actions`](https://github.com/acdlite/redux-actions). An alternate take on [redux-loop](https://github.com/redux-loop/redux-loop).\n\nWhereas `handleActions` maps actions to reducer functions, `watchActions` maps actions to sagas.\n\n## Installation\n\n```bash\nyarn add redux-saga redux-saga-watch-actions\n```\n\n**NOTE:** [`redux-saga`](https://github.com/redux-saga/redux-saga) must be installed as a peer dependency.\n\n## Docs\n\n- [docs](./docs)\n\n## Example\n\nBelow is a simple example of using `watchActions`. You can see that it is used to create a `rootSaga` that uses [`takeEvery`](https://redux-saga.js.org/docs/api/#takeeverypattern-saga-args) to call a saga every time a specific action is dispatched.\n\n```js\nimport { watchActions } from 'redux-saga-watch-actions'\nimport { INCREMENT, DECREMENT } from './constants'\nimport { increment, decrement } from './sagas'\n\nconst rootSaga = watchActions({\n  [INCREMENT]: increment,\n  [DECREMENT]: decrement,\n})\nexport default rootSaga\n```\n\n## Comparison to `handleActions`\n\nBelow you can see a _reducer_ being created with [`handleActions`](https://redux-actions.js.org/docs/api/handleAction.html#handleactions). Reducers and saga do very different things, however, they are similar in that a reducer function expects to be called whenever a specific action is dispatched.\n\n```js\nimport { handleActions } from 'redux-actions'\nimport { INCREMENT, DECREMENT } from './constants'\nimport { increment, decrement } from './reducers'\n\nconst reducer = handleActions({\n  [INCREMENT]: increment,\n  [DECREMENT]: decrement,\n})\nexport default reducer\n```\n\n## Rewritten example from redux-saga\n\nThe example below closely matches the `fetchUser` [example in the redux-saga readme](https://github.com/redux-saga/redux-saga#sagasjs). We've used `watchActions` to create the `takeEvery` rootSaga\n\n```js\nimport { watchActions } from 'redux-saga-watch-actions'\nimport { call, put } from 'redux-saga/effects'\nimport Api from '...'\n\n// worker Saga: will be fired on USER_FETCH_REQUESTED actions\nconst fetchUser = function*(action) {\n  try {\n    const user = yield call(Api.fetchUser, action.payload.userId)\n    yield put({ type: 'USER_FETCH_SUCCEEDED', user: user })\n  } catch (e) {\n    yield put({ type: 'USER_FETCH_FAILED', message: e.message })\n  }\n}\n\nconst mySaga = watchActions({\n  ['USER_FETCH_REQUESTED']: fetchUser,\n})\n\nexport default mySaga\n```\n\n### What does `watchActions` do?\n\nIt's a convenience method that removes the boilerplate of having to use [`takeEvery`](https://redux-saga.github.io/redux-saga/docs/api/index.html#takeeverypattern-saga-args) to hook your saga up to actions.\n\n## Example: without `watchActions`\n\nIt's illuminating to see an example without using `watchActions`. Below you can see the basics of what `watchActions` does using vanilla redux-saga boilerplate. We are creating a `rootSaga` that will capture certain dispatched actions and feed them into a generator function. If you've used redux-saga, you've probably done something similar before.\n\n```js\nimport { all, takeEvery } from 'redux-saga/effects'\n\nimport { runSaga } from './store/sagas'\n\n// grab action constants and sagas from your app\nimport { INCREMENT, DECREMENT } from './constants'\nimport { increment, decrement } from './sagas'\n\n// without watch actions\nconst rootSaga = function*() {\n  yield all([takeEvery(INCREMENT, increment), takeEvery(DECREMENT, decrement)])\n}\n\nrunSaga(rootSaga)\n```\n\n## Example: with `watchActions`\n\nHow does `watchActions` make things easier? It doesn't, really. The `watchActions` function is a convenience method. It allows you to quickly create a root saga that marries actions to sagas, similar to how redux marries actions to reducers. The benefit is conceptual parity with [`handleActions`](https://redux-actions.js.org/docs/api/handleAction.html#handleactions) from redux-actions. Whereas `handleActions` maps actions to reducer functions, `watchActions` maps actions to sagas.\n\n```js\nimport { watchActions } from 'redux-saga-watch-actions'\n\nimport { runSaga } from './store/sagas'\n\n// grab action constants and sagas from your app\nimport { INCREMENT, DECREMENT } from './constants'\nimport { increment, decrement } from './sagas'\n\n// with watch actions\nconst rootSaga = watchActions({\n  [INCREMENT]: increment,\n  [DECREMENT]: decrement,\n})\n\nrunSaga(rootSaga)\n```\n\n## Usage\n\n### `watchActions(sagaMap)`\n\n```js\nimport { watchActions } from 'redux-saga-watch-actions'\n```\n\nThis creates a `rootSaga` from the `sagaMap` which will use [`takeEvery`](https://redux-saga.github.io/redux-saga/docs/api/index.html#takeeverypattern-saga-args) to map actions to sagas. Internally, this calls `createWatcher()` to create a saga for each action type.\n\n```js\nimport { watchActions } from 'redux-saga-watch-actions'\nimport { INCREMENT, DECREMENT } from './constants'\nimport { increment, decrement } from './sagas'\n\nconst rootSaga = watchActions({\n  [INCREMENT]: increment,\n  [DECREMENT]: decrement,\n})\nexport default rootSaga\n```\n\n### `createWatcher(actionType, saga)`\n\n```js\nimport { createWatcher } from 'redux-saga-watch-actions'\n```\n\nYou don't normally need to call `createWatcher` yourself. Used internally by `watchActions`. Returns a generator function that uses `takeEvery(actionType, saga)` to respond to dispatched actions. Compare to `mySaga` in the [redux-saga usage example](https://github.com/redux-saga/redux-saga#sagasjs).\n\n```js\nimport { createWatcher } from 'redux-saga-watch-actions'\nimport { INCREMENT } from './constants'\nimport { increment } from './sagas'\n\nconst mySaga = createWatcher(INCREMENT, increment)\nexport default mySaga\n```\n\n### Middleware\n\nYou might want to read about the included [middleware](./docs/middleware/README.md).\n","maintainers":[{"name":"heygrady","email":"github@heygrady.net"}],"time":{"modified":"2022-06-26T10:25:31.352Z","created":"2017-03-01T23:44:18.468Z","0.0.1":"2017-03-01T23:44:18.468Z","0.0.2":"2017-03-01T23:55:07.464Z","0.1.0":"2017-11-16T17:57:27.253Z","0.2.0":"2017-11-22T08:53:04.009Z","0.3.0-0":"2019-07-31T07:11:04.966Z"},"homepage":"https://github.com/heygrady/redux-saga-watch-actions#readme","keywords":["redux","redux-saga","redux-loop","redux-actions","saga","actions"],"repository":{"type":"git","url":"git+https://github.com//heygrady%2Fredux-saga-watch-actions.git"},"author":{"name":"Grady Kuhnline","email":"github@heygrady.net"},"bugs":{"url":"https://github.com/heygrady/redux-saga-watch-actions/issues"},"license":"MIT","readmeFilename":"README.md"}