greybel-mock-environment 1.4.3 → 1.4.5

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/fs.js CHANGED
@@ -229,6 +229,15 @@ function getLibFiles(options) {
229
229
  version: options.libManager
230
230
  .getLatestVersion(library_1.Library.APT_CLIENT)
231
231
  .toString()
232
+ }, options.parent), new file_system_1.File({
233
+ isProtected: true,
234
+ name: 'testlib.so',
235
+ permissions: 'rwxrwxrwx',
236
+ owner: 'root',
237
+ type: file_system_1.FileType.TestLib,
238
+ version: options.libManager
239
+ .getLatestVersion(library_1.Library.TEST_LIB)
240
+ .toString()
232
241
  }, options.parent));
233
242
  }
234
243
  return generateFiles.apply(void 0, __spreadArray([], __read(libFiles), false));
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { default as MockEnvironment, RouterLocation, InitalUserCredentials, MockEnvironmentOptions } from './environment';
1
+ export { InitalUserCredentials, default as MockEnvironment, MockEnvironmentOptions, RouterLocation } from './environment';
2
2
  export * as FS from './fs';
3
3
  export * as Generators from './generators';
4
4
  export { default as MockTranspiler } from './mock-transpiler';
@@ -23,7 +23,8 @@ export declare enum FileType {
23
23
  Chat = 14,
24
24
  RShell = 15,
25
25
  Repository = 16,
26
- AptClient = 17
26
+ AptClient = 17,
27
+ TestLib = 18
27
28
  }
28
29
  export interface EntityOptions {
29
30
  name: string;
@@ -82,6 +82,7 @@ var FileType;
82
82
  FileType[FileType["RShell"] = 15] = "RShell";
83
83
  FileType[FileType["Repository"] = 16] = "Repository";
84
84
  FileType[FileType["AptClient"] = 17] = "AptClient";
85
+ FileType[FileType["TestLib"] = 18] = "TestLib";
85
86
  })(FileType = exports.FileType || (exports.FileType = {}));
86
87
  var Entity = /** @class */ (function (_super) {
87
88
  __extends(Entity, _super);
@@ -155,6 +155,7 @@ var LibraryManager = /** @class */ (function () {
155
155
  this.register(library_1.Library.CAM);
156
156
  this.register(library_1.Library.REPOSITORY);
157
157
  this.register(library_1.Library.APT_CLIENT, []);
158
+ this.register(library_1.Library.TEST_LIB, []);
158
159
  };
159
160
  LibraryManager.prototype.register = function (library, allowedModes) {
160
161
  if (this.libraries.has(library)) {
@@ -15,5 +15,6 @@ export declare enum Library {
15
15
  NET = "net",
16
16
  BLOCKCHAIN = "blockchain",
17
17
  APT_CLIENT = "aptclient",
18
- REPOSITORY = "librepository"
18
+ REPOSITORY = "librepository",
19
+ TEST_LIB = "testlib"
19
20
  }
@@ -20,4 +20,5 @@ var Library;
20
20
  Library["BLOCKCHAIN"] = "blockchain";
21
21
  Library["APT_CLIENT"] = "aptclient";
22
22
  Library["REPOSITORY"] = "librepository";
23
+ Library["TEST_LIB"] = "testlib";
23
24
  })(Library = exports.Library || (exports.Library = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
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.5.6",
51
+ "greyscript-core": "^0.6.2",
52
52
  "random-seed": "^0.3.0",
53
53
  "random-username-generator": "^1.0.4"
54
54
  }