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

@react-dev-inspector/babel-plugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-dev-inspector/babel-plugin - npm Package Compare versions

Comparing version 2.0.0-beta.2 to 2.0.0-beta.3

README.md

2

es/transform.js

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

import path from 'node:path';
import path from 'path';
import { parse, } from '@babel/parser';

@@ -3,0 +3,0 @@ import generate from '@babel/generator';

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

import { relative } from 'node:path';
import { relative } from 'path';
import { jsxAttribute, jsxIdentifier, stringLiteral,

@@ -3,0 +3,0 @@ // @ts-expect-error import from deep path for reduce load files

@@ -7,3 +7,3 @@ "use strict";

exports.transform = void 0;
const node_path_1 = __importDefault(require("node:path"));
const path_1 = __importDefault(require("path"));
const parser_1 = require("@babel/parser");

@@ -27,3 +27,3 @@ const generator_1 = __importDefault(require("@babel/generator"));

*/
const relativePath = node_path_1.default.relative(rootPath, filePath);
const relativePath = path_1.default.relative(rootPath, filePath);
const isSkip = (0, visitor_1.pathMatch)(filePath, options === null || options === void 0 ? void 0 : options.excludes);

@@ -30,0 +30,0 @@ if (isSkip) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.doJSXOpeningElement = exports.pathMatch = exports.createVisitor = void 0;
const node_path_1 = require("node:path");
const path_1 = require("path");
const generated_1 = require("@babel/types/lib/builders/generated");

@@ -10,3 +10,3 @@ const createVisitor = ({ cwd = process.cwd(), excludes }) => {

: () => false;
const pathRelative = memo((filePath) => (0, node_path_1.relative)(cwd, filePath));
const pathRelative = memo((filePath) => (0, path_1.relative)(cwd, filePath));
const visitor = {

@@ -13,0 +13,0 @@ JSXOpeningElement: {

{
"name": "@react-dev-inspector/babel-plugin",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"sideEffects": false,

@@ -5,0 +5,0 @@ "description": "babel plugin for react-dev-inspector to generate source code position info into jsx properties",

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

import path from 'node:path'
import path from 'path'
import {

@@ -3,0 +3,0 @@ parse,

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

import { relative } from 'node:path'
import { relative } from 'path'
import type { PluginPass } from '@babel/core'

@@ -3,0 +3,0 @@ import type {

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