capacitor-gleap-plugin 14.2.1 → 14.3.0

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gleap SDK for Capacitor is the easiest way to integrate Gleap into your Ionic apps! Achieve better app quality with comprehensive in-app bug reporting & customer feedback for your web-apps and websites. Many thanks to Stephan Nagel (congrapp) for his work on the Gleap capacitor plugin.
4
4
 
5
- This plugin supports capacitor 6. See the instructions below for earlier capacitor versions.
5
+ This plugin supports capacitor 7. See the instructions below for earlier capacitor versions.
6
6
 
7
7
  ## Install
8
8
 
@@ -11,6 +11,10 @@ npm install capacitor-gleap-plugin
11
11
  npx cap sync
12
12
  ```
13
13
 
14
+ ## Capacitor 6
15
+
16
+ Please install the plugin version from our capacitor-v6 brunch with `npm install GleapSDK/Capacitor-SDK#capacitor-v6 --save` if you are using capacitor 6.
17
+
14
18
  ## Capacitor 5
15
19
 
16
20
  Please install the plugin version from our capacitor-v5 brunch with `npm install GleapSDK/Capacitor-SDK#capacitor-v5 --save` if you are using capacitor 5.
@@ -945,6 +949,660 @@ Creates a new function.
945
949
  | **toString** | () => string | Returns a string representation of a function. |
946
950
 
947
951
 
