pacc 4.31.0 → 4.31.1
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/attributes.mjs +5 -6
- package/src/environment.mjs +1 -1
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {getAttribute} from "./settergetter.mjs";
|
|
1
|
+
import { getAttribute } from "./settergetter.mjs";
|
|
2
2
|
|
|
3
3
|
export const baseTypes = new Set(["string", "number", "bigint", "boolean"]);
|
|
4
4
|
|
|
@@ -86,14 +86,13 @@ function mergeAttributeDefinitions(dest, atts) {
|
|
|
86
86
|
export function* attributeIterator(definition, filter, path = []) {
|
|
87
87
|
if (definition) {
|
|
88
88
|
for (const [name, def] of Object.entries(definition)) {
|
|
89
|
+
const path2 = [...path, name];
|
|
89
90
|
if (!filter || filter(name, def)) {
|
|
90
|
-
const path2 = [...path, name];
|
|
91
|
-
|
|
92
91
|
yield [path2, def];
|
|
92
|
+
}
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
94
|
+
if (def.attributes) {
|
|
95
|
+
yield* attributeIterator(def.attributes, filter, path2);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
}
|
package/src/environment.mjs
CHANGED
|
@@ -12,7 +12,7 @@ export function environmentValues(env, attributes, instanceIdentifier) {
|
|
|
12
12
|
|
|
13
13
|
for (const [path, attribute] of attributeIterator(
|
|
14
14
|
attributes,
|
|
15
|
-
(name, attribute) => attribute.env
|
|
15
|
+
(name, attribute) => attribute.env
|
|
16
16
|
)) {
|
|
17
17
|
const name = path.join(".");
|
|
18
18
|
|