@openreplay/tracker-mobx
Advanced tools
Comparing version 4.0.1 to 4.0.2
declare const _default: { | ||
update: (ev: any) => { | ||
state: any; | ||
state: {}; | ||
type: any; | ||
@@ -8,3 +8,3 @@ property: any; | ||
delete: (ev: any) => { | ||
state: any; | ||
state: {}; | ||
type: any; | ||
@@ -14,3 +14,3 @@ property: any; | ||
add: (ev: any) => { | ||
state: any; | ||
state: {}; | ||
type: any; | ||
@@ -17,0 +17,0 @@ property: any; |
@@ -47,4 +47,10 @@ "use strict"; | ||
const observeAction = ev => { | ||
const state = {}; | ||
for (let property in ev.object) { | ||
if (typeof property !== 'function') { | ||
state[property] = ev.object[property]; | ||
} | ||
} | ||
return { | ||
state: ev.object, | ||
state, | ||
type: ev.type, | ||
@@ -51,0 +57,0 @@ property: ev.name, |
declare const _default: { | ||
update: (ev: any) => { | ||
state: any; | ||
state: {}; | ||
type: any; | ||
@@ -8,3 +8,3 @@ property: any; | ||
delete: (ev: any) => { | ||
state: any; | ||
state: {}; | ||
type: any; | ||
@@ -14,3 +14,3 @@ property: any; | ||
add: (ev: any) => { | ||
state: any; | ||
state: {}; | ||
type: any; | ||
@@ -17,0 +17,0 @@ property: any; |
@@ -45,4 +45,10 @@ // Based on https://github.com/winterbe/mobx-logger/blob/master/src/log.js | ||
const observeAction = ev => { | ||
const state = {}; | ||
for (let property in ev.object) { | ||
if (typeof property !== 'function') { | ||
state[property] = ev.object[property]; | ||
} | ||
} | ||
return { | ||
state: ev.object, | ||
state, | ||
type: ev.type, | ||
@@ -49,0 +55,0 @@ property: ev.name, |
{ | ||
"name": "@openreplay/tracker-mobx", | ||
"description": "Tracker plugin for MobX events recording", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "mobx", |
66506
1003