greybel-interpreter 3.3.1 → 3.4.0

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.
@@ -39,7 +39,7 @@ exports.NumberProcessorHandler = {
39
39
  [operators_1.Operator.RightShift]: (a, b) => new number_1.CustomNumber(a.toInt() >> b.toInt()),
40
40
  [operators_1.Operator.UnsignedRightShift]: (a, b) => new number_1.CustomNumber(a.toInt() >> b.toInt()),
41
41
  [operators_1.Operator.BitwiseAnd]: (a, b) => new number_1.CustomNumber(a.toInt() & b.toInt()),
42
- [miniscript_core_1.Operator.PercentSign]: (a, b) => new number_1.CustomNumber(a.toNumber() % b.toNumber()),
42
+ [miniscript_core_1.Operator.Modulo]: (a, b) => new number_1.CustomNumber(a.toNumber() % b.toNumber()),
43
43
  [miniscript_core_1.Operator.GreaterThanOrEqual]: (a, b) => new boolean_1.CustomBoolean(a.toNumber() >= b.toNumber()),
44
44
  [miniscript_core_1.Operator.Equal]: (a, b) => new boolean_1.CustomBoolean(a.toNumber() === b.toNumber()),
45
45
  [miniscript_core_1.Operator.LessThanOrEqual]: (a, b) => new boolean_1.CustomBoolean(a.toNumber() <= b.toNumber()),
@@ -176,7 +176,7 @@ exports.NilProcessorHandler = {
176
176
  [miniscript_core_1.Operator.Slash]: () => default_1.DefaultType.Void,
177
177
  [miniscript_core_1.Operator.Asterik]: () => default_1.DefaultType.Void,
178
178
  [miniscript_core_1.Operator.Power]: () => default_1.DefaultType.Void,
179
- [miniscript_core_1.Operator.PercentSign]: () => default_1.DefaultType.Void,
179
+ [miniscript_core_1.Operator.Modulo]: () => default_1.DefaultType.Void,
180
180
  [miniscript_core_1.Operator.Equal]: (_a, b) => new boolean_1.CustomBoolean(b instanceof nil_1.CustomNil),
181
181
  [miniscript_core_1.Operator.NotEqual]: (_a, b) => new boolean_1.CustomBoolean(!(b instanceof nil_1.CustomNil))
182
182
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "3.3.1",
3
+ "version": "3.4.0",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "lru-cache": "^10.0.1",
52
- "greybel-core": "^1.3.0"
52
+ "greybel-core": "~1.4.0"
53
53
  },
54
54
  "keywords": [
55
55
  "miniscript"