marko 6.0.20 → 6.0.21
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/debug/html.js +5 -1
- package/dist/debug/html.mjs +5 -1
- package/dist/html.js +4 -1
- package/dist/html.mjs +4 -1
- package/dist/translator/index.js +2 -2
- package/package.json +2 -2
package/dist/debug/html.js
CHANGED
@@ -3053,7 +3053,11 @@ var ServerRendered = class {
|
|
3053
3053
|
const head = this.#head;
|
3054
3054
|
this.#head = null;
|
3055
3055
|
if (!head) throw new Error("Cannot read from a consumed render result");
|
3056
|
-
|
3056
|
+
const { boundary } = head;
|
3057
|
+
if (!boundary.done) {
|
3058
|
+
throw new Error("Cannot consume asynchronous render with 'toString'");
|
3059
|
+
}
|
3060
|
+
if (boundary.signal.aborted) throw boundary.signal.reason;
|
3057
3061
|
return head.consume().flushHTML();
|
3058
3062
|
}
|
3059
3063
|
};
|
package/dist/debug/html.mjs
CHANGED
@@ -2972,7 +2972,11 @@ var ServerRendered = class {
|
|
2972
2972
|
const head = this.#head;
|
2973
2973
|
this.#head = null;
|
2974
2974
|
if (!head) throw new Error("Cannot read from a consumed render result");
|
2975
|
-
|
2975
|
+
const { boundary } = head;
|
2976
|
+
if (!boundary.done) {
|
2977
|
+
throw new Error("Cannot consume asynchronous render with 'toString'");
|
2978
|
+
}
|
2979
|
+
if (boundary.signal.aborted) throw boundary.signal.reason;
|
2976
2980
|
return head.consume().flushHTML();
|
2977
2981
|
}
|
2978
2982
|
};
|
package/dist/html.js
CHANGED
@@ -1967,7 +1967,10 @@ var ServerRendered = class {
|
|
1967
1967
|
toString() {
|
1968
1968
|
let head = this.#head;
|
1969
1969
|
if (this.#head = null, !head) throw new Error("Cannot read from a consumed render result");
|
1970
|
-
|
1970
|
+
let { boundary } = head;
|
1971
|
+
if (!boundary.done)
|
1972
|
+
throw new Error("Cannot consume asynchronous render with 'toString'");
|
1973
|
+
if (boundary.signal.aborted) throw boundary.signal.reason;
|
1971
1974
|
return head.consume().flushHTML();
|
1972
1975
|
}
|
1973
1976
|
};
|
package/dist/html.mjs
CHANGED
@@ -1889,7 +1889,10 @@ var ServerRendered = class {
|
|
1889
1889
|
toString() {
|
1890
1890
|
let head = this.#head;
|
1891
1891
|
if (this.#head = null, !head) throw new Error("Cannot read from a consumed render result");
|
1892
|
-
|
1892
|
+
let { boundary } = head;
|
1893
|
+
if (!boundary.done)
|
1894
|
+
throw new Error("Cannot consume asynchronous render with 'toString'");
|
1895
|
+
if (boundary.signal.aborted) throw boundary.signal.reason;
|
1893
1896
|
return head.consume().flushHTML();
|
1894
1897
|
}
|
1895
1898
|
};
|
package/dist/translator/index.js
CHANGED
@@ -9438,7 +9438,7 @@ var style_default = {
|
|
9438
9438
|
} else if (import_compiler49.types.isIdentifier(node.var)) {
|
9439
9439
|
(0, import_babel_utils42.getProgram)().node.body.push(
|
9440
9440
|
import_compiler49.types.importDeclaration(
|
9441
|
-
[import_compiler49.types.
|
9441
|
+
[import_compiler49.types.importNamespaceSpecifier(node.var)],
|
9442
9442
|
import_compiler49.types.stringLiteral(importPath)
|
9443
9443
|
)
|
9444
9444
|
);
|
@@ -9447,7 +9447,7 @@ var style_default = {
|
|
9447
9447
|
import_compiler49.types.variableDeclaration("const", [
|
9448
9448
|
import_compiler49.types.variableDeclarator(
|
9449
9449
|
node.var,
|
9450
|
-
(0, import_babel_utils42.
|
9450
|
+
(0, import_babel_utils42.importStar)(file, importPath, "style")
|
9451
9451
|
)
|
9452
9452
|
])
|
9453
9453
|
);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.21",
|
4
4
|
"description": "Optimized runtime for Marko templates.",
|
5
5
|
"keywords": [
|
6
6
|
"api",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"build": "node -r ~ts ./scripts/bundle.ts"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
|
-
"@marko/compiler": "^5.39.
|
51
|
+
"@marko/compiler": "^5.39.21",
|
52
52
|
"csstype": "^3.1.3",
|
53
53
|
"magic-string": "^0.30.17"
|
54
54
|
},
|