@karmaniverous/entity-manager 4.3.0-2 → 4.3.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.
|
@@ -260,6 +260,15 @@ class EntityManager {
|
|
|
260
260
|
|
|
261
261
|
// Generate default pageKeys if not provided
|
|
262
262
|
pageKeys ??= (0, _fromPairs2.default)(this.getKeySpace(entityToken, keyToken, item).map(shardedKey => [shardedKey, undefined]));
|
|
263
|
+
console.debug('*** EntityManager.query parsed params ***\n', {
|
|
264
|
+
entityToken,
|
|
265
|
+
keyToken,
|
|
266
|
+
item,
|
|
267
|
+
shardQuery,
|
|
268
|
+
limit,
|
|
269
|
+
pageKeys,
|
|
270
|
+
pages
|
|
271
|
+
});
|
|
263
272
|
|
|
264
273
|
// Return empty result if no pageKeys.
|
|
265
274
|
if ((0, _isEmpty2.default)(pageKeys)) return {
|
|
@@ -317,6 +326,7 @@ class EntityManager {
|
|
|
317
326
|
items: [],
|
|
318
327
|
pageKeys: {}
|
|
319
328
|
});
|
|
329
|
+
console.debug(`*** EntityManager.query page ${page} result ***\n`, pageResult);
|
|
320
330
|
result.count += pageResult.count;
|
|
321
331
|
result.items = [...result.items, ...pageResult.items];
|
|
322
332
|
result.pageKeys = pageResult.pageKeys;
|
|
@@ -253,6 +253,16 @@ export class EntityManager {
|
|
|
253
253
|
])
|
|
254
254
|
);
|
|
255
255
|
|
|
256
|
+
console.debug('*** EntityManager.query parsed params ***\n', {
|
|
257
|
+
entityToken,
|
|
258
|
+
keyToken,
|
|
259
|
+
item,
|
|
260
|
+
shardQuery,
|
|
261
|
+
limit,
|
|
262
|
+
pageKeys,
|
|
263
|
+
pages,
|
|
264
|
+
});
|
|
265
|
+
|
|
256
266
|
// Return empty result if no pageKeys.
|
|
257
267
|
if (_.isEmpty(pageKeys)) return { count: 0, items: [], pageKeys: {} };
|
|
258
268
|
|
|
@@ -293,6 +303,11 @@ export class EntityManager {
|
|
|
293
303
|
{ count: 0, items: [], pageKeys: {} }
|
|
294
304
|
);
|
|
295
305
|
|
|
306
|
+
console.debug(
|
|
307
|
+
`*** EntityManager.query page ${page} result ***\n`,
|
|
308
|
+
pageResult
|
|
309
|
+
);
|
|
310
|
+
|
|
296
311
|
result.count += pageResult.count;
|
|
297
312
|
result.items = [...result.items, ...pageResult.items];
|
|
298
313
|
result.pageKeys = pageResult.pageKeys;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmaniverous/entity-manager",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
"string-hash": "^1.1.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/cli": "^7.22.
|
|
30
|
-
"@babel/core": "^7.22.
|
|
31
|
-
"@babel/eslint-parser": "^7.22.
|
|
29
|
+
"@babel/cli": "^7.22.10",
|
|
30
|
+
"@babel/core": "^7.22.10",
|
|
31
|
+
"@babel/eslint-parser": "^7.22.10",
|
|
32
32
|
"@babel/plugin-syntax-import-assertions": "^7.22.5",
|
|
33
|
-
"@babel/preset-env": "^7.22.
|
|
33
|
+
"@babel/preset-env": "^7.22.10",
|
|
34
34
|
"@babel/register": "^7.22.5",
|
|
35
|
-
"@karmaniverous/edge-logger": "^1.
|
|
36
|
-
"@karmaniverous/tagged-templates": "^0.1.
|
|
37
|
-
"@types/node": "^20.
|
|
35
|
+
"@karmaniverous/edge-logger": "^1.3.1",
|
|
36
|
+
"@karmaniverous/tagged-templates": "^0.1.2",
|
|
37
|
+
"@types/node": "^20.5.0",
|
|
38
38
|
"babel-plugin-lodash": "^3.3.4",
|
|
39
39
|
"chai": "^4.3.7",
|
|
40
40
|
"concat-md": "^0.5.1",
|
|
41
|
-
"eslint": "^8.
|
|
42
|
-
"eslint-plugin-jsdoc": "^46.
|
|
41
|
+
"eslint": "^8.47.0",
|
|
42
|
+
"eslint-plugin-jsdoc": "^46.4.6",
|
|
43
43
|
"eslint-plugin-mocha": "^10.1.0",
|
|
44
44
|
"eslint-plugin-promise": "^6.1.1",
|
|
45
45
|
"jsdoc-to-markdown": "^8.0.0",
|
|
46
46
|
"mocha": "^10.2.0",
|
|
47
|
-
"release-it": "^
|
|
47
|
+
"release-it": "^16.1.5"
|
|
48
48
|
},
|
|
49
49
|
"exports": {
|
|
50
50
|
".": {
|