952
+ #### FunctionDeclaration
953
+
954
+ | Prop | Type | Description |
955
+ | -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------- |
956
+ | **`id`** | <code><a href="#identifier">Identifier</a></code> | It is null when a function declaration is a part of the `export default function` statement |
957
+
958
+
959
+ #### Identifier
960
+
961
+ | Prop | Type |
962
+ | ---------- | --------------------------------------------------- |
963
+ | **`type`** | <code>'<a href="#identifier">Identifier</a>'</code> |
964
+ | **`name`** | <code>string</code> |
965
+
966
+
967
+ #### FunctionExpression
968
+
969
+ | Prop | Type |
970
+ | ---------- | ------------------------------------------------------------------- |
971
+ | **`id`** | <code><a href="#identifier">Identifier</a> \| null</code> |
972
+ | **`type`** | <code>'<a href="#functionexpression">FunctionExpression</a>'</code> |
973
+ | **`body`** | <code><a href="#blockstatement">BlockStatement</a></code> |
974
+
975
+
976
+ #### BlockStatement
977
+
978
+ | Prop | Type |
979
+ | ------------------- | ----------------------------------------------------------- |
980
+ | **`type`** | <code>'<a href="#blockstatement">BlockStatement</a>'</code> |
981
+ | **`body`** | <code>Statement[]</code> |
982
+ | **`innerComments`** | <code>Comment[]</code> |
983
+
984
+
985
+ #### ExpressionStatement
986
+
987
+ | Prop | Type |
988
+ | ---------------- | --------------------------------------------------------------------- |
989
+ | **`type`** | <code>'<a href="#expressionstatement">ExpressionStatement</a>'</code> |
990
+ | **`expression`** | <code><a href="#expression">Expression</a></code> |
991
+
992
+
993
+ #### ExpressionMap
994
+
995
+ | Prop | Type |
996
+ | ------------------------------ | ----------------------------------------------------------------------------- |
997
+ | **`ArrayExpression`** | <code><a href="#arrayexpression">ArrayExpression</a></code> |
998
+ | **`ArrowFunctionExpression`** | <code><a href="#arrowfunctionexpression">ArrowFunctionExpression</a></code> |
999
+ | **`AssignmentExpression`** | <code><a href="#assignmentexpression">AssignmentExpression</a></code> |
1000
+ | **`AwaitExpression`** | <code><a href="#awaitexpression">AwaitExpression</a></code> |
1001
+ | **`BinaryExpression`** | <code><a href="#binaryexpression">BinaryExpression</a></code> |
1002
+ | **`CallExpression`** | <code><a href="#callexpression">CallExpression</a></code> |
1003
+ | **`ChainExpression`** | <code><a href="#chainexpression">ChainExpression</a></code> |
1004
+ | **`ClassExpression`** | <code><a href="#classexpression">ClassExpression</a></code> |
1005
+ | **`ConditionalExpression`** | <code><a href="#conditionalexpression">ConditionalExpression</a></code> |
1006
+ | **`FunctionExpression`** | <code><a href="#functionexpression">FunctionExpression</a></code> |
1007
+ | **`Identifier`** | <code><a href="#identifier">Identifier</a></code> |
1008
+ | **`ImportExpression`** | <code><a href="#importexpression">ImportExpression</a></code> |
1009
+ | **`Literal`** | <code><a href="#literal">Literal</a></code> |
1010
+ | **`LogicalExpression`** | <code><a href="#logicalexpression">LogicalExpression</a></code> |
1011
+ | **`MemberExpression`** | <code><a href="#memberexpression">MemberExpression</a></code> |
1012
+ | **`MetaProperty`** | <code><a href="#metaproperty">MetaProperty</a></code> |
1013
+ | **`NewExpression`** | <code><a href="#newexpression">NewExpression</a></code> |
1014
+ | **`ObjectExpression`** | <code><a href="#objectexpression">ObjectExpression</a></code> |
1015
+ | **`SequenceExpression`** | <code><a href="#sequenceexpression">SequenceExpression</a></code> |
1016
+ | **`TaggedTemplateExpression`** | <code><a href="#taggedtemplateexpression">TaggedTemplateExpression</a></code> |
1017
+ | **`TemplateLiteral`** | <code><a href="#templateliteral">TemplateLiteral</a></code> |
1018
+ | **`ThisExpression`** | <code><a href="#thisexpression">ThisExpression</a></code> |
1019
+ | **`UnaryExpression`** | <code><a href="#unaryexpression">UnaryExpression</a></code> |
1020
+ | **`UpdateExpression`** | <code><a href="#updateexpression">UpdateExpression</a></code> |
1021
+ | **`YieldExpression`** | <code><a href="#yieldexpression">YieldExpression</a></code> |
1022
+
1023
+
1024
+ #### ArrayExpression
1025
+
1026
+ | Prop | Type |
1027
+ | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
1028
+ | **`type`** | <code>'<a href="#arrayexpression">ArrayExpression</a>'</code> |
1029
+ | **`elements`** | <code><a href="#array">Array</a>&lt;<a href="#expression">Expression</a> \| <a href="#spreadelement">SpreadElement</a> \| null&gt;</code> |
1030
+
1031
+
1032
+ #### Array
1033
+
1034
+ | Prop | Type | Description |
1035
+ | ------------ | ------------------- | ------------------------------------------------------------------------------------------------------ |
1036
+ | **`length`** | <code>number</code> | Gets or sets the length of the array. This is a number one higher than the highest index in the array. |
1037
+
1038
+ | Method | Signature | Description |
1039
+ | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1040
+ | **toString** | () =&gt; string | Returns a string representation of an array. |
1041
+ | **toLocaleString** | () =&gt; string | Returns a string representation of an array. The elements are converted to string using their toLocalString methods. |
1042
+ | **pop** | () =&gt; T \| undefined | Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified. |
1043
+ | **push** | (...items: T[]) =&gt; number | Appends new elements to the end of an array, and returns the new length of the array. |
1044
+ | **concat** | (...items: <a href="#concatarray">ConcatArray</a>&lt;T&gt;[]) =&gt; T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
1045
+ | **concat** | (...items: (T \| <a href="#concatarray">ConcatArray</a>&lt;T&gt;)[]) =&gt; T[] | Combines two or more arrays. This method returns a new array without modifying any existing arrays. |
1046
+ | **join** | (separator?: string \| undefined) =&gt; string | Adds all the elements of an array into a string, separated by the specified separator string. |
1047
+ | **reverse** | () =&gt; T[] | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array. |
1048
+ | **shift** | () =&gt; T \| undefined | Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified. |
1049
+ | **slice** | (start?: number \| undefined, end?: number \| undefined) =&gt; T[] | Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array. |
1050
+ | **sort** | (compareFn?: ((a: T, b: T) =&gt; number) \| undefined) =&gt; this | Sorts an array in place. This method mutates the array and returns a reference to the same array. |
1051
+ | **splice** | (start: number, deleteCount?: number \| undefined) =&gt; T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. |
1052
+ | **splice** | (start: number, deleteCount: number, ...items: T[]) =&gt; T[] | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. |
1053
+ | **unshift** | (...items: T[]) =&gt; number | Inserts new elements at the start of an array, and returns the new length of the array. |
1054
+ | **indexOf** | (searchElement: T, fromIndex?: number \| undefined) =&gt; number | Returns the index of the first occurrence of a value in an array, or -1 if it is not present. |
1055
+ | **lastIndexOf** | (searchElement: T, fromIndex?: number \| undefined) =&gt; number | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. |
1056
+ | **every** | &lt;S extends T&gt;(predicate: (value: T, index: number, array: T[]) =&gt; value is S, thisArg?: any) =&gt; this is S[] | Determines whether all the members of an array satisfy the specified test. |
1057
+ | **every** | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; boolean | Determines whether all the members of an array satisfy the specified test. |
1058
+ | **some** | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; boolean | Determines whether the specified callback function returns true for any element of an array. |
1059
+ | **forEach** | (callbackfn: (value: T, index: number, array: T[]) =&gt; void, thisArg?: any) =&gt; void | Performs the specified action for each element in an array. |
1060
+ | **map** | &lt;U&gt;(callbackfn: (value: T, index: number, array: T[]) =&gt; U, thisArg?: any) =&gt; U[] | Calls a defined callback function on each element of an array, and returns an array that contains the results. |
1061
+ | **filter** | &lt;S extends T&gt;(predicate: (value: T, index: number, array: T[]) =&gt; value is S, thisArg?: any) =&gt; S[] | Returns the elements of an array that meet the condition specified in a callback function. |
1062
+ | **filter** | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; T[] | Returns the elements of an array that meet the condition specified in a callback function. |
1063
+ | **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T) =&gt; T | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
1064
+ | **reduce** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T | |
1065
+ | **reduce** | &lt;U&gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =&gt; U, initialValue: U) =&gt; U | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
1066
+ | **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T) =&gt; T | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
1067
+ | **reduceRight** | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T | |
1068
+ | **reduceRight** | &lt;U&gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =&gt; U, initialValue: U) =&gt; U | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
1069
+
1070
+
1071
+ #### ConcatArray
1072
+
1073
+ | Prop | Type |
1074
+ | ------------ | ------------------- |
1075
+ | **`length`** | <code>number</code> |
1076
+
1077
+ | Method | Signature |
1078
+ | --------- | ------------------------------------------------------------------ |
1079
+ | **join** | (separator?: string \| undefined) =&gt; string |
1080
+ | **slice** | (start?: number \| undefined, end?: number \| undefined) =&gt; T[] |
1081
+
1082
+
1083
+ #### SpreadElement
1084
+
1085
+ | Prop | Type |
1086
+ | -------------- | --------------------------------------------------------- |
1087
+ | **`type`** | <code>'<a href="#spreadelement">SpreadElement</a>'</code> |
1088
+ | **`argument`** | <code><a href="#expression">Expression</a></code> |
1089
+
1090
+
1091
+ #### ArrowFunctionExpression
1092
+
1093
+ | Prop | Type |
1094
+ | ---------------- | ------------------------------------------------------------------------------------------------- |
1095
+ | **`type`** | <code>'<a href="#arrowfunctionexpression">ArrowFunctionExpression</a>'</code> |
1096
+ | **`expression`** | <code>boolean</code> |
1097
+ | **`body`** | <code><a href="#expression">Expression</a> \| <a href="#blockstatement">BlockStatement</a></code> |
1098
+
1099
+
1100
+ #### AssignmentExpression
1101
+
1102
+ | Prop | Type |
1103
+ | -------------- | ----------------------------------------------------------------------- |
1104
+ | **`type`** | <code>'<a href="#assignmentexpression">AssignmentExpression</a>'</code> |
1105
+ | **`operator`** | <code><a href="#assignmentoperator">AssignmentOperator</a></code> |
1106
+ | **`left`** | <code><a href="#pattern">Pattern</a></code> |
1107
+ | **`right`** | <code><a href="#expression">Expression</a></code> |
1108
+
1109
+
1110
+ #### ObjectPattern
1111
+
1112
+ | Prop | Type |
1113
+ | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
1114
+ | **`type`** | <code>'<a href="#objectpattern">ObjectPattern</a>'</code> |
1115
+ | **`properties`** | <code><a href="#array">Array</a>&lt;<a href="#assignmentproperty">AssignmentProperty</a> \| <a href="#restelement">RestElement</a>&gt;</code> |
1116
+
1117
+
1118
+ #### AssignmentProperty
1119
+
1120
+ | Prop | Type |
1121
+ | ------------ | ------------------------------------------- |
1122
+ | **`value`** | <code><a href="#pattern">Pattern</a></code> |
1123
+ | **`kind`** | <code>'init'</code> |
1124
+ | **`method`** | <code>boolean</code> |
1125
+
1126
+
1127
+ #### RestElement
1128
+
1129
+ | Prop | Type |
1130
+ | -------------- | ----------------------------------------------------- |
1131
+ | **`type`** | <code>'<a href="#restelement">RestElement</a>'</code> |
1132
+ | **`argument`** | <code><a href="#pattern">Pattern</a></code> |
1133
+
1134
+
1135
+ #### ArrayPattern
1136
+
1137
+ | Prop | Type |
1138
+ | -------------- | ------------------------------------------------------------------------------------- |
1139
+ | **`type`** | <code>'<a href="#arraypattern">ArrayPattern</a>'</code> |
1140
+ | **`elements`** | <code><a href="#array">Array</a>&lt;<a href="#pattern">Pattern</a> \| null&gt;</code> |
1141
+
1142
+
1143
+ #### AssignmentPattern
1144
+
1145
+ | Prop | Type |
1146
+ | ----------- | ----------------------------------------------------------------- |
1147
+ | **`type`** | <code>'<a href="#assignmentpattern">AssignmentPattern</a>'</code> |
1148
+ | **`left`** | <code><a href="#pattern">Pattern</a></code> |
1149
+ | **`right`** | <code><a href="#expression">Expression</a></code> |
1150
+
1151
+
1152
+ #### MemberExpression
1153
+
1154
+ | Prop | Type |
1155
+ | -------------- | ------------------------------------------------------------------------------------------------------- |
1156
+ | **`type`** | <code>'<a href="#memberexpression">MemberExpression</a>'</code> |
1157
+ | **`object`** | <code><a href="#expression">Expression</a> \| <a href="#super">Super</a></code> |
1158
+ | **`property`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
1159
+ | **`computed`** | <code>boolean</code> |
1160
+ | **`optional`** | <code>boolean</code> |
1161
+
1162
+
1163
+ #### Super
1164
+
1165
+ | Prop | Type |
1166
+ | ---------- | ----------------------------------------- |
1167
+ | **`type`** | <code>'<a href="#super">Super</a>'</code> |
1168
+
1169
+
1170
+ #### PrivateIdentifier
1171
+
1172
+ | Prop | Type |
1173
+ | ---------- | ----------------------------------------------------------------- |
1174
+ | **`type`** | <code>'<a href="#privateidentifier">PrivateIdentifier</a>'</code> |
1175
+ | **`name`** | <code>string</code> |
1176
+
1177
+
1178
+ #### AwaitExpression
1179
+
1180
+ | Prop | Type |
1181
+ | -------------- | ------------------------------------------------------------- |
1182
+ | **`type`** | <code>'<a href="#awaitexpression">AwaitExpression</a>'</code> |
1183
+ | **`argument`** | <code><a href="#expression">Expression</a></code> |
1184
+
1185
+
1186
+ #### BinaryExpression
1187
+
1188
+ | Prop | Type |
1189
+ | -------------- | ------------------------------------------------------------------------------------------------------- |
1190
+ | **`type`** | <code>'<a href="#binaryexpression">BinaryExpression</a>'</code> |
1191
+ | **`operator`** | <code><a href="#binaryoperator">BinaryOperator</a></code> |
1192
+ | **`left`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
1193
+ | **`right`** | <code><a href="#expression">Expression</a></code> |
1194
+
1195
+
1196
+ #### SimpleCallExpression
1197
+
1198
+ | Prop | Type |
1199
+ | -------------- | ----------------------------------------------------------- |
1200
+ | **`type`** | <code>'<a href="#callexpression">CallExpression</a>'</code> |
1201
+ | **`optional`** | <code>boolean</code> |
1202
+
1203
+
1204
+ #### NewExpression
1205
+
1206
+ | Prop | Type |
1207
+ | ---------- | --------------------------------------------------------- |
1208
+ | **`type`** | <code>'<a href="#newexpression">NewExpression</a>'</code> |
1209
+
1210
+
1211
+ #### ChainExpression
1212
+
1213
+ | Prop | Type |
1214
+ | ---------------- | ------------------------------------------------------------- |
1215
+ | **`type`** | <code>'<a href="#chainexpression">ChainExpression</a>'</code> |
1216
+ | **`expression`** | <code><a href="#chainelement">ChainElement</a></code> |
1217
+
1218
+
1219
+ #### ClassExpression
1220
+
1221
+ | Prop | Type |
1222
+ | ---------- | ------------------------------------------------------------- |
1223
+ | **`type`** | <code>'<a href="#classexpression">ClassExpression</a>'</code> |
1224
+ | **`id`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1225
+
1226
+
1227
+ #### ConditionalExpression
1228
+
1229
+ | Prop | Type |
1230
+ | ---------------- | ------------------------------------------------------------------------- |
1231
+ | **`type`** | <code>'<a href="#conditionalexpression">ConditionalExpression</a>'</code> |
1232
+ | **`test`** | <code><a href="#expression">Expression</a></code> |
1233
+ | **`alternate`** | <code><a href="#expression">Expression</a></code> |
1234
+ | **`consequent`** | <code><a href="#expression">Expression</a></code> |
1235
+
1236
+
1237
+ #### ImportExpression
1238
+
1239
+ | Prop | Type |
1240
+ | ------------- | --------------------------------------------------------------- |
1241
+ | **`type`** | <code>'<a href="#importexpression">ImportExpression</a>'</code> |
1242
+ | **`source`** | <code><a href="#expression">Expression</a></code> |
1243
+ | **`options`** | <code><a href="#expression">Expression</a> \| null</code> |
1244
+
1245
+
1246
+ #### SimpleLiteral
1247
+
1248
+ | Prop | Type |
1249
+ | ----------- | ------------------------------------------------ |
1250
+ | **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
1251
+ | **`value`** | <code>string \| number \| boolean \| null</code> |
1252
+ | **`raw`** | <code>string</code> |
1253
+
1254
+
1255
+ #### RegExpLiteral
1256
+
1257
+ | Prop | Type |
1258
+ | ----------- | ------------------------------------------------- |
1259
+ | **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
1260
+ | **`value`** | <code><a href="#regexp">RegExp</a> \| null</code> |
1261
+ | **`regex`** | <code>{ pattern: string; flags: string; }</code> |
1262
+ | **`raw`** | <code>string</code> |
1263
+
1264
+
1265
+ #### RegExp
1266
+
1267
+ | Prop | Type | Description |
1268
+ | ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1269
+ | **`source`** | <code>string</code> | Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. |
1270
+ | **`global`** | <code>boolean</code> | Returns a <a href="#boolean">Boolean</a> value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. |
1271
+ | **`ignoreCase`** | <code>boolean</code> | Returns a <a href="#boolean">Boolean</a> value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. |
1272
+ | **`multiline`** | <code>boolean</code> | Returns a <a href="#boolean">Boolean</a> value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. |
1273
+ | **`lastIndex`** | <code>number</code> | |
1274
+
1275
+ | Method | Signature | Description |
1276
+ | ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
1277
+ | **exec** | (string: string) =&gt; <a href="#regexpexecarray">RegExpExecArray</a> \| null | Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. |
1278
+ | **test** | (string: string) =&gt; boolean | Returns a <a href="#boolean">Boolean</a> value that indicates whether or not a pattern exists in a searched string. |
1279
+ | **compile** | () =&gt; this | |
1280
+
1281
+
1282
+ #### RegExpExecArray
1283
+
1284
+ | Prop | Type |
1285
+ | ----------- | ------------------- |
1286
+ | **`index`** | <code>number</code> |
1287
+ | **`input`** | <code>string</code> |
1288
+
1289
+
1290
+ #### BigIntLiteral
1291
+
1292
+ | Prop | Type |
1293
+ | ------------ | --------------------------------------------- |
1294
+ | **`type`** | <code>'<a href="#literal">Literal</a>'</code> |
1295
+ | **`value`** | <code>bigint \| null</code> |
1296
+ | **`bigint`** | <code>string</code> |
1297
+ | **`raw`** | <code>string</code> |
1298
+
1299
+
1300
+ #### LogicalExpression
1301
+
1302
+ | Prop | Type |
1303
+ | -------------- | ----------------------------------------------------------------- |
1304
+ | **`type`** | <code>'<a href="#logicalexpression">LogicalExpression</a>'</code> |
1305
+ | **`operator`** | <code><a href="#logicaloperator">LogicalOperator</a></code> |
1306
+ | **`left`** | <code><a href="#expression">Expression</a></code> |
1307
+ | **`right`** | <code><a href="#expression">Expression</a></code> |
1308
+
1309
+
1310
+ #### MetaProperty
1311
+
1312
+ | Prop | Type |
1313
+ | -------------- | ------------------------------------------------------- |
1314
+ | **`type`** | <code>'<a href="#metaproperty">MetaProperty</a>'</code> |
1315
+ | **`meta`** | <code><a href="#identifier">Identifier</a></code> |
1316
+ | **`property`** | <code><a href="#identifier">Identifier</a></code> |
1317
+
1318
+
1319
+ #### ObjectExpression
1320
+
1321
+ | Prop | Type |
1322
+ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
1323
+ | **`type`** | <code>'<a href="#objectexpression">ObjectExpression</a>'</code> |
1324
+ | **`properties`** | <code><a href="#array">Array</a>&lt;<a href="#property">Property</a> \| <a href="#spreadelement">SpreadElement</a>&gt;</code> |
1325
+
1326
+
1327
+ #### Property
1328
+
1329
+ | Prop | Type |
1330
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1331
+ | **`type`** | <code>'<a href="#property">Property</a>'</code> |
1332
+ | **`key`** | <code><a href="#expression">Expression</a> \| <a href="#privateidentifier">PrivateIdentifier</a></code> |
1333
+ | **`value`** | <code><a href="#classexpression">ClassExpression</a> \| <a href="#arrayexpression">ArrayExpression</a> \| <a href="#arrowfunctionexpression">ArrowFunctionExpression</a> \| <a href="#assignmentexpression">AssignmentExpression</a> \| <a href="#awaitexpression">AwaitExpression</a> \| <a href="#binaryexpression">BinaryExpression</a> \| <a href="#simplecallexpression">SimpleCallExpression</a> \| <a href="#newexpression">NewExpression</a> \| <a href="#chainexpression">ChainExpression</a> \| <a href="#conditionalexpression">ConditionalExpression</a> \| <a href="#functionexpression">FunctionExpression</a> \| <a href="#identifier">Identifier</a> \| <a href="#importexpression">ImportExpression</a> \| <a href="#simpleliteral">SimpleLiteral</a> \| <a href="#regexpliteral">RegExpLiteral</a> \| <a href="#bigintliteral">BigIntLiteral</a> \| <a href="#logicalexpression">LogicalExpression</a> \| <a href="#memberexpression">MemberExpression</a> \| <a href="#metaproperty">MetaProperty</a> \| <a href="#objectexpression">ObjectExpression</a> \| <a href="#sequenceexpression">SequenceExpression</a> \| <a href="#taggedtemplateexpression">TaggedTemplateExpression</a> \| <a href="#templateliteral">TemplateLiteral</a> \| <a href="#thisexpression">ThisExpression</a> \| <a href="#unaryexpression">UnaryExpression</a> \| <a href="#updateexpression">UpdateExpression</a> \| <a href="#yieldexpression">YieldExpression</a> \| <a href="#objectpattern">ObjectPattern</a> \| <a href="#arraypattern">ArrayPattern</a> \| <a href="#restelement">RestElement</a> \| <a href="#assignmentpattern">AssignmentPattern</a></code> |
1334
+ | **`kind`** | <code>'init' \| 'get' \| 'set'</code> |
1335
+ | **`method`** | <code>boolean</code> |
1336
+ | **`shorthand`** | <code>boolean</code> |
1337
+ | **`computed`** | <code>boolean</code> |
1338
+
1339
+
1340
+ #### SequenceExpression
1341
+
1342
+ | Prop | Type |
1343
+ | ----------------- | ------------------------------------------------------------------- |
1344
+ | **`type`** | <code>'<a href="#sequenceexpression">SequenceExpression</a>'</code> |
1345
+ | **`expressions`** | <code>Expression[]</code> |
1346
+
1347
+
1348
+ #### TaggedTemplateExpression
1349
+
1350
+ | Prop | Type |
1351
+ | ----------- | ------------------------------------------------------------------------------- |
1352
+ | **`type`** | <code>'<a href="#taggedtemplateexpression">TaggedTemplateExpression</a>'</code> |
1353
+ | **`tag`** | <code><a href="#expression">Expression</a></code> |
1354
+ | **`quasi`** | <code><a href="#templateliteral">TemplateLiteral</a></code> |
1355
+
1356
+
1357
+ #### TemplateLiteral
1358
+
1359
+ | Prop | Type |
1360
+ | ----------------- | ------------------------------------------------------------- |
1361
+ | **`type`** | <code>'<a href="#templateliteral">TemplateLiteral</a>'</code> |
1362
+ | **`quasis`** | <code>TemplateElement[]</code> |
1363
+ | **`expressions`** | <code>Expression[]</code> |
1364
+
1365
+
1366
+ #### TemplateElement
1367
+
1368
+ | Prop | Type |
1369
+ | ----------- | ------------------------------------------------------------- |
1370
+ | **`type`** | <code>'<a href="#templateelement">TemplateElement</a>'</code> |
1371
+ | **`tail`** | <code>boolean</code> |
1372
+ | **`value`** | <code>{ cooked?: string \| null; raw: string; }</code> |
1373
+
1374
+
1375
+ #### ThisExpression
1376
+
1377
+ | Prop | Type |
1378
+ | ---------- | ----------------------------------------------------------- |
1379
+ | **`type`** | <code>'<a href="#thisexpression">ThisExpression</a>'</code> |
1380
+
1381
+
1382
+ #### UnaryExpression
1383
+
1384
+ | Prop | Type |
1385
+ | -------------- | ------------------------------------------------------------- |
1386
+ | **`type`** | <code>'<a href="#unaryexpression">UnaryExpression</a>'</code> |
1387
+ | **`operator`** | <code><a href="#unaryoperator">UnaryOperator</a></code> |
1388
+ | **`prefix`** | <code>true</code> |
1389
+ | **`argument`** | <code><a href="#expression">Expression</a></code> |
1390
+
1391
+
1392
+ #### UpdateExpression
1393
+
1394
+ | Prop | Type |
1395
+ | -------------- | --------------------------------------------------------------- |
1396
+ | **`type`** | <code>'<a href="#updateexpression">UpdateExpression</a>'</code> |
1397
+ | **`operator`** | <code><a href="#updateoperator">UpdateOperator</a></code> |
1398
+ | **`argument`** | <code><a href="#expression">Expression</a></code> |
1399
+ | **`prefix`** | <code>boolean</code> |
1400
+
1401
+
1402
+ #### YieldExpression
1403
+
1404
+ | Prop | Type |
1405
+ | -------------- | ------------------------------------------------------------- |
1406
+ | **`type`** | <code>'<a href="#yieldexpression">YieldExpression</a>'</code> |
1407
+ | **`argument`** | <code><a href="#expression">Expression</a> \| null</code> |
1408
+ | **`delegate`** | <code>boolean</code> |
1409
+
1410
+
1411
+ #### StaticBlock
1412
+
1413
+ | Prop | Type |
1414
+ | ---------- | ----------------------------------------------------- |
1415
+ | **`type`** | <code>'<a href="#staticblock">StaticBlock</a>'</code> |
1416
+
1417
+
1418
+ #### EmptyStatement
1419
+
1420
+ | Prop | Type |
1421
+ | ---------- | ----------------------------------------------------------- |
1422
+ | **`type`** | <code>'<a href="#emptystatement">EmptyStatement</a>'</code> |
1423
+
1424
+
1425
+ #### DebuggerStatement
1426
+
1427
+ | Prop | Type |
1428
+ | ---------- | ----------------------------------------------------------------- |
1429
+ | **`type`** | <code>'<a href="#debuggerstatement">DebuggerStatement</a>'</code> |
1430
+
1431
+
1432
+ #### WithStatement
1433
+
1434
+ | Prop | Type |
1435
+ | ------------ | --------------------------------------------------------- |
1436
+ | **`type`** | <code>'<a href="#withstatement">WithStatement</a>'</code> |
1437
+ | **`object`** | <code><a href="#expression">Expression</a></code> |
1438
+ | **`body`** | <code><a href="#statement">Statement</a></code> |
1439
+
1440
+
1441
+ #### ReturnStatement
1442
+
1443
+ | Prop | Type |
1444
+ | -------------- | ------------------------------------------------------------- |
1445
+ | **`type`** | <code>'<a href="#returnstatement">ReturnStatement</a>'</code> |
1446
+ | **`argument`** | <code><a href="#expression">Expression</a> \| null</code> |
1447
+
1448
+
1449
+ #### LabeledStatement
1450
+
1451
+ | Prop | Type |
1452
+ | ----------- | --------------------------------------------------------------- |
1453
+ | **`type`** | <code>'<a href="#labeledstatement">LabeledStatement</a>'</code> |
1454
+ | **`label`** | <code><a href="#identifier">Identifier</a></code> |
1455
+ | **`body`** | <code><a href="#statement">Statement</a></code> |
1456
+
1457
+
1458
+ #### BreakStatement
1459
+
1460
+ | Prop | Type |
1461
+ | ----------- | ----------------------------------------------------------- |
1462
+ | **`type`** | <code>'<a href="#breakstatement">BreakStatement</a>'</code> |
1463
+ | **`label`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1464
+
1465
+
1466
+ #### ContinueStatement
1467
+
1468
+ | Prop | Type |
1469
+ | ----------- | ----------------------------------------------------------------- |
1470
+ | **`type`** | <code>'<a href="#continuestatement">ContinueStatement</a>'</code> |
1471
+ | **`label`** | <code><a href="#identifier">Identifier</a> \| null</code> |
1472
+
1473
+
1474
+ #### IfStatement
1475
+
1476
+ | Prop | Type |
1477
+ | ---------------- | ------------------------------------------------------- |
1478
+ | **`type`** | <code>'<a href="#ifstatement">IfStatement</a>'</code> |
1479
+ | **`test`** | <code><a href="#expression">Expression</a></code> |
1480
+ | **`consequent`** | <code><a href="#statement">Statement</a></code> |
1481
+ | **`alternate`** | <code><a href="#statement">Statement</a> \| null</code> |
1482
+
1483
+
1484
+ #### SwitchStatement
1485
+
1486
+ | Prop | Type |
1487
+ | ------------------ | ------------------------------------------------------------- |
1488
+ | **`type`** | <code>'<a href="#switchstatement">SwitchStatement</a>'</code> |
1489
+ | **`discriminant`** | <code><a href="#expression">Expression</a></code> |
1490
+ | **`cases`** | <code>SwitchCase[]</code> |
1491
+
1492
+
1493
+ #### SwitchCase
1494
+
1495
+ | Prop | Type |
1496
+ | ---------------- | --------------------------------------------------------- |
1497
+ | **`type`** | <code>'<a href="#switchcase">SwitchCase</a>'</code> |
1498
+ | **`test`** | <code><a href="#expression">Expression</a> \| null</code> |
1499
+ | **`consequent`** | <code>Statement[]</code> |
1500
+
1501
+
1502
+ #### ThrowStatement
1503
+
1504
+ | Prop | Type |
1505
+ | -------------- | ----------------------------------------------------------- |
1506
+ | **`type`** | <code>'<a href="#throwstatement">ThrowStatement</a>'</code> |
1507
+ | **`argument`** | <code><a href="#expression">Expression</a></code> |
1508
+
1509
+
1510
+ #### TryStatement
1511
+
1512
+ | Prop | Type |
1513
+ | --------------- | ----------------------------------------------------------------- |
1514
+ | **`type`** | <code>'<a href="#trystatement">TryStatement</a>'</code> |
1515
+ | **`block`** | <code><a href="#blockstatement">BlockStatement</a></code> |
1516
+ | **`handler`** | <code><a href="#catchclause">CatchClause</a> \| null</code> |
1517
+ | **`finalizer`** | <code><a href="#blockstatement">BlockStatement</a> \| null</code> |
1518
+
1519
+
1520
+ #### CatchClause
1521
+
1522
+ | Prop | Type |
1523
+ | ----------- | --------------------------------------------------------- |
1524
+ | **`type`** | <code>'<a href="#catchclause">CatchClause</a>'</code> |
1525
+ | **`param`** | <code><a href="#pattern">Pattern</a> \| null</code> |
1526
+ | **`body`** | <code><a href="#blockstatement">BlockStatement</a></code> |
1527
+
1528
+
1529
+ #### WhileStatement
1530
+
1531
+ | Prop | Type |
1532
+ | ---------- | ----------------------------------------------------------- |
1533
+ | **`type`** | <code>'<a href="#whilestatement">WhileStatement</a>'</code> |
1534
+ | **`test`** | <code><a href="#expression">Expression</a></code> |
1535
+ | **`body`** | <code><a href="#statement">Statement</a></code> |
1536
+
1537
+
1538
+ #### DoWhileStatement
1539
+
1540
+ | Prop | Type |
1541
+ | ---------- | --------------------------------------------------------------- |
1542
+ | **`type`** | <code>'<a href="#dowhilestatement">DoWhileStatement</a>'</code> |
1543
+ | **`body`** | <code><a href="#statement">Statement</a></code> |
1544
+ | **`test`** | <code><a href="#expression">Expression</a></code> |
1545
+
1546
+
1547
+ #### ForStatement
1548
+
1549
+ | Prop | Type |
1550
+ | ------------ | ------------------------------------------------------------------------------------------------------------------- |
1551
+ | **`type`** | <code>'<a href="#forstatement">ForStatement</a>'</code> |
1552
+ | **`init`** | <code><a href="#expression">Expression</a> \| <a href="#variabledeclaration">VariableDeclaration</a> \| null</code> |
1553
+ | **`test`** | <code><a href="#expression">Expression</a> \| null</code> |
1554
+ | **`update`** | <code><a href="#expression">Expression</a> \| null</code> |
1555
+ | **`body`** | <code><a href="#statement">Statement</a></code> |
1556
+
1557
+
1558
+ #### VariableDeclaration
1559
+
1560
+ | Prop | Type |
1561
+ | ------------------ | --------------------------------------------------------------------- |
1562
+ | **`type`** | <code>'<a href="#variabledeclaration">VariableDeclaration</a>'</code> |
1563
+ | **`declarations`** | <code>VariableDeclarator[]</code> |
1564
+ | **`kind`** | <code>'var' \| 'let' \| 'const'</code> |
1565
+
1566
+
1567
+ #### VariableDeclarator
1568
+
1569
+ | Prop | Type |
1570
+ | ---------- | ------------------------------------------------------------------- |
1571
+ | **`type`** | <code>'<a href="#variabledeclarator">VariableDeclarator</a>'</code> |
1572
+ | **`id`** | <code><a href="#pattern">Pattern</a></code> |
1573
+ | **`init`** | <code><a href="#expression">Expression</a> \| null</code> |
1574
+
1575
+
1576
+ #### ForInStatement
1577
+
1578
+ | Prop | Type |
1579
+ | ---------- | ----------------------------------------------------------- |
1580
+ | **`type`** | <code>'<a href="#forinstatement">ForInStatement</a>'</code> |
1581
+
1582
+
1583
+ #### ForOfStatement
1584
+
1585
+ | Prop | Type |
1586
+ | ----------- | ----------------------------------------------------------- |
1587
+ | **`type`** | <code>'<a href="#forofstatement">ForOfStatement</a>'</code> |
1588
+ | **`await`** | <code>boolean</code> |
1589
+
1590
+
1591
+ #### ClassDeclaration
1592
+
1593
+ | Prop | Type | Description |
1594
+ | -------- | ------------------------------------------------- | ------------------------------------------------------------------------------------- |
1595
+ | **`id`** | <code><a href="#identifier">Identifier</a></code> | It is null when a class declaration is a part of the `export default class` statement |
1596
+
1597
+
1598
+ #### Comment
1599
+
1600
+ | Prop | Type |
1601
+ | ----------- | ------------------------------ |
1602
+ | **`type`** | <code>'Line' \| 'Block'</code> |
1603
+ | **`value`** | <code>string</code> |
1604
+
1605
+
948
1606
  #### GleapEventMessage
