{"name":"redux-devtools-instrument","version":"1.9.7","description":"Redux DevTools instrumentation","main":"lib/instrument.js","scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","test":"jest","prepare":"npm run build","prepublishOnly":"npm run test && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/reduxjs/redux-devtools.git"},"keywords":["redux","devtools","flux","hot reloading","time travel","live edit"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/reduxjs/redux-devtools/issues"},"homepage":"https://github.com/reduxjs/redux-devtools","devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","babel-loader":"^8.1.0","expect":"^26.2.0","jest":"^26.2.2","redux":"^4.0.5","rimraf":"^3.0.2","rxjs":"^6.6.2"},"dependencies":{"lodash":"^4.17.19","symbol-observable":"^1.2.0"},"gitHead":"d8da887da86441c890e0820aa9f924f6ebbad8e7","_id":"redux-devtools-instrument@1.9.7","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (win32)","dist":{"integrity":"sha512-QUc2GwRy7I1zhUVsrsRzopptOzT7kTYkLhKoO2Z1sNChVRrbzV0BKwyyQPShpsRrxvpl2ZF1qn93I688AWn4dg==","shasum":"ea3103c27da3ad2d37e197a885430fa43a0c9580","tarball":"http://registry-npm.ywwl.com/redux-devtools-instrument/download/redux-devtools-instrument-1.9.7.tgz","fileCount":6,"unpackedSize":57964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNqRBCRA9TVsSAnZWagAA8pwP/3GO08xfj3tVRzFp6+pr\nHPSMarl/GjmcUoVDW8sh4IYq9hh/N20+UYMUSRUZAXRzPtJO56C2E9kbX+T9\nuTCA2QTp1rE4G62dzNeD5le6BgI/WZinsZITvo9pOtvuKrifU+De7XGqmIcy\nR1nHXJ52htZ7FsPTKZcqZgmKId2qu+l6cCt/78UtERN1Cz/4/OkKKOfvWIkQ\nz7nCaBlFM4/RTaaJc/jlTXF1hcJwgA4kjLLlSmcjOUTpXG7c5Wd0O43fZngW\n3Mby1iXHYwvTcKRbbhCejw5B0nHoW9xLiTDMcMGkmTTktOSh3nyA1vN3sos0\nuKv/3qlxYoZ8hyBBNjBul2yMBF3HCqYiAT+J/ZnMuF4lT87ba3GnL5nqwacZ\nGL9KGRGXCfhcnZt01f4onZwpRmRArJK1qTqpZ7Q9VKEEVjP56UiccFx28+Ii\n4j1QObOmDVSJRLgq/FEuqA+uxk/P40MWBy5KDMQTCxI0/IYQ4H0H3Y916UtI\nbDY8TOGm63NMsEFVEVPVcp2YqMIynIBQKMN5hoS4taNRgyc1IBufi5jUEzET\nBvYkONC95OOUwmtDXqgCGlub824LB6WwjLyDgx8Gxg5BpMDudFdWo3cHw9bw\n9b6CItI7GNBecnc/AK/52wb2cqwbNWyOMly1MM2DymL5eY7GO2OY4MW+q8FN\nCFqZ\r\n=ABUN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxVGghjXMOY+LHq4LC4sLvU6tIWSJoRHA5v2HJWFSv/AIgA7fLOi5c2yWUn9JQ3Paw59oaENUu0X2aKnirET48+qA="}],"size":11640,"noattachment":false,"key":"/redux-devtools-instrument/-/redux-devtools-instrument-1.9.7.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"_npmUser":{"name":"methuselah96","email":"nbierema@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-devtools-instrument_1.9.7_1597416513062_0.5317483943834247"},"_hasShrinkwrap":false,"deprecated":"Package moved to @redux-devtools/instrument.","readme":"# Redux DevTools Instrumentation\n\nRedux enhancer used along with [Redux DevTools](https://github.com/reduxjs/redux-devtools) or [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools).\n\n### Installation\n\n```\nnpm install --save-dev redux-devtools-instrument\n```\n\n### Usage\n\nAdd the store enhancer:\n\n##### `store/configureStore.js`\n\n```js\nimport { createStore, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport devTools from 'remote-redux-devtools';\nimport reducer from '../reducers';\n\n// Usually you import the reducer from the monitor\n// or apply with createDevTools as explained in Redux DevTools\nconst monitorReducer = (state = {}, action) => state;\n\nexport default function configureStore(initialState) {\n  const enhancer = compose(\n    applyMiddleware(...middlewares),\n    // other enhancers and applyMiddleware should be added before the instrumentation\n    instrument(monitorReducer, { maxAge: 50 })\n  );\n\n  // Note: passing enhancer as last argument requires redux@>=3.1.0\n  return createStore(reducer, initialState, enhancer);\n}\n```\n\n### API\n\n`instrument(monitorReducer, [options])`\n\n- arguments\n  - **monitorReducer** _function_ called whenever an action is dispatched ([see the example of a monitor reducer](https://github.com/gaearon/redux-devtools-log-monitor/blob/master/src/reducers.js#L13)).\n  - **options** _object_\n    - **maxAge** _number_ or _function_(currentLiftedAction, previousLiftedState) - maximum allowed actions to be stored on the history tree, the oldest actions are removed once `maxAge` is reached. Can be generated dynamically with a function getting current action as argument.\n    - **shouldCatchErrors** _boolean_ - if specified as `true`, whenever there's an exception in reducers, the monitors will show the error message, and next actions will not be dispatched.\n    - **shouldRecordChanges** _boolean_ - if specified as `false`, it will not record the changes till `pauseRecording(false)` is dispatched. Default is `true`.\n    - **pauseActionType** _string_ - if specified, whenever `pauseRecording(false)` lifted action is dispatched and there are actions in the history log, will add this action type. If not specified, will commit when paused.\n    - **shouldStartLocked** _boolean_ - if specified as `true`, it will not allow any non-monitor actions to be dispatched till `lockChanges(false)` is dispatched. Default is `false`.\n    - **shouldHotReload** _boolean_ - if set to `false`, will not recompute the states on hot reloading (or on replacing the reducers). Default to `true`.\n    - **trace** _boolean_ or _function_ - if set to `true`, will include stack trace for every dispatched action. You can use a function (with action object as argument) which should return `new Error().stack` string, getting the stack outside of reducers. Default to `false`.\n    - **traceLimit** _number_ - maximum stack trace frames to be stored (in case `trace` option was provided as `true`). By default it's `10`. If `trace` option is a function, `traceLimit` will have no effect, that should be handled there like so: `trace: () => new Error().stack.split('\\n').slice(0, limit+1).join('\\n')` (`+1` is needed for Chrome where's an extra 1st frame for `Error\\n`).\n\n### License\n\nMIT\n","publish_time":1597416513192,"_cnpm_publish_time":1597416513192,"dist-tags":{"beta":"1.2.0-beta-1","latest":"1.10.0"}}