pmcf 6.66.10 → 6.66.11
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/core.mjs +2 -3
- package/src/endpoint.mjs +2 -2
- package/src/network-address.mjs +1 -2
package/package.json
CHANGED
package/src/core.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
filterPublic,
|
|
5
5
|
parse,
|
|
6
6
|
extendingAttributeIterator,
|
|
7
|
-
getAttribute,
|
|
8
7
|
expand,
|
|
9
8
|
globals
|
|
10
9
|
} from "pacc";
|
|
@@ -167,7 +166,7 @@ export class core {
|
|
|
167
166
|
*/
|
|
168
167
|
attribute(name) {
|
|
169
168
|
for (const node of this.walkDirections(["this", "extends"])) {
|
|
170
|
-
const value =
|
|
169
|
+
const value = node[name];
|
|
171
170
|
if (value !== undefined) {
|
|
172
171
|
return this.expand(value);
|
|
173
172
|
}
|
|
@@ -285,7 +284,7 @@ export class core {
|
|
|
285
284
|
* @returns {any}
|
|
286
285
|
*/
|
|
287
286
|
expand(object) {
|
|
288
|
-
if (this.isTemplate) {
|
|
287
|
+
if (object === undefined || this.isTemplate) {
|
|
289
288
|
return object;
|
|
290
289
|
}
|
|
291
290
|
|
package/src/endpoint.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { string_attribute, url_attribute } from "pacc";
|
|
2
2
|
import { FAMILY_IPV6, FAMILY_IPV4 } from "ip-utilties";
|
|
3
3
|
import { addType } from "./type.mjs";
|
|
4
4
|
import { CoreService } from "./core-service.mjs";
|
|
@@ -43,7 +43,7 @@ class BaseEndpoint {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
attribute(name) {
|
|
46
|
-
return
|
|
46
|
+
return this[name];
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
value(name) {
|
package/src/network-address.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
default_attribute,
|
|
3
3
|
type_attribute,
|
|
4
|
-
getAttribute,
|
|
5
4
|
leafValues
|
|
6
5
|
} from "pacc";
|
|
7
6
|
import { familyIP, formatCIDR, decodeIP, addressType } from "ip-utilties";
|
|
@@ -89,7 +88,7 @@ export class NetworkAddress {
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
attribute(name) {
|
|
92
|
-
return
|
|
91
|
+
return this[name];
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
value(name) {
|