greybel-mock-environment 1.5.2 → 1.5.4
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 +2 -2
- package/package.json +2 -2
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greybel-mock-environment",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
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.1",
|
|
52
52
|
"random-seed": "^0.3.0",
|
|
53
53
|
"random-username-generator": "^1.0.4"
|
|
54
54
|
}
|