Socket
Socket
Sign inDemoInstall

react-refresh

Package Overview
Dependencies
Maintainers
7
Versions
1787
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-refresh - npm Package Compare versions

Comparing version 0.0.0-9f395904c to 0.0.0-a1dbb852c

8

build-info.json
{
"branch": "master",
"buildNumber": "28552",
"checksum": "9794260",
"commit": "9f395904c",
"buildNumber": "33869",
"checksum": "2fe1c5c",
"commit": "a1dbb852c",
"environment": "ci",
"reactVersion": "16.8.6-canary-9f395904c"
"reactVersion": "16.8.6-canary-a1dbb852c"
}

@@ -1,2 +0,2 @@

/** @license React v0.0.0-9f395904c
/** @license React v0.0.0-a1dbb852c
* react-refresh-babel.development.js

@@ -3,0 +3,0 @@ *

@@ -1,2 +0,2 @@

/** @license React v0.0.0-9f395904c
/** @license React v0.0.0-a1dbb852c
* react-refresh-babel.production.min.js

@@ -3,0 +3,0 @@ *

@@ -1,2 +0,2 @@

/** @license React v0.0.0-9f395904c
/** @license React v0.0.0-a1dbb852c
* react-refresh-runtime.development.js

@@ -115,2 +115,3 @@ *

var failedRoots = new Map();
var didSomeRootFailOnMount = false;

@@ -443,2 +444,15 @@ function computeFullKey(signature) {

}
} else if (!wasMounted && !isMounted) {
if (didError && !failedRoots.has(root)) {
// The root had an error during the initial mount.
// We can't read its last element from the memoized state
// because there was no previously committed alternate.
// Ideally, it would be nice if we had a way to extract
// the last attempted rendered element, but accessing the update queue
// would tie this package too closely to the reconciler version.
// So instead, we just set a flag.
// TODO: Maybe we could fix this as the same time as when we fix
// DevTools to not depend on `alternate.memoizedState.element`.
didSomeRootFailOnMount = true;
}
}

@@ -455,2 +469,6 @@ } else {

function hasUnrecoverableErrors() {
return didSomeRootFailOnMount;
}
// Exposed for testing.

@@ -567,2 +585,3 @@ function _getMountedRootCount() {

injectIntoGlobalHook: injectIntoGlobalHook,
hasUnrecoverableErrors: hasUnrecoverableErrors,
_getMountedRootCount: _getMountedRootCount,

@@ -569,0 +588,0 @@ createSignatureFunctionForTransform: createSignatureFunctionForTransform,

@@ -1,2 +0,2 @@

/** @license React v0.0.0-9f395904c
/** @license React v0.0.0-a1dbb852c
* react-refresh-runtime.production.min.js

@@ -3,0 +3,0 @@ *

@@ -7,3 +7,3 @@ {

],
"version": "0.0.0-9f395904c",
"version": "0.0.0-a1dbb852c",
"homepage": "https://reactjs.org/",

@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues",

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