vike 0.4.179-commit-9822036 → 0.4.180
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/cjs/node/runtime/html/injectAssets/injectHtmlTags.js +1 -0
- package/dist/cjs/node/runtime/html/injectAssets.js +1 -0
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js +1 -0
- package/dist/esm/node/runtime/html/injectAssets.js +1 -0
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ function injectHtmlTags(htmlString, htmlTags, position) {
|
|
|
11
11
|
return htmlString;
|
|
12
12
|
}
|
|
13
13
|
exports.injectHtmlTags = injectHtmlTags;
|
|
14
|
+
// Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
|
|
14
15
|
function injectHtmlTagsUsingStream(htmlTags, streamFromReactStreamingPackage) {
|
|
15
16
|
const htmlFragment = joinHtmlTags(htmlTags.filter((h) => h.position === 'STREAM'));
|
|
16
17
|
if (htmlFragment) {
|
|
@@ -35,6 +35,7 @@ function injectHtmlTagsToStream(pageContext, streamFromReactStreamingPackage, in
|
|
|
35
35
|
}
|
|
36
36
|
return htmlBegin;
|
|
37
37
|
}
|
|
38
|
+
// Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
|
|
38
39
|
function injectAtStreamAfterFirstChunk() {
|
|
39
40
|
// React has its own stream injection mechanism, see injectHtmlTagsUsingStream()
|
|
40
41
|
if (streamFromReactStreamingPackage)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROJECT_VERSION = exports.projectInfo = void 0;
|
|
4
|
-
const PROJECT_VERSION = '0.4.
|
|
4
|
+
const PROJECT_VERSION = '0.4.180';
|
|
5
5
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
6
6
|
const projectInfo = {
|
|
7
7
|
projectName: 'Vike',
|
|
@@ -14,6 +14,7 @@ function injectHtmlTags(htmlString, htmlTags, position) {
|
|
|
14
14
|
}
|
|
15
15
|
return htmlString;
|
|
16
16
|
}
|
|
17
|
+
// Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
|
|
17
18
|
function injectHtmlTagsUsingStream(htmlTags, streamFromReactStreamingPackage) {
|
|
18
19
|
const htmlFragment = joinHtmlTags(htmlTags.filter((h) => h.position === 'STREAM'));
|
|
19
20
|
if (htmlFragment) {
|
|
@@ -33,6 +33,7 @@ function injectHtmlTagsToStream(pageContext, streamFromReactStreamingPackage, in
|
|
|
33
33
|
}
|
|
34
34
|
return htmlBegin;
|
|
35
35
|
}
|
|
36
|
+
// Is it worth it? Should we remove this? https://github.com/vikejs/vike/pull/1740#issuecomment-2230540892
|
|
36
37
|
function injectAtStreamAfterFirstChunk() {
|
|
37
38
|
// React has its own stream injection mechanism, see injectHtmlTagsUsingStream()
|
|
38
39
|
if (streamFromReactStreamingPackage)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
|
-
declare const PROJECT_VERSION: "0.4.
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.180";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.
|
|
6
|
+
projectVersion: "0.4.180";
|
|
7
7
|
};
|