@adobe/spacecat-shared-data-access 2.61.0 → 2.61.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 +14 -0
- package/package.json +8 -8
- package/src/models/base/base.collection.js +2 -2
- package/src/util/util.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.61.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.61.1...@adobe/spacecat-shared-data-access-v2.61.2) (2025-09-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency electrodb to v3.4.5 ([#948](https://github.com/adobe/spacecat-shared/issues/948)) ([d02e298](https://github.com/adobe/spacecat-shared/commit/d02e298ccf4b3243cc8f07271c37bb587b3e23e7))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.61.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.61.0...@adobe/spacecat-shared-data-access-v2.61.1) (2025-09-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#920](https://github.com/adobe/spacecat-shared/issues/920)) ([1a6b1e1](https://github.com/adobe/spacecat-shared/commit/1a6b1e1ac9531a41c86406ada4bd4ab903307fdc))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.61.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.60.1...@adobe/spacecat-shared-data-access-v2.61.0) (2025-09-01)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-data-access",
|
|
3
|
-
"version": "2.61.
|
|
3
|
+
"version": "2.61.2",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@adobe/spacecat-shared-utils": "1.49.0",
|
|
39
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
40
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
39
|
+
"@aws-sdk/client-dynamodb": "3.883.0",
|
|
40
|
+
"@aws-sdk/lib-dynamodb": "3.883.0",
|
|
41
41
|
"@types/joi": "17.2.3",
|
|
42
42
|
"aws-xray-sdk": "3.10.3",
|
|
43
|
-
"electrodb": "3.4.
|
|
43
|
+
"electrodb": "3.4.5",
|
|
44
44
|
"joi": "17.13.3",
|
|
45
45
|
"pluralize": "8.0.0",
|
|
46
46
|
"uuid": "11.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"chai": "5.
|
|
50
|
-
"chai-as-promised": "8.0.
|
|
49
|
+
"chai": "5.3.3",
|
|
50
|
+
"chai-as-promised": "8.0.2",
|
|
51
51
|
"dynamo-db-local": "9.6.0",
|
|
52
|
-
"nock": "14.0.
|
|
52
|
+
"nock": "14.0.10",
|
|
53
53
|
"sinon": "20.0.0",
|
|
54
|
-
"sinon-chai": "4.0.
|
|
54
|
+
"sinon-chai": "4.0.1"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -183,7 +183,7 @@ class BaseCollection {
|
|
|
183
183
|
* @async
|
|
184
184
|
* @protected
|
|
185
185
|
*/
|
|
186
|
-
// eslint-disable-next-line class-methods-use-this
|
|
186
|
+
// eslint-disable-next-line class-methods-use-this,no-unused-vars
|
|
187
187
|
async _onCreate(item) {
|
|
188
188
|
// no-op
|
|
189
189
|
}
|
|
@@ -197,7 +197,7 @@ class BaseCollection {
|
|
|
197
197
|
* @async
|
|
198
198
|
* @protected
|
|
199
199
|
*/
|
|
200
|
-
// eslint-disable-next-line class-methods-use-this
|
|
200
|
+
// eslint-disable-next-line class-methods-use-this,no-unused-vars
|
|
201
201
|
async _onCreateMany({ createdItems, errorItems }) {
|
|
202
202
|
// no-op
|
|
203
203
|
}
|
package/src/util/util.js
CHANGED
|
@@ -73,14 +73,14 @@ const removeElectroProperties = (record) => { /* eslint-disable no-underscore-da
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
const sanitizeTimestamps = (data) => {
|
|
76
|
-
// eslint-disable-next-line
|
|
76
|
+
// eslint-disable-next-line no-unused-vars
|
|
77
77
|
const { createdAt, updatedAt, ...rest } = data;
|
|
78
78
|
return rest;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const sanitizeIdAndAuditFields = (entityName, data) => {
|
|
82
82
|
const idName = entityNameToIdName(entityName);
|
|
83
|
-
// eslint-disable-next-line
|
|
83
|
+
// eslint-disable-next-line no-unused-vars
|
|
84
84
|
const { [idName]: _, ...rest } = data;
|
|
85
85
|
return sanitizeTimestamps(rest);
|
|
86
86
|
};
|