@rpcbase/server 0.556.0 → 0.557.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
@@ -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 = `<!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>body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#0b1021;color:#eef1f7;display:flex;align-items:center;justify-content:center;min-height:100vh;}main{max-width:420px;padding:32px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:14px;box-shadow:0 25px 50px rgba(0,0,0,0.35);}h1{font-size:24px;margin:0 0 8px;}p{margin:0 0 12px;line-height:1.5;}code{background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:6px;font-size:12px;}</style></head><body><main>`;
5194
- const FALLBACK_ERROR_TEMPLATE_END = "</main></body></html>";
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) => {