@rpcbase/server 0.581.0 → 0.583.0

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
@@ -10,7 +10,7 @@ import { posix, dirname, sep, isAbsolute, relative } from "path";
10
10
  import fs, { createReadStream, readFileSync } from "node:fs";
11
11
  import { createInterface } from "node:readline";
12
12
  import { AsyncLocalStorage } from "node:async_hooks";
13
- import { g as getDerivedKey, s as syncAuthenticatedSessionMiddleware, r as resolveRtsRequestTenantId, i as isRtsRequestAuthorized, b as buildRtsAbilityFromRequest, n as normalizeRtsQueryOptions, a as runRtsQuery, c as runRtsCount } from "./queryExecutor-DW7iAdRY.js";
13
+ import { g as getDerivedKey, s as syncAuthenticatedSessionMiddleware, r as resolveRtsRequestTenantId, i as isRtsRequestAuthorized, b as buildRtsAbilityFromRequest, n as normalizeRtsQueryOptions, a as runRtsQuery, R as RTS_QUERY_WINDOW_MAX_COUNT, c as runRtsCount } from "./queryWindow-Cdr7K-S1.js";
14
14
  import httpProxy from "http-proxy-3";
15
15
  import fsPromises from "node:fs/promises";
16
16
  import inspector from "node:inspector";
@@ -5021,7 +5021,11 @@ const createRtsSsrCollector = (req, opts) => {
5021
5021
  ability,
5022
5022
  modelName: registration.modelName,
5023
5023
  query: registration.query,
5024
- options
5024
+ options,
5025
+ ...options.pagination ? {
5026
+ paginationMaxLimit: RTS_QUERY_WINDOW_MAX_COUNT,
5027
+ includePaginationCursors: false
5028
+ } : {}
5025
5029
  });
5026
5030
  const boundedData = maxDocsPerQuery > 0 ? result.data.slice(0, maxDocsPerQuery) : result.data;
5027
5031
  queryEntries.push({