{"_id":"debounce-action","_rev":"8-08bb2af363bee23b2b3f47b5ba34ad08","name":"debounce-action","description":"Create a debounced Redux action","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"debounce-action","version":"0.0.1","description":"Create a debounced Redux action","main":"lib/index.js","scripts":{"build":"make build","lint":"make lint"},"author":{"name":"Jeff Hanson"},"license":"MIT","devDependencies":{"babel-cli":"^6.23.0","babel-eslint":"^7.1.1","babel-preset-latest":"^6.22.0","babel-preset-react":"^6.23.0","babel-preset-stage-0":"^6.22.0","eslint":"^3.16.1","eslint-config-airbnb":"^14.1.0","eslint-plugin-babel":"^4.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.0"},"repository":{"type":"git","url":"git+https://github.com/jshanson7/debounce-action.git"},"keywords":["action","debounce","redux","lodash"],"dependencies":{"lodash.debounce":"^4.0.8"},"gitHead":"1b004e846e365ae694254875a89e99cd7a20bba1","bugs":{"url":"https://github.com/jshanson7/debounce-action/issues"},"homepage":"https://github.com/jshanson7/debounce-action#readme","_id":"debounce-action@0.0.1","_shasum":"eadaec1b35b14a7a29d8a317255cd8ab5b1d019a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.1.0","_npmUser":{"name":"jshanson7","email":"jshanson7@gmail.com"},"dist":{"shasum":"eadaec1b35b14a7a29d8a317255cd8ab5b1d019a","tarball":"https://registry.npmjs.org/debounce-action/-/debounce-action-0.0.1.tgz","integrity":"sha512-jE2LUfpbY1AWQiBJnkHW76UEC7oNTHUBF2lEpp9nLZXMpholRSPAtgy9Pi1ncC1YfswUM09xPQadnA8TU0rdCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWWd9NeHdOmQ1ZO+rWPuoAc7msp7soZUwQf8CDXwBJaAiBEhZFqEvgXBaTcuYuiHxV7GHO2lurKRKUb56x8cY967A=="}]},"maintainers":[{"name":"jshanson7","email":"jshanson7@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/debounce-action-0.0.1.tgz_1488520228308_0.9904721821658313"},"directories":{}},"0.0.2":{"name":"debounce-action","version":"0.0.2","description":"Create a debounced Redux action","main":"lib/index.js","scripts":{"build":"make build","lint":"make lint"},"author":{"name":"Jeff Hanson"},"license":"MIT","devDependencies":{"babel-cli":"^6.23.0","babel-eslint":"^7.1.1","babel-preset-latest":"^6.22.0","babel-preset-react":"^6.23.0","babel-preset-stage-0":"^6.22.0","eslint":"^3.16.1","eslint-config-airbnb":"^14.1.0","eslint-plugin-babel":"^4.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.0"},"repository":{"type":"git","url":"git+https://github.com/jshanson7/debounce-action.git"},"keywords":["action","debounce","redux","lodash"],"dependencies":{"lodash.debounce":"^4.0.8"},"gitHead":"20f3d76d249b5a94779b9fa6e6d41a839b89fcc6","bugs":{"url":"https://github.com/jshanson7/debounce-action/issues"},"homepage":"https://github.com/jshanson7/debounce-action#readme","_id":"debounce-action@0.0.2","_shasum":"f7a600050428ae38a3a2e2be26de31d0b46d543f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.1.0","_npmUser":{"name":"jshanson7","email":"jshanson7@gmail.com"},"dist":{"shasum":"f7a600050428ae38a3a2e2be26de31d0b46d543f","tarball":"https://registry.npmjs.org/debounce-action/-/debounce-action-0.0.2.tgz","integrity":"sha512-LydSB/5oPSypQf4XnLIsL4qexmI8V/ANcLbvCAFHk6yWuDop/UNNXh1D3ALy1c5zhuSksABlCSKKbef/dXxnuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPsJCKOm8lA+wZEM+YxKA8UkfaFzR2RK0jYfOC7USm1QIhAI7ElKcA7Amn6BsuQjiUh8w++DvrYk1Gkm1hfta7mMnN"}]},"maintainers":[{"name":"jshanson7","email":"jshanson7@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/debounce-action-0.0.2.tgz_1488520404776_0.5587398221250623"},"directories":{}},"0.0.4":{"name":"debounce-action","version":"0.0.4","description":"Create a debounced Redux action","main":"lib/index.js","scripts":{"build":"make build","lint":"make lint"},"author":{"name":"Jeff Hanson"},"license":"MIT","dependencies":{"lodash.debounce":"^4.0.8"},"devDependencies":{"babel-cli":"^6.23.0","babel-eslint":"^7.1.1","babel-preset-latest":"^6.22.0","babel-preset-react":"^6.23.0","babel-preset-stage-0":"^6.22.0","eslint":"^3.16.1","eslint-config-airbnb":"^14.1.0","eslint-plugin-babel":"^4.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.0"},"repository":{"type":"git","url":"git+https://github.com/jshanson7/debounce-action.git"},"keywords":["action","debounce","redux","lodash"],"gitHead":"6ff50e5ef4e8fcd12c59474575bac855c723a687","bugs":{"url":"https://github.com/jshanson7/debounce-action/issues"},"homepage":"https://github.com/jshanson7/debounce-action#readme","_id":"debounce-action@0.0.4","_shasum":"910a242eb92898b28fc2448f06a09ab55812a988","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.1.0","_npmUser":{"name":"jshanson7","email":"jshanson7@gmail.com"},"dist":{"shasum":"910a242eb92898b28fc2448f06a09ab55812a988","tarball":"https://registry.npmjs.org/debounce-action/-/debounce-action-0.0.4.tgz","integrity":"sha512-ILkjU7ZC9+J5HFgqi6AiAbDD1IKGs28PsUb410Nq0AW2lTaB72/1Cm/F5G1+LbMDlMPQlIO2X94l6o8GQ55IeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjhU1jG+WMJNRMHxY4fD6b+R9p0RxTtZPl/if47bqYbgIhALDd1sMX2GqE7ZMjhw/8MPI64FjHp7HnztEkraKaio/P"}]},"maintainers":[{"name":"jshanson7","email":"jshanson7@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/debounce-action-0.0.4.tgz_1488521465096_0.6814449322409928"},"directories":{}},"0.0.5":{"name":"debounce-action","version":"0.0.5","description":"Create a debounced Redux action","main":"lib/index.js","scripts":{"build":"make build","lint":"make lint"},"author":{"name":"Jeff Hanson"},"license":"MIT","dependencies":{"lodash.debounce":"^4.0.8"},"devDependencies":{"babel-cli":"^6.23.0","babel-eslint":"^7.1.1","babel-preset-latest":"^6.22.0","babel-preset-react":"^6.23.0","babel-preset-stage-0":"^6.22.0","eslint":"^3.16.1","eslint-config-airbnb":"^14.1.0","eslint-plugin-babel":"^4.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.0"},"repository":{"type":"git","url":"git+https://github.com/jshanson7/debounce-action.git"},"keywords":["debounce","action","redux","thunk","lodash"],"gitHead":"4dee837090a0ca34ad300319e8a6803bcda27793","bugs":{"url":"https://github.com/jshanson7/debounce-action/issues"},"homepage":"https://github.com/jshanson7/debounce-action#readme","_id":"debounce-action@0.0.5","_shasum":"5196000f0133781c432522044637e0e4dd097fdf","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.1.0","_npmUser":{"name":"jshanson7","email":"jshanson7@gmail.com"},"dist":{"shasum":"5196000f0133781c432522044637e0e4dd097fdf","tarball":"https://registry.npmjs.org/debounce-action/-/debounce-action-0.0.5.tgz","integrity":"sha512-QsFu9zZ9xVjsY8QuxlIbfRHC70dfbwRUsE04FcMa5NZjzg71SICmMCU66hsHwOAhLWb51wqZ7hpmfSlqMDGOYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDe6qQTOaM4bRIgcG1Zf4MYxULJRncGcMhgveFF5HOuTAIgLtFE0TiRB07aiU3EluU0cd0U8VmOZrt+FUfTh6Wp12I="}]},"maintainers":[{"name":"jshanson7","email":"jshanson7@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/debounce-action-0.0.5.tgz_1488522177341_0.8723532187286764"},"directories":{}},"0.1.0":{"name":"debounce-action","version":"0.1.0","description":"Create a debounced Redux action","main":"lib/index.js","scripts":{"build":"make build","lint":"make lint"},"author":{"name":"Jeff Hanson"},"license":"MIT","dependencies":{"lodash.debounce":"^4.0.8"},"devDependencies":{"babel-cli":"^6.23.0","babel-eslint":"^7.1.1","babel-preset-latest":"^6.22.0","babel-preset-react":"^6.23.0","babel-preset-stage-0":"^6.22.0","eslint":"^3.16.1","eslint-config-airbnb":"^14.1.0","eslint-plugin-babel":"^4.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.0"},"repository":{"type":"git","url":"git+https://github.com/jshanson7/debounce-action.git"},"keywords":["debounce","action","redux","thunk","lodash"],"gitHead":"fef16a75692dfb73352e443e94e707c2c2699e3c","bugs":{"url":"https://github.com/jshanson7/debounce-action/issues"},"homepage":"https://github.com/jshanson7/debounce-action#readme","_id":"debounce-action@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"jshanson7","email":"jshanson7@gmail.com"},"dist":{"integrity":"sha512-fjw4BUnZpRihUtKV53Nq2/liJoG8lTnDVpEMw7V2VS5q4Yr4lrPRIa5r344rth72ANOjuMV59YrvQp7ozIxQtg==","shasum":"4dcd82b7a643939f131effdbb0a4fceaa88ce12d","tarball":"https://registry.npmjs.org/debounce-action/-/debounce-action-0.1.0.tgz","fileCount":7,"unpackedSize":6085,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwHSJUiWnmsjyhPTb/zpgIzMwD1DNP6d0z1qzlLp1HMAiEAg8R7XhSpgub4cvZQlI7bD2swtQ1D+fCrcg0lSgXpPlo="}]},"maintainers":[{"name":"jshanson7","email":"jshanson7@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/debounce-action_0.1.0_1519328235644_0.7699266314200695"},"_hasShrinkwrap":false}},"readme":"# Debounce Action [![NPM version][npm-image]][npm-url]\n\nCreate debounced [redux-thunk](https://github.com/gaearon/redux-thunk) actions.  Debounced actions will delay being dispatched until after `wait` milliseconds have elapsed since the last time the debounced action was dispatched.\n\n## Installation\n\n```sh\nnpm i --save debounce-action\n```\n\n## Usage\n\n```javascript\nimport debounceAction from 'debounce-action';\n\nconst INCREMENT_COUNTER = 'INCREMENT_COUNTER';\n\nfunction increment() {\n  return {\n    type: INCREMENT_COUNTER\n  };\n}\n\nfunction incrementThunk() {\n  return dispatch => {\n    dispatch(increment());\n  };\n}\n\n// wrap normal actions with debounceAction() to create debounced actions\nconst incrementDebounced = debounceAction(increment, 1000);\nconst incrementThunkDebounced = debounceAction(incrementThunk, 5000, {leading: true});\n\n// call debounced actions like normal redux actions\nimport {createStore, applyMiddleware} from 'redux';\nimport thunk from 'redux-thunk';\nimport rootReducer from './reducers';\n\nconst store = createStore(\n  rootReducer,\n  applyMiddleware(thunk)\n);\n\nstore.dispatch(incrementDebounced());\nstore.dispatch(incrementDebounced());\n// --> INCREMENT_COUNTER dispatched once after one second\n\nstore.dispatch(incrementThunkDebounced());\n// --> INCREMENT_COUNTER dispatched immediately\nstore.dispatch(incrementThunkDebounced());\nstore.dispatch(incrementThunkDebounced());\n// --> INCREMENT_COUNTER dispatched once again after five seconds\n```\n\nUses [lodash's `debounce`](https://lodash.com/docs/4.17.4#debounce).\n\n## License\n\nMIT\n\n[npm-image]: https://badge.fury.io/js/debounce-action.svg\n[npm-url]: https://npmjs.org/package/debounce-action\n","maintainers":[{"name":"jshanson7","email":"jshanson7@gmail.com"}],"time":{"modified":"2022-06-14T22:03:10.799Z","created":"2017-03-03T05:50:30.150Z","0.0.1":"2017-03-03T05:50:30.150Z","0.0.2":"2017-03-03T05:53:26.798Z","0.0.4":"2017-03-03T06:11:06.869Z","0.0.5":"2017-03-03T06:22:57.592Z","0.1.0":"2018-02-22T19:37:15.762Z"},"homepage":"https://github.com/jshanson7/debounce-action#readme","keywords":["debounce","action","redux","thunk","lodash"],"repository":{"type":"git","url":"git+https://github.com/jshanson7/debounce-action.git"},"author":{"name":"Jeff Hanson"},"bugs":{"url":"https://github.com/jshanson7/debounce-action/issues"},"license":"MIT","readmeFilename":"README.md"}