{"_id":"redux-action-logging","_rev":"4-abaa28f237cbe33f405d8ac2c5c2825e","name":"redux-action-logging","description":"Redux testing utility middleware to log actions received by a store without mocking that store.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"redux-action-logging","version":"0.1.0","description":"Redux testing utility middlware to log actions received by a store without mocking that store.","main":"lib/index.js","scripts":{"compile":"babel -d lib/ src/","test":"mocha --compilers js:babel-core/register tests/*.js"},"babel":{"presets":["es2015"]},"author":{"name":"Scott Luptowski"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/madebymany/redux-action-logging.git"},"homepage":"https://github.com/madebymany/redux-action-logging","keywords":["redux","middleware","redux-action-logging","redux-middleware"],"dependencies":{"lodash":"^4.11.1"},"devDependencies":{"babel-cli":"^6.7.5","babel-core":"^6.7.6","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","redux":"^3.5.1","redux-thunk":"^2.0.1"},"gitHead":"127b08e2cec5b5dc5d21a9920526b87c847b072d","bugs":{"url":"https://github.com/madebymany/redux-action-logging/issues"},"_id":"redux-action-logging@0.1.0","_shasum":"84a093794887acbf1cb018d049caef81c4750d76","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.0.0","_npmUser":{"name":"scottluptowski","email":"scottluptowski@gmail.com"},"dist":{"shasum":"84a093794887acbf1cb018d049caef81c4750d76","tarball":"https://registry.npmjs.org/redux-action-logging/-/redux-action-logging-0.1.0.tgz","integrity":"sha512-UTf0B7gOEhXEN3TCcZlxrLmryyfryEoYfvrn3K0r0Nvbl0DX5Yldwatumf8JRxw4LZ7Ri8XloPsTOIKrwisB2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGM1Fi2MZ8jq3bQ/WRhVqF/+js9+WYTJ4Ykq4dkHtQfTAiBBjNVmcHuZBGXULv/nb+7wnRg2Putr6M0QyVUjNI2log=="}]},"maintainers":[{"name":"scottluptowski","email":"scottluptowski@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/redux-action-logging-0.1.0.tgz_1461694606255_0.011360005475580692"}},"0.1.1":{"name":"redux-action-logging","version":"0.1.1","description":"Redux testing utility middleware to log actions received by a store without mocking that store.","main":"lib/index.js","scripts":{"compile":"babel -d lib/ src/","test":"mocha --compilers js:babel-core/register tests/*.js"},"babel":{"presets":["es2015"]},"author":{"name":"Scott Luptowski"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/madebymany/redux-action-logging.git"},"homepage":"https://github.com/madebymany/redux-action-logging","keywords":["redux","middleware","redux-action-logging","redux-middleware"],"dependencies":{"lodash":"^4.11.1"},"devDependencies":{"babel-cli":"^6.7.5","babel-core":"^6.7.6","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","redux":"^3.5.1","redux-thunk":"^2.0.1"},"gitHead":"8e5a75ec76ce124b7bc0969b2d8f16613bd7c1cf","bugs":{"url":"https://github.com/madebymany/redux-action-logging/issues"},"_id":"redux-action-logging@0.1.1","_shasum":"9e9de0a37a0383fcfd97d8aa7d6c0014476cf6fa","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.0.0","_npmUser":{"name":"scottluptowski","email":"scottluptowski@gmail.com"},"dist":{"shasum":"9e9de0a37a0383fcfd97d8aa7d6c0014476cf6fa","tarball":"https://registry.npmjs.org/redux-action-logging/-/redux-action-logging-0.1.1.tgz","integrity":"sha512-A9afqF2NEbXXhR2MncBVa7xHMnoDRLKY0g59EGSHW8oVPcQpwv/0SL6VrrQkYsMpac/7bZspamsH0fHLrqvNBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr6O7kpcVT6QdHehSVE7t6tP19JGDuLJ7lL76g7D1tFgIhAINGZAoWoxoT4RfLgQM2fisB4ijz9rnpOBNGdkRsO37A"}]},"maintainers":[{"name":"scottluptowski","email":"scottluptowski@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/redux-action-logging-0.1.1.tgz_1461694796232_0.3618017751723528"}}},"readme":"# redux-action-logging\n\nRedux testing utility middlware to log actions received by a store without mocking that store.\n\n### Installation\n\n`npm install redux-action-logging`\n\nAdd redux-action-logging to your middleware chain. You likely only want to do this in your test suite and not in production\n\n```js\nimport { createStore, applyMiddleware } from \"redux\"\nimport reducer from \"./reducer\"\n\nimport {\n  storeActionsMiddleware,\n  storeActions\n} from \"redux-action-logging\"\n\nconst middlewares = [storeActionsMiddleware]\nstore = applyMiddleware(...middlewares)(createStore)(reducer)\n```\n\n### Usage\n\n```js\n// Given these actions sent to your store:\nstore.dispatch({ type: FOO })\nstore.dispatch({ type: BAR })\nstore.dispatch({ type: BAZ, value: 10 })\nstore.dispatch((dispatch, getState) => dispatch({type: QUX }))\n\n// These return true:\nstoreActions.has(FOO)\nstoreActions.has(FOO, BAR)\nstoreActions.has(BAZ, BAR)\nstoreActions.has({ type: BAZ, value: 10 })\nstoreActions.has(QUX)\nstoreActions.has(\n  BAR,\n  { type: BAZ, value: 10}\n)\n\n// These return false:\nstoreActions.has(XYZZY)\nstoreActions.has(FOO, XYZZY)\nstoreActions.has({ type: BAZ, value: 5 })\nstoreActions.has(\n  BAR,\n  { type: BAZ, value: 5}\n)\n\n\nstoreActions.actions() // returns array of all actions received by your store\nstoreActions.clear()   // clears array\n```\n\n### License\n\nMIT\n","maintainers":[{"name":"scottluptowski","email":"scottluptowski@gmail.com"}],"time":{"modified":"2022-06-26T09:56:51.988Z","created":"2016-04-26T18:16:47.220Z","0.1.0":"2016-04-26T18:16:47.220Z","0.1.1":"2016-04-26T18:19:58.641Z"},"homepage":"https://github.com/madebymany/redux-action-logging","keywords":["redux","middleware","redux-action-logging","redux-middleware"],"repository":{"type":"git","url":"git+https://github.com/madebymany/redux-action-logging.git"},"author":{"name":"Scott Luptowski"},"bugs":{"url":"https://github.com/madebymany/redux-action-logging/issues"},"license":"MIT","readmeFilename":"README.md"}