greybel-interpreter 0.3.1 → 0.3.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.
@@ -89,7 +89,7 @@ var Interpreter = /** @class */ (function (_super) {
89
89
  }
90
90
  Interpreter.prototype.inject = function (code) {
91
91
  return __awaiter(this, void 0, void 0, function () {
92
- var me, parser, chunk, body, err_1;
92
+ var me, parser, chunk, body, context, err_1;
93
93
  return __generator(this, function (_a) {
94
94
  switch (_a.label) {
95
95
  case 0:
@@ -102,7 +102,11 @@ var Interpreter = /** @class */ (function (_super) {
102
102
  _a.label = 2;
103
103
  case 2:
104
104
  _a.trys.push([2, 4, , 5]);
105
- return [4 /*yield*/, body.run(me.globalContext)];
105
+ context = me.globalContext.fork({
106
+ type: context_1.ContextType.INJECTION,
107
+ state: context_1.ContextState.TEMPORARY
108
+ });
109
+ return [4 /*yield*/, body.run(context)];
106
110
  case 3:
107
111
  _a.sent();
108
112
  return [3 /*break*/, 5];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -35,6 +35,8 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "greybel-core": "^0.1.9",
38
+ "greybel-interpreter": "^0.3.1",
39
+ "greybel-intrinsics": "^0.2.1",
38
40
  "greyscript-core": "^0.1.7",
39
41
  "uuid": "^8.3.2"
40
42
  },