@danielx/civet 0.5.57 → 0.5.59
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/browser.js +7 -3
- package/dist/bun-civet.mjs +1 -1
- package/dist/main.js +7 -3
- package/dist/main.mjs +7 -3
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -9082,8 +9082,8 @@ ${input.slice(result.pos)}
|
|
|
9082
9082
|
children: $0
|
|
9083
9083
|
};
|
|
9084
9084
|
});
|
|
9085
|
-
var CaseClause$4 = $TS($S(Else, ImpliedColon,
|
|
9086
|
-
var block = $
|
|
9085
|
+
var CaseClause$4 = $TS($S(Else, ImpliedColon, $C(ThenClause, BracedBlock, EmptyBlock)), function($skip, $loc, $0, $1, $2, $3) {
|
|
9086
|
+
var block = $3;
|
|
9087
9087
|
$1.token = "default";
|
|
9088
9088
|
return {
|
|
9089
9089
|
type: "DefaultClause",
|
|
@@ -19223,8 +19223,12 @@ ${input.slice(result.pos)}
|
|
|
19223
19223
|
let prev = [], root = prev;
|
|
19224
19224
|
const l = clauses.length;
|
|
19225
19225
|
clauses.forEach((c, i) => {
|
|
19226
|
+
if (c.type === "DefaultClause") {
|
|
19227
|
+
prev.push(c.block);
|
|
19228
|
+
return;
|
|
19229
|
+
}
|
|
19226
19230
|
let { pattern, block } = c;
|
|
19227
|
-
const indent = block.expressions[0][0];
|
|
19231
|
+
const indent = block.expressions?.[0]?.[0] || "";
|
|
19228
19232
|
const conditions = [];
|
|
19229
19233
|
getPatternConditions(pattern, ref, conditions);
|
|
19230
19234
|
const condition = {
|
package/dist/bun-civet.mjs
CHANGED
package/dist/main.js
CHANGED
|
@@ -9081,8 +9081,8 @@ ${input.slice(result.pos)}
|
|
|
9081
9081
|
children: $0
|
|
9082
9082
|
};
|
|
9083
9083
|
});
|
|
9084
|
-
var CaseClause$4 = $TS($S(Else, ImpliedColon,
|
|
9085
|
-
var block = $
|
|
9084
|
+
var CaseClause$4 = $TS($S(Else, ImpliedColon, $C(ThenClause, BracedBlock, EmptyBlock)), function($skip, $loc, $0, $1, $2, $3) {
|
|
9085
|
+
var block = $3;
|
|
9086
9086
|
$1.token = "default";
|
|
9087
9087
|
return {
|
|
9088
9088
|
type: "DefaultClause",
|
|
@@ -19222,8 +19222,12 @@ ${input.slice(result.pos)}
|
|
|
19222
19222
|
let prev = [], root = prev;
|
|
19223
19223
|
const l = clauses.length;
|
|
19224
19224
|
clauses.forEach((c, i) => {
|
|
19225
|
+
if (c.type === "DefaultClause") {
|
|
19226
|
+
prev.push(c.block);
|
|
19227
|
+
return;
|
|
19228
|
+
}
|
|
19225
19229
|
let { pattern, block } = c;
|
|
19226
|
-
const indent = block.expressions[0][0];
|
|
19230
|
+
const indent = block.expressions?.[0]?.[0] || "";
|
|
19227
19231
|
const conditions = [];
|
|
19228
19232
|
getPatternConditions(pattern, ref, conditions);
|
|
19229
19233
|
const condition = {
|
package/dist/main.mjs
CHANGED
|
@@ -9079,8 +9079,8 @@ ${input.slice(result.pos)}
|
|
|
9079
9079
|
children: $0
|
|
9080
9080
|
};
|
|
9081
9081
|
});
|
|
9082
|
-
var CaseClause$4 = $TS($S(Else, ImpliedColon,
|
|
9083
|
-
var block = $
|
|
9082
|
+
var CaseClause$4 = $TS($S(Else, ImpliedColon, $C(ThenClause, BracedBlock, EmptyBlock)), function($skip, $loc, $0, $1, $2, $3) {
|
|
9083
|
+
var block = $3;
|
|
9084
9084
|
$1.token = "default";
|
|
9085
9085
|
return {
|
|
9086
9086
|
type: "DefaultClause",
|
|
@@ -19220,8 +19220,12 @@ ${input.slice(result.pos)}
|
|
|
19220
19220
|
let prev = [], root = prev;
|
|
19221
19221
|
const l = clauses.length;
|
|
19222
19222
|
clauses.forEach((c, i) => {
|
|
19223
|
+
if (c.type === "DefaultClause") {
|
|
19224
|
+
prev.push(c.block);
|
|
19225
|
+
return;
|
|
19226
|
+
}
|
|
19223
19227
|
let { pattern, block } = c;
|
|
19224
|
-
const indent = block.expressions[0][0];
|
|
19228
|
+
const indent = block.expressions?.[0]?.[0] || "";
|
|
19225
19229
|
const conditions = [];
|
|
19226
19230
|
getPatternConditions(pattern, ref, conditions);
|
|
19227
19231
|
const condition = {
|