react-perf-devtool
Advanced tools
Comparing version 3.0.4-beta0 to 3.0.4-beta1
{ | ||
"name": "react-perf-devtool", | ||
"version": "3.0.4-beta0", | ||
"version": "3.0.4-beta1", | ||
"description": "A devtool for inspecting the performance of React Components", | ||
@@ -5,0 +5,0 @@ "main": "src/npm/index.js", |
@@ -40,7 +40,3 @@ var getReactPerformanceData = require('../shared/parse') | ||
if (callback && typeof callback === 'function') { | ||
callback(measures) | ||
} | ||
window.__REACT_PERF_DEVTOOL_GLOBAL_STORE__ = { | ||
var data = { | ||
measures, | ||
@@ -51,2 +47,8 @@ length: list.getEntries().length, | ||
if (callback && typeof callback === 'function') { | ||
callback(measures) | ||
} | ||
window.__REACT_PERF_DEVTOOL_GLOBAL_STORE__ = data | ||
if (webService) { | ||
@@ -57,15 +59,7 @@ var storage = window.localStorage | ||
if (storage.getItem(KEY) === null || storage.getItem(KEY) === undefined) { | ||
storage.setItem(KEY, { | ||
measures, | ||
length: list.getEntries().length, | ||
rawMeasures: list.getEntries() | ||
}) | ||
storage.setItem(KEY, JSON.stringify(data)) | ||
} else if (storage.getItem(KEY) !== null) { | ||
storage.removeItem(KEY) | ||
// New measures | ||
storage.setItem(KEY, { | ||
measures, | ||
length: list.getEntries().length, | ||
rawMeasures: list.getEntries() | ||
}) | ||
storage.setItem(KEY, JSON.stringify(data)) | ||
} | ||
@@ -72,0 +66,0 @@ } |
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
59717
886