@cleocode/core 2026.3.63 → 2026.3.64

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/dist/index.js CHANGED
@@ -26416,6 +26416,9 @@ function createPage(input) {
26416
26416
  };
26417
26417
  }
26418
26418
  function paginate(items, limit, offset) {
26419
+ if (!items || items.length === 0) {
26420
+ return { items: [], page: { mode: "none" } };
26421
+ }
26419
26422
  const total = items.length;
26420
26423
  if (limit === void 0 && offset === void 0) {
26421
26424
  return { items, page: { mode: "none" } };