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

@djthoms/simple-math-ast

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@djthoms/simple-math-ast - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

dist/cjs/index.js

@@ -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 @@ */

10

dist/types/index.d.ts
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

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