@adobe/spacecat-shared-data-access 1.9.0 → 1.9.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/models/audit.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v1.9.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.0...@adobe/spacecat-shared-data-access-v1.9.1) (2024-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* initialize scores as an empty object (SITES-18417) ([#87](https://github.com/adobe/spacecat-shared/issues/87)) ([eb38e32](https://github.com/adobe/spacecat-shared/commit/eb38e3298228edb1d996fa633bff4af4dcbf69db))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v1.9.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.8.0...@adobe/spacecat-shared-data-access-v1.9.0) (2024-01-18)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/models/audit.js
CHANGED
|
@@ -107,6 +107,9 @@ export const createAudit = (data) => {
|
|
|
107
107
|
throw new Error('Audit result must be an object');
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
if (!newState.scores) {
|
|
111
|
+
newState.scores = {};
|
|
112
|
+
}
|
|
110
113
|
validateScores(data.auditResult, data.auditType);
|
|
111
114
|
|
|
112
115
|
if (data.previousAuditResult && !isObject(data.previousAuditResult)) {
|