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.
- package/dist/types/device.d.ts +3 -3
- package/dist/types/device.js +9 -6
- package/package.json +1 -1
package/dist/types/device.d.ts
CHANGED
|
@@ -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(
|
|
47
|
-
forward(
|
|
48
|
-
unforward(
|
|
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;
|
package/dist/types/device.js
CHANGED
|
@@ -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 (
|
|
106
|
-
|
|
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 (
|
|
109
|
-
|
|
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 (
|
|
112
|
-
|
|
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;
|