@itentialopensource/adapter-utils
Advanced tools
Comparing version 5.3.8 to 5.3.9
## 5.3.9 [03-04-2024] | ||
* Resolve ADAPT-3296 | ||
Closes ADAPT-3296 | ||
See merge request itentialopensource/adapter-utils!291 | ||
--- | ||
## 5.3.8 [02-13-2024] | ||
@@ -3,0 +13,0 @@ |
@@ -313,8 +313,9 @@ /* @copyright Itential, LLC 2023 */ | ||
// Pagination is not needed when cache is enabled | ||
// pagination: get entities limit*start to limit*(start+1) - 1 | ||
if (options.start >= 0 && options.limit > 0) { // Probably should handle this in properties. | ||
// if last "page" then will be returning fewer items | ||
const end = Math.min(arr.length, options.limit * (options.start + 1)); | ||
arr = arr.slice(options.limit * options.start, end); | ||
} | ||
// if (options.start >= 0 && options.limit > 0) { // Probably should handle this in properties. | ||
// // if last "page" then will be returning fewer items | ||
// const end = Math.min(arr.length, options.limit * (options.start + 1)); | ||
// arr = arr.slice(options.limit * options.start, end); | ||
// } | ||
return callback(arr); // for linting | ||
@@ -321,0 +322,0 @@ }); |
{ | ||
"name": "@itentialopensource/adapter-utils", | ||
"version": "5.3.8", | ||
"version": "5.3.9", | ||
"description": "Itential Adapter Utility Libraries", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16168
805014