{"_id":"redux-saga-thunk","_rev":"15-d45a9f57c39b036a54f07c5c90bf301a","name":"redux-saga-thunk","description":"Dispatching an action handled by redux-saga returns promise","dist-tags":{"latest":"0.7.3"},"versions":{"0.4.0":{"name":"redux-saga-thunk","version":"0.4.0","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^7.1.1","babel-jest":"^20.0.0","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"4.0.0-rc.1","eslint":"^3.14.0","eslint-config-airbnb-base":"^11.0.1","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.46.0","jest-cli":"^20.0.0","npm-watch":"^0.1.7","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.15.3","rimraf":"^2.6.1"},"gitHead":"d7893eae985515496c00abf0a07f745e9d90d981","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.4.0","_shasum":"505be72d7a0294d7079b82dbfc6a423e810e0776","_from":".","_npmVersion":"4.3.0","_nodeVersion":"6.9.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"505be72d7a0294d7079b82dbfc6a423e810e0776","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.4.0.tgz","integrity":"sha512-xOaBvmiPvprVyRqZXN+39Rc+EFx6KnkciH+HLNK9aGE3GQ5wdc3w3jSqXQ6O0z2lSLbG3rd8MRpLI1H4sQ+p/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErXPuqrabFMimGru8VGhAR02a7S2BY+abf7Cd1QARNmAiEAytKgwOlDuOqFnGTBwaWGnH5S0bCbTfuBwLzYbhVuu2Y="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/redux-saga-thunk-0.4.0.tgz_1495070402329_0.037016175920143723"},"directories":{}},"0.5.0":{"name":"redux-saga-thunk","version":"0.5.0","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^7.1.1","babel-jest":"^20.0.0","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"4.0.0-rc.1","eslint":"^3.14.0","eslint-config-airbnb-base":"^11.0.1","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.47.0","jest-cli":"^20.0.0","npm-watch":"^0.1.7","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.15.3","rimraf":"^2.6.1"},"gitHead":"1fd1a23922abefe9be6955644a7f33701a130da4","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.5.0","_shasum":"6a3bf96e1e3a58a8c63a203ed46b585d0b08dd05","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"6a3bf96e1e3a58a8c63a203ed46b585d0b08dd05","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.5.0.tgz","integrity":"sha512-udYgIq2gfRcFUQoGPj1uFyygFmSjUQ7afFzgqNqkcWH5y2YMSTkRozptanC0xbWgSTBqi3UAvmBp+rpnidCrDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPY00kYhhVhPlrGC42bczLWI5UV2yPlFmT4t0USU1RsAIgcqbd0Kj2GkjFjnW9lpnV1cWE4MJRgF/TJYR7oXE8LGM="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk-0.5.0.tgz_1496251923897_0.2360999584197998"},"directories":{}},"0.5.1":{"name":"redux-saga-thunk","version":"0.5.1","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^7.1.1","babel-jest":"^20.0.0","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"4.0.0-rc.1","eslint":"^4.0.0","eslint-config-airbnb-base":"^11.0.1","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.48.0","jest-cli":"^20.0.0","npm-watch":"^0.1.7","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.15.3","rimraf":"^2.6.1"},"gitHead":"342cb9e1318e0ae055c71f9aab142d9b201c701f","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.5.1","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-v196hyj8W6+JXtYwXm+SuSYIxYTOTrged8k7IYxwJT/C6tzy21iEYBNJNlLb1MpGH5XXPNlA5lzlZgJOGCr3bQ==","shasum":"1c75c9e982894c9c0c58546354265a0d1737c46d","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.5.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/8Q1SGA5HIUgeLhU3TJS//RWTFYKCoq7sQEZ2XppssAiALDyts2OClWiey+eJOkzgozgELq2Kw72tBn+EDX518Dw=="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk-0.5.1.tgz_1497550299503_0.5740314172580838"},"directories":{}},"0.5.2":{"name":"redux-saga-thunk","version":"0.5.2","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^7.1.1","babel-jest":"^20.0.0","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"4.0.0-rc.1","eslint":"^4.0.0","eslint-config-airbnb-base":"^11.0.1","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.50.0","jest-cli":"^20.0.0","npm-watch":"^0.2.0","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.15.3","rimraf":"^2.6.1"},"gitHead":"7c7864c7cd202a7bf036c110638f8dfe7d1555fd","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.5.2","_shasum":"c51be2f499419111abe46d3af7810ad67fd6de89","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"c51be2f499419111abe46d3af7810ad67fd6de89","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.5.2.tgz","integrity":"sha512-OO655nyxombiC86Dt5wFMuFB+9JHuH2lXwd2UQQ3tavulmw9YD65cqig2cW7uQZxmYx/OKDn/U06FdCNkLkH2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA8wkG1sxgRtlW7gmem9HizfAg1hfA+ib2n3vu8YN32AIhAJst9/4gWutsCIPVpkRBQWVtAr5xBwcoFIjsSmopaD9a"}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk-0.5.2.tgz_1500168179899_0.6620515575632453"},"directories":{}},"0.5.3":{"name":"redux-saga-thunk","version":"0.5.3","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"5.3.5","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.63.1","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"2249a44fd49f4cf2ad2e386add57db99da881d54","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.5.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-/RtuH0C9yiqG2sf8LKAvf5yHvPX6viKqb9p3XnWwo2hUI/McSOD963/520OVn7jeizp4gMeUDJXMdeW2egcyUg==","shasum":"4ec7396f8240dc3f997f37ffc43caec51bde7297","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.5.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkiR/nm5Pmg+YT3hd9GjRKVnSSwFVwnOivrqbToofe8AiEAkW0bIgGYmfBPV68fr5M5IVwHgkswn67X9hfnFknQV6Y="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk-0.5.3.tgz_1515938101456_0.45590252871625125"},"directories":{}},"0.6.0":{"name":"redux-saga-thunk","version":"0.6.0","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"6.0.0","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.66.0","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"160878b8ed9cb3e73dc3815f98de1496e9ce8d8c","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.6.0","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-bVCiveYXM9tzzBc5d2UQLcEs6Iws5/4HZnvkJWM8rqqjDp2AS9uLyj6WlDaP5hAnUEB/GxlzRnJgcdyMZ/qwkQ==","shasum":"116182a778101a77ce09ac44c03dae2fcd9fcc93","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.6.0.tgz","fileCount":9,"unpackedSize":21267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIpVcQvQwPcW4GVnHNZROS8KyVyXdSRpBMPHSw+wmx5AIhAIWUnbSExJ2Z4R0BeNzta0DRt+N4PnIAWEmMqJXfeoxZ"}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk_0.6.0_1520371054892_0.7876006709749188"},"_hasShrinkwrap":false},"0.6.1":{"name":"redux-saga-thunk","version":"0.6.1","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"https://github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js","index.d.ts"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"6.0.0","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","flow-bin":"^0.66.0","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"e250bb0d03dc3a72d8870d9404d0e1a2540d4d71","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.6.1","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-U66tkhEN90CKFMsdBi0yRaSsegf6FBdUvn7xuenqbyGyrP2S0/7N1Zf9LyHy5r/fyCqRDQ3/Fy1kQvPe11LEXw==","shasum":"6e2772ecc311fdab725a3ff7827893168a632e96","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.6.1.tgz","fileCount":10,"unpackedSize":21970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvV279TfHn/Ygu8/usgsuQxTCdfDtGvIdDtwBsv638AAiEAzl9PEWr5t8iGOtKyBWwUt2CE9VUJXt3PUU+oFGSDg9w="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk_0.6.1_1522340807623_0.7544674116777328"},"_hasShrinkwrap":false},"0.7.0":{"name":"redux-saga-thunk","version":"0.7.0","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"https://github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js","index.d.ts"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"6.0.0","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-prettier":"^2.6.0","flow-bin":"^0.66.0","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","prettier":"^1.11.1","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"eeb379ae7b0e7c2a792ac0b0bfdf4107cdc3035b","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.7.0","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-SrCIpJdZzsBLdDoS3C65ov55VgUq6WKflFlzOMLJj5M1BpDOtncvorPrj3NxZ6OrwdESLeeEKgyRJmrPEE/FJA==","shasum":"ca9122ea5ab7fea37f3f5b1efb10780676311086","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.7.0.tgz","fileCount":10,"unpackedSize":27807,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjYRzW4NJ/KwAXMl5EhVdeoopbL6IG7O/GdaoyFsfhDAIgEqhRzH2EIOiqBzn1gvGO7GeOH2lSxtuVDEvTBRRL69U="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk_0.7.0_1522517951080_0.2844333847131666"},"_hasShrinkwrap":false},"0.7.1":{"name":"redux-saga-thunk","version":"0.7.1","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"https://github.com/diegohaz"},"engines":{"node":">=6"},"files":["dist","index.js","index.d.ts"],"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"6.0.0","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-prettier":"^2.6.0","flow-bin":"^0.66.0","flux-standard-action":"^2.0.1","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","prettier":"^1.11.1","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"057e142da6756372262f5127f7b7bc3a7f6b3369","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.7.1","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-wAmi0aThIpSXWQJpqTgWGvgVa5LMazztmiKHhbSU3m0SfgkByQlCyyg8Z395Mg4+icNSyZJhdNLSyur4YNRW7Q==","shasum":"7d86cb010c034bafd69157a1a5a275c23d1daa44","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.7.1.tgz","fileCount":11,"unpackedSize":30991,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKe5cDfuv+G6SOjSRpzGBSL2x6ZETyuTUOzWXiU6CS3QIhAMSmWm710B+AC+JaIk8yU3VSOVpM5LgIAW9guhHZFlfN"}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk_0.7.1_1522522546028_0.4268470560537361"},"_hasShrinkwrap":false},"0.7.2":{"name":"redux-saga-thunk","version":"0.7.2","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"https://github.com/diegohaz"},"engines":{"node":">=6"},"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"6.0.0","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-prettier":"^2.6.0","flow-bin":"^0.66.0","flux-standard-action":"^2.0.1","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","prettier":"^1.11.1","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"56146488d448aa8c343eee8215e1bdac027baa6d","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.7.2","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-vVqPreyWO/vRcOfaO2rocedH8/nqoaFF3DKObbRuksJl0wbhOMs+hhdxM+uOEDuRc534RpVtEa8dFlMwFhNEDQ==","shasum":"f25049bf68a2b86146b6000765406a0e2b7260f7","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.7.2.tgz","fileCount":11,"unpackedSize":31377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbh9HnCRA9TVsSAnZWagAAl2YP/1au4ClIpujcJw/ufBJQ\nUrhjj4vvTz3ss4xedjtK5niUyHKfBZhNUkoD7vCOJOIzU9Rnyinkm807+vcP\nxEhTAkvxkBKrn3c0bBkqMh+X5HmoqylxBYZmxCywUhAWOmXLrbhD83SiXi+K\nkrrgS/MkF5F5ONZQ5IyMDtw7sQIakvoB0Yi5/aUV41YkIe/nMGh0VlutKZV5\nMIUMdcLOXUsEt5hOr8dF5pFV8kVqxFY0I1p6hvdDLdKUvxyEegR0YXj8yJqh\nI2FiIYsop5PWRiaPRRlBhAdE2QwxfNfUv/99WqKCq19NUZAchHSbBKP5+Xr1\nqwE+M49oYI8xMA7RjTqkwCNKWxd9l2+1sj4AEq3Alyss2o9EWD8ERo5FbJla\n2285IiM2ytiMklLwp1O6yhcVIEpAqiiHeZWO3ICD+aZLOq7nC93VszeDdkMK\nXf59ng71jm0n33C6bhSRwqS1D83D+g6GxvQR34BS9dc+P5+NGW8z0+lYV+Zu\nKNvzPUET24y+C2FWALDqi6rW6JK9dXyWgCD88tvjOy2Il2foS84eeDUSFWvL\nLfFvs5fSwFQvScNWmUZTGk6aEsHaMDXfxTyCr+NGgSUKW7wEIKAoHzyI8C/O\n6C4vJ6Sbz+yAVfg9hooZZhFIx5xJ3b0Fsan3MG2vxywHBMQC4tQ20zPaj9aF\nkysT\r\n=oSJO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDA3tb6hrZGl4T6wB5HeMmLfpCIvzrZg4F9lqvGv3/PyAiBo/bdE60wwvq/zozFulj6xN2Pm25SjoQFQW8EMdvGLxQ=="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk_0.7.2_1535627751182_0.2811428328305614"},"_hasShrinkwrap":false},"0.7.3":{"name":"redux-saga-thunk","version":"0.7.3","description":"Dispatching an action handled by redux-saga returns promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"main":"index.js","author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"https://github.com/diegohaz"},"engines":{"node":">=6"},"scripts":{"test":"jest","coverage":"npm test -- --coverage","postcoverage":"opn coverage/lcov-report/index.html","lint":"eslint src test","flow":"flow check","docs":"documentation readme src --section=API","clean":"rimraf dist","prebuild":"npm run docs && npm run clean","build":"babel src -d dist","watch":"npm-watch","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","prepublish":"npm run lint && npm test && npm run build","postpublish":"git push origin master --follow-tags"},"watch":{"test":"{src,test}/*.js","lint":"{src,test}/*.js","build":"src"},"jest":{"testEnvironment":"node"},"keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"redux":"*"},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^8.2.1","babel-jest":"^22.0.6","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-preset-env":"^1.1.8","babel-preset-stage-2":"^6.18.0","documentation":"6.0.0","eslint":"^4.0.0","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-flowtype-errors":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-prettier":"^2.6.0","flow-bin":"^0.66.0","flux-standard-action":"^2.0.1","jest-cli":"^22.0.6","npm-watch":"^0.3.0","opn-cli":"^3.1.0","prettier":"^1.11.1","redux":"^3.6.0","redux-mock-store":"^1.2.3","redux-saga":"^0.16.0","rimraf":"^2.6.1"},"gitHead":"329befea93cc73974b23655e14fcbdc57db6bd54","bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","_id":"redux-saga-thunk@0.7.3","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"integrity":"sha512-QUjqGVhmiKe85KRk3XAHwhXg2QAM5lncHH/dxYEX2Wydy/zeeP1jHkPQSbumhA0WqFue4ClmnAx/S2saskbtaA==","shasum":"5cf13d843a84b23d59eec42e2dbf384614b4b1b6","tarball":"https://registry.npmjs.org/redux-saga-thunk/-/redux-saga-thunk-0.7.3.tgz","fileCount":11,"unpackedSize":31453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyQk4CRA9TVsSAnZWagAAQOMP/j3GaLNsAnNFvNQlwb7X\npDQ/LJO/vwnwh4RKfo6RjVKk38zICnDsiej8/Uk+dJ1odd6RwEMrXLCFBHu5\nM/39w71HxnwPkw3X7pUgHqD+GpKEN/HMfCfUtwfydSL3LszPmaGMiEa3MF/j\nUFPfu+qjn4iGI19LGQrBxnx0LDtvSRUvfcBrFqXWol7Lmgt8gv+CkEptrWLb\nOL8t6DbUMDKM0DC0OonxRkqySNxoXFwT7OGoLBzwMMrVLONwT3brIn5Th58A\nX2fbyr9YEQyH54bRarlYGi0w0CbXBLaYkx7lmP1psLTXpD4ru38YBxwfNM3q\naX77RT8qN6GZ2a9HGHqGLGVVCdc//ZAW3+F4PhhPymn40wGdIqps6f1yzsJ2\n53ACzDV6FtR3vq5BC175oPYuaw6n7zx8Ja3mGuPdgr0QHRSIX+cxgPAaafYX\nLBjbtdRKTJgtGXC+PTEWrUmFWFwURCbQ/03ifGbRN+zJExOdIYMX51BrWCnK\nJIw+OX+iMN0afzgOyTth65o3tGTu98N+5uiO8cKc6gikItCGeLv7n9AruhAf\nRwNxtLRdKVtVNywswv4we/ay7sZPrS79ebe2wWIbsq6qvNANsYH658WYg528\nwZkj0EjvSYFLtbgcwYzrfABkwBOHI8kUQ1wTIvl8zVeYnnbPNv+7SHDONRrW\nP/pe\r\n=laDk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnVrEUFrCtCg5ZDX3pNXbkONU7Vi1rk/9V5n+VCKtsMgIhAJewjUWCpCWlHd+3XRhIyk88RxU4Lq/LxL16ILOLEDpn"}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-saga-thunk_0.7.3_1539901751367_0.42261116075856675"},"_hasShrinkwrap":false}},"readme":"# redux-saga-thunk\n\n[![Generated with nod](https://img.shields.io/badge/generator-nod-2196F3.svg?style=flat-square)](https://github.com/diegohaz/nod)\n[![NPM version](https://img.shields.io/npm/v/redux-saga-thunk.svg?style=flat-square)](https://npmjs.org/package/redux-saga-thunk)\n[![NPM downloads](https://img.shields.io/npm/dm/redux-saga-thunk.svg?style=flat-square)](https://npmjs.org/package/redux-saga-thunk)\n[![Build Status](https://img.shields.io/travis/diegohaz/redux-saga-thunk/master.svg?style=flat-square)](https://travis-ci.org/diegohaz/redux-saga-thunk) [![Coverage Status](https://img.shields.io/codecov/c/github/diegohaz/redux-saga-thunk/master.svg?style=flat-square)](https://codecov.io/gh/diegohaz/redux-saga-thunk/branch/master)\n\nDispatching an action handled by [redux-saga](https://github.com/redux-saga/redux-saga) returns promise. It looks like [redux-thunk](https://github.com/gaearon/redux-thunk), but with pure action creators.\n\n```js\nclass MyComponent extends React.Component {\n  componentWillMount() {\n    // `doSomething` dispatches an action which is handled by some saga\n    this.props.doSomething().then((detail) => {\n      console.log('Yaay!', detail)\n    }).catch((error) => {\n      console.log('Oops!', error)\n    })\n  }\n}\n```\n\n> `redux-saga-thunk` uses [Flux Standard Action](https://github.com/acdlite/flux-standard-action) to determine action's `payload`, `error` etc.\n\n<br>\n<hr>\n<p align=\"center\">\nIf you find this useful, please don't forget to star ⭐️ the repo, as this will help to promote the project.<br>\nFollow me on <a href=\"https://twitter.com/diegohaz\">Twitter</a> and <a href=\"https://github.com/diegohaz\">GitHub</a> to keep updated about this project and <a href=\"https://github.com/diegohaz?tab=repositories\">others</a>.\n</p>\n<hr>\n<br>\n\n## Motivation\n\nThere are two reasons I created this library: Server Side Rendering and [redux-form](https://github.com/erikras/redux-form).\n\nWhen using [redux-saga](https://github.com/redux-saga/redux-saga) on server, you will need to know when your actions have been finished so you can send the response to the client. There are several ways to handle that case, and `redux-saga-thunk` approach is the one I like most. See [an example](https://github.com/diegohaz/arc/blob/d194b7e9578bdf3ad70a1e0d4c09ceca849f164e/src-example/containers/PostList.js#L33).\n\nWith [redux-form](https://github.com/erikras/redux-form), you need to return a promise from `dispatch` inside your submit handler so it will know when the submission is complete. See [an example](https://github.com/diegohaz/arc/blob/8d46b9e52db3f1066b124b93cf8b92d05094fe1c/src-example/containers/PostForm.js#L10)\n\nFinally, that's a nice way to migrate your codebase from `redux-thunk` to `redux-saga`, since you will not need to change how you dispatch your actions, they will still return promises.\n\n## Install\n\n    $ npm install --save redux-saga-thunk\n\n## Basic setup\n\nAdd `middleware` to your redux configuration (**before redux-saga middleware**):\n\n```js\nimport { createStore, applyMiddleware } from 'redux'\nimport createSagaMiddleware from 'redux-saga'\nimport { middleware as thunkMiddleware } from 'redux-saga-thunk'\n^\n\nconst sagaMiddleware = createSagaMiddleware()\nconst store = createStore({}, applyMiddleware(thunkMiddleware, sagaMiddleware))\n                                              ^\n```\n\n## Usage\n\nYou just need to set `meta.thunk` to `true` on your request actions and put it on your response actions inside the saga:\n\n```js\nconst action = {\n  type: 'RESOURCE_REQUEST',\n  payload: { id: 'foo' },\n  meta: {\n    thunk: true\n    ^\n  }\n}\n\n// send the action\nstore.dispatch(action).then((detail) => {\n  // payload == detail\n  console.log('Yaay!', detail)\n}).catch((e) => {\n  // payload == e\n  console.log('Oops!', e)\n})\n\nfunction* saga() {\n  while(true) {\n    const { payload, meta } = yield take('RESOURCE_REQUEST') \n                     ^\n    try {\n      const detail = yield call(callApi, payload) // payload == { id: 'foo' }\n      yield put({\n        type: 'RESOURCE_SUCCESS',\n        payload: detail,\n        meta\n        ^\n      })\n    } catch (e) {\n      yield put({\n        type: 'RESOURCE_FAILURE',\n        payload: e,\n        error: true,\n        ^\n        meta\n        ^\n      })\n    }\n  }\n}\n```\n\n`redux-saga-thunk` will automatically transform your request action and inject a `key` into it.\n\nYou can also use it inside sagas with [`put.resolve`](https://redux-saga.js.org/docs/api/#putresolveaction):\n\n```js\nfunction *someSaga() {\n  try {\n    const detail = yield put.resolve(action)\n    console.log('Yaay!', detail)\n  } catch (error) {\n    console.log('Oops!', error)\n  }\n}\n```\n\n## Usage with selectors\n\nTo use `pending`, `rejected`, `fulfilled` and `done` selectors, you'll need to add the `thunkReducer` to your store:\n\n```js\nimport { combineReducers } from 'redux'\nimport { reducer as thunkReducer } from 'redux-saga-thunk'\n\nconst reducer = combineReducers({\n  thunk: thunkReducer,\n  // your reducers...\n})\n```\n\nNow you can use selectors on your containers:\n\n```js\nimport { pending, rejected, fulfilled, done } from 'redux-saga-thunk'\n\nconst mapStateToProps = state => ({\n  loading: pending(state, 'RESOURCE_CREATE_REQUEST'),\n  error: rejected(state, 'RESOURCE_CREATE_REQUEST'),\n  success: fulfilled(state, 'RESOURCE_CREATE_REQUEST'),\n  done: done(state, 'RESOURCE_CREATE_REQUEST'),\n})\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [clean](#clean)\n-   [pending](#pending)\n-   [rejected](#rejected)\n-   [fulfilled](#fulfilled)\n-   [done](#done)\n\n### clean\n\nClean state\n\n**Parameters**\n\n-   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `id` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** \n\n**Examples**\n\n```javascript\nconst mapDispatchToProps = (dispatch, ownProps) => ({\n  cleanFetchUserStateForAllIds: () => dispatch(clean('FETCH_USER')),\n  cleanFetchUserStateForSpecifiedId: () => dispatch(clean('FETCH_USER', ownProps.id)),\n  cleanFetchUsersState: () => dispatch(clean('FETCH_USERS')),\n})\n```\n\n### pending\n\nTells if an action is pending\n\n**Parameters**\n\n-   `state` **State** \n-   `name` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | \\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))])>)** \n-   `id` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** \n\n**Examples**\n\n```javascript\nconst mapStateToProps = state => ({\n  fooIsPending: pending(state, 'FOO'),\n  barForId42IsPending: pending(state, 'BAR', 42),\n  barForAnyIdIsPending: pending(state, 'BAR'),\n  fooOrBazIsPending: pending(state, ['FOO', 'BAZ']),\n  fooOrBarForId42IsPending: pending(state, ['FOO', ['BAR', 42]]),\n  anythingIsPending: pending(state)\n})\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### rejected\n\nTells if an action was rejected\n\n**Parameters**\n\n-   `state` **State** \n-   `name` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | \\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))])>)** \n-   `id` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** \n\n**Examples**\n\n```javascript\nconst mapStateToProps = state => ({\n  fooWasRejected: rejected(state, 'FOO'),\n  barForId42WasRejected: rejected(state, 'BAR', 42),\n  barForAnyIdWasRejected: rejected(state, 'BAR'),\n  fooOrBazWasRejected: rejected(state, ['FOO', 'BAZ']),\n  fooOrBarForId42WasRejected: rejected(state, ['FOO', ['BAR', 42]]),\n  anythingWasRejected: rejected(state)\n})\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### fulfilled\n\nTells if an action is fulfilled\n\n**Parameters**\n\n-   `state` **State** \n-   `name` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | \\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))])>)** \n-   `id` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** \n\n**Examples**\n\n```javascript\nconst mapStateToProps = state => ({\n  fooIsFulfilled: fulfilled(state, 'FOO'),\n  barForId42IsFulfilled: fulfilled(state, 'BAR', 42),\n  barForAnyIdIsFulfilled: fulfilled(state, 'BAR'),\n  fooOrBazIsFulfilled: fulfilled(state, ['FOO', 'BAZ']),\n  fooOrBarForId42IsFulfilled: fulfilled(state, ['FOO', ['BAR', 42]]),\n  anythingIsFulfilled: fulfilled(state)\n})\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### done\n\nTells if an action is done\n\n**Parameters**\n\n-   `state` **State** \n-   `name` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | \\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))])>)** \n-   `id` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))** \n\n**Examples**\n\n```javascript\nconst mapStateToProps = state => ({\n  fooIsDone: done(state, 'FOO'),\n  barForId42IsDone: done(state, 'BAR', 42),\n  barForAnyIdIsDone: done(state, 'BAR'),\n  fooOrBazIsDone: done(state, ['FOO', 'BAZ']),\n  fooOrBarForId42IsDone: done(state, ['FOO', ['BAR', 42]]),\n  anythingIsDone: done(state)\n})\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n","maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"time":{"modified":"2022-06-26T10:25:27.353Z","created":"2017-05-18T01:20:02.569Z","0.4.0":"2017-05-18T01:20:02.569Z","0.5.0":"2017-05-31T17:32:04.959Z","0.5.1":"2017-06-15T18:11:39.632Z","0.5.2":"2017-07-16T01:23:01.039Z","0.5.3":"2018-01-14T13:55:01.520Z","0.6.0":"2018-03-06T21:17:34.944Z","0.6.1":"2018-03-29T16:26:47.694Z","0.7.0":"2018-03-31T17:39:11.151Z","0.7.1":"2018-03-31T18:55:46.145Z","0.7.2":"2018-08-30T11:15:51.373Z","0.7.3":"2018-10-18T22:29:11.490Z"},"homepage":"https://github.com/diegohaz/redux-saga-thunk#readme","keywords":["redux-saga-thunk","redux-saga","redux","async","redux-thunk","promise"],"repository":{"type":"git","url":"git+https://github.com/diegohaz/redux-saga-thunk.git"},"author":{"name":"Diego Haz","email":"hazdiego@gmail.com","url":"https://github.com/diegohaz"},"bugs":{"url":"https://github.com/diegohaz/redux-saga-thunk/issues"},"license":"MIT","readmeFilename":"README.md","users":{"westmark":true}}