pmcf 1.38.0 → 1.38.2

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": "1.38.0",
3
+ "version": "1.38.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -51,7 +51,7 @@
51
51
  "typescript": "^5.7.3"
52
52
  },
53
53
  "engines": {
54
- "node": ">=22.13.1"
54
+ "node": ">=22.14.0"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",
package/src/owner.mjs CHANGED
@@ -14,19 +14,6 @@ export class Owner extends Base {
14
14
  return "owner";
15
15
  }
16
16
 
17
- /*static async prepareData(root, data) {
18
- if (data.networks) {
19
- for (const [name, networkData] of Object.entries(data.networks)) {
20
- if(networkData.gateway) {
21
- networkData.gateway = await root.load(networkData.gateway, { type: root.types.host });
22
- console.log("GATEWAY", networkData.gateway);
23
- }
24
- }
25
- }
26
-
27
- return this;
28
- }*/
29
-
30
17
  constructor(owner, data = {}) {
31
18
  super(owner, data);
32
19
 
@@ -341,9 +328,7 @@ export class Network extends Owner {
341
328
  Object.assign(this, data);
342
329
 
343
330
  if (typeof this.gateway === "string") {
344
- this.finalize(() => {
345
- this.gateway = this.owner.hostNamed(this.gateway);
346
- });
331
+ this.finalize(() => (this.gateway = this.owner.hostNamed(this.gateway)));
347
332
  }
348
333
 
349
334
  this.bridge = owner.addBridge(this, bridge);
package/src/utils.mjs CHANGED
@@ -77,7 +77,7 @@ const ipv6 = {
77
77
  };
78
78
 
79
79
  function _decode(definition, address, length = definition.length) {
80
- let words = [];
80
+ const words = [];
81
81
  let shift = definition.length;
82
82
 
83
83
  for (let i = 0; i < length / definition.segmentLength; i++) {