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.4",
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.6",
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 {
@@ -680,6 +680,7 @@ export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
680
680
  get scope(): string;
681
681
  get hostName(): string;
682
682
  get ipAddresses(): Map<string, {
683
+ address: string;
683
684
  prefix: string;
684
685
  prefixLength: number;
685
686
  }>;