@adobe/spacecat-shared-data-access 2.13.0 → 2.13.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 +3 -3
- package/src/models/base/base.collection.js +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.13.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.13.1...@adobe/spacecat-shared-data-access-v2.13.2) (2025-04-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external major (major) ([#674](https://github.com/adobe/spacecat-shared/issues/674)) ([285b37d](https://github.com/adobe/spacecat-shared/commit/285b37de9df42adb6a23694bcc699608e3b5b8fe))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.13.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.13.0...@adobe/spacecat-shared-data-access-v2.13.1) (2025-03-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **data-access:** fetch all records on demand ([#660](https://github.com/adobe/spacecat-shared/issues/660)) ([16bbeb4](https://github.com/adobe/spacecat-shared/commit/16bbeb4767526c846800480f49e2f7d06912330f))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.13.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.12.0...@adobe/spacecat-shared-data-access-v2.13.0) (2025-03-07)
|
|
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.13.
|
|
3
|
+
"version": "2.13.2",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"chai": "5.2.0",
|
|
49
49
|
"chai-as-promised": "8.0.1",
|
|
50
|
-
"dynamo-db-local": "9.4.
|
|
50
|
+
"dynamo-db-local": "9.4.1",
|
|
51
51
|
"nock": "14.0.1",
|
|
52
|
-
"sinon": "
|
|
52
|
+
"sinon": "20.0.0",
|
|
53
53
|
"sinon-chai": "4.0.0"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -253,11 +253,10 @@ class BaseCollection {
|
|
|
253
253
|
let allData = result.data;
|
|
254
254
|
|
|
255
255
|
// if the caller requests ALL pages and we're not using limit: 1,
|
|
256
|
-
// continue to fetch until there is no
|
|
256
|
+
// continue to fetch until there is no cursor.
|
|
257
257
|
if (options.fetchAllPages && options.limit !== 1) {
|
|
258
|
-
while (result.
|
|
259
|
-
|
|
260
|
-
queryOptions.ExclusiveStartKey = result.lastEvaluatedKey;
|
|
258
|
+
while (result.cursor) {
|
|
259
|
+
queryOptions.cursor = result.cursor;
|
|
261
260
|
// eslint-disable-next-line no-await-in-loop
|
|
262
261
|
result = await query.go(queryOptions);
|
|
263
262
|
allData = allData.concat(result.data);
|