marko 5.38.15 → 5.38.17
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.
|
@@ -11,8 +11,9 @@ const dynamicTag5 = require("../dynamic-tag");
|
|
|
11
11
|
|
|
12
12
|
exports.p = function (htmlCompat) {
|
|
13
13
|
const writersByGlobal = new WeakMap();
|
|
14
|
-
const isMarko6 = (fn) => htmlCompat.isTagsAPI(fn);
|
|
15
|
-
const isMarko5 = (fn) =>
|
|
14
|
+
const isMarko6 = (fn) => typeof fn !== "function" || htmlCompat.isTagsAPI(fn);
|
|
15
|
+
const isMarko5 = (fn) =>
|
|
16
|
+
typeof fn !== "function" || !htmlCompat.isTagsAPI(fn);
|
|
16
17
|
const writeClassAPIResultToTagsAPI = ({ out }) => {
|
|
17
18
|
const { writer } = out._state;
|
|
18
19
|
htmlCompat.write(writer._content);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marko",
|
|
3
|
-
"version": "5.38.
|
|
3
|
+
"version": "5.38.17",
|
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"front-end",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@babel/runtime": "^7.28.2",
|
|
73
73
|
"@marko/compiler": "^5.39.48",
|
|
74
|
-
"@marko/runtime-tags": "^6.0.
|
|
74
|
+
"@marko/runtime-tags": "^6.0.139",
|
|
75
75
|
"app-module-path": "^2.2.0",
|
|
76
76
|
"argly": "^1.2.0",
|
|
77
77
|
"browser-refresh-client": "1.1.4",
|
|
@@ -11,8 +11,9 @@ const dynamicTag5 = require("../dynamic-tag");
|
|
|
11
11
|
|
|
12
12
|
exports.p = function (htmlCompat) {
|
|
13
13
|
const writersByGlobal = new WeakMap();
|
|
14
|
-
const isMarko6 = (fn) => htmlCompat.isTagsAPI(fn);
|
|
15
|
-
const isMarko5 = (fn) =>
|
|
14
|
+
const isMarko6 = (fn) => typeof fn !== "function" || htmlCompat.isTagsAPI(fn);
|
|
15
|
+
const isMarko5 = (fn) =>
|
|
16
|
+
typeof fn !== "function" || !htmlCompat.isTagsAPI(fn);
|
|
16
17
|
const writeClassAPIResultToTagsAPI = ({ out }) => {
|
|
17
18
|
const { writer } = out._state;
|
|
18
19
|
htmlCompat.write(writer._content);
|