@tabnas/expr 0.5.7 → 0.5.9
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/README.md +4 -4
- package/dist/expr.d.ts +1 -1
- package/dist/expr.js +1 -1
- package/package.json +2 -2
- package/src/expr.ts +1 -1
package/README.md
CHANGED
|
@@ -61,14 +61,14 @@ j.parse('(1+2)*3') // => 9
|
|
|
61
61
|
|
|
62
62
|
Docs follow the [Diátaxis](https://diataxis.fr) framework:
|
|
63
63
|
|
|
64
|
-
- **[Tutorial](doc/tutorial.md)
|
|
64
|
+
- **[Tutorial](doc/tutorial.md)**. Parse and evaluate your first
|
|
65
65
|
expression, step by step.
|
|
66
|
-
- **[Guide](doc/guide.md)
|
|
66
|
+
- **[Guide](doc/guide.md)**. Recipes: add a custom operator, build
|
|
67
67
|
function-call syntax with paren-preval, add a ternary, restrict to strict
|
|
68
68
|
math, walk the tree yourself.
|
|
69
|
-
- **[Reference](doc/reference.md)
|
|
69
|
+
- **[Reference](doc/reference.md)**. Exports, `OpDef` options, the `Op` /
|
|
70
70
|
`Evaluate` types, and the default operator table.
|
|
71
|
-
- **[Concepts](doc/concepts.md)
|
|
71
|
+
- **[Concepts](doc/concepts.md)**. How Pratt parsing works, the
|
|
72
72
|
binding-power scale, and the design trade-offs.
|
|
73
73
|
|
|
74
74
|
Go port docs: [tutorial](../go/doc/tutorial.md) ·
|
package/dist/expr.d.ts
CHANGED
package/dist/expr.js
CHANGED
|
@@ -1374,6 +1374,6 @@ exports.testing = testing;
|
|
|
1374
1374
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
1375
1375
|
// the release orchestrator rewrites both, and the version test fails the
|
|
1376
1376
|
// build if they drift. Mirrors `const VERSION` in go/expr.go.
|
|
1377
|
-
const VERSION = '0.5.
|
|
1377
|
+
const VERSION = '0.5.9';
|
|
1378
1378
|
exports.VERSION = VERSION;
|
|
1379
1379
|
//# sourceMappingURL=expr.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tabnas/expr",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "This plugin allows the [Tabnas](https://github.com/tabnas/jsonic) JSON parser to support expression syntax.",
|
|
5
5
|
"main": "dist/expr.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "ts"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"test": "node --enable-source-maps --test dist-test/**/*.test.js",
|
|
23
|
+
"test": "node --enable-source-maps --test dist-test/**/*.test.js && node --test test/docs.test.js",
|
|
24
24
|
"pretest": "npm run build",
|
|
25
25
|
"pretest-some": "npm run build",
|
|
26
26
|
"test-some": "node --enable-source-maps --test-name-pattern=\"$npm_config_pattern\" --test dist-test/**/*.test.js",
|
package/src/expr.ts
CHANGED
|
@@ -1658,4 +1658,4 @@ export type { ExprOptions, OpDef, Op, Evaluate }
|
|
|
1658
1658
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
1659
1659
|
// the release orchestrator rewrites both, and the version test fails the
|
|
1660
1660
|
// build if they drift. Mirrors `const VERSION` in go/expr.go.
|
|
1661
|
-
const VERSION = '0.5.
|
|
1661
|
+
const VERSION = '0.5.9'
|