marko 5.20.9 → 5.21.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/compiler/config.js +1 -2
- package/dist/compiler/index.js +1 -2
- package/dist/compiler/modules.js +1 -2
- package/dist/core-tags/components/init-components-tag.js +1 -2
- package/dist/core-tags/components/preferred-script-location-tag.js +1 -2
- package/dist/core-tags/components/preserve-tag/index-browser.js +1 -2
- package/dist/core-tags/components/preserve-tag/index.js +1 -2
- package/dist/core-tags/core/__flush_here_and_after__.js +35 -24
- package/dist/core-tags/core/await/AsyncValue.js +1 -2
- package/dist/core-tags/core/await/client-reorder-runtime.js +1 -2
- package/dist/core-tags/core/await/renderer.js +1 -2
- package/dist/core-tags/core/await/reorderer-renderer.js +1 -2
- package/dist/index.js +1 -2
- package/dist/loader/index-browser.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/node-require/browser-refresh.js +1 -2
- package/dist/node-require/hot-reload.js +1 -2
- package/dist/node-require/index.js +1 -2
- package/dist/runtime/RenderResult.js +1 -2
- package/dist/runtime/components/Component.js +1 -2
- package/dist/runtime/components/ComponentDef.js +1 -2
- package/dist/runtime/components/ComponentsContext.js +1 -2
- package/dist/runtime/components/GlobalComponentsContext.js +1 -2
- package/dist/runtime/components/KeySequence.js +1 -2
- package/dist/runtime/components/ServerComponent.js +1 -2
- package/dist/runtime/components/State.js +1 -2
- package/dist/runtime/components/attach-detach.js +1 -2
- package/dist/runtime/components/beginComponent/index-browser.js +1 -2
- package/dist/runtime/components/beginComponent/index.js +1 -2
- package/dist/runtime/components/defineComponent.js +1 -2
- package/dist/runtime/components/dom-data.js +1 -2
- package/dist/runtime/components/endComponent/index-browser.js +1 -2
- package/dist/runtime/components/endComponent/index.js +1 -2
- package/dist/runtime/components/entry/index-browser.js +1 -2
- package/dist/runtime/components/entry/index.js +1 -2
- package/dist/runtime/components/event-delegation.js +1 -2
- package/dist/runtime/components/index.js +1 -2
- package/dist/runtime/components/init-components/index-browser.js +1 -2
- package/dist/runtime/components/init-components/index.js +1 -2
- package/dist/runtime/components/registry/index-browser.js +1 -2
- package/dist/runtime/components/registry/index.js +1 -2
- package/dist/runtime/components/renderer.js +1 -2
- package/dist/runtime/components/update-manager.js +1 -2
- package/dist/runtime/components/util/index-browser.js +1 -2
- package/dist/runtime/components/util/index.js +1 -2
- package/dist/runtime/createOut.js +1 -2
- package/dist/runtime/dom-insert.js +1 -2
- package/dist/runtime/events.js +1 -2
- package/dist/runtime/helpers/_change-case.js +1 -2
- package/dist/runtime/helpers/assign.js +1 -2
- package/dist/runtime/helpers/class-value.js +1 -2
- package/dist/runtime/helpers/dynamic-tag.js +1 -2
- package/dist/runtime/helpers/load-nested-tag.js +1 -2
- package/dist/runtime/helpers/merge.js +1 -2
- package/dist/runtime/helpers/render-tag.js +1 -2
- package/dist/runtime/helpers/style-value.js +1 -2
- package/dist/runtime/helpers/to-string.js +1 -2
- package/dist/runtime/html/AsyncStream.js +1 -2
- package/dist/runtime/html/BufferedWriter.js +1 -2
- package/dist/runtime/html/StringWriter.js +1 -2
- package/dist/runtime/html/create-readable/index-browser.js +1 -2
- package/dist/runtime/html/create-readable/index.js +1 -2
- package/dist/runtime/html/helpers/_dynamic-attr.js +1 -2
- package/dist/runtime/html/helpers/attr.js +1 -2
- package/dist/runtime/html/helpers/attrs.js +1 -2
- package/dist/runtime/html/helpers/class-attr.js +1 -2
- package/dist/runtime/html/helpers/data-marko.js +1 -2
- package/dist/runtime/html/helpers/escape-quotes.js +1 -2
- package/dist/runtime/html/helpers/escape-script-placeholder.js +1 -2
- package/dist/runtime/html/helpers/escape-style-placeholder.js +1 -2
- package/dist/runtime/html/helpers/escape-xml.js +1 -2
- package/dist/runtime/html/helpers/merge-attrs.js +1 -2
- package/dist/runtime/html/helpers/props-script.js +1 -2
- package/dist/runtime/html/helpers/style-attr.js +1 -2
- package/dist/runtime/html/hot-reload.js +1 -2
- package/dist/runtime/html/index.js +1 -2
- package/dist/runtime/queueMicrotask.js +1 -2
- package/dist/runtime/renderable.js +1 -2
- package/dist/runtime/setImmediate/index-browser.js +1 -2
- package/dist/runtime/setImmediate/index-worker.js +1 -2
- package/dist/runtime/setImmediate/index.js +1 -2
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +1 -2
- package/dist/runtime/vdom/VComponent.js +1 -2
- package/dist/runtime/vdom/VDocumentFragment.js +1 -2
- package/dist/runtime/vdom/VElement.js +1 -2
- package/dist/runtime/vdom/VFragment.js +1 -2
- package/dist/runtime/vdom/VNode.js +1 -2
- package/dist/runtime/vdom/VText.js +1 -2
- package/dist/runtime/vdom/helpers/attrs.js +1 -2
- package/dist/runtime/vdom/helpers/const.js +1 -2
- package/dist/runtime/vdom/helpers/v-element.js +1 -2
- package/dist/runtime/vdom/helpers/v-text.js +1 -2
- package/dist/runtime/vdom/hot-reload.js +1 -2
- package/dist/runtime/vdom/index.js +1 -2
- package/dist/runtime/vdom/morphdom/fragment.js +1 -2
- package/dist/runtime/vdom/morphdom/helpers.js +1 -2
- package/dist/runtime/vdom/morphdom/index.js +1 -2
- package/dist/runtime/vdom/morphdom/specialElHandlers.js +1 -2
- package/dist/runtime/vdom/parse-html.js +1 -2
- package/dist/runtime/vdom/preserve-attrs.js +1 -2
- package/dist/runtime/vdom/vdom.js +1 -2
- package/dist/taglib/index.js +1 -2
- package/package.json +4 -5
- package/src/core-tags/core/__flush_here_and_after__.js +34 -22
- package/LICENSE +0 -21
- package/dist/compiler/config.js.map +0 -1
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/modules.js.map +0 -1
- package/dist/core-tags/components/init-components-tag.js.map +0 -1
- package/dist/core-tags/components/preferred-script-location-tag.js.map +0 -1
- package/dist/core-tags/components/preserve-tag/index-browser.js.map +0 -1
- package/dist/core-tags/components/preserve-tag/index.js.map +0 -1
- package/dist/core-tags/core/__flush_here_and_after__.js.map +0 -1
- package/dist/core-tags/core/await/AsyncValue.js.map +0 -1
- package/dist/core-tags/core/await/client-reorder-runtime.js.map +0 -1
- package/dist/core-tags/core/await/renderer.js.map +0 -1
- package/dist/core-tags/core/await/reorderer-renderer.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/loader/index-browser.js.map +0 -1
- package/dist/loader/index.js.map +0 -1
- package/dist/node-require/browser-refresh.js.map +0 -1
- package/dist/node-require/hot-reload.js.map +0 -1
- package/dist/node-require/index.js.map +0 -1
- package/dist/runtime/RenderResult.js.map +0 -1
- package/dist/runtime/components/Component.js.map +0 -1
- package/dist/runtime/components/ComponentDef.js.map +0 -1
- package/dist/runtime/components/ComponentsContext.js.map +0 -1
- package/dist/runtime/components/GlobalComponentsContext.js.map +0 -1
- package/dist/runtime/components/KeySequence.js.map +0 -1
- package/dist/runtime/components/ServerComponent.js.map +0 -1
- package/dist/runtime/components/State.js.map +0 -1
- package/dist/runtime/components/attach-detach.js.map +0 -1
- package/dist/runtime/components/beginComponent/index-browser.js.map +0 -1
- package/dist/runtime/components/beginComponent/index.js.map +0 -1
- package/dist/runtime/components/defineComponent.js.map +0 -1
- package/dist/runtime/components/dom-data.js.map +0 -1
- package/dist/runtime/components/endComponent/index-browser.js.map +0 -1
- package/dist/runtime/components/endComponent/index.js.map +0 -1
- package/dist/runtime/components/entry/index-browser.js.map +0 -1
- package/dist/runtime/components/entry/index.js.map +0 -1
- package/dist/runtime/components/event-delegation.js.map +0 -1
- package/dist/runtime/components/index.js.map +0 -1
- package/dist/runtime/components/init-components/index-browser.js.map +0 -1
- package/dist/runtime/components/init-components/index.js.map +0 -1
- package/dist/runtime/components/registry/index-browser.js.map +0 -1
- package/dist/runtime/components/registry/index.js.map +0 -1
- package/dist/runtime/components/renderer.js.map +0 -1
- package/dist/runtime/components/update-manager.js.map +0 -1
- package/dist/runtime/components/util/index-browser.js.map +0 -1
- package/dist/runtime/components/util/index.js.map +0 -1
- package/dist/runtime/createOut.js.map +0 -1
- package/dist/runtime/dom-insert.js.map +0 -1
- package/dist/runtime/events.js.map +0 -1
- package/dist/runtime/helpers/_change-case.js.map +0 -1
- package/dist/runtime/helpers/assign.js.map +0 -1
- package/dist/runtime/helpers/class-value.js.map +0 -1
- package/dist/runtime/helpers/dynamic-tag.js.map +0 -1
- package/dist/runtime/helpers/load-nested-tag.js.map +0 -1
- package/dist/runtime/helpers/merge.js.map +0 -1
- package/dist/runtime/helpers/render-tag.js.map +0 -1
- package/dist/runtime/helpers/style-value.js.map +0 -1
- package/dist/runtime/helpers/to-string.js.map +0 -1
- package/dist/runtime/html/AsyncStream.js.map +0 -1
- package/dist/runtime/html/BufferedWriter.js.map +0 -1
- package/dist/runtime/html/StringWriter.js.map +0 -1
- package/dist/runtime/html/create-readable/index-browser.js.map +0 -1
- package/dist/runtime/html/create-readable/index.js.map +0 -1
- package/dist/runtime/html/helpers/_dynamic-attr.js.map +0 -1
- package/dist/runtime/html/helpers/attr.js.map +0 -1
- package/dist/runtime/html/helpers/attrs.js.map +0 -1
- package/dist/runtime/html/helpers/class-attr.js.map +0 -1
- package/dist/runtime/html/helpers/data-marko.js.map +0 -1
- package/dist/runtime/html/helpers/escape-quotes.js.map +0 -1
- package/dist/runtime/html/helpers/escape-script-placeholder.js.map +0 -1
- package/dist/runtime/html/helpers/escape-style-placeholder.js.map +0 -1
- package/dist/runtime/html/helpers/escape-xml.js.map +0 -1
- package/dist/runtime/html/helpers/merge-attrs.js.map +0 -1
- package/dist/runtime/html/helpers/props-script.js.map +0 -1
- package/dist/runtime/html/helpers/style-attr.js.map +0 -1
- package/dist/runtime/html/hot-reload.js.map +0 -1
- package/dist/runtime/html/index.js.map +0 -1
- package/dist/runtime/queueMicrotask.js.map +0 -1
- package/dist/runtime/renderable.js.map +0 -1
- package/dist/runtime/setImmediate/index-browser.js.map +0 -1
- package/dist/runtime/setImmediate/index-worker.js.map +0 -1
- package/dist/runtime/setImmediate/index.js.map +0 -1
- package/dist/runtime/vdom/AsyncVDOMBuilder.js.map +0 -1
- package/dist/runtime/vdom/VComponent.js.map +0 -1
- package/dist/runtime/vdom/VDocumentFragment.js.map +0 -1
- package/dist/runtime/vdom/VElement.js.map +0 -1
- package/dist/runtime/vdom/VFragment.js.map +0 -1
- package/dist/runtime/vdom/VNode.js.map +0 -1
- package/dist/runtime/vdom/VText.js.map +0 -1
- package/dist/runtime/vdom/helpers/attrs.js.map +0 -1
- package/dist/runtime/vdom/helpers/const.js.map +0 -1
- package/dist/runtime/vdom/helpers/v-element.js.map +0 -1
- package/dist/runtime/vdom/helpers/v-text.js.map +0 -1
- package/dist/runtime/vdom/hot-reload.js.map +0 -1
- package/dist/runtime/vdom/index.js.map +0 -1
- package/dist/runtime/vdom/morphdom/fragment.js.map +0 -1
- package/dist/runtime/vdom/morphdom/helpers.js.map +0 -1
- package/dist/runtime/vdom/morphdom/index.js.map +0 -1
- package/dist/runtime/vdom/morphdom/specialElHandlers.js.map +0 -1
- package/dist/runtime/vdom/parse-html.js.map +0 -1
- package/dist/runtime/vdom/preserve-attrs.js.map +0 -1
- package/dist/runtime/vdom/vdom.js.map +0 -1
- package/dist/taglib/index.js.map +0 -1
package/dist/compiler/config.js
CHANGED
package/dist/compiler/index.js
CHANGED
package/dist/compiler/modules.js
CHANGED
@@ -1,33 +1,44 @@
|
|
1
1
|
"use strict";const BufferedWriter = require("../../runtime/html/BufferedWriter");
|
2
2
|
|
3
3
|
module.exports = function __flushHereAndAfter__(input, out) {
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
if (out.isSync()) {
|
5
|
+
// We create an async out that we pinky promise is going to be sync in order to postpone execution of the renderBody.
|
6
|
+
out._sync = false;
|
7
|
+
const asyncOut = out.beginAsync({ last: true });
|
8
|
+
out._sync = true;
|
9
|
+
asyncOut.sync();
|
10
|
+
out.onLast(() => {
|
11
|
+
input.renderBody(asyncOut);
|
12
|
+
asyncOut.end();
|
13
|
+
});
|
14
|
+
} else {
|
15
|
+
let flushed = false;
|
16
|
+
const asyncOut = out.beginAsync({ last: true });
|
17
|
+
const nextWriter = out.writer;
|
18
|
+
|
19
|
+
out.on("c_", (writer) => {
|
20
|
+
if (writer instanceof BufferedWriter) {
|
21
|
+
if (flushed) {
|
22
|
+
const detachedOut = out.createOut();
|
23
|
+
detachedOut.sync();
|
24
|
+
input.renderBody(detachedOut);
|
25
|
+
writer._content = detachedOut.toString() + writer._content;
|
26
|
+
} else if (writer.next === nextWriter) {
|
27
|
+
asyncOut.sync();
|
28
|
+
input.renderBody(asyncOut);
|
29
|
+
asyncOut.end();
|
30
|
+
flushed = true;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
});
|
7
34
|
|
8
|
-
|
9
|
-
|
10
|
-
if (flushed) {
|
11
|
-
const detachedOut = out.createOut();
|
12
|
-
detachedOut.sync();
|
13
|
-
input.renderBody(detachedOut);
|
14
|
-
writer._content = detachedOut.toString() + writer._content;
|
15
|
-
} else if (writer.next === nextWriter) {
|
35
|
+
out.onLast(() => {
|
36
|
+
if (!flushed) {
|
16
37
|
asyncOut.sync();
|
17
38
|
input.renderBody(asyncOut);
|
18
39
|
asyncOut.end();
|
19
40
|
flushed = true;
|
20
41
|
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
out.onLast(() => {
|
25
|
-
if (!flushed) {
|
26
|
-
asyncOut.sync();
|
27
|
-
input.renderBody(asyncOut);
|
28
|
-
asyncOut.end();
|
29
|
-
flushed = true;
|
30
|
-
}
|
31
|
-
});
|
32
|
-
};
|
33
|
-
//# sourceMappingURL=__flush_here_and_after__.js.map
|
42
|
+
});
|
43
|
+
}
|
44
|
+
};
|
package/dist/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
module.exports =
|
3
3
|
// eslint-disable-next-line no-undef
|
4
|
-
typeof __webpack_require__ !== "undefined" ? __webpack_require__ : require;
|
5
|
-
//# sourceMappingURL=index-browser.js.map
|
4
|
+
typeof __webpack_require__ !== "undefined" ? __webpack_require__ : require;
|
package/dist/loader/index.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
"use strict";
|
2
|
-
//# sourceMappingURL=browser-refresh.js.map
|
1
|
+
"use strict";
|
@@ -1,2 +1 @@
|
|
1
|
-
"use strict";module.exports = require("./entry");
|
2
|
-
//# sourceMappingURL=index.js.map
|
1
|
+
"use strict";module.exports = require("./entry");
|
@@ -176,5 +176,4 @@ exports._T_ = nextComponentIdProvider;
|
|
176
176
|
exports._C_ = attachBubblingEvent;
|
177
177
|
exports.am_ = getMarkoPropsFromEl;
|
178
178
|
exports.ap_ = addComponentRootToKeyedElements;
|
179
|
-
exports.aE_ = normalizeComponentKey;
|
180
|
-
//# sourceMappingURL=index-browser.js.map
|
179
|
+
exports.aE_ = normalizeComponentKey;
|
package/dist/runtime/events.js
CHANGED