rasengan 1.0.0-beta.45 → 1.0.0-beta.46
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.
|
@@ -77,7 +77,7 @@ var TemplateHtml = function (_a) {
|
|
|
77
77
|
* @returns
|
|
78
78
|
*/
|
|
79
79
|
export function render(router_1, context_1) {
|
|
80
|
-
return __awaiter(this, arguments, void 0, function (router, context, helmetContext, bootstrap, styles, res) {
|
|
80
|
+
return __awaiter(this, arguments, void 0, function (router, context, helmetContext, bootstrap, styles, res, env) {
|
|
81
81
|
if (helmetContext === void 0) { helmetContext = {}; }
|
|
82
82
|
if (bootstrap === void 0) { bootstrap = ""; }
|
|
83
83
|
if (styles === void 0) { styles = ""; }
|
|
@@ -86,7 +86,7 @@ export function render(router_1, context_1) {
|
|
|
86
86
|
case 0:
|
|
87
87
|
if (!res)
|
|
88
88
|
return [2 /*return*/];
|
|
89
|
-
return [4 /*yield*/, renderStream(router, context, helmetContext, bootstrap, styles, res)];
|
|
89
|
+
return [4 /*yield*/, renderStream(router, context, helmetContext, bootstrap, styles, res, env)];
|
|
90
90
|
case 1: return [2 /*return*/, _a.sent()];
|
|
91
91
|
}
|
|
92
92
|
});
|
|
@@ -8,6 +8,6 @@ import { Response } from "express";
|
|
|
8
8
|
* @param helmetContext
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
export declare function render(router: Router, context: StaticHandlerContext, helmetContext?: any, bootstrap?: string, styles?: string, res?: Response): Promise<unknown>;
|
|
11
|
+
export declare function render(router: Router, context: StaticHandlerContext, helmetContext?: any, bootstrap?: string, styles?: string, res?: Response, env?: "vercel" | "netlify" | "cloudflare" | "other"): Promise<unknown>;
|
|
12
12
|
export declare const staticRoutes: any;
|
|
13
13
|
export declare const loadTemplateHtml: (helmetContext: any, bootstrap: string, styles: string) => string;
|