pmcf 2.19.6 → 2.20.0
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
CHANGED
|
@@ -76,14 +76,18 @@ class SkeletonNetworkInterface extends Base {
|
|
|
76
76
|
* @param {object} filter
|
|
77
77
|
* @return {Iterable<NetworkAddress>}
|
|
78
78
|
*/
|
|
79
|
-
*networkAddresses(filter) {
|
|
79
|
+
*networkAddresses(filter=(n)=>true) {
|
|
80
80
|
for (const [address, subnet] of this.ipAddresses) {
|
|
81
|
-
|
|
81
|
+
const networkAddress = {
|
|
82
82
|
networkInterface: this,
|
|
83
83
|
domainNames: this.domainNames,
|
|
84
84
|
address,
|
|
85
85
|
subnet
|
|
86
86
|
};
|
|
87
|
+
|
|
88
|
+
if(filter(networkAddress)) {
|
|
89
|
+
yield networkAddress;
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
93
|
|
|
@@ -714,7 +714,7 @@ declare class SkeletonNetworkInterface extends Base {
|
|
|
714
714
|
* @param {object} filter
|
|
715
715
|
* @return {Iterable<NetworkAddress>}
|
|
716
716
|
*/
|
|
717
|
-
networkAddresses(filter
|
|
717
|
+
networkAddresses(filter?: object): Iterable<NetworkAddress>;
|
|
718
718
|
get rawAddress(): any;
|
|
719
719
|
get rawIPv4Address(): any;
|
|
720
720
|
get rawIPv6Address(): any;
|