marko 5.39.21 → 5.39.23
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var flushHereAndAfter = require("../../core-tags/core/__flush_here_and_after__");
|
|
4
|
+
var initComponents = require("../../core-tags/components/init-components-tag");
|
|
5
|
+
var awaitReorderer = require("../../core-tags/core/await/reorderer-renderer");
|
|
4
6
|
var escapeScript = require("../html/helpers/escape-script-placeholder");
|
|
5
7
|
var FLAG_WILL_RERENDER_IN_BROWSER = 1;
|
|
6
8
|
var DEFAULT_RUNTIME_ID = "M";
|
|
@@ -57,6 +59,13 @@ runtimeId)
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
template._(input, out);
|
|
62
|
+
|
|
63
|
+
if (!hasAssets) {
|
|
64
|
+
// A partial-document page (no `<body>`) misses the tags `<body>` injects,
|
|
65
|
+
// so emit them here for hydration state + `<await>` reorder (no-op if present).
|
|
66
|
+
initComponents(input, out);
|
|
67
|
+
awaitReorderer(input, out);
|
|
68
|
+
}
|
|
60
69
|
});
|
|
61
70
|
};
|
|
62
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marko",
|
|
3
|
-
"version": "5.39.
|
|
3
|
+
"version": "5.39.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
|
6
6
|
"keywords": [
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@marko/compiler": "^5.41.0",
|
|
74
|
-
"@marko/runtime-tags": "^6.3.
|
|
74
|
+
"@marko/runtime-tags": "^6.3.14",
|
|
75
75
|
"app-module-path": "^2.2.0",
|
|
76
76
|
"argly": "^1.2.0",
|
|
77
77
|
"browser-refresh-client": "1.1.4",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var flushHereAndAfter = require("../../core-tags/core/__flush_here_and_after__");
|
|
4
|
+
var initComponents = require("../../core-tags/components/init-components-tag");
|
|
5
|
+
var awaitReorderer = require("../../core-tags/core/await/reorderer-renderer");
|
|
4
6
|
var escapeScript = require("../html/helpers/escape-script-placeholder");
|
|
5
7
|
var FLAG_WILL_RERENDER_IN_BROWSER = 1;
|
|
6
8
|
var DEFAULT_RUNTIME_ID = "M";
|
|
@@ -57,6 +59,13 @@ exports.withPageAssets = function withPageAssets(
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
template._(input, out);
|
|
62
|
+
|
|
63
|
+
if (!hasAssets) {
|
|
64
|
+
// A partial-document page (no `<body>`) misses the tags `<body>` injects,
|
|
65
|
+
// so emit them here for hydration state + `<await>` reorder (no-op if present).
|
|
66
|
+
initComponents(input, out);
|
|
67
|
+
awaitReorderer(input, out);
|
|
68
|
+
}
|
|
60
69
|
});
|
|
61
70
|
};
|
|
62
71
|
|