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

eslint-plugin-react-refresh

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-refresh - npm Package Compare versions

Comparing version 0.4.12 to 0.4.13

6

index.js

@@ -132,3 +132,5 @@ "use strict";

} else if (node.type === "CallExpression") {
if (node.callee.type !== "Identifier") {
if (node.callee.type === "CallExpression" && node.callee.callee.type === "Identifier" && node.callee.callee.name === "connect") {
mayHaveReactExport = true;
} else if (node.callee.type !== "Identifier") {
if (node.callee.type === "MemberExpression" && node.callee.property.type === "Identifier" && reactHOCs.has(node.callee.property.name)) {

@@ -178,3 +180,3 @@ mayHaveReactExport = true;

handleExportIdentifier(
specifier.exported.name === "default" ? specifier.local : specifier.exported
specifier.exported.type === "Identifier" && specifier.exported.name === "default" ? specifier.local : specifier.exported
);

@@ -181,0 +183,0 @@ }

{
"name": "eslint-plugin-react-refresh",
"description": "Validate that your components can safely be updated with fast refresh",
"version": "0.4.12",
"version": "0.4.13",
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",

@@ -6,0 +6,0 @@ "license": "MIT",

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