backendless 6.5.8 → 6.5.9
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.
|
@@ -258,7 +258,7 @@ var SortedSetStore = /*#__PURE__*/function (_HiveStore) {
|
|
|
258
258
|
minBound = options.minBound,
|
|
259
259
|
maxBound = options.maxBound,
|
|
260
260
|
offset = options.offset,
|
|
261
|
-
|
|
261
|
+
pageSize = options.pageSize,
|
|
262
262
|
withScores = options.withScores,
|
|
263
263
|
reverse = options.reverse;
|
|
264
264
|
|
|
@@ -282,8 +282,8 @@ var SortedSetStore = /*#__PURE__*/function (_HiveStore) {
|
|
|
282
282
|
throw new Error('Offset must be a number.');
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
if (
|
|
286
|
-
throw new Error('
|
|
285
|
+
if (pageSize !== undefined && (typeof pageSize !== 'number' || isNaN(pageSize))) {
|
|
286
|
+
throw new Error('Page Size must be a number.');
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
if (withScores !== undefined && typeof withScores !== 'boolean') {
|
|
@@ -258,7 +258,7 @@ var SortedSetStore = /*#__PURE__*/function (_HiveStore) {
|
|
|
258
258
|
minBound = options.minBound,
|
|
259
259
|
maxBound = options.maxBound,
|
|
260
260
|
offset = options.offset,
|
|
261
|
-
|
|
261
|
+
pageSize = options.pageSize,
|
|
262
262
|
withScores = options.withScores,
|
|
263
263
|
reverse = options.reverse;
|
|
264
264
|
|
|
@@ -282,8 +282,8 @@ var SortedSetStore = /*#__PURE__*/function (_HiveStore) {
|
|
|
282
282
|
throw new Error('Offset must be a number.');
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
if (
|
|
286
|
-
throw new Error('
|
|
285
|
+
if (pageSize !== undefined && (typeof pageSize !== 'number' || isNaN(pageSize))) {
|
|
286
|
+
throw new Error('Page Size must be a number.');
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
if (withScores !== undefined && typeof withScores !== 'boolean') {
|
package/package.json
CHANGED
|
@@ -228,7 +228,7 @@ export class SortedSetStore extends HiveStore {
|
|
|
228
228
|
throw new Error('Options must be an object.')
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
const { minScore, maxScore, minBound, maxBound, offset,
|
|
231
|
+
const { minScore, maxScore, minBound, maxBound, offset, pageSize, withScores, reverse } = options
|
|
232
232
|
|
|
233
233
|
if (minScore !== undefined && (isNaN(minScore) || typeof minScore !== 'number')) {
|
|
234
234
|
throw new Error('Minimal Score must be a number.')
|
|
@@ -250,8 +250,8 @@ export class SortedSetStore extends HiveStore {
|
|
|
250
250
|
throw new Error('Offset must be a number.')
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
if (
|
|
254
|
-
throw new Error('
|
|
253
|
+
if (pageSize !== undefined && (typeof pageSize !== 'number' || isNaN(pageSize))) {
|
|
254
|
+
throw new Error('Page Size must be a number.')
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
if (withScores !== undefined && typeof withScores !== 'boolean') {
|