@exulu/backend 1.42.1 → 1.42.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [1.42.1](https://github.com/Qventu/exulu-backend/compare/v1.42.0...v1.42.1) (2025-12-15)
1
+ ## [1.42.2](https://github.com/Qventu/exulu-backend/compare/v1.42.1...v1.42.2) (2025-12-18)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * removed some redundant code ([cb5dd40](https://github.com/Qventu/exulu-backend/commit/cb5dd40c96a2b1d1acaf5e6c7ba1e18b3c620c3f))
6
+ * hasNextPage logic ([fa41a3a](https://github.com/Qventu/exulu-backend/commit/fa41a3aac0017517c7e7326b7d5fa84fdf55a25a))
package/dist/index.cjs CHANGED
@@ -3036,7 +3036,7 @@ var paginationRequest = async ({
3036
3036
  const pageCount = Math.ceil(itemCount / limit);
3037
3037
  const currentPage = page;
3038
3038
  const hasPreviousPage = currentPage > 1;
3039
- const hasNextPage = currentPage < pageCount - 1;
3039
+ const hasNextPage = currentPage <= pageCount - 1;
3040
3040
  let dataQuery = db3(tableName);
3041
3041
  dataQuery = applyFilters(dataQuery, filters, table);
3042
3042
  dataQuery = applyAccessControl(table, dataQuery, user);
package/dist/index.js CHANGED
@@ -2984,7 +2984,7 @@ var paginationRequest = async ({
2984
2984
  const pageCount = Math.ceil(itemCount / limit);
2985
2985
  const currentPage = page;
2986
2986
  const hasPreviousPage = currentPage > 1;
2987
- const hasNextPage = currentPage < pageCount - 1;
2987
+ const hasNextPage = currentPage <= pageCount - 1;
2988
2988
  let dataQuery = db3(tableName);
2989
2989
  dataQuery = applyFilters(dataQuery, filters, table);
2990
2990
  dataQuery = applyAccessControl(table, dataQuery, user);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.42.1",
4
+ "version": "1.42.2",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {