Comparing version 2.1.2 to 3.0.0
@@ -0,1 +1,5 @@ | ||
# v3.0.0 | ||
- Removes accidentally exported function `parse` | ||
# v2.1.2 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101307
2020