pmcf 1.30.6 → 1.30.7
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 +1 -1
- package/src/base.mjs +11 -6
- package/src/owner.mjs +1 -3
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -112,7 +112,7 @@ export class Base {
|
|
|
112
112
|
return new Set([...object].map(e => this.expand(e)));
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
/*return Object.fromEntries(
|
|
116
116
|
Object.entries(object).map(([k, v]) => [k, this.expand(v)])
|
|
117
117
|
);*/
|
|
118
118
|
}
|
|
@@ -189,12 +189,17 @@ export function extractFrom(object, propertyNames) {
|
|
|
189
189
|
for (const p of propertyNames) {
|
|
190
190
|
const value = object[p];
|
|
191
191
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
switch (typeof value) {
|
|
193
|
+
case "undefined":
|
|
194
|
+
break;
|
|
195
|
+
case "object":
|
|
196
|
+
if (value instanceof Base && value.name !== undefined) {
|
|
197
|
+
json[p] = { name: value.name, type: value.typeName };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
196
202
|
json[p] = value;
|
|
197
|
-
}
|
|
198
203
|
}
|
|
199
204
|
}
|
|
200
205
|
return json;
|
package/src/owner.mjs
CHANGED
|
@@ -84,8 +84,6 @@ export class Owner extends Base {
|
|
|
84
84
|
this.#membersByType.set(typeName, typeSlot);
|
|
85
85
|
}
|
|
86
86
|
typeSlot.set(fullName, object);
|
|
87
|
-
|
|
88
|
-
//console.log(this.toString(),"ADD", typeName, fullName, object.name, this.named(fullName)?.toString());
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
addObject(object) {
|
|
@@ -190,7 +188,7 @@ export class Owner extends Base {
|
|
|
190
188
|
|
|
191
189
|
_resolveBridges() {
|
|
192
190
|
for (const bridge of this.#bridges) {
|
|
193
|
-
this.info(bridgeToJSON(bridge));
|
|
191
|
+
//this.info(bridgeToJSON(bridge));
|
|
194
192
|
for (const network of bridge) {
|
|
195
193
|
if (typeof network === "string") {
|
|
196
194
|
const other = this.networkNamed(network);
|