greybel-mock-environment 1.0.5 → 1.0.6

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.
@@ -70,7 +70,9 @@ var ServerMapGenerator = /** @class */ (function () {
70
70
  activeNetCard: options.activeNetCard || networkDevice.type,
71
71
  networkDevices: options.networkDevices || [networkDevice],
72
72
  users: options.users || switchUsers,
73
- fileSystem: options.fileSystem || (0, default_fs_1.getDefaultFileSystem)(switchUsers)
73
+ fileSystem: options.fileSystem || (0, default_fs_1.getDefaultFileSystem)(switchUsers),
74
+ bssid: options.bssid || basicGenerator.generateUUID(),
75
+ essid: options.essid || basicGenerator.generateUUID()
74
76
  });
75
77
  for (var index = me.networkRng.intBetween(2, 4); index >= 0; index--) {
76
78
  me.generateComputer(subSwitch, [
@@ -189,7 +191,9 @@ var NetworkGenerator = /** @class */ (function () {
189
191
  activeNetCard: options.activeNetCard || networkDevice.type,
190
192
  networkDevices: options.networkDevices || [networkDevice],
191
193
  users: options.users || routerUsers,
192
- fileSystem: options.fileSystem || (0, default_fs_1.getDefaultFileSystem)(routerUsers)
194
+ fileSystem: options.fileSystem || (0, default_fs_1.getDefaultFileSystem)(routerUsers),
195
+ bssid: options.bssid || basicGenerator.generateUUID(),
196
+ essid: options.essid || basicGenerator.generateUUID()
193
197
  });
194
198
  var serverMapGenerator = new ServerMapGenerator({
195
199
  router: router,
@@ -225,8 +229,6 @@ var NetworkGenerator = /** @class */ (function () {
225
229
  mac: options.mac || basicGenerator.generateMAC(),
226
230
  percentage: options.percentage || me.networkRng.intBetween(20, 70),
227
231
  name: options.name || basicGenerator.generateUsername(),
228
- bssid: options.bssid || basicGenerator.generateUUID(),
229
- essid: options.essid || basicGenerator.generateUUID(),
230
232
  password: options.password || basicGenerator.generatePassword(),
231
233
  router: router
232
234
  });
@@ -1,10 +1,14 @@
1
1
  import { Device, DeviceOptions } from './device';
2
2
  export interface RouterOptions extends DeviceOptions {
3
+ bssid: string;
4
+ essid: string;
3
5
  publicIp?: string;
4
6
  domain: string;
5
7
  whoisDescription: string;
6
8
  }
7
9
  export declare class Router extends Device {
10
+ bssid: string;
11
+ essid: string;
8
12
  publicIp?: string;
9
13
  domain: string;
10
14
  whoisDescription: string;
@@ -21,6 +21,8 @@ var Router = /** @class */ (function (_super) {
21
21
  __extends(Router, _super);
22
22
  function Router(options) {
23
23
  var _this = _super.call(this, options) || this;
24
+ _this.bssid = options.bssid;
25
+ _this.essid = options.essid;
24
26
  _this.publicIp = options.publicIp;
25
27
  _this.domain = options.domain;
26
28
  _this.whoisDescription = options.whoisDescription;
@@ -1,7 +1,5 @@
1
1
  import { Router } from './router';
2
2
  export interface WifiNetworkOptions {
3
- bssid: string;
4
- essid: string;
5
3
  password: string;
6
4
  router: Router;
7
5
  mac: string;
@@ -9,8 +7,6 @@ export interface WifiNetworkOptions {
9
7
  name: string;
10
8
  }
11
9
  export declare class WifiNetwork {
12
- bssid: string;
13
- essid: string;
14
10
  password: string;
15
11
  router: Router;
16
12
  mac: string;
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WifiNetwork = void 0;
4
4
  var WifiNetwork = /** @class */ (function () {
5
5
  function WifiNetwork(options) {
6
- this.bssid = options.bssid;
7
- this.essid = options.essid;
8
6
  this.password = options.password;
9
7
  this.router = options.router;
10
8
  this.mac = options.mac;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",