New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlaspack/transformer-react-refresh-wrap

Package Overview
Dependencies
Maintainers
0
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/transformer-react-refresh-wrap - npm Package Compare versions

Comparing version 2.12.1-dev.3367 to 2.12.1-dev.3368

3

lib/helpers/helpers.js

@@ -46,3 +46,4 @@ "use strict";

window.$RefreshReg$ = function (type, id) {
if (window.__REACT_REFRESH_VERSION_TRANSFORMER !== window.__REACT_REFRESH_VERSION_RUNTIME) {
if (window.__REACT_REFRESH_VERSION_TRANSFORMER && window.__REACT_REFRESH_VERSION_RUNTIME && window.__REACT_REFRESH_VERSION_TRANSFORMER !== window.__REACT_REFRESH_VERSION_RUNTIME) {
// Both versions were set and they did not match
throw new Error(`react-refresh versions did not match between transformer and runtime. Please check your dependencies. Transformer: ${window.__REACT_REFRESH_VERSION_TRANSFORMER}, Runtime: ${window.__REACT_REFRESH_VERSION_RUNTIME}`);

@@ -49,0 +50,0 @@ }

{
"name": "@atlaspack/transformer-react-refresh-wrap",
"version": "2.12.1-dev.3367+07fefed65",
"version": "2.12.1-dev.3368+af1db7f65",
"license": "MIT",

@@ -16,10 +16,10 @@ "publishConfig": {

"node": ">= 16.0.0",
"atlaspack": "^2.12.1-dev.3367+07fefed65"
"atlaspack": "^2.12.1-dev.3368+af1db7f65"
},
"dependencies": {
"@atlaspack/plugin": "2.12.1-dev.3367+07fefed65",
"@atlaspack/utils": "2.12.1-dev.3367+07fefed65",
"@atlaspack/plugin": "2.12.1-dev.3368+af1db7f65",
"@atlaspack/utils": "2.12.1-dev.3368+af1db7f65",
"react-refresh": ">=0.9 <=0.14"
},
"gitHead": "07fefed65a9a4d7bd0bdc9c45b39704ee4ca70dd"
"gitHead": "af1db7f65c4816917ddf83716deedc536a1b8b27"
}

@@ -44,5 +44,8 @@ var Refresh = require('react-refresh/runtime');

if (
window.__REACT_REFRESH_VERSION_TRANSFORMER &&
window.__REACT_REFRESH_VERSION_RUNTIME &&
window.__REACT_REFRESH_VERSION_TRANSFORMER !==
window.__REACT_REFRESH_VERSION_RUNTIME
window.__REACT_REFRESH_VERSION_RUNTIME
) {
// Both versions were set and they did not match
throw new Error(

@@ -49,0 +52,0 @@ `react-refresh versions did not match between transformer and runtime. Please check your dependencies. Transformer: ${window.__REACT_REFRESH_VERSION_TRANSFORMER}, Runtime: ${window.__REACT_REFRESH_VERSION_RUNTIME}`,

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