greybel-interpreter 2.2.12 → 2.2.14
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.
- package/dist/context.js +3 -2
- package/package.json +2 -2
package/dist/context.js
CHANGED
|
@@ -40,6 +40,7 @@ class Scope extends map_1.CustomMap {
|
|
|
40
40
|
this.context = context;
|
|
41
41
|
}
|
|
42
42
|
get(path) {
|
|
43
|
+
var _a, _b;
|
|
43
44
|
if (path instanceof base_1.CustomValue) {
|
|
44
45
|
return this.get(new path_1.Path([path]));
|
|
45
46
|
}
|
|
@@ -51,10 +52,10 @@ class Scope extends map_1.CustomMap {
|
|
|
51
52
|
if (this.has(path)) {
|
|
52
53
|
return super.get(path);
|
|
53
54
|
}
|
|
54
|
-
else if (this.context.globals.scope.has(path)) {
|
|
55
|
+
else if ((_a = this.context.globals) === null || _a === void 0 ? void 0 : _a.scope.has(path)) {
|
|
55
56
|
return this.context.globals.scope.get(path);
|
|
56
57
|
}
|
|
57
|
-
else if (this.context.api.scope.has(path)) {
|
|
58
|
+
else if ((_b = this.context.api) === null || _b === void 0 ? void 0 : _b.scope.has(path)) {
|
|
58
59
|
return this.context.api.scope.get(path);
|
|
59
60
|
}
|
|
60
61
|
else if (path.count() === 1 && map_1.CustomMap.getIntrinsics().has(current)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greybel-interpreter",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
4
4
|
"description": "Interpreter",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.0.4"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"greybel-core": "^0.9.
|
|
51
|
+
"greybel-core": "^0.9.11",
|
|
52
52
|
"greyscript-core": "^0.9.12"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|