949
1607
 
950
1608
  | Prop | Type |
@@ -968,6 +1626,71 @@ Creates a new function.
968
1626
  <code>string | number | symbol</code>
969
1627
 
970
1628
 
1629
+ #### Function
1630
+
1631
+ <code><a href="#functiondeclaration">FunctionDeclaration</a> | <a href="#functionexpression">FunctionExpression</a> | <a href="#arrowfunctionexpression">ArrowFunctionExpression</a></code>
1632
+
1633
+
1634
+ #### Statement
1635
+
1636
+ <code><a href="#expressionstatement">ExpressionStatement</a> | <a href="#blockstatement">BlockStatement</a> | <a href="#staticblock">StaticBlock</a> | <a href="#emptystatement">EmptyStatement</a> | <a href="#debuggerstatement">DebuggerStatement</a> | <a href="#withstatement">WithStatement</a> | <a href="#returnstatement">ReturnStatement</a> | <a href="#labeledstatement">LabeledStatement</a> | <a href="#breakstatement">BreakStatement</a> | <a href="#continuestatement">ContinueStatement</a> | <a href="#ifstatement">IfStatement</a> | <a href="#switchstatement">SwitchStatement</a> | <a href="#throwstatement">ThrowStatement</a> | <a href="#trystatement">TryStatement</a> | <a href="#whilestatement">WhileStatement</a> | <a href="#dowhilestatement">DoWhileStatement</a> | <a href="#forstatement">ForStatement</a> | <a href="#forinstatement">ForInStatement</a> | <a href="#forofstatement">ForOfStatement</a> | <a href="#declaration">Declaration</a></code>
1637
+
1638
+
1639
+ #### Expression
1640
+
1641
+ <code>ExpressionMap[keyof ExpressionMap]</code>
1642
+
1643
+
1644
+ #### AssignmentOperator
1645
+
1646
+ <code>"=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "&lt;&lt;=" | "&gt;&gt;=" | "&gt;&gt;&gt;=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??="</code>
1647
+
1648
+
1649
+ #### Pattern
1650
+
1651
+ <code><a href="#identifier">Identifier</a> | <a href="#objectpattern">ObjectPattern</a> | <a href="#arraypattern">ArrayPattern</a> | <a href="#restelement">RestElement</a> | <a href="#assignmentpattern">AssignmentPattern</a> | <a href="#memberexpression">MemberExpression</a></code>
1652
+
1653
+
1654
+ #### BinaryOperator
1655
+
1656
+ <code>"==" | "!=" | "===" | "!==" | "&lt;" | "&lt;=" | "&gt;" | "&gt;=" | "&lt;&lt;" | "&gt;&gt;" | "&gt;&gt;&gt;" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof"</code>
1657
+
1658
+
1659
+ #### CallExpression
1660
+
1661
+ <code><a href="#simplecallexpression">SimpleCallExpression</a> | <a href="#newexpression">NewExpression</a></code>
1662
+
1663
+
1664
+ #### ChainElement
1665
+
1666
+ <code><a href="#simplecallexpression">SimpleCallExpression</a> | <a href="#memberexpression">MemberExpression</a></code>
1667
+
1668
+
1669
+ #### Literal
1670
+
1671
+ <code><a href="#simpleliteral">SimpleLiteral</a> | <a href="#regexpliteral">RegExpLiteral</a> | <a href="#bigintliteral">BigIntLiteral</a></code>
1672
+
1673
+
1674
+ #### LogicalOperator
1675
+
1676
+ <code>"||" | "&&" | "??"</code>
1677
+
1678
+
1679
+ #### UnaryOperator
1680
+
1681
+ <code>"-" | "+" | "!" | "~" | "typeof" | "void" | "delete"</code>
1682
+
1683
+
1684
+ #### UpdateOperator
1685
+
1686
+ <code>"++" | "--"</code>
1687
+
1688
+
1689
+ #### Declaration
1690
+
1691
+ <code><a href="#functiondeclaration">FunctionDeclaration</a> | <a href="#variabledeclaration">VariableDeclaration</a> | <a href="#classdeclaration">ClassDeclaration</a></code>
1692
+
1693
+
971
1694
  #### GleapEventCallback
972
1695
 
973
1696
  <code>(message: <a href="#gleapeventmessage">GleapEventMessage</a> | null, err?: any): void</code>