@danielsimonjr/mathts-evaluator 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +24 -1
- package/dist/index.d.ts.map +1 -0
- package/package.json +61 -61
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @danielsimonjr/mathts-evaluator
|
|
3
|
+
*
|
|
4
|
+
* Standalone compiler + evaluator for MathTS expressions. Re-exports the
|
|
5
|
+
* evaluation half of {@link @danielsimonjr/mathts-expression} -- `compile`
|
|
6
|
+
* (AST -> executable), `createEvaluate` (build an `evaluate(expr, scope?)`
|
|
7
|
+
* function), and `compileExpression` -- as a focused package, completing the
|
|
8
|
+
* `parse -> compile -> evaluate` pipeline alongside `@danielsimonjr/mathts-parser`.
|
|
9
|
+
* The implementation lives in expression; this is an entry point, not a copy.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { createEvaluate } from '@danielsimonjr/mathts-evaluator';
|
|
14
|
+
* import { createParse } from '@danielsimonjr/mathts-parser';
|
|
15
|
+
* // wire createParse into a math scope, then:
|
|
16
|
+
* // const evaluate = createEvaluate(parse, mathScope);
|
|
17
|
+
* // evaluate('2 + 3'); // 5
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @packageDocumentation
|
|
21
|
+
*/
|
|
22
|
+
export { compile, createEvaluate, compileExpression, } from '@danielsimonjr/mathts-expression';
|
|
23
|
+
export type { CompiledExpression, Scope } from '@danielsimonjr/mathts-expression';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,OAAO,EACP,cAAc,EACd,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@danielsimonjr/mathts-evaluator",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Standalone compiler + evaluator for MathTS expressions, re-exported as a focused package",
|
|
5
|
-
"author": "Daniel Simon Jr.",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "./dist/index.js",
|
|
9
|
-
"module": "./dist/index.js",
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist",
|
|
19
|
-
"README.md"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "tsup src/index.ts --format esm --dts
|
|
23
|
-
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
-
"test": "
|
|
25
|
-
"test:watch": "vitest",
|
|
26
|
-
"test:coverage": "
|
|
27
|
-
"typecheck": "tsc --noEmit",
|
|
28
|
-
"lint": "
|
|
29
|
-
"lint:fix": "
|
|
30
|
-
"clean": "rm -rf dist",
|
|
31
|
-
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@danielsimonjr/mathts-core": "^0.
|
|
35
|
-
"@danielsimonjr/mathts-expression": "^0.
|
|
36
|
-
"typed-function": "^4.0.0"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
40
|
-
"tsup": "^8.0.0",
|
|
41
|
-
"typescript": "^
|
|
42
|
-
"vitest": "^
|
|
43
|
-
},
|
|
44
|
-
"publishConfig": {
|
|
45
|
-
"access": "public"
|
|
46
|
-
},
|
|
47
|
-
"repository": {
|
|
48
|
-
"type": "git",
|
|
49
|
-
"url": "https://github.com/danielsimonjr/
|
|
50
|
-
"directory": "evaluator"
|
|
51
|
-
},
|
|
52
|
-
"keywords": [
|
|
53
|
-
"math",
|
|
54
|
-
"typescript",
|
|
55
|
-
"evaluator",
|
|
56
|
-
"compiler",
|
|
57
|
-
"expression",
|
|
58
|
-
"evaluate",
|
|
59
|
-
"compile"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@danielsimonjr/mathts-evaluator",
|
|
3
|
+
"version": "0.1.19",
|
|
4
|
+
"description": "Standalone compiler + evaluator for MathTS expressions, re-exported as a focused package",
|
|
5
|
+
"author": "Daniel Simon Jr.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
|
|
23
|
+
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
+
"test": "bun test",
|
|
25
|
+
"test:watch": "vitest",
|
|
26
|
+
"test:coverage": "bun test --coverage",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "oxlint src",
|
|
29
|
+
"lint:fix": "oxlint src --fix",
|
|
30
|
+
"clean": "rm -rf dist",
|
|
31
|
+
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@danielsimonjr/mathts-core": "^0.15.0",
|
|
35
|
+
"@danielsimonjr/mathts-expression": "^0.8.0",
|
|
36
|
+
"typed-function": "^4.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^26.4.0",
|
|
40
|
+
"tsup": "^8.0.0",
|
|
41
|
+
"typescript": "^7.0.2",
|
|
42
|
+
"vitest": "^5.0.0"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/danielsimonjr/MathTS.git",
|
|
50
|
+
"directory": "evaluator"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"math",
|
|
54
|
+
"typescript",
|
|
55
|
+
"evaluator",
|
|
56
|
+
"compiler",
|
|
57
|
+
"expression",
|
|
58
|
+
"evaluate",
|
|
59
|
+
"compile"
|
|
60
|
+
]
|
|
61
|
+
}
|