@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 CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ ## 5.3.9 [03-04-2024]
3
+
4
+ * Resolve ADAPT-3296
5
+
6
+ Closes ADAPT-3296
7
+
8
+ See merge request itentialopensource/adapter-utils!291
9
+
10
+ ---
11
+
2
12
  ## 5.3.8 [02-13-2024]
3
13
 
4
14
  * Handle missing keys for device broker props
@@ -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
- // if last "page" then will be returning fewer items
316
- const end = Math.min(arr.length, options.limit * (options.start + 1));
317
- arr = arr.slice(options.limit * options.start, end);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-utils",
3
- "version": "5.3.8",
3
+ "version": "5.3.9",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",
Binary file