Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-perf-devtool

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-perf-devtool - npm Package Compare versions

Comparing version 3.0.4-beta0 to 3.0.4-beta1

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc