@umijs/server 4.0.0-canary.20231109.1 → 4.0.0-canary.20231115.1
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/ssr.js +5 -6
- package/package.json +2 -2
package/dist/ssr.js
CHANGED
|
@@ -154,18 +154,17 @@ function createMarkupGenerator(opts) {
|
|
|
154
154
|
next();
|
|
155
155
|
};
|
|
156
156
|
writable.on("finish", async () => {
|
|
157
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
158
157
|
let html = Buffer.concat(chunks).toString("utf8");
|
|
159
158
|
html += await getGenerateStaticHTML(serverInsertedHTMLCallbacks);
|
|
160
159
|
if (opts.helmetContext) {
|
|
161
160
|
html = html.replace(
|
|
162
161
|
/(<\/head>)/,
|
|
163
162
|
[
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
163
|
+
opts.helmetContext.helmet.title.toString(),
|
|
164
|
+
opts.helmetContext.helmet.priority.toString(),
|
|
165
|
+
opts.helmetContext.helmet.meta.toString(),
|
|
166
|
+
opts.helmetContext.helmet.link.toString(),
|
|
167
|
+
opts.helmetContext.helmet.script.toString(),
|
|
169
168
|
"$1"
|
|
170
169
|
].filter(Boolean).join("\n")
|
|
171
170
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/server",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20231115.1",
|
|
4
4
|
"description": "@umijs/server",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/server#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react": "18.1.0",
|
|
20
20
|
"react-dom": "18.1.0",
|
|
21
21
|
"react-router-dom": "6.3.0",
|
|
22
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
22
|
+
"@umijs/bundler-utils": "4.0.0-canary.20231115.1"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|