Socket
Socket
Sign inDemoInstall

jsx-info

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-info - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# v3.0.0
- Removes accidentally exported function `parse`
# v2.1.2

@@ -2,0 +6,0 @@

2

dist/package.json
{
"name": "jsx-info",
"version": "2.1.2",
"version": "3.0.0",
"description": "displays a report of JSX component and prop usage",

@@ -5,0 +5,0 @@ "main": "dist/src/api.js",

import { ParserPlugin } from "@babel/parser";
import { JSXElement } from "@babel/types";
/** Options passed to `analyze` */

@@ -70,12 +69,1 @@ export interface AnalyzeOptions {

export declare function analyze({ babelPlugins, components, directory, files, gitignore, ignore, onFile, prop, relativePaths, }: AnalyzeOptions): Promise<Analysis>;
interface ParseOptions {
typescript?: boolean;
babelPlugins?: ParserPlugin[];
onlyComponents?: string[];
onComponent?: (options: {
componentName: string;
node: JSXElement;
}) => void;
}
export declare function parse(code: string, options?: ParseOptions): void;
export {};

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = exports.analyze = void 0;
exports.analyze = void 0;
const parser_1 = require("@babel/parser");

@@ -253,3 +253,2 @@ const traverse_1 = __importDefault(require("@babel/traverse"));

}
exports.parse = parse;
function formatPrettyCode(code, startLine, endLine) {

@@ -256,0 +255,0 @@ const output = [];

{
"name": "jsx-info",
"version": "2.1.2",
"version": "3.0.0",
"description": "displays a report of JSX component and prop usage",

@@ -5,0 +5,0 @@ "main": "dist/src/api.js",

@@ -299,3 +299,3 @@ import { parse as babelParse, ParserPlugin } from "@babel/parser";

export function parse(code: string, options: ParseOptions = {}): void {
function parse(code: string, options: ParseOptions = {}): void {
const {

@@ -302,0 +302,0 @@ typescript = false,

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