@adobe/spacecat-shared-data-access 1.9.0 → 1.9.2

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v1.9.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.1...@adobe/spacecat-shared-data-access-v1.9.2) (2024-01-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * createdAt test ([#88](https://github.com/adobe/spacecat-shared/issues/88)) ([ac6a5ba](https://github.com/adobe/spacecat-shared/commit/ac6a5bab9ee45a2840681f291a13f23a3eb97e25))
7
+
8
+ # [@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)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 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))
14
+
1
15
  # [@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
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -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)) {