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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "4.35.0",
3
+ "version": "4.36.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -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, (name, def) => def.writable);
72
+ yield* attributeIterator(definition, filterWritable);
71
73
  }
72
74
 
73
75
  export function prepareValue(value, attribute) {
@@ -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;