@tabnas/expr 0.5.18 → 0.5.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/expr.d.ts CHANGED
@@ -62,7 +62,7 @@ declare const testing: {
62
62
  prattify: typeof prattify;
63
63
  opify: (x: any) => any;
64
64
  };
65
- declare const VERSION = "0.5.18";
65
+ declare const VERSION = "0.5.19";
66
66
  export { VERSION, Expr, evaluation, simplify, parseSimplified, testing };
67
67
  export type { ExprOptions, OpDef, Op, Evaluate };
68
68
  export { translate } from './translate';
package/dist/expr.js CHANGED
@@ -1420,7 +1420,7 @@ exports.testing = testing;
1420
1420
  // VERSION is this package's version. It MUST equal package.json "version":
1421
1421
  // the release orchestrator rewrites both, and the version test fails the
1422
1422
  // build if they drift. Mirrors `const VERSION` in go/expr.go.
1423
- const VERSION = '0.5.18';
1423
+ const VERSION = '0.5.19';
1424
1424
  exports.VERSION = VERSION;
1425
1425
  // The translation parts a host composes a translation from (admin ADR-27):
1426
1426
  // the manifest and the alchemy sources, generated by ../embed-translate.js.
package/dist/translate.js CHANGED
@@ -42,7 +42,8 @@ const TRANSLATION = Object.freeze({
42
42
  "A list whose first element is an object whose src member is a default operator's source text, as the reader's own value describes an operator, is written with that text in the object's place, as an operation where its count makes one: only the src member is read, and the object's other members, the token the operator was read from among them, are not kept. A list whose first element is an object with any other src that is not empty, zero, false or null, as a C syntax tree's token has, is refused with TARGET_VALUE_UNREPRESENTABLE, since the reader would read that src alone as the list's operator.",
43
43
  "A negative number is written with its sign, which reads back as the operator - applied to the number's magnitude.",
44
44
  "A number that is not finite is written as the string Infinity, -Infinity or NaN."
45
- ]
45
+ ],
46
+ "whole": "A binary operator follows its left term, and a later operator can take a finished operation as its own term, as the - in 1*2-3 takes 1*2, so an expression's tree is complete only at its end: a document is read whole before anything is written."
46
47
  }
47
48
  }
48
49
  `,
@@ -1 +1 @@
1
- {"version":3,"file":"translate.js","sourceRoot":"","sources":["../src/translate.ts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@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabnas/expr",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
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",
package/src/expr.ts CHANGED
@@ -1700,7 +1700,7 @@ const testing = {
1700
1700
  // VERSION is this package's version. It MUST equal package.json "version":
1701
1701
  // the release orchestrator rewrites both, and the version test fails the
1702
1702
  // build if they drift. Mirrors `const VERSION` in go/expr.go.
1703
- const VERSION = '0.5.18'
1703
+ const VERSION = '0.5.19'
1704
1704
 
1705
1705
  export { VERSION, Expr, evaluation, simplify, parseSimplified, testing }
1706
1706
 
package/src/translate.ts CHANGED
@@ -55,7 +55,8 @@ const TRANSLATION: TranslationParts = Object.freeze({
55
55
  "A list whose first element is an object whose src member is a default operator's source text, as the reader's own value describes an operator, is written with that text in the object's place, as an operation where its count makes one: only the src member is read, and the object's other members, the token the operator was read from among them, are not kept. A list whose first element is an object with any other src that is not empty, zero, false or null, as a C syntax tree's token has, is refused with TARGET_VALUE_UNREPRESENTABLE, since the reader would read that src alone as the list's operator.",
56
56
  "A negative number is written with its sign, which reads back as the operator - applied to the number's magnitude.",
57
57
  "A number that is not finite is written as the string Infinity, -Infinity or NaN."
58
- ]
58
+ ],
59
+ "whole": "A binary operator follows its left term, and a later operator can take a finished operation as its own term, as the - in 1*2-3 takes 1*2, so an expression's tree is complete only at its end: a document is read whole before anything is written."
59
60
  }
60
61
  }
61
62
  `,