pmcf 1.38.1 → 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 +2 -2
- package/src/owner.mjs +1 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "1.38.
|
|
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.
|
|
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);
|