{"_id":"@asayerio/redux","_rev":"2-473d3807dd80889a43e739ec00dd920d","name":"@asayerio/redux","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@asayerio/redux","description":"Redux middleware for Asayer","version":"1.0.0","keywords":["asayer"],"main":"lib/index.js","scripts":{"prettier":"prettier --write lib/*.js"},"repository":{"type":"git","url":"git+https://github.com/asayerio/redux.git"},"author":{"name":"Alex Tsokurov","email":"alex@asayer.io"},"license":"MIT","bugs":{"url":"https://github.com/asayerio/redux/issues"},"homepage":"https://github.com/asayerio/redux#readme","prettier":{"singleQuote":true,"trailingComma":"all"},"devDependencies":{"prettier":"^1.18.2"},"dependencies":{"deep-diff":"^1.0.2"},"gitHead":"d6f441bd48a75bcd9d4acb687602ec8143ff3309","_id":"@asayerio/redux@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ximik","email":"me@ximik.net"},"dist":{"integrity":"sha512-rE9fqwRh6cQ17al3fdbInNh3j41rNxDewLt0n6w5qFVwBFgb09ShkX4q+P1IcRV2GethPFsH+D87KOclDwFpvw==","shasum":"b45ffa5679538bc1ca286cc46be3640aef43c2c1","tarball":"https://registry.npmjs.org/@asayerio/redux/-/redux-1.0.0.tgz","fileCount":4,"unpackedSize":3544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjOxDCRA9TVsSAnZWagAA4BkP/Rq40MkHCvCnwkELdt0M\n8tryc8sKA4+xa9vMf++As6YxRzNIXETlHC+JA4+Bb4U2c7kTHedFf+9jtCgu\nlx2XUp+Vqu1I8AB7XPzSwhQr7qc/YVcTzaWcvY0KyIckgMW3nW9Uk7MsPcJW\njeb5YSX5wuLDSdESUPrgRknDbUH2Tj+g51y+KeX1pHpsYgTpLa2NXVfAUZHC\nj+nHe9PG3dvm6aGSQZEbITkni9+whcILn+czlyi3yDBTQfXp8sMK1r9yAA09\nSQIdh23ST8IA/ciVHVT7dh0QBRaOiTS8i8qM888kiegFksH1cOXT8f8HQYHO\nF20IEbSk4xkvjJ0rhV13tidsb4ouQnJbCTezjLnwR32lNCpzrUJjeoLYEZBk\nV7bsPjm6Zs0oiowrWJGRpZsWi/oOZ1frgLSSDTdUqDv98fIZ4ZfyLX0/YADa\nSHzExfRpgGCnvfRDtMQt2j1UHTkJOk6Mn1qHU8VTNbVoobITeMJRDGp8rG+Z\nWU9O038KWDhRAzDp324IDFJNEMMnFb4JR/el0Hc34QaVVA5wFSGUEM+BBr3H\nB9tXPqR1PoGLw+5uCU/JM/bEX7WiHrR6SH1LhlEEWJaAwcu1Niym6/ZZW5LQ\nqXuy+VKBwtANvZhWzpxE9KfZdR3jsCV4V2ObOLIoTvUwH5Y8bbbTSzvpe9uA\nYG3x\r\n=mivx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdY6mErDIexDrPSPXMH4lS3dSTAsGN95r1HZSk4dYjLAiEAw9JNhERW93fFqfAUcW3hmp0r4vfP+ki5UDpZLq1JiRw="}]},"maintainers":[{"name":"ximik","email":"me@ximik.net"},{"name":"tahayk","email":"tahayk2@gmail.com"},{"name":"estradino","email":"support@asayer.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux_1.0.0_1569516610888_0.5404403309046943"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-26T16:50:10.595Z","1.0.0":"2019-09-26T16:50:10.987Z","modified":"2022-04-04T15:42:51.948Z"},"maintainers":[],"description":"Redux middleware for Asayer","homepage":"https://github.com/asayerio/redux#readme","keywords":["asayer"],"repository":{"type":"git","url":"git+https://github.com/asayerio/redux.git"},"author":{"name":"Alex Tsokurov","email":"alex@asayer.io"},"bugs":{"url":"https://github.com/asayerio/redux/issues"},"license":"MIT","readme":"# Asayer Redux\nA Redux middleware for Asayer.\nThis middleware allowed you to see your application state during session replay.\n\n## Installation\n```bash\nnpm i @asayerio/redux --save\n```\n\n## Usage\nInitialize the `@asayerio/js` package and then put the middleware into your Redux chain\n\n```js\nimport { applyMiddleware, createStore } from 'redux';\nimport createMiddleware from '@asayerio/redux';\n\nconst store = createStore(\n  reducer,\n  applyMiddleware(createMiddleware()),\n);\n```\n\nYou can customize the middleware behaviour with options to sanitize your data.\n\n```js\ncreateMiddleware({\n  actionFilter: action => action.type !== 'DRAW', // only actions which pass this test will be recorded\n  actionTransformer: action => action.type === 'LOGIN' ? { type: 'LOGIN' } : action,\n  stateTransformer: state => {\n    const { jwt, ..._state } = state;\n    return _state;\n  },\n})\n```\n","readmeFilename":"README.md"}