greybel-interpreter 1.1.4 → 1.1.7

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.
@@ -22,7 +22,6 @@ exports.CustomInterfaceIterator = void 0;
22
22
  var path_1 = __importDefault(require("../utils/path"));
23
23
  var default_1 = __importDefault(require("./default"));
24
24
  var generics_1 = require("./generics");
25
- var string_1 = __importDefault(require("./string"));
26
25
  var CustomInterfaceIterator = /** @class */ (function () {
27
26
  function CustomInterfaceIterator() {
28
27
  }
@@ -72,7 +71,7 @@ var CustomInterface = /** @class */ (function (_super) {
72
71
  var traversalPath = path.clone();
73
72
  var current = traversalPath.next();
74
73
  if (current !== null) {
75
- return this.interfaceFns.has(current);
74
+ return this.interfaceFns.has(current.toString());
76
75
  }
77
76
  return false;
78
77
  };
@@ -89,14 +88,14 @@ var CustomInterface = /** @class */ (function (_super) {
89
88
  var traversalPath = path.clone();
90
89
  var current = traversalPath.next();
91
90
  if (current !== null) {
92
- if (this.interfaceFns.has(current)) {
93
- return this.interfaceFns.get(current);
91
+ if (this.interfaceFns.has(current.toString())) {
92
+ return this.interfaceFns.get(current.toString());
94
93
  }
95
94
  }
96
95
  throw new Error("Unknown path in interface ".concat(path.toString(), "."));
97
96
  };
98
97
  CustomInterface.prototype.addFunction = function (name, fn) {
99
- this.interfaceFns.set(new string_1.default(name), fn);
98
+ this.interfaceFns.set(name, fn);
100
99
  return this;
101
100
  };
102
101
  return CustomInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "1.1.4",
3
+ "version": "1.1.7",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -48,8 +48,8 @@
48
48
  "typescript": "^4.5.4"
49
49
  },
50
50
  "dependencies": {
51
- "greybel-core": "^0.4.1",
52
- "greyscript-core": "^0.3.4"
51
+ "greybel-core": "^0.4.3",
52
+ "greyscript-core": "^0.3.6"
53
53
  },
54
54
  "keywords": [
55
55
  "greyscript",