repository-provider 26.7.3 → 26.7.4

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": "repository-provider",
3
- "version": "26.7.3",
3
+ "version": "26.7.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/attribute.mjs CHANGED
@@ -49,7 +49,7 @@ export function definePropertiesFromOptions(
49
49
 
50
50
  if (value === undefined) {
51
51
  if (attribute.getDefault) {
52
- value = attribute.getDefault(attribute, object);
52
+ value = attribute.getDefault(attribute, object, properties);
53
53
  } else if (
54
54
  attribute.default !== undefined &&
55
55
  attribute.default !== getAttribute(object, name)
@@ -155,7 +155,7 @@ export function setAttribute(object, name, value) {
155
155
  export function getAttribute(object, name) {
156
156
  let value = object;
157
157
 
158
- if(value && value[name] !== undefined) {
158
+ if (value && value[name] !== undefined) {
159
159
  return value[name];
160
160
  }
161
161