pmcf 6.21.4 → 6.21.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": "6.21.4",
3
+ "version": "6.21.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -112,14 +112,14 @@ export class Base {
112
112
  this.constructor,
113
113
  attribute => attribute.collection && !attribute.type.primitive
114
114
  )) {
115
- const collection = this[path];
115
+ const collection = this[attribute.name];
116
116
  if (typeof collection?.get === "function") {
117
117
  for (const [name, extending] of this.mapFromDirections(
118
118
  ["extends"],
119
- path
119
+ attribute.name
120
120
  )) {
121
121
  const present = collection.get(extending.name);
122
-
122
+ //console.log("ME",this.fullName,attribute.name,extending.name);
123
123
  if (present) {
124
124
  present.extends.add(extending);
125
125
  present.materializeExtends();
@@ -128,6 +128,25 @@ export class Base {
128
128
  }
129
129
  }
130
130
  }
131
+ /*
132
+ else {
133
+ if (collection instanceof Set) {
134
+ for (const all of this.unionFromDirections(["extends"], attribute.name)) {
135
+ if (all instanceof Set) {
136
+ const d = collection.difference(all);
137
+
138
+ // if (d.size) {
139
+ console.log("ME", this.fullName, attribute.name, d);
140
+ // }
141
+ }
142
+ else {
143
+ // console.error("NO SET",this.fullName, attribute.name, typeof all, all.constructor.name);
144
+ }
145
+ }
146
+ } else {
147
+ //console.log("NO MAP OR SET", this.fullName, name);
148
+ }
149
+ }*/
131
150
  }
132
151
  }
133
152
 
@@ -20,7 +20,7 @@ import {
20
20
  FAMILY_UNIX,
21
21
  FAMILY_DNS
22
22
  } from "pmcf";
23
- import { asArray, union } from "./utils.mjs";
23
+ import { asArray } from "./utils.mjs";
24
24
  import { networkAddressAttributes } from "./common-attributes.mjs";
25
25
  import {
26
26
  serviceTypeEndpoints,