feat(tracker-redux):3.5.0:clear encoder on stop
This commit is contained in:
parent
1799a4a566
commit
732d31684b
4 changed files with 1150 additions and 10 deletions
1147
tracker/tracker-redux/package-lock.json
generated
1147
tracker/tracker-redux/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker-redux",
|
||||
"description": "Tracker plugin for Redux state recording",
|
||||
"version": "3.4.8",
|
||||
"version": "3.5.0",
|
||||
"keywords": [
|
||||
"redux",
|
||||
"logging",
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"@openreplay/tracker": "^3.4.8",
|
||||
"@openreplay/tracker": "^3.5.0",
|
||||
"redux": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openreplay/tracker": "^3.4.8",
|
||||
"@openreplay/tracker": "^3.5.0",
|
||||
"prettier": "^1.18.2",
|
||||
"replace-in-files-cli": "^1.0.0",
|
||||
"typescript": "^4.6.0-dev.20211126"
|
||||
|
|
|
|||
|
|
@ -23,8 +23,11 @@ export default function(opts: Partial<Options> = {}) {
|
|||
return () => next => action => next(action);
|
||||
}
|
||||
const encoder = new Encoder(sha1, 50);
|
||||
app.attachStopCallback(() => {
|
||||
encoder.clear()
|
||||
})
|
||||
return ({ getState }) => next => action => {
|
||||
if (!options.actionFilter(action)) {
|
||||
if (!app.active() || !options.actionFilter(action)) {
|
||||
return next(action);
|
||||
}
|
||||
const startTime = performance.now();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"alwaysStrict": true,
|
||||
"target": "es6",
|
||||
"module": "es6",
|
||||
"moduleResolution": "nodenext",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
"outDir": "./lib"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue