@mathigon/hilbert
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -638,4 +638,2 @@ 'use strict'; | ||
} | ||
if (this.fn === 'abs') | ||
return `|${this.args.join(', ')}|`; | ||
if (core.isOneOf(this.fn, '!', '%')) | ||
@@ -1104,2 +1102,5 @@ return args[0] + this.fn; | ||
exports.ExprFunction = ExprFunction; | ||
exports.ExprIdentifier = ExprIdentifier; | ||
exports.ExprNumber = ExprNumber; | ||
exports.ExprOperator = ExprOperator; | ||
exports.Expression = Expression; |
@@ -634,4 +634,2 @@ import { words, repeat, unique, flatten, isOneOf, join, last, cache } from '@mathigon/core'; | ||
} | ||
if (this.fn === 'abs') | ||
return `|${this.args.join(', ')}|`; | ||
if (isOneOf(this.fn, '!', '%')) | ||
@@ -1097,2 +1095,2 @@ return args[0] + this.fn; | ||
export { ExprElement, ExprError, ExprFunction, Expression }; | ||
export { ExprElement, ExprError, ExprFunction, ExprIdentifier, ExprNumber, ExprOperator, Expression }; |
@@ -9,3 +9,3 @@ // ============================================================================= | ||
export {Expression} from './src/expression'; | ||
export {ExprElement} from './src/elements'; | ||
export {ExprElement, ExprIdentifier, ExprNumber, ExprOperator} from './src/elements'; | ||
export {ExprFunction} from './src/functions'; |
{ | ||
"name": "@mathigon/hilbert", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "JavaScript expression parsing, MathML rendering and CAS.", | ||
@@ -35,10 +35,10 @@ "keywords": [ | ||
"@types/tape": "4.13.0", | ||
"rollup": "2.44.0", | ||
"rollup": "2.46.0", | ||
"tape": "5.2.2", | ||
"ts-node": "9.1.1", | ||
"tslib": "2.1.0", | ||
"typescript": "4.2.3", | ||
"@typescript-eslint/eslint-plugin": "4.20.0", | ||
"@typescript-eslint/parser": "4.20.0", | ||
"eslint": "7.23.0", | ||
"tslib": "2.2.0", | ||
"typescript": "4.2.4", | ||
"@typescript-eslint/eslint-plugin": "4.22.0", | ||
"@typescript-eslint/parser": "4.22.0", | ||
"eslint": "7.25.0", | ||
"eslint-config-google": "0.14.0", | ||
@@ -45,0 +45,0 @@ "eslint-plugin-import": "2.22.1" |
{ | ||
"extends": ["config:base"], | ||
"schedule": ["before 5am on the first day of the month"], | ||
"schedule": ["on the first day of the month"], | ||
"packageRules": [{ | ||
@@ -14,3 +14,3 @@ "packagePatterns": ["eslint"], | ||
}, { | ||
"packagePatterns": ["ts-node", "^typescript"], | ||
"packagePatterns": ["ts-node", "^typescript", "tslib"], | ||
"groupName": "typescript", | ||
@@ -17,0 +17,0 @@ "automerge": true |
@@ -117,3 +117,2 @@ // ============================================================================= | ||
if (this.fn === 'abs') return `|${this.args.join(', ')}|`; | ||
if (isOneOf(this.fn, '!', '%')) return args[0] + this.fn; | ||
@@ -120,0 +119,0 @@ |
@@ -70,3 +70,3 @@ // ============================================================================= | ||
test.equal(str('2 * abs(a + b)'), '2 · |a + b|'); | ||
test.equal(str('2 * abs(a + b)'), '2 · abs(a + b)'); | ||
test.equal(str('P(A | B)'), 'P(A | B)'); | ||
@@ -73,0 +73,0 @@ |
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
530496
14401