@danielx/civet 0.6.65 → 0.6.66
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 +26 -15
- package/dist/main.js +26 -15
- package/dist/main.mjs +26 -15
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -2800,6 +2800,10 @@ ${input.slice(result.pos)}
|
|
|
2800
2800
|
case "Literal": {
|
|
2801
2801
|
return following.raw?.startsWith("-") || following.raw?.startsWith("+");
|
|
2802
2802
|
}
|
|
2803
|
+
case "PipelineExpression":
|
|
2804
|
+
case "UnwrappedExpression": {
|
|
2805
|
+
return needsPrecedingSemicolon(following.children[1]);
|
|
2806
|
+
}
|
|
2803
2807
|
default: {
|
|
2804
2808
|
if (following.children) {
|
|
2805
2809
|
return needsPrecedingSemicolon(following.children[0]);
|
|
@@ -12805,7 +12809,9 @@ ${input.slice(result.pos)}
|
|
|
12805
12809
|
function TypeSuffix(ctx, state) {
|
|
12806
12810
|
return $EVENT_C(ctx, state, "TypeSuffix", TypeSuffix$$);
|
|
12807
12811
|
}
|
|
12808
|
-
var MaybeIndentedType$0 = InterfaceBlock
|
|
12812
|
+
var MaybeIndentedType$0 = $T($S($N($S(__, OpenBrace)), InterfaceBlock), function(value) {
|
|
12813
|
+
return value[1];
|
|
12814
|
+
});
|
|
12809
12815
|
var MaybeIndentedType$1 = $TS($S(PushIndent, $E($S(Nested, Type)), PopIndent), function($skip, $loc, $0, $1, $2, $3) {
|
|
12810
12816
|
if (!$2)
|
|
12811
12817
|
return $skip;
|
|
@@ -12908,10 +12914,9 @@ ${input.slice(result.pos)}
|
|
|
12908
12914
|
return $EVENT_C(ctx, state, "TypeUnarySuffix", TypeUnarySuffix$$);
|
|
12909
12915
|
}
|
|
12910
12916
|
var TypeUnaryOp$0 = $S($EXPECT($L209, 'TypeUnaryOp "keyof"'), NonIdContinue);
|
|
12911
|
-
var TypeUnaryOp$1 = $S($EXPECT($
|
|
12912
|
-
var TypeUnaryOp$2 = $S($EXPECT($
|
|
12913
|
-
var TypeUnaryOp
|
|
12914
|
-
var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1, TypeUnaryOp$2, TypeUnaryOp$3];
|
|
12917
|
+
var TypeUnaryOp$1 = $S($EXPECT($L210, 'TypeUnaryOp "infer"'), NonIdContinue);
|
|
12918
|
+
var TypeUnaryOp$2 = $S($EXPECT($L170, 'TypeUnaryOp "readonly"'), NonIdContinue);
|
|
12919
|
+
var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1, TypeUnaryOp$2];
|
|
12915
12920
|
function TypeUnaryOp(ctx, state) {
|
|
12916
12921
|
return $EVENT_C(ctx, state, "TypeUnaryOp", TypeUnaryOp$$);
|
|
12917
12922
|
}
|
|
@@ -12925,13 +12930,19 @@ ${input.slice(result.pos)}
|
|
|
12925
12930
|
function UnknownAlias(ctx, state) {
|
|
12926
12931
|
return $EVENT(ctx, state, "UnknownAlias", UnknownAlias$0);
|
|
12927
12932
|
}
|
|
12928
|
-
var TypePrimary$0 = $TS($S($E(_),
|
|
12933
|
+
var TypePrimary$0 = $TS($S($E(_), Typeof, $E(_), ConditionalExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12934
|
+
return {
|
|
12935
|
+
type: "TypeofType",
|
|
12936
|
+
children: $0
|
|
12937
|
+
};
|
|
12938
|
+
});
|
|
12939
|
+
var TypePrimary$1 = $TS($S($E(_), TypeTuple), function($skip, $loc, $0, $1, $2) {
|
|
12929
12940
|
return { ...$2, children: [$1, ...$2.children] };
|
|
12930
12941
|
});
|
|
12931
|
-
var TypePrimary$
|
|
12932
|
-
var TypePrimary$
|
|
12933
|
-
var TypePrimary$
|
|
12934
|
-
var TypePrimary$
|
|
12942
|
+
var TypePrimary$2 = InterfaceBlock;
|
|
12943
|
+
var TypePrimary$3 = $S($E(_), FunctionType);
|
|
12944
|
+
var TypePrimary$4 = $S($E(_), InlineInterfaceLiteral);
|
|
12945
|
+
var TypePrimary$5 = $TS($S($E(_), ImportType), function($skip, $loc, $0, $1, $2) {
|
|
12935
12946
|
var t = $2;
|
|
12936
12947
|
return {
|
|
12937
12948
|
type: "ImportType",
|
|
@@ -12939,7 +12950,7 @@ ${input.slice(result.pos)}
|
|
|
12939
12950
|
children: $0
|
|
12940
12951
|
};
|
|
12941
12952
|
});
|
|
12942
|
-
var TypePrimary$
|
|
12953
|
+
var TypePrimary$6 = $TS($S($E(_), TypeLiteral), function($skip, $loc, $0, $1, $2) {
|
|
12943
12954
|
var t = $2;
|
|
12944
12955
|
return {
|
|
12945
12956
|
type: "LiteralType",
|
|
@@ -12947,7 +12958,7 @@ ${input.slice(result.pos)}
|
|
|
12947
12958
|
children: $0
|
|
12948
12959
|
};
|
|
12949
12960
|
});
|
|
12950
|
-
var TypePrimary$
|
|
12961
|
+
var TypePrimary$7 = $TS($S($E(_), UnknownAlias), function($skip, $loc, $0, $1, $2) {
|
|
12951
12962
|
return {
|
|
12952
12963
|
type: "IdentifierType",
|
|
12953
12964
|
children: $0,
|
|
@@ -12955,7 +12966,7 @@ ${input.slice(result.pos)}
|
|
|
12955
12966
|
args: void 0
|
|
12956
12967
|
};
|
|
12957
12968
|
});
|
|
12958
|
-
var TypePrimary$
|
|
12969
|
+
var TypePrimary$8 = $TS($S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12959
12970
|
var args = $4;
|
|
12960
12971
|
return {
|
|
12961
12972
|
type: "IdentifierType",
|
|
@@ -12964,13 +12975,13 @@ ${input.slice(result.pos)}
|
|
|
12964
12975
|
args
|
|
12965
12976
|
};
|
|
12966
12977
|
});
|
|
12967
|
-
var TypePrimary$
|
|
12978
|
+
var TypePrimary$9 = $TS($S($E(_), OpenParen, $C(Type, $S(EOS, Type)), __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
12968
12979
|
return {
|
|
12969
12980
|
type: "ParenthesizedType",
|
|
12970
12981
|
children: $0
|
|
12971
12982
|
};
|
|
12972
12983
|
});
|
|
12973
|
-
var TypePrimary$$ = [TypePrimary$0, TypePrimary$1, TypePrimary$2, TypePrimary$3, TypePrimary$4, TypePrimary$5, TypePrimary$6, TypePrimary$7, TypePrimary$8];
|
|
12984
|
+
var TypePrimary$$ = [TypePrimary$0, TypePrimary$1, TypePrimary$2, TypePrimary$3, TypePrimary$4, TypePrimary$5, TypePrimary$6, TypePrimary$7, TypePrimary$8, TypePrimary$9];
|
|
12974
12985
|
function TypePrimary(ctx, state) {
|
|
12975
12986
|
return $EVENT_C(ctx, state, "TypePrimary", TypePrimary$$);
|
|
12976
12987
|
}
|
package/dist/main.js
CHANGED
|
@@ -2792,6 +2792,10 @@ var require_lib = __commonJS({
|
|
|
2792
2792
|
case "Literal": {
|
|
2793
2793
|
return following.raw?.startsWith("-") || following.raw?.startsWith("+");
|
|
2794
2794
|
}
|
|
2795
|
+
case "PipelineExpression":
|
|
2796
|
+
case "UnwrappedExpression": {
|
|
2797
|
+
return needsPrecedingSemicolon(following.children[1]);
|
|
2798
|
+
}
|
|
2795
2799
|
default: {
|
|
2796
2800
|
if (following.children) {
|
|
2797
2801
|
return needsPrecedingSemicolon(following.children[0]);
|
|
@@ -12797,7 +12801,9 @@ var require_parser = __commonJS({
|
|
|
12797
12801
|
function TypeSuffix(ctx, state) {
|
|
12798
12802
|
return $EVENT_C(ctx, state, "TypeSuffix", TypeSuffix$$);
|
|
12799
12803
|
}
|
|
12800
|
-
var MaybeIndentedType$0 = InterfaceBlock
|
|
12804
|
+
var MaybeIndentedType$0 = $T($S($N($S(__, OpenBrace)), InterfaceBlock), function(value) {
|
|
12805
|
+
return value[1];
|
|
12806
|
+
});
|
|
12801
12807
|
var MaybeIndentedType$1 = $TS($S(PushIndent, $E($S(Nested, Type)), PopIndent), function($skip, $loc, $0, $1, $2, $3) {
|
|
12802
12808
|
if (!$2)
|
|
12803
12809
|
return $skip;
|
|
@@ -12900,10 +12906,9 @@ var require_parser = __commonJS({
|
|
|
12900
12906
|
return $EVENT_C(ctx, state, "TypeUnarySuffix", TypeUnarySuffix$$);
|
|
12901
12907
|
}
|
|
12902
12908
|
var TypeUnaryOp$0 = $S($EXPECT($L209, 'TypeUnaryOp "keyof"'), NonIdContinue);
|
|
12903
|
-
var TypeUnaryOp$1 = $S($EXPECT($
|
|
12904
|
-
var TypeUnaryOp$2 = $S($EXPECT($
|
|
12905
|
-
var TypeUnaryOp
|
|
12906
|
-
var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1, TypeUnaryOp$2, TypeUnaryOp$3];
|
|
12909
|
+
var TypeUnaryOp$1 = $S($EXPECT($L210, 'TypeUnaryOp "infer"'), NonIdContinue);
|
|
12910
|
+
var TypeUnaryOp$2 = $S($EXPECT($L170, 'TypeUnaryOp "readonly"'), NonIdContinue);
|
|
12911
|
+
var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1, TypeUnaryOp$2];
|
|
12907
12912
|
function TypeUnaryOp(ctx, state) {
|
|
12908
12913
|
return $EVENT_C(ctx, state, "TypeUnaryOp", TypeUnaryOp$$);
|
|
12909
12914
|
}
|
|
@@ -12917,13 +12922,19 @@ var require_parser = __commonJS({
|
|
|
12917
12922
|
function UnknownAlias(ctx, state) {
|
|
12918
12923
|
return $EVENT(ctx, state, "UnknownAlias", UnknownAlias$0);
|
|
12919
12924
|
}
|
|
12920
|
-
var TypePrimary$0 = $TS($S($E(_),
|
|
12925
|
+
var TypePrimary$0 = $TS($S($E(_), Typeof, $E(_), ConditionalExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12926
|
+
return {
|
|
12927
|
+
type: "TypeofType",
|
|
12928
|
+
children: $0
|
|
12929
|
+
};
|
|
12930
|
+
});
|
|
12931
|
+
var TypePrimary$1 = $TS($S($E(_), TypeTuple), function($skip, $loc, $0, $1, $2) {
|
|
12921
12932
|
return { ...$2, children: [$1, ...$2.children] };
|
|
12922
12933
|
});
|
|
12923
|
-
var TypePrimary$
|
|
12924
|
-
var TypePrimary$
|
|
12925
|
-
var TypePrimary$
|
|
12926
|
-
var TypePrimary$
|
|
12934
|
+
var TypePrimary$2 = InterfaceBlock;
|
|
12935
|
+
var TypePrimary$3 = $S($E(_), FunctionType);
|
|
12936
|
+
var TypePrimary$4 = $S($E(_), InlineInterfaceLiteral);
|
|
12937
|
+
var TypePrimary$5 = $TS($S($E(_), ImportType), function($skip, $loc, $0, $1, $2) {
|
|
12927
12938
|
var t = $2;
|
|
12928
12939
|
return {
|
|
12929
12940
|
type: "ImportType",
|
|
@@ -12931,7 +12942,7 @@ var require_parser = __commonJS({
|
|
|
12931
12942
|
children: $0
|
|
12932
12943
|
};
|
|
12933
12944
|
});
|
|
12934
|
-
var TypePrimary$
|
|
12945
|
+
var TypePrimary$6 = $TS($S($E(_), TypeLiteral), function($skip, $loc, $0, $1, $2) {
|
|
12935
12946
|
var t = $2;
|
|
12936
12947
|
return {
|
|
12937
12948
|
type: "LiteralType",
|
|
@@ -12939,7 +12950,7 @@ var require_parser = __commonJS({
|
|
|
12939
12950
|
children: $0
|
|
12940
12951
|
};
|
|
12941
12952
|
});
|
|
12942
|
-
var TypePrimary$
|
|
12953
|
+
var TypePrimary$7 = $TS($S($E(_), UnknownAlias), function($skip, $loc, $0, $1, $2) {
|
|
12943
12954
|
return {
|
|
12944
12955
|
type: "IdentifierType",
|
|
12945
12956
|
children: $0,
|
|
@@ -12947,7 +12958,7 @@ var require_parser = __commonJS({
|
|
|
12947
12958
|
args: void 0
|
|
12948
12959
|
};
|
|
12949
12960
|
});
|
|
12950
|
-
var TypePrimary$
|
|
12961
|
+
var TypePrimary$8 = $TS($S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12951
12962
|
var args = $4;
|
|
12952
12963
|
return {
|
|
12953
12964
|
type: "IdentifierType",
|
|
@@ -12956,13 +12967,13 @@ var require_parser = __commonJS({
|
|
|
12956
12967
|
args
|
|
12957
12968
|
};
|
|
12958
12969
|
});
|
|
12959
|
-
var TypePrimary$
|
|
12970
|
+
var TypePrimary$9 = $TS($S($E(_), OpenParen, $C(Type, $S(EOS, Type)), __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
12960
12971
|
return {
|
|
12961
12972
|
type: "ParenthesizedType",
|
|
12962
12973
|
children: $0
|
|
12963
12974
|
};
|
|
12964
12975
|
});
|
|
12965
|
-
var TypePrimary$$ = [TypePrimary$0, TypePrimary$1, TypePrimary$2, TypePrimary$3, TypePrimary$4, TypePrimary$5, TypePrimary$6, TypePrimary$7, TypePrimary$8];
|
|
12976
|
+
var TypePrimary$$ = [TypePrimary$0, TypePrimary$1, TypePrimary$2, TypePrimary$3, TypePrimary$4, TypePrimary$5, TypePrimary$6, TypePrimary$7, TypePrimary$8, TypePrimary$9];
|
|
12966
12977
|
function TypePrimary(ctx, state) {
|
|
12967
12978
|
return $EVENT_C(ctx, state, "TypePrimary", TypePrimary$$);
|
|
12968
12979
|
}
|
package/dist/main.mjs
CHANGED
|
@@ -2790,6 +2790,10 @@ var require_lib = __commonJS({
|
|
|
2790
2790
|
case "Literal": {
|
|
2791
2791
|
return following.raw?.startsWith("-") || following.raw?.startsWith("+");
|
|
2792
2792
|
}
|
|
2793
|
+
case "PipelineExpression":
|
|
2794
|
+
case "UnwrappedExpression": {
|
|
2795
|
+
return needsPrecedingSemicolon(following.children[1]);
|
|
2796
|
+
}
|
|
2793
2797
|
default: {
|
|
2794
2798
|
if (following.children) {
|
|
2795
2799
|
return needsPrecedingSemicolon(following.children[0]);
|
|
@@ -12795,7 +12799,9 @@ var require_parser = __commonJS({
|
|
|
12795
12799
|
function TypeSuffix(ctx, state) {
|
|
12796
12800
|
return $EVENT_C(ctx, state, "TypeSuffix", TypeSuffix$$);
|
|
12797
12801
|
}
|
|
12798
|
-
var MaybeIndentedType$0 = InterfaceBlock
|
|
12802
|
+
var MaybeIndentedType$0 = $T($S($N($S(__, OpenBrace)), InterfaceBlock), function(value) {
|
|
12803
|
+
return value[1];
|
|
12804
|
+
});
|
|
12799
12805
|
var MaybeIndentedType$1 = $TS($S(PushIndent, $E($S(Nested, Type)), PopIndent), function($skip, $loc, $0, $1, $2, $3) {
|
|
12800
12806
|
if (!$2)
|
|
12801
12807
|
return $skip;
|
|
@@ -12898,10 +12904,9 @@ var require_parser = __commonJS({
|
|
|
12898
12904
|
return $EVENT_C(ctx, state, "TypeUnarySuffix", TypeUnarySuffix$$);
|
|
12899
12905
|
}
|
|
12900
12906
|
var TypeUnaryOp$0 = $S($EXPECT($L209, 'TypeUnaryOp "keyof"'), NonIdContinue);
|
|
12901
|
-
var TypeUnaryOp$1 = $S($EXPECT($
|
|
12902
|
-
var TypeUnaryOp$2 = $S($EXPECT($
|
|
12903
|
-
var TypeUnaryOp
|
|
12904
|
-
var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1, TypeUnaryOp$2, TypeUnaryOp$3];
|
|
12907
|
+
var TypeUnaryOp$1 = $S($EXPECT($L210, 'TypeUnaryOp "infer"'), NonIdContinue);
|
|
12908
|
+
var TypeUnaryOp$2 = $S($EXPECT($L170, 'TypeUnaryOp "readonly"'), NonIdContinue);
|
|
12909
|
+
var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1, TypeUnaryOp$2];
|
|
12905
12910
|
function TypeUnaryOp(ctx, state) {
|
|
12906
12911
|
return $EVENT_C(ctx, state, "TypeUnaryOp", TypeUnaryOp$$);
|
|
12907
12912
|
}
|
|
@@ -12915,13 +12920,19 @@ var require_parser = __commonJS({
|
|
|
12915
12920
|
function UnknownAlias(ctx, state) {
|
|
12916
12921
|
return $EVENT(ctx, state, "UnknownAlias", UnknownAlias$0);
|
|
12917
12922
|
}
|
|
12918
|
-
var TypePrimary$0 = $TS($S($E(_),
|
|
12923
|
+
var TypePrimary$0 = $TS($S($E(_), Typeof, $E(_), ConditionalExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12924
|
+
return {
|
|
12925
|
+
type: "TypeofType",
|
|
12926
|
+
children: $0
|
|
12927
|
+
};
|
|
12928
|
+
});
|
|
12929
|
+
var TypePrimary$1 = $TS($S($E(_), TypeTuple), function($skip, $loc, $0, $1, $2) {
|
|
12919
12930
|
return { ...$2, children: [$1, ...$2.children] };
|
|
12920
12931
|
});
|
|
12921
|
-
var TypePrimary$
|
|
12922
|
-
var TypePrimary$
|
|
12923
|
-
var TypePrimary$
|
|
12924
|
-
var TypePrimary$
|
|
12932
|
+
var TypePrimary$2 = InterfaceBlock;
|
|
12933
|
+
var TypePrimary$3 = $S($E(_), FunctionType);
|
|
12934
|
+
var TypePrimary$4 = $S($E(_), InlineInterfaceLiteral);
|
|
12935
|
+
var TypePrimary$5 = $TS($S($E(_), ImportType), function($skip, $loc, $0, $1, $2) {
|
|
12925
12936
|
var t = $2;
|
|
12926
12937
|
return {
|
|
12927
12938
|
type: "ImportType",
|
|
@@ -12929,7 +12940,7 @@ var require_parser = __commonJS({
|
|
|
12929
12940
|
children: $0
|
|
12930
12941
|
};
|
|
12931
12942
|
});
|
|
12932
|
-
var TypePrimary$
|
|
12943
|
+
var TypePrimary$6 = $TS($S($E(_), TypeLiteral), function($skip, $loc, $0, $1, $2) {
|
|
12933
12944
|
var t = $2;
|
|
12934
12945
|
return {
|
|
12935
12946
|
type: "LiteralType",
|
|
@@ -12937,7 +12948,7 @@ var require_parser = __commonJS({
|
|
|
12937
12948
|
children: $0
|
|
12938
12949
|
};
|
|
12939
12950
|
});
|
|
12940
|
-
var TypePrimary$
|
|
12951
|
+
var TypePrimary$7 = $TS($S($E(_), UnknownAlias), function($skip, $loc, $0, $1, $2) {
|
|
12941
12952
|
return {
|
|
12942
12953
|
type: "IdentifierType",
|
|
12943
12954
|
children: $0,
|
|
@@ -12945,7 +12956,7 @@ var require_parser = __commonJS({
|
|
|
12945
12956
|
args: void 0
|
|
12946
12957
|
};
|
|
12947
12958
|
});
|
|
12948
|
-
var TypePrimary$
|
|
12959
|
+
var TypePrimary$8 = $TS($S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12949
12960
|
var args = $4;
|
|
12950
12961
|
return {
|
|
12951
12962
|
type: "IdentifierType",
|
|
@@ -12954,13 +12965,13 @@ var require_parser = __commonJS({
|
|
|
12954
12965
|
args
|
|
12955
12966
|
};
|
|
12956
12967
|
});
|
|
12957
|
-
var TypePrimary$
|
|
12968
|
+
var TypePrimary$9 = $TS($S($E(_), OpenParen, $C(Type, $S(EOS, Type)), __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
12958
12969
|
return {
|
|
12959
12970
|
type: "ParenthesizedType",
|
|
12960
12971
|
children: $0
|
|
12961
12972
|
};
|
|
12962
12973
|
});
|
|
12963
|
-
var TypePrimary$$ = [TypePrimary$0, TypePrimary$1, TypePrimary$2, TypePrimary$3, TypePrimary$4, TypePrimary$5, TypePrimary$6, TypePrimary$7, TypePrimary$8];
|
|
12974
|
+
var TypePrimary$$ = [TypePrimary$0, TypePrimary$1, TypePrimary$2, TypePrimary$3, TypePrimary$4, TypePrimary$5, TypePrimary$6, TypePrimary$7, TypePrimary$8, TypePrimary$9];
|
|
12964
12975
|
function TypePrimary(ctx, state) {
|
|
12965
12976
|
return $EVENT_C(ctx, state, "TypePrimary", TypePrimary$$);
|
|
12966
12977
|
}
|