Socket
Socket
Sign inDemoInstall

react-refresh

Package Overview
Dependencies
Maintainers
10
Versions
1781
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-experimental-20a257c25-20220929 to 0.0.0-experimental-20b6f4c0e8-20240607

cjs/react-refresh-babel.production.js

2

babel.js
'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-refresh-babel.production.min.js');
module.exports = require('./cjs/react-refresh-babel.production.js');
} else {
module.exports = require('./cjs/react-refresh-babel.development.js');
}

@@ -5,3 +5,3 @@ /**

*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*

@@ -173,3 +173,3 @@ * This source code is licensed under the MIT license found in the

}
} else ;

@@ -274,2 +274,20 @@ break;

case 'React.useDebugValue':
case 'useId':
case 'React.useId':
case 'useDeferredValue':
case 'React.useDeferredValue':
case 'useTransition':
case 'React.useTransition':
case 'useInsertionEffect':
case 'React.useInsertionEffect':
case 'useSyncExternalStore':
case 'React.useSyncExternalStore':
case 'useFormStatus':
case 'React.useFormStatus':
case 'useFormState':
case 'React.useFormState':
case 'useActionState':
case 'React.useActionState':
case 'useOptimistic':
case 'React.useOptimistic':
return true;

@@ -276,0 +294,0 @@

@@ -5,3 +5,3 @@ /**

*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*

@@ -18,3 +18,2 @@ * This source code is licensed under the MIT license found in the

// ATTENTION
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');

@@ -30,3 +29,2 @@ var REACT_MEMO_TYPE = Symbol.for('react.memo');

// that have actually been edited here. This keeps checks fast.
// $FlowFixMe

@@ -46,6 +44,4 @@ var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.

// If there is no WeakMap, we won't attempt to do retrying.
// $FlowFixMe
var rootElements = // $FlowFixMe
typeof WeakMap === 'function' ? new WeakMap() : null;
var rootElements = typeof WeakMap === 'function' ? new WeakMap() : null;
var isPerformingRefresh = false;

@@ -567,3 +563,2 @@

// We're in the innermost call, so this is the actual type.
// $FlowFixMe[escaped-generic] discovered when updating Flow
savedType = type;

@@ -570,0 +565,0 @@ hasCustomHooks = typeof getCustomHooks === 'function';

@@ -7,4 +7,4 @@ {

],
"version": "0.0.0-experimental-20a257c25-20220929",
"homepage": "https://reactjs.org/",
"version": "0.0.0-experimental-20b6f4c0e8-20240607",
"homepage": "https://react.dev/",
"bugs": "https://github.com/facebook/react/issues",

@@ -17,4 +17,3 @@ "license": "MIT",

"runtime.js",
"cjs/",
"umd/"
"cjs/"
],

@@ -21,0 +20,0 @@ "main": "runtime.js",

'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-refresh-runtime.production.min.js');
module.exports = require('./cjs/react-refresh-runtime.production.js');
} else {
module.exports = require('./cjs/react-refresh-runtime.development.js');
}

Sorry, the diff of this file is not supported yet

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