greybel-mock-environment 2.4.16 → 2.4.17

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.
@@ -43,9 +43,9 @@ export declare class Device {
43
43
  name: string;
44
44
  constructor(options: DeviceOptions, initialize?: boolean);
45
45
  initialize(): void;
46
- isForwarded(_port: number): boolean;
47
- forward(_port: number): boolean;
48
- unforward(_port: number): boolean;
46
+ isForwarded(port: number): boolean;
47
+ forward(port: number): boolean;
48
+ unforward(port: number): boolean;
49
49
  getNetworkDeviceMap(): Map<string, NetworkDevice>;
50
50
  findNetworkDevicesByNetCard(netCard: NetCard): NetworkDevice[];
51
51
  addUser(userName: string, password: string): boolean;
@@ -102,14 +102,17 @@ var Device = /** @class */ (function () {
102
102
  finally { if (e_2) throw e_2.error; }
103
103
  }
104
104
  };
105
- Device.prototype.isForwarded = function (_port) {
106
- return false;
105
+ Device.prototype.isForwarded = function (port) {
106
+ var _a;
107
+ return (_a = this.getRouter()) === null || _a === void 0 ? void 0 : _a.isForwarded(port);
107
108
  };
108
- Device.prototype.forward = function (_port) {
109
- return false;
109
+ Device.prototype.forward = function (port) {
110
+ var _a;
111
+ return (_a = this.getRouter()) === null || _a === void 0 ? void 0 : _a.forward(port);
110
112
  };
111
- Device.prototype.unforward = function (_port) {
112
- return false;
113
+ Device.prototype.unforward = function (port) {
114
+ var _a;
115
+ return (_a = this.getRouter()) === null || _a === void 0 ? void 0 : _a.unforward(port);
113
116
  };
114
117
  Device.prototype.getNetworkDeviceMap = function () {
115
118
  var e_3, _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "2.4.16",
3
+ "version": "2.4.17",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",