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

@mathigon/hilbert

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathigon/hilbert - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

30

dist/index.cjs.js

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

// src/errors.ts
var ExprError = class extends Error {
var ExprError = class _ExprError extends Error {
constructor(name, message) {

@@ -49,12 +49,12 @@ super(message);

static undefinedVariable(x) {
return new ExprError("EvalError", `Undefined variable \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Undefined variable \u201C${x}\u201D.`);
}
static undefinedFunction(x) {
return new ExprError("EvalError", `Undefined function \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Undefined function \u201C${x}\u201D.`);
}
static uncallableExpression(x) {
return new ExprError("EvalError", `Cannot call \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Cannot call \u201C${x}\u201D.`);
}
static evalLoop(x) {
return new ExprError("EvalError", `Loop in nested evaluation \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Loop in nested evaluation \u201C${x}\u201D.`);
}

@@ -64,18 +64,18 @@ // ---------------------------------------------------------------------------

static invalidCharacter(x) {
return new ExprError("SyntaxError", `Unknown symbol \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `Unknown symbol \u201C${x}\u201D.`);
}
static conflictingBrackets(x) {
return new ExprError("SyntaxError", `Conflicting brackets \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `Conflicting brackets \u201C${x}\u201D.`);
}
static unclosedBracket(x) {
return new ExprError("SyntaxError", `Unclosed bracket \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `Unclosed bracket \u201C${x}\u201D.`);
}
static startOperator(x) {
return new ExprError("SyntaxError", `A term cannot start with a \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `A term cannot start with a \u201C${x}\u201D.`);
}
static endOperator(x) {
return new ExprError("SyntaxError", `A term cannot end with a \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `A term cannot end with a \u201C${x}\u201D.`);
}
static consecutiveOperators(x, y) {
return new ExprError(
return new _ExprError(
"SyntaxError",

@@ -86,3 +86,3 @@ `A \u201C${x}\u201D cannot be followed by a \u201C${y}\u201D.`

static invalidExpression() {
return new ExprError("SyntaxError", `This expression is invalid.`);
return new _ExprError("SyntaxError", `This expression is invalid.`);
}

@@ -654,3 +654,3 @@ };

}
var ExprFunction = class extends ExprElement {
var ExprFunction = class _ExprFunction extends ExprElement {
constructor(fn, args = []) {

@@ -716,3 +716,3 @@ super();

substitute(vars = {}) {
return new ExprFunction(this.fn, this.args.map((a) => a.substitute(vars)));
return new _ExprFunction(this.fn, this.args.map((a) => a.substitute(vars)));
}

@@ -722,3 +722,3 @@ collapse() {

return this.args[0].collapse();
return new ExprFunction(this.fn, this.args.map((a) => a.collapse()));
return new _ExprFunction(this.fn, this.args.map((a) => a.collapse()));
}

@@ -725,0 +725,0 @@ get simplified() {

// src/errors.ts
var ExprError = class extends Error {
var ExprError = class _ExprError extends Error {
constructor(name, message) {

@@ -10,12 +10,12 @@ super(message);

static undefinedVariable(x) {
return new ExprError("EvalError", `Undefined variable \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Undefined variable \u201C${x}\u201D.`);
}
static undefinedFunction(x) {
return new ExprError("EvalError", `Undefined function \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Undefined function \u201C${x}\u201D.`);
}
static uncallableExpression(x) {
return new ExprError("EvalError", `Cannot call \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Cannot call \u201C${x}\u201D.`);
}
static evalLoop(x) {
return new ExprError("EvalError", `Loop in nested evaluation \u201C${x}\u201D.`);
return new _ExprError("EvalError", `Loop in nested evaluation \u201C${x}\u201D.`);
}

@@ -25,18 +25,18 @@ // ---------------------------------------------------------------------------

static invalidCharacter(x) {
return new ExprError("SyntaxError", `Unknown symbol \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `Unknown symbol \u201C${x}\u201D.`);
}
static conflictingBrackets(x) {
return new ExprError("SyntaxError", `Conflicting brackets \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `Conflicting brackets \u201C${x}\u201D.`);
}
static unclosedBracket(x) {
return new ExprError("SyntaxError", `Unclosed bracket \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `Unclosed bracket \u201C${x}\u201D.`);
}
static startOperator(x) {
return new ExprError("SyntaxError", `A term cannot start with a \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `A term cannot start with a \u201C${x}\u201D.`);
}
static endOperator(x) {
return new ExprError("SyntaxError", `A term cannot end with a \u201C${x}\u201D.`);
return new _ExprError("SyntaxError", `A term cannot end with a \u201C${x}\u201D.`);
}
static consecutiveOperators(x, y) {
return new ExprError(
return new _ExprError(
"SyntaxError",

@@ -47,3 +47,3 @@ `A \u201C${x}\u201D cannot be followed by a \u201C${y}\u201D.`

static invalidExpression() {
return new ExprError("SyntaxError", `This expression is invalid.`);
return new _ExprError("SyntaxError", `This expression is invalid.`);
}

@@ -615,3 +615,3 @@ };

}
var ExprFunction = class extends ExprElement {
var ExprFunction = class _ExprFunction extends ExprElement {
constructor(fn, args = []) {

@@ -677,3 +677,3 @@ super();

substitute(vars = {}) {
return new ExprFunction(this.fn, this.args.map((a) => a.substitute(vars)));
return new _ExprFunction(this.fn, this.args.map((a) => a.substitute(vars)));
}

@@ -683,3 +683,3 @@ collapse() {

return this.args[0].collapse();
return new ExprFunction(this.fn, this.args.map((a) => a.collapse()));
return new _ExprFunction(this.fn, this.args.map((a) => a.collapse()));
}

@@ -686,0 +686,0 @@ get simplified() {

{
"name": "@mathigon/hilbert",
"version": "1.1.8",
"version": "1.1.9",
"license": "MIT",

@@ -34,17 +34,17 @@ "homepage": "https://mathigon.io/hilbert",

"dependencies": {
"@mathigon/core": "1.1.8",
"@mathigon/fermat": "1.1.8"
"@mathigon/core": "1.1.10",
"@mathigon/fermat": "1.1.9"
},
"devDependencies": {
"@types/tape": "5.6.0",
"@typescript-eslint/eslint-plugin": "5.59.8",
"@typescript-eslint/parser": "5.59.8",
"esbuild": "0.17.19",
"eslint": "8.42.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"esbuild": "0.18.11",
"eslint": "8.44.0",
"eslint-plugin-import": "2.27.5",
"tape": "5.6.3",
"tape": "5.6.4",
"ts-node": "10.9.1",
"tslib": "2.5.3",
"typescript": "5.1.3"
"tslib": "2.6.0",
"typescript": "5.1.6"
}
}

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