pacc 7.0.3 → 7.1.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 +1 -0
- package/types/attributes.d.mts +1 -0
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -65,6 +65,7 @@ export function* attributeIterator(definition, filter, path = []) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export const filterWritable = (name, attribute) => attribute.writable;
|
|
68
|
+
export const filterPublic = (name, attribute) => !attribute.private;
|
|
68
69
|
|
|
69
70
|
export function* writableAttributeIterator(definition) {
|
|
70
71
|
yield* attributeIterator(definition, filterWritable);
|
package/types/attributes.d.mts
CHANGED
|
@@ -18,4 +18,5 @@ export function toInternal(value: any, attribute: any): any;
|
|
|
18
18
|
export function toExternal(value: any, attribute: any): any;
|
|
19
19
|
export function mandatoryAttributesPresent(object: any, attributes: any): boolean;
|
|
20
20
|
export function filterWritable(name: any, attribute: any): any;
|
|
21
|
+
export function filterPublic(name: any, attribute: any): boolean;
|
|
21
22
|
export { toInternal as prepareValue };
|