pmcf 2.19.4 → 2.19.5
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"ip-utilties": "^1.0
|
|
41
|
+
"ip-utilties": "^1.1.0",
|
|
42
42
|
"npm-pkgbuild": "^18.0.1",
|
|
43
43
|
"pacc": "^3.3.0",
|
|
44
44
|
"pkg-dir": "^8.0.0"
|
package/src/host.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
generateMachineInfo,
|
|
14
14
|
generateKnownHosts
|
|
15
15
|
} from "./host-utils.mjs";
|
|
16
|
-
import {NetworkInterfaceTypeDefinition} from "./network-interface.mjs";
|
|
16
|
+
import { NetworkInterfaceTypeDefinition } from "./network-interface.mjs";
|
|
17
17
|
|
|
18
18
|
const HostTypeDefinition = {
|
|
19
19
|
name: "host",
|
|
@@ -448,7 +448,7 @@ export class Host extends Base {
|
|
|
448
448
|
|
|
449
449
|
get cidrAddresses() {
|
|
450
450
|
return [...this.networkAddresses()].map(({ address, subnet }) =>
|
|
451
|
-
formatCIDR(address, subnet)
|
|
451
|
+
formatCIDR(address, subnet.prefixLength)
|
|
452
452
|
);
|
|
453
453
|
}
|
|
454
454
|
|
|
@@ -96,7 +96,7 @@ class SkeletonNetworkInterface extends Base {
|
|
|
96
96
|
|
|
97
97
|
get cidrAddresses() {
|
|
98
98
|
return [...this.ipAddresses].map(([address, subnet]) =>
|
|
99
|
-
formatCIDR(address, subnet)
|
|
99
|
+
formatCIDR(address, subnet.prefixLength)
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -292,8 +292,8 @@ const LoopbackNetworkInterfaceTypeDefinition = {
|
|
|
292
292
|
};
|
|
293
293
|
|
|
294
294
|
const _localAddresses = new Map([
|
|
295
|
-
["127.0.0.1", { prefix: "127.0.0", prefixLength: 8 }], // TODO
|
|
296
|
-
["::1", { prefix: "", prefixLength: 128 }]
|
|
295
|
+
["127.0.0.1", { address: "127.0.0/8", prefix: "127.0.0", prefixLength: 8 }], // TODO
|
|
296
|
+
["::1", { address: "::1/128", prefix: "::1", prefixLength: 128 }]
|
|
297
297
|
]);
|
|
298
298
|
|
|
299
299
|
export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
|