You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vite-plugin-react-click-to-component

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-react-click-to-component - npm Package Compare versions

Comparing version

to
3.1.0

5

client.js

@@ -142,7 +142,8 @@ // src/client.ts

var getPath = (fiber) => {
if (!fiber._debugSource) {
const source = fiber._debugSource ?? fiber._debugInfo;
if (!source) {
console.debug("Couldn't find a React instance for the element", fiber);
return;
}
const { columnNumber = 1, fileName, lineNumber = 1 } = fiber._debugSource;
const { columnNumber = 1, fileName, lineNumber = 1 } = source;
return `${fileName}:${lineNumber}:${columnNumber}`;

@@ -149,0 +150,0 @@ };

4

package.json
{
"name": "vite-plugin-react-click-to-component",
"description": "Option+Right Click in your browser to open the source in your editor",
"version": "3.0.1",
"version": "3.1.0",
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",

@@ -27,5 +27,5 @@ "license": "MIT",

"peerDependencies": {
"react": "^18.3.1",
"react": "^18.3.1 || ^19.0.0",
"vite": "^4 || ^5 || ^6"
}
}

Sorry, the diff of this file is not supported yet