bobflux-monitor
Advanced tools
Comparing version 0.0.5 to 0.0.6
24
index.js
@@ -8,3 +8,4 @@ define(["require", "exports", 'node_modules/bobril/index', 'node_modules/fun-model/dist/src/index', './button', './rows', './textbox'], function (require, exports, b, index_1, button, rows, textbox) { | ||
overflow: 'auto', | ||
overflowX: 'hidden' | ||
overflowX: 'hidden', | ||
zIndex: 1000 | ||
}); | ||
@@ -78,11 +79,18 @@ var openedStyle = b.styleDef({ | ||
var data = createDefaultData(cursor); | ||
var routeUrl = ''; | ||
var callback = function (m, p) { | ||
if (m && p && m.indexOf('Current state') >= 0) { | ||
if (!data.stateStamps.some(function (stateStamp) { return stateStamp.state === p; })) | ||
data.stateStamps.push({ | ||
change: 'change', | ||
time: new Date(), | ||
state: p, | ||
frames: b.frame() | ||
}); | ||
if (!routeUrl || routeUrl === window.location.href) { | ||
if (!data.stateStamps.some(function (stateStamp) { return stateStamp.state === p; })) | ||
data.stateStamps.push({ | ||
change: 'change', | ||
time: new Date(), | ||
state: p, | ||
frames: b.frame() | ||
}); | ||
} | ||
else { | ||
data.stateStamps = []; | ||
} | ||
routeUrl = window.location.href; | ||
} | ||
@@ -89,0 +97,0 @@ }; |
10
index.ts
@@ -13,3 +13,4 @@ import * as b from 'node_modules/bobril/index'; | ||
overflow: 'auto', | ||
overflowX: 'hidden' | ||
overflowX: 'hidden', | ||
zIndex: 1000 | ||
}) | ||
@@ -107,4 +108,6 @@ | ||
let data = createDefaultData(cursor); | ||
let routeUrl = ''; | ||
let callback = (m, p) => { | ||
if (m && p && m.indexOf('Current state') >= 0) { | ||
if(!routeUrl || routeUrl === window.location.href ){ | ||
if (!data.stateStamps.some(stateStamp => stateStamp.state === p)) | ||
@@ -117,2 +120,7 @@ data.stateStamps.push({ | ||
}); | ||
} else { | ||
data.stateStamps = []; | ||
} | ||
routeUrl = window.location.href ; | ||
} | ||
@@ -119,0 +127,0 @@ }; |
{ | ||
"name": "bobflux-monitor", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Component for time travelling in bobflux application state history.", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18169
17
475
1
32