{"name":"redux-devtools-instrument","version":"1.10.0","description":"Redux DevTools instrumentation","keywords":["redux","devtools","flux","hot reloading","time travel","live edit"],"homepage":"https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-instrument","bugs":{"url":"https://github.com/reduxjs/redux-devtools/issues"},"license":"MIT","author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"main":"lib/instrument.js","types":"lib/instrument.d.ts","repository":{"type":"git","url":"git+https://github.com/reduxjs/redux-devtools.git"},"scripts":{"build":"npm run build:types && npm run build:js","build:types":"tsc --emitDeclarationOnly","build:js":"babel src --out-dir lib --extensions \".ts\" --source-maps inline","clean":"rimraf lib","test":"jest","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix","type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","preversion":"npm run type-check && npm run lint && npm run test","prepublishOnly":"npm run clean && npm run build"},"dependencies":{"lodash":"^4.17.19","symbol-observable":"^1.2.0"},"devDependencies":{"@types/lodash":"^4.14.159","jest":"^26.2.2","redux":"^4.0.5","rxjs":"^6.6.2"},"peerDependencies":{"redux":"^3.4.0 || ^4.0.0"},"gitHead":"f4405ac0f016b7997e1a6d31796aa99ad632889e","_id":"redux-devtools-instrument@1.10.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (win32)","dist":{"integrity":"sha512-X8JRBCzX2ADSMp+iiV7YQ8uoTNyEm0VPFPd4T854coz6lvRiBrFSqAr9YAS2n8Kzxx8CJQotR0QF9wsMM+3DvA==","shasum":"036caf79fa1e5f25ec4bae38a9af4f08c69e323a","tarball":"http://registry-npm.ywwl.com/redux-devtools-instrument/download/redux-devtools-instrument-1.10.0.tgz","fileCount":7,"unpackedSize":147111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVmSfCRA9TVsSAnZWagAAd+UP/15E0LhtJGoZN16BJue7\nmnE2JYDPIJjjmcbbbDRkmO70F3mIWt/f8p1kmE9/tvEKSCxEyiHUjFaG+uhC\nGdk++ZHVj/spHDwFCk1s3+bB48BvZK9zLINNn6IySUt0CNdL3NRVzm3dYrVO\nEaPC5pBMukes5UnliycWR9PMBg8foalpUlYoe1JOYA9LCpFqju1NZlCmTK9v\nwI3aaJzd+rrkcfrcz+IybmMt7OGpuYWDsoNH9VMGM0mr68P/SGMh69IkB+cZ\nNTcze3hS0og6VZhdJf+SDAqWMVVu8jlwSOueufn21kMZx4qGSEUHHeTy9Zos\nVyZywk/f9quE1dbaPAQz2uKkf2e0bABRGJ4JuQq5mAELTat/98Hsp1e6/Gy9\nzQ2KZg4IaJdp8sAl5R/6OCmAV0ACb6vRYnkEpRvFPZkY7fmAk/ipF/AezVuy\n0Gtn/kBOEpMB2pu9emyD5iJXBiAggrnJtFqUVVq+lfIXahSd9gRzs3qXS033\n5m1ozculpMVrB7gcBQohugFdMea3No7cVNDsVxDFV4lcmEOl1DkF1PiARGNx\naxj473hh9PbDqQ6AEjuuWYK+my65nQmTRuS5qC+g0NGzOmgwzBZZdSRWm/Y1\nB3Bus6Mm4rmx83hAuIkECxraWuLTfvP9bIkQmywXp3zzW6vrWhZuh92+jrAe\na/R/\r\n=QBRM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGzfHalovCt6V+reUtaRkQ63FO4V6dRdVcrV63ghUqSAiAt7lukeVK26VgNJ9SKbM8W28O5ZhAxuNaZphBdB6aZEA=="}],"size":39551,"noattachment":false,"key":"/redux-devtools-instrument/-/redux-devtools-instrument-1.10.0.tgz"},"maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"},{"name":"timdorr","email":"timdorr@timdorr.com"},{"name":"jhen0409","email":"iainst0409@gmail.com"},{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},{"name":"methuselah96","email":"nbierema@gmail.com"}],"_npmUser":{"name":"methuselah96","email":"nbierema@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-devtools-instrument_1.10.0_1599497374726_0.9069810750195888"},"_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":1599497374876,"_cnpm_publish_time":1599497374876,"dist-tags":{"beta":"1.2.0-beta-1","latest":"1.10.0"}}