@adobe/spacecat-shared-data-access 1.9.2 → 1.9.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/CHANGELOG.md +14 -0
- package/package.json +4 -4
- package/src/models/audit.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v1.9.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.3...@adobe/spacecat-shared-data-access-v1.9.4) (2024-01-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#90](https://github.com/adobe/spacecat-shared/issues/90)) ([df8161e](https://github.com/adobe/spacecat-shared/commit/df8161e4be87a5a3035729ce94388a8ccaf1630b))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v1.9.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.9.2...@adobe/spacecat-shared-data-access-v1.9.3) (2024-01-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* audit result scores init, test ([#89](https://github.com/adobe/spacecat-shared/issues/89)) ([96f829c](https://github.com/adobe/spacecat-shared/commit/96f829c908e38b2e5f303eee83da2488f8076a0b))
|
|
14
|
+
|
|
1
15
|
# [@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
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.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@adobe/spacecat-shared-dynamo": "1.2.5",
|
|
33
33
|
"@adobe/spacecat-shared-utils": "1.2.0",
|
|
34
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
35
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
34
|
+
"@aws-sdk/client-dynamodb": "3.496.0",
|
|
35
|
+
"@aws-sdk/lib-dynamodb": "3.496.0",
|
|
36
36
|
"@types/joi": "17.2.3",
|
|
37
|
-
"joi": "17.
|
|
37
|
+
"joi": "17.12.0",
|
|
38
38
|
"uuid": "9.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
package/src/models/audit.js
CHANGED
|
@@ -107,8 +107,8 @@ 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 = {};
|
|
110
|
+
if (!newState.auditResult.scores) {
|
|
111
|
+
newState.auditResult.scores = {};
|
|
112
112
|
}
|
|
113
113
|
validateScores(data.auditResult, data.auditType);
|
|
114
114
|
|