@rpcbase/server 0.556.0 → 0.558.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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{queryExecutor-Bzs0SJym.js → queryExecutor-DW7iAdRY.js} +27 -22
- package/dist/{queryExecutor-Bzs0SJym.js.map → queryExecutor-DW7iAdRY.js.map} +1 -1
- package/dist/rts/index.js +1 -1
- package/dist/rts/queryExecutor.d.ts.map +1 -1
- package/package.json +1 -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 "./queryExecutor-
|
|
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";
|
|
14
14
|
import httpProxy from "http-proxy-3";
|
|
15
15
|
import fsPromises from "node:fs/promises";
|
|
16
16
|
import inspector from "node:inspector";
|
|
@@ -5190,8 +5190,8 @@ const ABORT_DELAY_MS = 1e4;
|
|
|
5190
5190
|
const SSR_IDENTIFIER_PREFIX = "rb-";
|
|
5191
5191
|
const APP_HTML_PLACEHOLDER = "<!--app-html-->";
|
|
5192
5192
|
const DEFAULT_SERVER_ERROR_MESSAGE = "We couldn't render this page on the server. Please refresh and try again.";
|
|
5193
|
-
const FALLBACK_ERROR_TEMPLATE_START =
|
|
5194
|
-
const FALLBACK_ERROR_TEMPLATE_END = "</
|
|
5193
|
+
const FALLBACK_ERROR_TEMPLATE_START = '<!doctype html><html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width,initial-scale=1" /><title>Server error</title><style>*{box-sizing:border-box}body{margin:0;background:#fff;color:#111827;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}#root,#root>div{min-height:100vh;background:#fff}main{display:flex;min-height:100vh;max-width:42rem;margin:0 auto;padding:3rem 1.5rem;flex-direction:column;align-items:center;justify-content:center;text-align:center}p{margin:0}main>p:first-child{font-size:1rem;line-height:1.5rem;font-weight:600;color:#e11d48}h1{margin:1rem 0 0;color:#111827;font-size:2.25rem;line-height:1.1;font-weight:600;letter-spacing:0;text-wrap:pretty}h1+p{margin-top:1.5rem;color:#4b5563;font-size:1.125rem;line-height:1.75rem}[class~="bg-gray-900/95"]{width:100%;margin-top:2.5rem;border-radius:1rem;background:rgba(17,24,39,.96);padding:1.25rem;text-align:left;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}[class~="bg-gray-900/95"] p{color:#9ca3af;font-size:.875rem;line-height:1.25rem;font-weight:600;letter-spacing:.025em;text-transform:uppercase}pre{max-height:16rem;overflow:auto;margin:.75rem 0 0;white-space:pre-wrap;color:#f3f4f6;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:.875rem;line-height:1.25rem}main>div[class~="flex"]{display:flex;margin-top:2.5rem;flex-direction:column;gap:1rem;align-items:center;justify-content:center}a{color:#111827;text-decoration:none}main>div[class~="flex"] a:first-child{display:inline-flex;height:2.25rem;align-items:center;justify-content:center;border-radius:.375rem;background:#111827;padding:0 1rem;color:#f8fafc;font-size:.875rem;font-weight:500;box-shadow:0 1px 2px rgba(15,23,42,.08)}main>div[class~="flex"] a:first-child:hover{background:#1f2937}main>div[class~="flex"] a:not(:first-child){color:#111827;font-size:.875rem;font-weight:500;text-underline-offset:4px}main>div[class~="flex"] a:not(:first-child):hover{text-decoration:underline}@media (min-width:640px){main{padding-top:6rem;padding-bottom:6rem}h1{font-size:3rem}h1+p{font-size:1.25rem;line-height:1.625}main>div[class~="flex"]{flex-direction:row}}</style></head><body><div id="root">';
|
|
5194
|
+
const FALLBACK_ERROR_TEMPLATE_END = "</div></body></html>";
|
|
5195
5195
|
const isProduction = env.NODE_ENV === "production";
|
|
5196
5196
|
const templateHtml = isProduction ? readFileSync("./build/dist/client/src/client/index.html", "utf-8") : "";
|
|
5197
5197
|
const handleRedirectionResponse = (res, redirectResponse, location) => {
|