@karmaniverous/entity-manager 5.0.0 → 5.0.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.
|
@@ -248,7 +248,7 @@ class EntityManager {
|
|
|
248
248
|
this.#entityManager.validateKeyToken(entityToken, keyToken);
|
|
249
249
|
this.#entityManager.validateItem(item);
|
|
250
250
|
if (!(0, _isFunction2.default)(shardQuery)) throw new Error('shardQuery must be a function');
|
|
251
|
-
if (!(0, _isUndefined2.default)(limit) && !((0, _isInteger2.default)(limit) && limit >= 1)) throw new Error('limit must be a positive integer');
|
|
251
|
+
if (!(0, _isUndefined2.default)(limit) && !(limit === Infinity || (0, _isInteger2.default)(limit) && limit >= 1)) throw new Error('limit must be a positive integer or Infinity.');
|
|
252
252
|
if (!(0, _isUndefined2.default)(pageKeys) && !(0, _isPlainObject2.default)(pageKeys)) throw new Error('pageKeys must be an object');
|
|
253
253
|
if (!(0, _isUndefined2.default)(pageSize) && !((0, _isInteger2.default)(pageSize) && pageSize >= 1)) throw new Error('pageSize must be a positive integer');
|
|
254
254
|
|
|
@@ -236,8 +236,11 @@ export class EntityManager {
|
|
|
236
236
|
if (!_.isFunction(shardQuery))
|
|
237
237
|
throw new Error('shardQuery must be a function');
|
|
238
238
|
|
|
239
|
-
if (
|
|
240
|
-
|
|
239
|
+
if (
|
|
240
|
+
!_.isUndefined(limit) &&
|
|
241
|
+
!(limit === Infinity || (_.isInteger(limit) && limit >= 1))
|
|
242
|
+
)
|
|
243
|
+
throw new Error('limit must be a positive integer or Infinity.');
|
|
241
244
|
|
|
242
245
|
if (!_.isUndefined(pageKeys) && !_.isPlainObject(pageKeys))
|
|
243
246
|
throw new Error('pageKeys must be an object');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmaniverous/entity-manager",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"string-hash": "^1.1.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/cli": "^7.
|
|
30
|
-
"@babel/core": "^7.
|
|
31
|
-
"@babel/eslint-parser": "^7.
|
|
32
|
-
"@babel/plugin-syntax-import-assertions": "^7.
|
|
33
|
-
"@babel/preset-env": "^7.
|
|
29
|
+
"@babel/cli": "^7.24.1",
|
|
30
|
+
"@babel/core": "^7.24.3",
|
|
31
|
+
"@babel/eslint-parser": "^7.24.1",
|
|
32
|
+
"@babel/plugin-syntax-import-assertions": "^7.24.1",
|
|
33
|
+
"@babel/preset-env": "^7.24.3",
|
|
34
34
|
"@babel/register": "^7.23.7",
|
|
35
|
-
"@karmaniverous/edge-logger": "^1.3.
|
|
35
|
+
"@karmaniverous/edge-logger": "^1.3.9",
|
|
36
36
|
"@karmaniverous/tagged-templates": "^0.1.2",
|
|
37
|
-
"@types/node": "^20.11.
|
|
37
|
+
"@types/node": "^20.11.30",
|
|
38
38
|
"babel-plugin-lodash": "^3.3.4",
|
|
39
39
|
"chai": "^5.1.0",
|
|
40
40
|
"concat-md": "^0.5.1",
|
|
41
41
|
"eslint": "^8.57.0",
|
|
42
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
43
|
-
"eslint-plugin-mocha": "^10.
|
|
42
|
+
"eslint-plugin-jsdoc": "^48.2.1",
|
|
43
|
+
"eslint-plugin-mocha": "^10.4.1",
|
|
44
44
|
"eslint-plugin-promise": "^6.1.1",
|
|
45
45
|
"jsdoc-to-markdown": "^8.0.1",
|
|
46
|
-
"mocha": "^10.
|
|
46
|
+
"mocha": "^10.4.0",
|
|
47
47
|
"release-it": "^17.1.1"
|
|
48
48
|
},
|
|
49
49
|
"exports": {
|