marko 6.0.164 → 6.0.165
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/dom.js +3 -3
- package/dist/debug/dom.mjs +3 -3
- package/dist/debug/html.js +4 -3
- package/dist/debug/html.mjs +4 -3
- package/dist/dom.js +3 -3
- package/dist/dom.mjs +3 -3
- package/dist/html.js +4 -3
- package/dist/html.mjs +4 -3
- package/package.json +1 -1
package/dist/debug/dom.js
CHANGED
|
@@ -413,7 +413,7 @@ function skipScope() {
|
|
|
413
413
|
}
|
|
414
414
|
function findBranchWithKey(scope, key) {
|
|
415
415
|
let branch = scope["#ClosestBranch" /* ClosestBranch */];
|
|
416
|
-
while (branch &&
|
|
416
|
+
while (branch && branch[key] == null) {
|
|
417
417
|
branch = branch["#ParentBranch" /* ParentBranch */];
|
|
418
418
|
}
|
|
419
419
|
return branch;
|
|
@@ -1941,7 +1941,7 @@ function _try(nodeAccessor, template, walks, setup) {
|
|
|
1941
1941
|
const branch = scope[branchAccessor];
|
|
1942
1942
|
if (branch) {
|
|
1943
1943
|
branch["#BranchAccessor" /* BranchAccessor */] = nodeAccessor;
|
|
1944
|
-
branch["#CatchContent" /* CatchContent */] = normalizeDynamicRenderer(input.catch);
|
|
1944
|
+
branch["#CatchContent" /* CatchContent */] = input.catch && (normalizeDynamicRenderer(input.catch) || 0);
|
|
1945
1945
|
branch["#PlaceholderContent" /* PlaceholderContent */] = normalizeDynamicRenderer(
|
|
1946
1946
|
input.placeholder
|
|
1947
1947
|
);
|
|
@@ -1968,7 +1968,7 @@ function renderCatch(scope, error) {
|
|
|
1968
1968
|
tryWithCatch["#CatchContent" /* CatchContent */],
|
|
1969
1969
|
createAndSetupBranch
|
|
1970
1970
|
);
|
|
1971
|
-
tryWithCatch["#CatchContent" /* CatchContent */]
|
|
1971
|
+
tryWithCatch["#CatchContent" /* CatchContent */]?.___params?.(
|
|
1972
1972
|
owner["BranchScopes:" /* BranchScopes */ + tryWithCatch["#BranchAccessor" /* BranchAccessor */]],
|
|
1973
1973
|
[error]
|
|
1974
1974
|
);
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -297,7 +297,7 @@ function skipScope() {
|
|
|
297
297
|
}
|
|
298
298
|
function findBranchWithKey(scope, key) {
|
|
299
299
|
let branch = scope["#ClosestBranch" /* ClosestBranch */];
|
|
300
|
-
while (branch &&
|
|
300
|
+
while (branch && branch[key] == null) {
|
|
301
301
|
branch = branch["#ParentBranch" /* ParentBranch */];
|
|
302
302
|
}
|
|
303
303
|
return branch;
|
|
@@ -1825,7 +1825,7 @@ function _try(nodeAccessor, template, walks, setup) {
|
|
|
1825
1825
|
const branch = scope[branchAccessor];
|
|
1826
1826
|
if (branch) {
|
|
1827
1827
|
branch["#BranchAccessor" /* BranchAccessor */] = nodeAccessor;
|
|
1828
|
-
branch["#CatchContent" /* CatchContent */] = normalizeDynamicRenderer(input.catch);
|
|
1828
|
+
branch["#CatchContent" /* CatchContent */] = input.catch && (normalizeDynamicRenderer(input.catch) || 0);
|
|
1829
1829
|
branch["#PlaceholderContent" /* PlaceholderContent */] = normalizeDynamicRenderer(
|
|
1830
1830
|
input.placeholder
|
|
1831
1831
|
);
|
|
@@ -1852,7 +1852,7 @@ function renderCatch(scope, error) {
|
|
|
1852
1852
|
tryWithCatch["#CatchContent" /* CatchContent */],
|
|
1853
1853
|
createAndSetupBranch
|
|
1854
1854
|
);
|
|
1855
|
-
tryWithCatch["#CatchContent" /* CatchContent */]
|
|
1855
|
+
tryWithCatch["#CatchContent" /* CatchContent */]?.___params?.(
|
|
1856
1856
|
owner["BranchScopes:" /* BranchScopes */ + tryWithCatch["#BranchAccessor" /* BranchAccessor */]],
|
|
1857
1857
|
[error]
|
|
1858
1858
|
);
|
package/dist/debug/html.js
CHANGED
|
@@ -2360,12 +2360,13 @@ function _await(scopeId, accessor, promise, content, serializeMarker) {
|
|
|
2360
2360
|
function _try(scopeId, accessor, content, input) {
|
|
2361
2361
|
const branchId = _peek_scope_id();
|
|
2362
2362
|
$chunk.writeHTML($chunk.boundary.state.mark("[" /* BranchStart */, ""));
|
|
2363
|
-
const catchContent = normalizeDynamicRenderer(input.catch);
|
|
2363
|
+
const catchContent = input.catch ? normalizeDynamicRenderer(input.catch) || 0 : void 0;
|
|
2364
2364
|
const placeholderContent = normalizeDynamicRenderer(input.placeholder);
|
|
2365
|
-
if (catchContent) {
|
|
2365
|
+
if (catchContent !== void 0) {
|
|
2366
2366
|
tryCatch(
|
|
2367
2367
|
placeholderContent ? () => tryPlaceholder(content, placeholderContent, branchId) : content,
|
|
2368
|
-
catchContent
|
|
2368
|
+
catchContent || (() => {
|
|
2369
|
+
})
|
|
2369
2370
|
);
|
|
2370
2371
|
} else if (placeholderContent) {
|
|
2371
2372
|
tryPlaceholder(content, placeholderContent, branchId);
|
package/dist/debug/html.mjs
CHANGED
|
@@ -2267,12 +2267,13 @@ function _await(scopeId, accessor, promise, content, serializeMarker) {
|
|
|
2267
2267
|
function _try(scopeId, accessor, content, input) {
|
|
2268
2268
|
const branchId = _peek_scope_id();
|
|
2269
2269
|
$chunk.writeHTML($chunk.boundary.state.mark("[" /* BranchStart */, ""));
|
|
2270
|
-
const catchContent = normalizeDynamicRenderer(input.catch);
|
|
2270
|
+
const catchContent = input.catch ? normalizeDynamicRenderer(input.catch) || 0 : void 0;
|
|
2271
2271
|
const placeholderContent = normalizeDynamicRenderer(input.placeholder);
|
|
2272
|
-
if (catchContent) {
|
|
2272
|
+
if (catchContent !== void 0) {
|
|
2273
2273
|
tryCatch(
|
|
2274
2274
|
placeholderContent ? () => tryPlaceholder(content, placeholderContent, branchId) : content,
|
|
2275
|
-
catchContent
|
|
2275
|
+
catchContent || (() => {
|
|
2276
|
+
})
|
|
2276
2277
|
);
|
|
2277
2278
|
} else if (placeholderContent) {
|
|
2278
2279
|
tryPlaceholder(content, placeholderContent, branchId);
|
package/dist/dom.js
CHANGED
|
@@ -267,7 +267,7 @@ function skipScope() {
|
|
|
267
267
|
}
|
|
268
268
|
function findBranchWithKey(scope, key) {
|
|
269
269
|
let branch = scope.F;
|
|
270
|
-
for (; branch &&
|
|
270
|
+
for (; branch && branch[key] == null; )
|
|
271
271
|
branch = branch.N;
|
|
272
272
|
return branch;
|
|
273
273
|
}
|
|
@@ -1216,7 +1216,7 @@ function _try(nodeAccessor, template, walks, setup) {
|
|
|
1216
1216
|
createAndSetupBranch
|
|
1217
1217
|
);
|
|
1218
1218
|
let branch = scope[branchAccessor];
|
|
1219
|
-
branch && (branch.C = nodeAccessor, branch.E = normalizeDynamicRenderer(input.catch), branch.Q = normalizeDynamicRenderer(
|
|
1219
|
+
branch && (branch.C = nodeAccessor, branch.E = input.catch && (normalizeDynamicRenderer(input.catch) || 0), branch.Q = normalizeDynamicRenderer(
|
|
1220
1220
|
input.placeholder
|
|
1221
1221
|
));
|
|
1222
1222
|
};
|
|
@@ -1230,7 +1230,7 @@ function renderCatch(scope, error) {
|
|
|
1230
1230
|
tryWithCatch.C,
|
|
1231
1231
|
tryWithCatch.E,
|
|
1232
1232
|
createAndSetupBranch
|
|
1233
|
-
), tryWithCatch.E
|
|
1233
|
+
), tryWithCatch.E?.d?.(
|
|
1234
1234
|
owner["A" /* BranchScopes */ + tryWithCatch.C],
|
|
1235
1235
|
[error]
|
|
1236
1236
|
);
|
package/dist/dom.mjs
CHANGED
|
@@ -154,7 +154,7 @@ function skipScope() {
|
|
|
154
154
|
}
|
|
155
155
|
function findBranchWithKey(scope, key) {
|
|
156
156
|
let branch = scope.F;
|
|
157
|
-
for (; branch &&
|
|
157
|
+
for (; branch && branch[key] == null; )
|
|
158
158
|
branch = branch.N;
|
|
159
159
|
return branch;
|
|
160
160
|
}
|
|
@@ -1103,7 +1103,7 @@ function _try(nodeAccessor, template, walks, setup) {
|
|
|
1103
1103
|
createAndSetupBranch
|
|
1104
1104
|
);
|
|
1105
1105
|
let branch = scope[branchAccessor];
|
|
1106
|
-
branch && (branch.C = nodeAccessor, branch.E = normalizeDynamicRenderer(input.catch), branch.Q = normalizeDynamicRenderer(
|
|
1106
|
+
branch && (branch.C = nodeAccessor, branch.E = input.catch && (normalizeDynamicRenderer(input.catch) || 0), branch.Q = normalizeDynamicRenderer(
|
|
1107
1107
|
input.placeholder
|
|
1108
1108
|
));
|
|
1109
1109
|
};
|
|
@@ -1117,7 +1117,7 @@ function renderCatch(scope, error) {
|
|
|
1117
1117
|
tryWithCatch.C,
|
|
1118
1118
|
tryWithCatch.E,
|
|
1119
1119
|
createAndSetupBranch
|
|
1120
|
-
), tryWithCatch.E
|
|
1120
|
+
), tryWithCatch.E?.d?.(
|
|
1121
1121
|
owner["A" /* BranchScopes */ + tryWithCatch.C],
|
|
1122
1122
|
[error]
|
|
1123
1123
|
);
|
package/dist/html.js
CHANGED
|
@@ -1479,10 +1479,11 @@ function _await(scopeId, accessor, promise, content, serializeMarker) {
|
|
|
1479
1479
|
function _try(scopeId, accessor, content, input) {
|
|
1480
1480
|
let branchId = _peek_scope_id();
|
|
1481
1481
|
$chunk.writeHTML($chunk.boundary.state.mark("[" /* BranchStart */, ""));
|
|
1482
|
-
let catchContent = normalizeDynamicRenderer(input.catch), placeholderContent = normalizeDynamicRenderer(input.placeholder);
|
|
1483
|
-
catchContent ? tryCatch(
|
|
1482
|
+
let catchContent = input.catch ? normalizeDynamicRenderer(input.catch) || 0 : void 0, placeholderContent = normalizeDynamicRenderer(input.placeholder);
|
|
1483
|
+
catchContent !== void 0 ? tryCatch(
|
|
1484
1484
|
placeholderContent ? () => tryPlaceholder(content, placeholderContent, branchId) : content,
|
|
1485
|
-
catchContent
|
|
1485
|
+
catchContent || (() => {
|
|
1486
|
+
})
|
|
1486
1487
|
) : placeholderContent ? tryPlaceholder(content, placeholderContent, branchId) : content(), writeScope(branchId, {
|
|
1487
1488
|
C: accessor,
|
|
1488
1489
|
E: catchContent,
|
package/dist/html.mjs
CHANGED
|
@@ -1389,10 +1389,11 @@ function _await(scopeId, accessor, promise, content, serializeMarker) {
|
|
|
1389
1389
|
function _try(scopeId, accessor, content, input) {
|
|
1390
1390
|
let branchId = _peek_scope_id();
|
|
1391
1391
|
$chunk.writeHTML($chunk.boundary.state.mark("[" /* BranchStart */, ""));
|
|
1392
|
-
let catchContent = normalizeDynamicRenderer(input.catch), placeholderContent = normalizeDynamicRenderer(input.placeholder);
|
|
1393
|
-
catchContent ? tryCatch(
|
|
1392
|
+
let catchContent = input.catch ? normalizeDynamicRenderer(input.catch) || 0 : void 0, placeholderContent = normalizeDynamicRenderer(input.placeholder);
|
|
1393
|
+
catchContent !== void 0 ? tryCatch(
|
|
1394
1394
|
placeholderContent ? () => tryPlaceholder(content, placeholderContent, branchId) : content,
|
|
1395
|
-
catchContent
|
|
1395
|
+
catchContent || (() => {
|
|
1396
|
+
})
|
|
1396
1397
|
) : placeholderContent ? tryPlaceholder(content, placeholderContent, branchId) : content(), writeScope(branchId, {
|
|
1397
1398
|
C: accessor,
|
|
1398
1399
|
E: catchContent,
|