pmcf 3.10.7 → 3.10.8
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/package.json +1 -1
- package/src/host.mjs +1 -20
- package/types/host.d.mts +0 -2
package/package.json
CHANGED
package/src/host.mjs
CHANGED
|
@@ -18,8 +18,7 @@ import {
|
|
|
18
18
|
sectionLines,
|
|
19
19
|
asArray
|
|
20
20
|
} from "./utils.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import { addType, types } from "./types.mjs";
|
|
21
|
+
import { addType } from "./types.mjs";
|
|
23
22
|
import { loadHooks } from "./hooks.mjs";
|
|
24
23
|
import { generateMachineInfo, generateKnownHosts } from "./host-utils.mjs";
|
|
25
24
|
import { NetworkInterfaceTypeDefinition } from "./network-interfaces/network-interface.mjs";
|
|
@@ -404,24 +403,6 @@ export class Host extends ServiceOwner {
|
|
|
404
403
|
);
|
|
405
404
|
}
|
|
406
405
|
|
|
407
|
-
*findNetworkInterfaces(filter) {
|
|
408
|
-
yield* objectFilter(
|
|
409
|
-
types.network_interface,
|
|
410
|
-
this._networkInterfaces.values(),
|
|
411
|
-
filter
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
findNetworkInterface(filter) {
|
|
416
|
-
for (const ni of objectFilter(
|
|
417
|
-
types.network_interface,
|
|
418
|
-
this._networkInterfaces.values(),
|
|
419
|
-
filter
|
|
420
|
-
)) {
|
|
421
|
-
return ni;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
406
|
get networkInterfaces() {
|
|
426
407
|
return this._networkInterfaces;
|
|
427
408
|
}
|
package/types/host.d.mts
CHANGED
|
@@ -396,8 +396,6 @@ export class Host extends ServiceOwner {
|
|
|
396
396
|
get host(): this;
|
|
397
397
|
hosts(): Generator<this, void, unknown>;
|
|
398
398
|
get networks(): Set<any>;
|
|
399
|
-
findNetworkInterfaces(filter: any): Generator<any, void, any>;
|
|
400
|
-
findNetworkInterface(filter: any): any;
|
|
401
399
|
set networkInterfaces(networkInterface: Map<any, any>);
|
|
402
400
|
get networkInterfaces(): Map<any, any>;
|
|
403
401
|
networkAddresses(filter: any): Generator<any, void, any>;
|