@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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/{queryExecutor-DW7iAdRY.js → queryWindow-Cdr7K-S1.js} +82 -6
- package/dist/queryWindow-Cdr7K-S1.js.map +1 -0
- package/dist/rts/index.d.ts.map +1 -1
- package/dist/rts/index.js +212 -9
- package/dist/rts/index.js.map +1 -1
- package/dist/rts/queryExecutor.d.ts +3 -1
- package/dist/rts/queryExecutor.d.ts.map +1 -1
- package/dist/rts/queryWindow.d.ts +2 -0
- package/dist/rts/queryWindow.d.ts.map +1 -0
- package/dist/rts/ssrHydration.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/queryExecutor-DW7iAdRY.js.map +0 -1
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 "./
|
|
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({
|