@djthoms/simple-math-ast
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -20,2 +20,4 @@ var __defProp = Object.defineProperty; | ||
__export(src_exports, { | ||
ASTNode: () => import_node.ASTNode, | ||
Types: () => import_types.Types, | ||
build: () => build, | ||
@@ -28,2 +30,4 @@ parse: () => import_parse.parse, | ||
var import_parse = require("./parse/parse"); | ||
var import_types = require("./types"); | ||
var import_node = require("./parse/node"); | ||
const build = (expression) => { | ||
@@ -30,0 +34,0 @@ return (0, import_parse.parse)((0, import_tokenize.tokenize)(expression)); |
@@ -54,2 +54,4 @@ var __defProp = Object.defineProperty; | ||
* Recursively converts the ASTNode to a JSON object. | ||
* @example | ||
* build("1 + 2").toJSON(); | ||
* @returns | ||
@@ -56,0 +58,0 @@ */ |
import { tokenize } from "./tokenize"; | ||
import { parse } from "./parse/parse"; | ||
import { Types } from "./types"; | ||
import { ASTNode } from "./parse/node"; | ||
const build = (expression) => { | ||
@@ -7,2 +9,4 @@ return parse(tokenize(expression)); | ||
export { | ||
ASTNode, | ||
Types, | ||
build, | ||
@@ -9,0 +13,0 @@ parse, |
@@ -33,2 +33,4 @@ var __defProp = Object.defineProperty; | ||
* Recursively converts the ASTNode to a JSON object. | ||
* @example | ||
* build("1 + 2").toJSON(); | ||
* @returns | ||
@@ -35,0 +37,0 @@ */ |
import { tokenize } from "./tokenize"; | ||
import { parse } from "./parse/parse"; | ||
import type { Token, Types } from "./types"; | ||
export declare const build: (expression: string) => import("./parse/node").ASTNode | undefined; | ||
export { tokenize, parse, Types }; | ||
export type { Token }; | ||
import { Types } from "./types"; | ||
import type { Token, ConstantToken, OperatorToken } from "./types"; | ||
import { ASTNode } from "./parse/node"; | ||
export declare const build: (expression: string) => ASTNode | undefined; | ||
export { tokenize, parse, Types, ASTNode }; | ||
export type { Token, ConstantToken, OperatorToken }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -14,6 +14,8 @@ import type { Maybe, Token } from "../types"; | ||
* Recursively converts the ASTNode to a JSON object. | ||
* @example | ||
* build("1 + 2").toJSON(); | ||
* @returns | ||
*/ | ||
toJSON(): any; | ||
toJSON(): Record<string, unknown>; | ||
} | ||
//# sourceMappingURL=node.d.ts.map |
{ | ||
"name": "@djthoms/simple-math-ast", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Simple Math AST", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
70170
897
0