{"name":"redux-devtools-instrument","version":"1.9.6","description":"Redux DevTools instrumentation","main":"lib/instrument.js","scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","lint":"eslint src test","test":"NODE_ENV=test mocha --compilers js:babel-core/register --recursive","test:watch":"NODE_ENV=test mocha --compilers js:babel-core/register --recursive --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive","prepare":"npm run build","prepublishOnly":"npm run lint && 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":"^6.3.17","babel-core":"^6.3.17","babel-eslint":"^4.1.6","babel-loader":"^6.2.0","babel-preset-es2015-loose":"^6.1.3","babel-preset-stage-0":"^6.3.13","eslint":"^0.23","eslint-config-airbnb":"0.0.6","eslint-plugin-react":"^2.3.0","expect":"^1.6.0","isparta":"^3.0.3","mocha":"^2.2.5","redux":"^4.0.0","rimraf":"^2.3.4","rxjs":"^5.0.0-beta.6","webpack":"^1.11.0"},"dependencies":{"lodash":"^4.2.0","symbol-observable":"^1.0.2"},"_id":"redux-devtools-instrument@1.9.6","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"integrity":"sha512-MwvY4cLEB2tIfWWBzrUR02UM9qRG2i7daNzywRvabOSVdvAY7s9BxSwMmVRH1Y/7QWjplNtOwgT0apKhHg2Qew==","shasum":"6b412595f74b9d48cfd4ecc13e585b1588ed6e7e","tarball":"http://registry-npm.ywwl.com/redux-devtools-instrument/download/redux-devtools-instrument-1.9.6.tgz","fileCount":5,"unpackedSize":54993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcS4eiCRA9TVsSAnZWagAAoJYP/Rf+KVTKM+VeoD6JQFKa\nqFdhFEXsqkCdg1PgCQKLKhwaepCEVQxZPoJ0hBPy90sQxNTgqSUc6buMRJ40\nE5uW7miWQpcUpqdjH4nUc+WvfkcHCWVHp+A7aRJTUBX6wKnFgAon6D45rcbY\nOLJUReTIuVaMtrc9O1L4AIEgorV4qfAfj5sRUUFcBTNN40/0d70IzE+pS3dw\nHivhND7SAqTnduMre0y2quo4ufxgV5gDo0617kuAZjfLUi8s3Jg3+uPTZAeI\nWVgNT5iDn51Dr7pOk+HW/WZd0BlgW+xTCQnhyk3qppqUsxfZYx/h9/hiZzRW\nX4JkpRUsfsh1UAW8JyBogy8v44go8Uw98cWeun6w+U07zUeFzLTzJehjTGJL\nHhN/sEdUg7lPS9v/xarZT4yv715VBWXYWvoovZC7EAB9/2WcQhCiIoRcglBA\np572NRxUkqbqCBROcWr8WU+WFIV1HOicFhDmOhmFjcYfdWEP+fTPbrxTyu79\nnlbC+Pln0pqU/LT7ZW74aXUpdVts1/BkOgaHB/wFUfKu9iAiqKgE1HGT8Dmh\nUMXaEVkANItXD5bWoHBi8KgZm8qPdLgzyaAKX7wqn/6EfBb62E1MKpkq3to1\nRGHA+xWcBTGM8yk1GxKs1ZquH4ABu0FmbCYhrAsHbE6QKA0zTmFlnJDBHLa+\nbc3A\r\n=Pdo8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1EElqYsNWCgxmFXP3TQ4SNRdFSTJSujeeHcm+A7Sw9gIgUcgPrW1wsEK91BHQqIXnE39P0GcVoYtHsELE9xqJ7b0="}],"size":10525,"noattachment":false,"key":"/redux-devtools-instrument/-/redux-devtools-instrument-1.9.6.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-devtools-instrument_1.9.6_1548453793605_0.8264023344938918"},"_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":1548453793754,"_cnpm_publish_time":1548453793754,"dist-tags":{"beta":"1.2.0-beta-1","latest":"1.10.0"}}