greybel-mock-environment 1.5.1 → 1.5.3
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/mock-transpiler.js
CHANGED
|
@@ -436,10 +436,10 @@ function createBuildMap(make, computer) {
|
|
|
436
436
|
return body.join('\n');
|
|
437
437
|
},
|
|
438
438
|
ImportCodeExpression: function (item) {
|
|
439
|
-
var segments = item.
|
|
439
|
+
var segments = item.directory.split('/').slice(1);
|
|
440
440
|
var file = computer.getFile(segments);
|
|
441
441
|
if (file === null) {
|
|
442
|
-
throw new Error("Cannot find ".concat(item.
|
|
442
|
+
throw new Error("Cannot find ".concat(item.directory, "!"));
|
|
443
443
|
}
|
|
444
444
|
return file.content || '';
|
|
445
445
|
}
|
|
@@ -207,6 +207,8 @@ var File = /** @class */ (function (_super) {
|
|
|
207
207
|
return library_1.Library.HTTP;
|
|
208
208
|
case FileType.KernelRouter:
|
|
209
209
|
return library_1.Library.KERNEL_ROUTER;
|
|
210
|
+
case FileType.RShell:
|
|
211
|
+
return library_1.Library.RSHELL;
|
|
210
212
|
default:
|
|
211
213
|
}
|
|
212
214
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greybel-mock-environment",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Mock environment",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@types/random-seed": "^0.3.3",
|
|
50
50
|
"blueimp-md5": "^2.19.0",
|
|
51
|
-
"greyscript-core": "^0.
|
|
51
|
+
"greyscript-core": "^0.8.0",
|
|
52
52
|
"random-seed": "^0.3.0",
|
|
53
53
|
"random-username-generator": "^1.0.4"
|
|
54
54
|
}
|