@itentialopensource/adapter-utils 5.3.8 → 5.3.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.
- package/CHANGELOG.md +10 -0
- package/lib/cacheHandler.js +6 -5
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
package/lib/cacheHandler.js
CHANGED
|
@@ -310,12 +310,13 @@ function retrieveCacheEntriesHelper(cache, entityType, options, callback) {
|
|
|
310
310
|
return callback([]);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
// Pagination is not needed when cache is enabled
|
|
313
314
|
// pagination: get entities limit*start to limit*(start+1) - 1
|
|
314
|
-
if (options.start >= 0 && options.limit > 0) { // Probably should handle this in properties.
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
315
|
+
// if (options.start >= 0 && options.limit > 0) { // Probably should handle this in properties.
|
|
316
|
+
// // if last "page" then will be returning fewer items
|
|
317
|
+
// const end = Math.min(arr.length, options.limit * (options.start + 1));
|
|
318
|
+
// arr = arr.slice(options.limit * options.start, end);
|
|
319
|
+
// }
|
|
319
320
|
return callback(arr); // for linting
|
|
320
321
|
});
|
|
321
322
|
}
|
package/package.json
CHANGED
|
Binary file
|