pacc 4.35.0 → 4.36.0
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 +3 -1
- package/types/attributes.d.mts +1 -0
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -66,8 +66,10 @@ export function* attributeIterator(definition, filter, path = []) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export const filterWritable = (name, attribute) => attribute.writable;
|
|
70
|
+
|
|
69
71
|
export function* writableAttributeIterator(definition) {
|
|
70
|
-
yield* attributeIterator(definition,
|
|
72
|
+
yield* attributeIterator(definition, filterWritable);
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
export function prepareValue(value, attribute) {
|
package/types/attributes.d.mts
CHANGED
|
@@ -16,3 +16,4 @@ export function attributeIterator(definition: any, filter: Function, path?: stri
|
|
|
16
16
|
export function writableAttributeIterator(definition: any): Generator<[string[], any], void, any>;
|
|
17
17
|
export function prepareValue(value: any, attribute: any): any;
|
|
18
18
|
export function manadatoryAttributesPresent(object: any, attributes: any): boolean;
|
|
19
|
+
export function filterWritable(name: any, attribute: any): any;
|