greybel-interpreter 0.1.7 → 0.1.8

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.
@@ -195,7 +195,7 @@ var CustomList = /** @class */ (function (_super) {
195
195
  }
196
196
  }
197
197
  else if (path.length === 1 && CustomList.intrinsics.has(currentValue)) {
198
- return [2 /*return*/, CustomList.intrinsics.get(currentValue)];
198
+ return [2 /*return*/, CustomList.intrinsics.get(currentValue).bind(null, me)];
199
199
  }
200
200
  else {
201
201
  throw new Error("Cannot get path ".concat(path.join('.')));
@@ -228,7 +228,7 @@ var CustomList = /** @class */ (function (_super) {
228
228
  }
229
229
  else if (path.length === 1 && CustomList.intrinsics.has(current)) {
230
230
  return [2 /*return*/, {
231
- origin: CustomList.intrinsics.get(current),
231
+ origin: CustomList.intrinsics.get(current).bind(null, me),
232
232
  context: me
233
233
  }];
234
234
  }
@@ -180,7 +180,7 @@ var CustomMap = /** @class */ (function (_super) {
180
180
  }
181
181
  }
182
182
  else if (path.length === 1 && CustomMap.intrinsics.has(currentValue)) {
183
- return [2 /*return*/, CustomMap.intrinsics.get(currentValue)];
183
+ return [2 /*return*/, CustomMap.intrinsics.get(currentValue).bind(null, me)];
184
184
  }
185
185
  else {
186
186
  throw new Error("Cannot get path ".concat(path.join('.')));
@@ -212,7 +212,7 @@ var CustomMap = /** @class */ (function (_super) {
212
212
  }
213
213
  else if (path.length === 1 && CustomMap.intrinsics.has(current)) {
214
214
  return [2 /*return*/, {
215
- origin: CustomMap.intrinsics.get(current),
215
+ origin: CustomMap.intrinsics.get(current).bind(null, me),
216
216
  context: me
217
217
  }];
218
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",