greybel-interpreter 1.6.0 → 1.6.2

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.
@@ -11,7 +11,7 @@ class CustomBoolean extends base_1.default {
11
11
  this.value = !!value;
12
12
  }
13
13
  getCustomType() {
14
- return 'boolean';
14
+ return 'number';
15
15
  }
16
16
  toJSON() {
17
17
  return this.toNumber().toString();
@@ -81,7 +81,7 @@ class CustomFunction extends base_1.default {
81
81
  }
82
82
  toString() {
83
83
  const args = this.argumentDefs.map((item) => item.name);
84
- return `"function ${this.name}(${args.join(', ')})"`;
84
+ return `FUNCTION(${args.join(', ')})`;
85
85
  }
86
86
  toTruthy() {
87
87
  return true;
@@ -31,7 +31,7 @@ function equalInner(a, b, maxDepth, depth = 0) {
31
31
  // true if both NaN, false otherwise
32
32
  return a.value === NaN && b.value === NaN;
33
33
  }
34
- function equal(a, b, maxDepth = 2) {
34
+ function equal(a, b, maxDepth = 10) {
35
35
  return equalInner(a, b, maxDepth);
36
36
  }
37
37
  exports.default = equal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",