ahegao 1.69.269 → 1.69.271
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/types/types.d.ts +256 -0
- package/dist/types/types.js +258 -1
- package/dist/types/types.js.map +1 -1
- package/dist/utils/util.d.ts +3 -1
- package/dist/utils/util.js +14 -3
- package/dist/utils/util.js.map +1 -1
- package/package.json +2 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -135,3 +135,259 @@ export interface FfmpegResult extends BooleanSuccessAndStringResult {
|
|
|
135
135
|
command: string;
|
|
136
136
|
}
|
|
137
137
|
export type FetchMethod = "POST" | "GET" | "PUT";
|
|
138
|
+
export declare enum SupportedLanguageGoogle {
|
|
139
|
+
'Detect language' = "auto",
|
|
140
|
+
'Automatic' = "auto",
|
|
141
|
+
'Abkhaz' = "ab",
|
|
142
|
+
'Acehnese' = "ace",
|
|
143
|
+
'Acholi' = "ach",
|
|
144
|
+
'Afar' = "aa",
|
|
145
|
+
'Afrikaans' = "af",
|
|
146
|
+
'Albanian' = "sq",
|
|
147
|
+
'Alur' = "alz",
|
|
148
|
+
'Amharic' = "am",
|
|
149
|
+
'Arabic' = "ar",
|
|
150
|
+
'Armenian' = "hy",
|
|
151
|
+
'Assamese' = "as",
|
|
152
|
+
'Avar' = "av",
|
|
153
|
+
'Awadhi' = "awa",
|
|
154
|
+
'Aymara' = "ay",
|
|
155
|
+
'Azerbaijani' = "az",
|
|
156
|
+
'Balinese' = "ban",
|
|
157
|
+
'Baluchi' = "bal",
|
|
158
|
+
'Bambara' = "bm",
|
|
159
|
+
'Baoulé' = "bci",
|
|
160
|
+
'Bashkir' = "ba",
|
|
161
|
+
'Basque' = "eu",
|
|
162
|
+
'Batak Karo' = "btx",
|
|
163
|
+
'Batak Simalungun' = "bts",
|
|
164
|
+
'Batak Toba' = "bbc",
|
|
165
|
+
'Belarusian' = "be",
|
|
166
|
+
'Bemba' = "bem",
|
|
167
|
+
'Bengali' = "bn",
|
|
168
|
+
'Betawi' = "bew",
|
|
169
|
+
'Bhojpuri' = "bho",
|
|
170
|
+
'Bikol' = "bik",
|
|
171
|
+
'Bosnian' = "bs",
|
|
172
|
+
'Breton' = "br",
|
|
173
|
+
'Bulgarian' = "bg",
|
|
174
|
+
'Buryat' = "bua",
|
|
175
|
+
'Cantonese' = "yue",
|
|
176
|
+
'Catalan' = "ca",
|
|
177
|
+
'Cebuano' = "ceb",
|
|
178
|
+
'Chamorro' = "ch",
|
|
179
|
+
'Chechen' = "ce",
|
|
180
|
+
'Chichewa' = "ny",
|
|
181
|
+
'Chinese (Simplified)' = "zh-CN",
|
|
182
|
+
'Chinese (Traditional)' = "zh-TW",
|
|
183
|
+
'Chuukese' = "chk",
|
|
184
|
+
'Chuvash' = "cv",
|
|
185
|
+
'Corsican' = "co",
|
|
186
|
+
'Crimean Tatar (Cyrillic)' = "crh",
|
|
187
|
+
'Crimean Tatar (Latin)' = "crh-Latn",
|
|
188
|
+
'Croatian' = "hr",
|
|
189
|
+
'Czech' = "cs",
|
|
190
|
+
'Danish' = "da",
|
|
191
|
+
'Dari' = "fa-AF",
|
|
192
|
+
'Dhivehi' = "dv",
|
|
193
|
+
'Dinka' = "din",
|
|
194
|
+
'Dogri' = "doi",
|
|
195
|
+
'Dombe' = "dov",
|
|
196
|
+
'Dutch' = "nl",
|
|
197
|
+
'Dyula' = "dyu",
|
|
198
|
+
'Dzongkha' = "dz",
|
|
199
|
+
'English' = "en",
|
|
200
|
+
'Esperanto' = "eo",
|
|
201
|
+
'Estonian' = "et",
|
|
202
|
+
'Ewe' = "ee",
|
|
203
|
+
'Faroese' = "fo",
|
|
204
|
+
'Fijian' = "fj",
|
|
205
|
+
'Filipino' = "tl",
|
|
206
|
+
'Finnish' = "fi",
|
|
207
|
+
'Fon' = "fon",
|
|
208
|
+
'French' = "fr",
|
|
209
|
+
'French (Canada)' = "fr-CA",
|
|
210
|
+
'Frisian' = "fy",
|
|
211
|
+
'Friulian' = "fur",
|
|
212
|
+
'Fulani' = "ff",
|
|
213
|
+
'Ga' = "gaa",
|
|
214
|
+
'Galician' = "gl",
|
|
215
|
+
'Georgian' = "ka",
|
|
216
|
+
'German' = "de",
|
|
217
|
+
'Greek' = "el",
|
|
218
|
+
'Guarani' = "gn",
|
|
219
|
+
'Gujarati' = "gu",
|
|
220
|
+
'Haitian Creole' = "ht",
|
|
221
|
+
'Hakha Chin' = "cnh",
|
|
222
|
+
'Hausa' = "ha",
|
|
223
|
+
'Hawaiian' = "haw",
|
|
224
|
+
'Hebrew' = "he",
|
|
225
|
+
'Hiligaynon' = "hil",
|
|
226
|
+
'Hindi' = "hi",
|
|
227
|
+
'Hmong' = "hmn",
|
|
228
|
+
'Hungarian' = "hu",
|
|
229
|
+
'Hunsrik' = "hrx",
|
|
230
|
+
'Iban' = "iba",
|
|
231
|
+
'Icelandic' = "is",
|
|
232
|
+
'Igbo' = "ig",
|
|
233
|
+
'Ilocano' = "ilo",
|
|
234
|
+
'Indonesian' = "id",
|
|
235
|
+
'Inuktut (Latin)' = "iu-Latn",
|
|
236
|
+
'Inuktut (Syllabics)' = "iu",
|
|
237
|
+
'Irish' = "ga",
|
|
238
|
+
'Italian' = "it",
|
|
239
|
+
'Jamaican Patois' = "jam",
|
|
240
|
+
'Japanese' = "ja",
|
|
241
|
+
'Javanese' = "jw",
|
|
242
|
+
'Jingpo' = "kac",
|
|
243
|
+
'Kalaallisut' = "kl",
|
|
244
|
+
'Kannada' = "kn",
|
|
245
|
+
'Kanuri' = "kr",
|
|
246
|
+
'Kapampangan' = "pam",
|
|
247
|
+
'Kazakh' = "kk",
|
|
248
|
+
'Khasi' = "kha",
|
|
249
|
+
'Khmer' = "km",
|
|
250
|
+
'Kiga' = "cgg",
|
|
251
|
+
'Kikongo' = "kg",
|
|
252
|
+
'Kinyarwanda' = "rw",
|
|
253
|
+
'Kituba' = "ktu",
|
|
254
|
+
'Kokborok' = "trp",
|
|
255
|
+
'Komi' = "kv",
|
|
256
|
+
'Konkani' = "gom",
|
|
257
|
+
'Korean' = "ko",
|
|
258
|
+
'Krio' = "kri",
|
|
259
|
+
'Kurdish (Kurmanji)' = "ku",
|
|
260
|
+
'Kurdish (Sorani)' = "ckb",
|
|
261
|
+
'Kyrgyz' = "ky",
|
|
262
|
+
'Lao' = "lo",
|
|
263
|
+
'Latgalian' = "ltg",
|
|
264
|
+
'Latin' = "la",
|
|
265
|
+
'Latvian' = "lv",
|
|
266
|
+
'Ligurian' = "lij",
|
|
267
|
+
'Limburgish' = "li",
|
|
268
|
+
'Lingala' = "ln",
|
|
269
|
+
'Lithuanian' = "lt",
|
|
270
|
+
'Lombard' = "lmo",
|
|
271
|
+
'Luganda' = "lg",
|
|
272
|
+
'Luo' = "luo",
|
|
273
|
+
'Luxembourgish' = "lb",
|
|
274
|
+
'Macedonian' = "mk",
|
|
275
|
+
'Madurese' = "mad",
|
|
276
|
+
'Maithili' = "mai",
|
|
277
|
+
'Makassar' = "mak",
|
|
278
|
+
'Malagasy' = "mg",
|
|
279
|
+
'Malay' = "ms",
|
|
280
|
+
'Malay (Jawi)' = "ms-Arab",
|
|
281
|
+
'Malayalam' = "ml",
|
|
282
|
+
'Maltese' = "mt",
|
|
283
|
+
'Mam' = "mam",
|
|
284
|
+
'Manx' = "gv",
|
|
285
|
+
'Maori' = "mi",
|
|
286
|
+
'Marathi' = "mr",
|
|
287
|
+
'Marshallese' = "mh",
|
|
288
|
+
'Marwadi' = "mwr",
|
|
289
|
+
'Mauritian Creole' = "mfe",
|
|
290
|
+
'Meadow Mari' = "chm",
|
|
291
|
+
'Meiteilon (Manipuri)' = "mni-Mtei",
|
|
292
|
+
'Minang' = "min",
|
|
293
|
+
'Mizo' = "lus",
|
|
294
|
+
'Mongolian' = "mn",
|
|
295
|
+
'Myanmar (Burmese)' = "my",
|
|
296
|
+
'Nahuatl (Eastern Huasteca)' = "nhe",
|
|
297
|
+
'Ndau' = "ndc-ZW",
|
|
298
|
+
'Ndebele (South)' = "nr",
|
|
299
|
+
'Nepalbhasa (Newari)' = "new",
|
|
300
|
+
'Nepali' = "ne",
|
|
301
|
+
'NKo' = "bm-Nkoo",
|
|
302
|
+
'Norwegian' = "no",
|
|
303
|
+
'Nuer' = "nus",
|
|
304
|
+
'Occitan' = "oc",
|
|
305
|
+
'Odia (Oriya)' = "or",
|
|
306
|
+
'Oromo' = "om",
|
|
307
|
+
'Ossetian' = "os",
|
|
308
|
+
'Pangasinan' = "pag",
|
|
309
|
+
'Papiamento' = "pap",
|
|
310
|
+
'Pashto' = "ps",
|
|
311
|
+
'Persian' = "fa",
|
|
312
|
+
'Polish' = "pl",
|
|
313
|
+
'Portuguese' = "pt",
|
|
314
|
+
'Portuguese (Brazil)' = "pt",
|
|
315
|
+
'Portuguese (Portugal)' = "pt-PT",
|
|
316
|
+
'Punjabi' = "pa",
|
|
317
|
+
'Punjabi (Gurmukhi)' = "pa",
|
|
318
|
+
'Punjabi (Shahmukhi)' = "pa-Arab",
|
|
319
|
+
'Quechua' = "qu",
|
|
320
|
+
'Qʼeqchiʼ' = "kek",
|
|
321
|
+
'Romani' = "rom",
|
|
322
|
+
'Romanian' = "ro",
|
|
323
|
+
'Rundi' = "rn",
|
|
324
|
+
'Russian' = "ru",
|
|
325
|
+
'Sami (North)' = "se",
|
|
326
|
+
'Samoan' = "sm",
|
|
327
|
+
'Sango' = "sg",
|
|
328
|
+
'Sanskrit' = "sa",
|
|
329
|
+
'Santali (Latin)' = "sat-Latn",
|
|
330
|
+
'Santali (Ol Chiki)' = "sat",
|
|
331
|
+
'Scots Gaelic' = "gd",
|
|
332
|
+
'Sepedi' = "nso",
|
|
333
|
+
'Serbian' = "sr",
|
|
334
|
+
'Sesotho' = "st",
|
|
335
|
+
'Seychellois Creole' = "crs",
|
|
336
|
+
'Shan' = "shn",
|
|
337
|
+
'Shona' = "sn",
|
|
338
|
+
'Sicilian' = "scn",
|
|
339
|
+
'Silesian' = "szl",
|
|
340
|
+
'Sindhi' = "sd",
|
|
341
|
+
'Sinhala' = "si",
|
|
342
|
+
'Slovak' = "sk",
|
|
343
|
+
'Slovenian' = "sl",
|
|
344
|
+
'Somali' = "so",
|
|
345
|
+
'Spanish' = "es",
|
|
346
|
+
'Sundanese' = "su",
|
|
347
|
+
'Susu' = "sus",
|
|
348
|
+
'Swahili' = "sw",
|
|
349
|
+
'Swati' = "ss",
|
|
350
|
+
'Swedish' = "sv",
|
|
351
|
+
'Tahitian' = "ty",
|
|
352
|
+
'Tajik' = "tg",
|
|
353
|
+
'Tamazight' = "ber-Latn",
|
|
354
|
+
'Tamazight (Tifinagh)' = "ber",
|
|
355
|
+
'Tamil' = "ta",
|
|
356
|
+
'Tatar' = "tt",
|
|
357
|
+
'Telugu' = "te",
|
|
358
|
+
'Tetum' = "tet",
|
|
359
|
+
'Thai' = "th",
|
|
360
|
+
'Tibetan' = "bo",
|
|
361
|
+
'Tigrinya' = "ti",
|
|
362
|
+
'Tiv' = "tiv",
|
|
363
|
+
'Tok Pisin' = "tpi",
|
|
364
|
+
'Tongan' = "to",
|
|
365
|
+
'Tshiluba' = "lua",
|
|
366
|
+
'Tsonga' = "ts",
|
|
367
|
+
'Tswana' = "tn",
|
|
368
|
+
'Tulu' = "tcy",
|
|
369
|
+
'Tumbuka' = "tum",
|
|
370
|
+
'Turkish' = "tr",
|
|
371
|
+
'Turkmen' = "tk",
|
|
372
|
+
'Tuvan' = "tyv",
|
|
373
|
+
'Twi' = "ak",
|
|
374
|
+
'Udmurt' = "udm",
|
|
375
|
+
'Ukrainian' = "uk",
|
|
376
|
+
'Urdu' = "ur",
|
|
377
|
+
'Uyghur' = "ug",
|
|
378
|
+
'Uzbek' = "uz",
|
|
379
|
+
'Venda' = "ve",
|
|
380
|
+
'Venetian' = "vec",
|
|
381
|
+
'Vietnamese' = "vi",
|
|
382
|
+
'Waray' = "war",
|
|
383
|
+
'Welsh' = "cy",
|
|
384
|
+
'Wolof' = "wo",
|
|
385
|
+
'Xhosa' = "xh",
|
|
386
|
+
'Yakut' = "sah",
|
|
387
|
+
'Yiddish' = "yi",
|
|
388
|
+
'Yoruba' = "yo",
|
|
389
|
+
'Yucatec Maya' = "yua",
|
|
390
|
+
'Zapotec' = "zap",
|
|
391
|
+
'Zulu' = "zu"
|
|
392
|
+
}
|
|
393
|
+
export declare const supportedLanguageGoogleArray: SupportedLanguageGoogle[];
|
package/dist/types/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
////////////////////////////////////////////////////////////////////////////////////
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.GitSyncStatus = exports.DEFAULT_MIC_INFO = void 0;
|
|
4
|
+
exports.supportedLanguageGoogleArray = exports.SupportedLanguageGoogle = exports.GitSyncStatus = exports.DEFAULT_MIC_INFO = void 0;
|
|
5
5
|
exports.DEFAULT_MIC_INFO = {
|
|
6
6
|
bitrate: 48000,
|
|
7
7
|
exitIfSilentForS: 0,
|
|
@@ -16,4 +16,261 @@ var GitSyncStatus;
|
|
|
16
16
|
GitSyncStatus["SYNCED"] = "synced";
|
|
17
17
|
GitSyncStatus["FAILED"] = "failed";
|
|
18
18
|
})(GitSyncStatus || (exports.GitSyncStatus = GitSyncStatus = {}));
|
|
19
|
+
var SupportedLanguageGoogle;
|
|
20
|
+
(function (SupportedLanguageGoogle) {
|
|
21
|
+
SupportedLanguageGoogle["Detect language"] = "auto";
|
|
22
|
+
SupportedLanguageGoogle["Automatic"] = "auto";
|
|
23
|
+
SupportedLanguageGoogle["Abkhaz"] = "ab";
|
|
24
|
+
SupportedLanguageGoogle["Acehnese"] = "ace";
|
|
25
|
+
SupportedLanguageGoogle["Acholi"] = "ach";
|
|
26
|
+
SupportedLanguageGoogle["Afar"] = "aa";
|
|
27
|
+
SupportedLanguageGoogle["Afrikaans"] = "af";
|
|
28
|
+
SupportedLanguageGoogle["Albanian"] = "sq";
|
|
29
|
+
SupportedLanguageGoogle["Alur"] = "alz";
|
|
30
|
+
SupportedLanguageGoogle["Amharic"] = "am";
|
|
31
|
+
SupportedLanguageGoogle["Arabic"] = "ar";
|
|
32
|
+
SupportedLanguageGoogle["Armenian"] = "hy";
|
|
33
|
+
SupportedLanguageGoogle["Assamese"] = "as";
|
|
34
|
+
SupportedLanguageGoogle["Avar"] = "av";
|
|
35
|
+
SupportedLanguageGoogle["Awadhi"] = "awa";
|
|
36
|
+
SupportedLanguageGoogle["Aymara"] = "ay";
|
|
37
|
+
SupportedLanguageGoogle["Azerbaijani"] = "az";
|
|
38
|
+
SupportedLanguageGoogle["Balinese"] = "ban";
|
|
39
|
+
SupportedLanguageGoogle["Baluchi"] = "bal";
|
|
40
|
+
SupportedLanguageGoogle["Bambara"] = "bm";
|
|
41
|
+
SupportedLanguageGoogle["Baoul\u00E9"] = "bci";
|
|
42
|
+
SupportedLanguageGoogle["Bashkir"] = "ba";
|
|
43
|
+
SupportedLanguageGoogle["Basque"] = "eu";
|
|
44
|
+
SupportedLanguageGoogle["Batak Karo"] = "btx";
|
|
45
|
+
SupportedLanguageGoogle["Batak Simalungun"] = "bts";
|
|
46
|
+
SupportedLanguageGoogle["Batak Toba"] = "bbc";
|
|
47
|
+
SupportedLanguageGoogle["Belarusian"] = "be";
|
|
48
|
+
SupportedLanguageGoogle["Bemba"] = "bem";
|
|
49
|
+
SupportedLanguageGoogle["Bengali"] = "bn";
|
|
50
|
+
SupportedLanguageGoogle["Betawi"] = "bew";
|
|
51
|
+
SupportedLanguageGoogle["Bhojpuri"] = "bho";
|
|
52
|
+
SupportedLanguageGoogle["Bikol"] = "bik";
|
|
53
|
+
SupportedLanguageGoogle["Bosnian"] = "bs";
|
|
54
|
+
SupportedLanguageGoogle["Breton"] = "br";
|
|
55
|
+
SupportedLanguageGoogle["Bulgarian"] = "bg";
|
|
56
|
+
SupportedLanguageGoogle["Buryat"] = "bua";
|
|
57
|
+
SupportedLanguageGoogle["Cantonese"] = "yue";
|
|
58
|
+
SupportedLanguageGoogle["Catalan"] = "ca";
|
|
59
|
+
SupportedLanguageGoogle["Cebuano"] = "ceb";
|
|
60
|
+
SupportedLanguageGoogle["Chamorro"] = "ch";
|
|
61
|
+
SupportedLanguageGoogle["Chechen"] = "ce";
|
|
62
|
+
SupportedLanguageGoogle["Chichewa"] = "ny";
|
|
63
|
+
SupportedLanguageGoogle["Chinese (Simplified)"] = "zh-CN";
|
|
64
|
+
SupportedLanguageGoogle["Chinese (Traditional)"] = "zh-TW";
|
|
65
|
+
SupportedLanguageGoogle["Chuukese"] = "chk";
|
|
66
|
+
SupportedLanguageGoogle["Chuvash"] = "cv";
|
|
67
|
+
SupportedLanguageGoogle["Corsican"] = "co";
|
|
68
|
+
SupportedLanguageGoogle["Crimean Tatar (Cyrillic)"] = "crh";
|
|
69
|
+
SupportedLanguageGoogle["Crimean Tatar (Latin)"] = "crh-Latn";
|
|
70
|
+
SupportedLanguageGoogle["Croatian"] = "hr";
|
|
71
|
+
SupportedLanguageGoogle["Czech"] = "cs";
|
|
72
|
+
SupportedLanguageGoogle["Danish"] = "da";
|
|
73
|
+
SupportedLanguageGoogle["Dari"] = "fa-AF";
|
|
74
|
+
SupportedLanguageGoogle["Dhivehi"] = "dv";
|
|
75
|
+
SupportedLanguageGoogle["Dinka"] = "din";
|
|
76
|
+
SupportedLanguageGoogle["Dogri"] = "doi";
|
|
77
|
+
SupportedLanguageGoogle["Dombe"] = "dov";
|
|
78
|
+
SupportedLanguageGoogle["Dutch"] = "nl";
|
|
79
|
+
SupportedLanguageGoogle["Dyula"] = "dyu";
|
|
80
|
+
SupportedLanguageGoogle["Dzongkha"] = "dz";
|
|
81
|
+
SupportedLanguageGoogle["English"] = "en";
|
|
82
|
+
SupportedLanguageGoogle["Esperanto"] = "eo";
|
|
83
|
+
SupportedLanguageGoogle["Estonian"] = "et";
|
|
84
|
+
SupportedLanguageGoogle["Ewe"] = "ee";
|
|
85
|
+
SupportedLanguageGoogle["Faroese"] = "fo";
|
|
86
|
+
SupportedLanguageGoogle["Fijian"] = "fj";
|
|
87
|
+
SupportedLanguageGoogle["Filipino"] = "tl";
|
|
88
|
+
SupportedLanguageGoogle["Finnish"] = "fi";
|
|
89
|
+
SupportedLanguageGoogle["Fon"] = "fon";
|
|
90
|
+
SupportedLanguageGoogle["French"] = "fr";
|
|
91
|
+
SupportedLanguageGoogle["French (Canada)"] = "fr-CA";
|
|
92
|
+
SupportedLanguageGoogle["Frisian"] = "fy";
|
|
93
|
+
SupportedLanguageGoogle["Friulian"] = "fur";
|
|
94
|
+
SupportedLanguageGoogle["Fulani"] = "ff";
|
|
95
|
+
SupportedLanguageGoogle["Ga"] = "gaa";
|
|
96
|
+
SupportedLanguageGoogle["Galician"] = "gl";
|
|
97
|
+
SupportedLanguageGoogle["Georgian"] = "ka";
|
|
98
|
+
SupportedLanguageGoogle["German"] = "de";
|
|
99
|
+
SupportedLanguageGoogle["Greek"] = "el";
|
|
100
|
+
SupportedLanguageGoogle["Guarani"] = "gn";
|
|
101
|
+
SupportedLanguageGoogle["Gujarati"] = "gu";
|
|
102
|
+
SupportedLanguageGoogle["Haitian Creole"] = "ht";
|
|
103
|
+
SupportedLanguageGoogle["Hakha Chin"] = "cnh";
|
|
104
|
+
SupportedLanguageGoogle["Hausa"] = "ha";
|
|
105
|
+
SupportedLanguageGoogle["Hawaiian"] = "haw";
|
|
106
|
+
SupportedLanguageGoogle["Hebrew"] = "he";
|
|
107
|
+
SupportedLanguageGoogle["Hiligaynon"] = "hil";
|
|
108
|
+
SupportedLanguageGoogle["Hindi"] = "hi";
|
|
109
|
+
SupportedLanguageGoogle["Hmong"] = "hmn";
|
|
110
|
+
SupportedLanguageGoogle["Hungarian"] = "hu";
|
|
111
|
+
SupportedLanguageGoogle["Hunsrik"] = "hrx";
|
|
112
|
+
SupportedLanguageGoogle["Iban"] = "iba";
|
|
113
|
+
SupportedLanguageGoogle["Icelandic"] = "is";
|
|
114
|
+
SupportedLanguageGoogle["Igbo"] = "ig";
|
|
115
|
+
SupportedLanguageGoogle["Ilocano"] = "ilo";
|
|
116
|
+
SupportedLanguageGoogle["Indonesian"] = "id";
|
|
117
|
+
SupportedLanguageGoogle["Inuktut (Latin)"] = "iu-Latn";
|
|
118
|
+
SupportedLanguageGoogle["Inuktut (Syllabics)"] = "iu";
|
|
119
|
+
SupportedLanguageGoogle["Irish"] = "ga";
|
|
120
|
+
SupportedLanguageGoogle["Italian"] = "it";
|
|
121
|
+
SupportedLanguageGoogle["Jamaican Patois"] = "jam";
|
|
122
|
+
SupportedLanguageGoogle["Japanese"] = "ja";
|
|
123
|
+
SupportedLanguageGoogle["Javanese"] = "jw";
|
|
124
|
+
SupportedLanguageGoogle["Jingpo"] = "kac";
|
|
125
|
+
SupportedLanguageGoogle["Kalaallisut"] = "kl";
|
|
126
|
+
SupportedLanguageGoogle["Kannada"] = "kn";
|
|
127
|
+
SupportedLanguageGoogle["Kanuri"] = "kr";
|
|
128
|
+
SupportedLanguageGoogle["Kapampangan"] = "pam";
|
|
129
|
+
SupportedLanguageGoogle["Kazakh"] = "kk";
|
|
130
|
+
SupportedLanguageGoogle["Khasi"] = "kha";
|
|
131
|
+
SupportedLanguageGoogle["Khmer"] = "km";
|
|
132
|
+
SupportedLanguageGoogle["Kiga"] = "cgg";
|
|
133
|
+
SupportedLanguageGoogle["Kikongo"] = "kg";
|
|
134
|
+
SupportedLanguageGoogle["Kinyarwanda"] = "rw";
|
|
135
|
+
SupportedLanguageGoogle["Kituba"] = "ktu";
|
|
136
|
+
SupportedLanguageGoogle["Kokborok"] = "trp";
|
|
137
|
+
SupportedLanguageGoogle["Komi"] = "kv";
|
|
138
|
+
SupportedLanguageGoogle["Konkani"] = "gom";
|
|
139
|
+
SupportedLanguageGoogle["Korean"] = "ko";
|
|
140
|
+
SupportedLanguageGoogle["Krio"] = "kri";
|
|
141
|
+
SupportedLanguageGoogle["Kurdish (Kurmanji)"] = "ku";
|
|
142
|
+
SupportedLanguageGoogle["Kurdish (Sorani)"] = "ckb";
|
|
143
|
+
SupportedLanguageGoogle["Kyrgyz"] = "ky";
|
|
144
|
+
SupportedLanguageGoogle["Lao"] = "lo";
|
|
145
|
+
SupportedLanguageGoogle["Latgalian"] = "ltg";
|
|
146
|
+
SupportedLanguageGoogle["Latin"] = "la";
|
|
147
|
+
SupportedLanguageGoogle["Latvian"] = "lv";
|
|
148
|
+
SupportedLanguageGoogle["Ligurian"] = "lij";
|
|
149
|
+
SupportedLanguageGoogle["Limburgish"] = "li";
|
|
150
|
+
SupportedLanguageGoogle["Lingala"] = "ln";
|
|
151
|
+
SupportedLanguageGoogle["Lithuanian"] = "lt";
|
|
152
|
+
SupportedLanguageGoogle["Lombard"] = "lmo";
|
|
153
|
+
SupportedLanguageGoogle["Luganda"] = "lg";
|
|
154
|
+
SupportedLanguageGoogle["Luo"] = "luo";
|
|
155
|
+
SupportedLanguageGoogle["Luxembourgish"] = "lb";
|
|
156
|
+
SupportedLanguageGoogle["Macedonian"] = "mk";
|
|
157
|
+
SupportedLanguageGoogle["Madurese"] = "mad";
|
|
158
|
+
SupportedLanguageGoogle["Maithili"] = "mai";
|
|
159
|
+
SupportedLanguageGoogle["Makassar"] = "mak";
|
|
160
|
+
SupportedLanguageGoogle["Malagasy"] = "mg";
|
|
161
|
+
SupportedLanguageGoogle["Malay"] = "ms";
|
|
162
|
+
SupportedLanguageGoogle["Malay (Jawi)"] = "ms-Arab";
|
|
163
|
+
SupportedLanguageGoogle["Malayalam"] = "ml";
|
|
164
|
+
SupportedLanguageGoogle["Maltese"] = "mt";
|
|
165
|
+
SupportedLanguageGoogle["Mam"] = "mam";
|
|
166
|
+
SupportedLanguageGoogle["Manx"] = "gv";
|
|
167
|
+
SupportedLanguageGoogle["Maori"] = "mi";
|
|
168
|
+
SupportedLanguageGoogle["Marathi"] = "mr";
|
|
169
|
+
SupportedLanguageGoogle["Marshallese"] = "mh";
|
|
170
|
+
SupportedLanguageGoogle["Marwadi"] = "mwr";
|
|
171
|
+
SupportedLanguageGoogle["Mauritian Creole"] = "mfe";
|
|
172
|
+
SupportedLanguageGoogle["Meadow Mari"] = "chm";
|
|
173
|
+
SupportedLanguageGoogle["Meiteilon (Manipuri)"] = "mni-Mtei";
|
|
174
|
+
SupportedLanguageGoogle["Minang"] = "min";
|
|
175
|
+
SupportedLanguageGoogle["Mizo"] = "lus";
|
|
176
|
+
SupportedLanguageGoogle["Mongolian"] = "mn";
|
|
177
|
+
SupportedLanguageGoogle["Myanmar (Burmese)"] = "my";
|
|
178
|
+
SupportedLanguageGoogle["Nahuatl (Eastern Huasteca)"] = "nhe";
|
|
179
|
+
SupportedLanguageGoogle["Ndau"] = "ndc-ZW";
|
|
180
|
+
SupportedLanguageGoogle["Ndebele (South)"] = "nr";
|
|
181
|
+
SupportedLanguageGoogle["Nepalbhasa (Newari)"] = "new";
|
|
182
|
+
SupportedLanguageGoogle["Nepali"] = "ne";
|
|
183
|
+
SupportedLanguageGoogle["NKo"] = "bm-Nkoo";
|
|
184
|
+
SupportedLanguageGoogle["Norwegian"] = "no";
|
|
185
|
+
SupportedLanguageGoogle["Nuer"] = "nus";
|
|
186
|
+
SupportedLanguageGoogle["Occitan"] = "oc";
|
|
187
|
+
SupportedLanguageGoogle["Odia (Oriya)"] = "or";
|
|
188
|
+
SupportedLanguageGoogle["Oromo"] = "om";
|
|
189
|
+
SupportedLanguageGoogle["Ossetian"] = "os";
|
|
190
|
+
SupportedLanguageGoogle["Pangasinan"] = "pag";
|
|
191
|
+
SupportedLanguageGoogle["Papiamento"] = "pap";
|
|
192
|
+
SupportedLanguageGoogle["Pashto"] = "ps";
|
|
193
|
+
SupportedLanguageGoogle["Persian"] = "fa";
|
|
194
|
+
SupportedLanguageGoogle["Polish"] = "pl";
|
|
195
|
+
SupportedLanguageGoogle["Portuguese"] = "pt";
|
|
196
|
+
SupportedLanguageGoogle["Portuguese (Brazil)"] = "pt";
|
|
197
|
+
SupportedLanguageGoogle["Portuguese (Portugal)"] = "pt-PT";
|
|
198
|
+
SupportedLanguageGoogle["Punjabi"] = "pa";
|
|
199
|
+
SupportedLanguageGoogle["Punjabi (Gurmukhi)"] = "pa";
|
|
200
|
+
SupportedLanguageGoogle["Punjabi (Shahmukhi)"] = "pa-Arab";
|
|
201
|
+
SupportedLanguageGoogle["Quechua"] = "qu";
|
|
202
|
+
SupportedLanguageGoogle["Q\u02BCeqchi\u02BC"] = "kek";
|
|
203
|
+
SupportedLanguageGoogle["Romani"] = "rom";
|
|
204
|
+
SupportedLanguageGoogle["Romanian"] = "ro";
|
|
205
|
+
SupportedLanguageGoogle["Rundi"] = "rn";
|
|
206
|
+
SupportedLanguageGoogle["Russian"] = "ru";
|
|
207
|
+
SupportedLanguageGoogle["Sami (North)"] = "se";
|
|
208
|
+
SupportedLanguageGoogle["Samoan"] = "sm";
|
|
209
|
+
SupportedLanguageGoogle["Sango"] = "sg";
|
|
210
|
+
SupportedLanguageGoogle["Sanskrit"] = "sa";
|
|
211
|
+
SupportedLanguageGoogle["Santali (Latin)"] = "sat-Latn";
|
|
212
|
+
SupportedLanguageGoogle["Santali (Ol Chiki)"] = "sat";
|
|
213
|
+
SupportedLanguageGoogle["Scots Gaelic"] = "gd";
|
|
214
|
+
SupportedLanguageGoogle["Sepedi"] = "nso";
|
|
215
|
+
SupportedLanguageGoogle["Serbian"] = "sr";
|
|
216
|
+
SupportedLanguageGoogle["Sesotho"] = "st";
|
|
217
|
+
SupportedLanguageGoogle["Seychellois Creole"] = "crs";
|
|
218
|
+
SupportedLanguageGoogle["Shan"] = "shn";
|
|
219
|
+
SupportedLanguageGoogle["Shona"] = "sn";
|
|
220
|
+
SupportedLanguageGoogle["Sicilian"] = "scn";
|
|
221
|
+
SupportedLanguageGoogle["Silesian"] = "szl";
|
|
222
|
+
SupportedLanguageGoogle["Sindhi"] = "sd";
|
|
223
|
+
SupportedLanguageGoogle["Sinhala"] = "si";
|
|
224
|
+
SupportedLanguageGoogle["Slovak"] = "sk";
|
|
225
|
+
SupportedLanguageGoogle["Slovenian"] = "sl";
|
|
226
|
+
SupportedLanguageGoogle["Somali"] = "so";
|
|
227
|
+
SupportedLanguageGoogle["Spanish"] = "es";
|
|
228
|
+
SupportedLanguageGoogle["Sundanese"] = "su";
|
|
229
|
+
SupportedLanguageGoogle["Susu"] = "sus";
|
|
230
|
+
SupportedLanguageGoogle["Swahili"] = "sw";
|
|
231
|
+
SupportedLanguageGoogle["Swati"] = "ss";
|
|
232
|
+
SupportedLanguageGoogle["Swedish"] = "sv";
|
|
233
|
+
SupportedLanguageGoogle["Tahitian"] = "ty";
|
|
234
|
+
SupportedLanguageGoogle["Tajik"] = "tg";
|
|
235
|
+
SupportedLanguageGoogle["Tamazight"] = "ber-Latn";
|
|
236
|
+
SupportedLanguageGoogle["Tamazight (Tifinagh)"] = "ber";
|
|
237
|
+
SupportedLanguageGoogle["Tamil"] = "ta";
|
|
238
|
+
SupportedLanguageGoogle["Tatar"] = "tt";
|
|
239
|
+
SupportedLanguageGoogle["Telugu"] = "te";
|
|
240
|
+
SupportedLanguageGoogle["Tetum"] = "tet";
|
|
241
|
+
SupportedLanguageGoogle["Thai"] = "th";
|
|
242
|
+
SupportedLanguageGoogle["Tibetan"] = "bo";
|
|
243
|
+
SupportedLanguageGoogle["Tigrinya"] = "ti";
|
|
244
|
+
SupportedLanguageGoogle["Tiv"] = "tiv";
|
|
245
|
+
SupportedLanguageGoogle["Tok Pisin"] = "tpi";
|
|
246
|
+
SupportedLanguageGoogle["Tongan"] = "to";
|
|
247
|
+
SupportedLanguageGoogle["Tshiluba"] = "lua";
|
|
248
|
+
SupportedLanguageGoogle["Tsonga"] = "ts";
|
|
249
|
+
SupportedLanguageGoogle["Tswana"] = "tn";
|
|
250
|
+
SupportedLanguageGoogle["Tulu"] = "tcy";
|
|
251
|
+
SupportedLanguageGoogle["Tumbuka"] = "tum";
|
|
252
|
+
SupportedLanguageGoogle["Turkish"] = "tr";
|
|
253
|
+
SupportedLanguageGoogle["Turkmen"] = "tk";
|
|
254
|
+
SupportedLanguageGoogle["Tuvan"] = "tyv";
|
|
255
|
+
SupportedLanguageGoogle["Twi"] = "ak";
|
|
256
|
+
SupportedLanguageGoogle["Udmurt"] = "udm";
|
|
257
|
+
SupportedLanguageGoogle["Ukrainian"] = "uk";
|
|
258
|
+
SupportedLanguageGoogle["Urdu"] = "ur";
|
|
259
|
+
SupportedLanguageGoogle["Uyghur"] = "ug";
|
|
260
|
+
SupportedLanguageGoogle["Uzbek"] = "uz";
|
|
261
|
+
SupportedLanguageGoogle["Venda"] = "ve";
|
|
262
|
+
SupportedLanguageGoogle["Venetian"] = "vec";
|
|
263
|
+
SupportedLanguageGoogle["Vietnamese"] = "vi";
|
|
264
|
+
SupportedLanguageGoogle["Waray"] = "war";
|
|
265
|
+
SupportedLanguageGoogle["Welsh"] = "cy";
|
|
266
|
+
SupportedLanguageGoogle["Wolof"] = "wo";
|
|
267
|
+
SupportedLanguageGoogle["Xhosa"] = "xh";
|
|
268
|
+
SupportedLanguageGoogle["Yakut"] = "sah";
|
|
269
|
+
SupportedLanguageGoogle["Yiddish"] = "yi";
|
|
270
|
+
SupportedLanguageGoogle["Yoruba"] = "yo";
|
|
271
|
+
SupportedLanguageGoogle["Yucatec Maya"] = "yua";
|
|
272
|
+
SupportedLanguageGoogle["Zapotec"] = "zap";
|
|
273
|
+
SupportedLanguageGoogle["Zulu"] = "zu";
|
|
274
|
+
})(SupportedLanguageGoogle || (exports.SupportedLanguageGoogle = SupportedLanguageGoogle = {}));
|
|
275
|
+
exports.supportedLanguageGoogleArray = Object.values(SupportedLanguageGoogle);
|
|
19
276
|
//# sourceMappingURL=types.js.map
|
package/dist/types/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";AAAA,oFAAoF;;;AAkJvE,QAAA,gBAAgB,GAC7B;IACI,OAAO,EAAE,KAAK;IACd,gBAAgB,EAAE,CAAC;IACnB,mBAAmB,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,KAAK;IACZ,4BAA4B,EAAE,CAAC;CAClC,CAAA;AAID,IAAY,aAKX;AALD,WAAY,aAAa;IAErB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";AAAA,oFAAoF;;;AAkJvE,QAAA,gBAAgB,GAC7B;IACI,OAAO,EAAE,KAAK;IACd,gBAAgB,EAAE,CAAC;IACnB,mBAAmB,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,KAAK;IACZ,4BAA4B,EAAE,CAAC;CAClC,CAAA;AAID,IAAY,aAKX;AALD,WAAY,aAAa;IAErB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AA4CD,IAAY,uBA+PX;AA/PD,WAAY,uBAAuB;IAElC,mDAA0B,CAAA;IAC1B,6CAAoB,CAAA;IACpB,wCAAe,CAAA;IACf,2CAAkB,CAAA;IAClB,yCAAgB,CAAA;IAChB,sCAAa,CAAA;IACb,2CAAkB,CAAA;IAClB,0CAAiB,CAAA;IACjB,uCAAc,CAAA;IACd,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;IACb,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,6CAAoB,CAAA;IACpB,2CAAkB,CAAA;IAClB,0CAAiB,CAAA;IACjB,yCAAgB,CAAA;IAChB,8CAAgB,CAAA;IAChB,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,6CAAoB,CAAA;IACpB,mDAA0B,CAAA;IAC1B,6CAAoB,CAAA;IACpB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,yCAAgB,CAAA;IAChB,yCAAgB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AC9B,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,sCAAa,CAAA;IACb,yCAAgB,CAAA;IAChB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,2CAAkB,CAAA;IAClB,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,uCAAc,CAAA;IACd,0CAAiB,CAAA;IACjB,yCAAgB,CAAA;IAChB,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,qCAAY,CAAA;IACZ,yCAAgB,CAAA;IAChB,2CAAkB,CAAA;IAClB,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,2CAAkB,CAAA;IAClB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,wCAAe,CAAA;IACf,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,+CAAsB,CAAA;IACtB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;AACd,CAAC,EA/PW,uBAAuB,uCAAvB,uBAAuB,QA+PlC;AAEY,QAAA,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAA"}
|
package/dist/utils/util.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export declare function clone(obj: any): any;
|
|
|
109
109
|
export declare function getBit(number: number, bit: number): number;
|
|
110
110
|
export declare function isBit(number: number, bit: number): boolean;
|
|
111
111
|
export declare function map(input: number, min1: number, max1: number, min2: number, max2: number): number;
|
|
112
|
+
export declare function mapCapped(input: number, min1: number, max1: number, min2: number, max2: number): number;
|
|
112
113
|
export declare function logMap(input: number, inputStart: number, inputEnd: number, outputStart: number, outputEnd: number, curveIntensity: number): number;
|
|
113
114
|
export declare function clamp(input: number, min: number, max: number): number;
|
|
114
115
|
export declare function clamp0(input: number, max: number): number;
|
|
@@ -198,7 +199,8 @@ export declare function hashCode(str: string): number;
|
|
|
198
199
|
export declare function chalkColor(input: string, color: string): string;
|
|
199
200
|
export declare function chalkRainbowColor(input: string, color: number): string;
|
|
200
201
|
export declare function chalkNextRainbowColor(input: string): string;
|
|
201
|
-
export declare function seededChalkRainbowColor(input: string): string;
|
|
202
|
+
export declare function seededChalkRainbowColor(input: string, seed?: string): string;
|
|
203
|
+
export declare function seededChalkRainbowColorRaw(input: string, seed?: number): string;
|
|
202
204
|
export declare function randomChalkRainbowColor(input: string): string;
|
|
203
205
|
export declare function padLeft(input: string, leftPad: number, padCharacter?: string): string;
|
|
204
206
|
export declare function padRight(input: string, rightPad: number, padCharacter?: string): string;
|
package/dist/utils/util.js
CHANGED
|
@@ -103,6 +103,7 @@ exports.clone = clone;
|
|
|
103
103
|
exports.getBit = getBit;
|
|
104
104
|
exports.isBit = isBit;
|
|
105
105
|
exports.map = map;
|
|
106
|
+
exports.mapCapped = mapCapped;
|
|
106
107
|
exports.logMap = logMap;
|
|
107
108
|
exports.clamp = clamp;
|
|
108
109
|
exports.clamp0 = clamp0;
|
|
@@ -183,6 +184,7 @@ exports.chalkColor = chalkColor;
|
|
|
183
184
|
exports.chalkRainbowColor = chalkRainbowColor;
|
|
184
185
|
exports.chalkNextRainbowColor = chalkNextRainbowColor;
|
|
185
186
|
exports.seededChalkRainbowColor = seededChalkRainbowColor;
|
|
187
|
+
exports.seededChalkRainbowColorRaw = seededChalkRainbowColorRaw;
|
|
186
188
|
exports.randomChalkRainbowColor = randomChalkRainbowColor;
|
|
187
189
|
exports.padLeft = padLeft;
|
|
188
190
|
exports.padRight = padRight;
|
|
@@ -1094,6 +1096,9 @@ function isBit(number, bit) {
|
|
|
1094
1096
|
function map(input, min1, max1, min2, max2) {
|
|
1095
1097
|
return ((input - min1) / (max1 - min1)) * (max2 - min2) + min2;
|
|
1096
1098
|
}
|
|
1099
|
+
function mapCapped(input, min1, max1, min2, max2) {
|
|
1100
|
+
return clamp(map(input, min1, max1, min2, max2), min2, max2);
|
|
1101
|
+
}
|
|
1097
1102
|
function logMap(input, inputStart, inputEnd, outputStart, outputEnd, curveIntensity) {
|
|
1098
1103
|
// Validate and clamp curve intensity
|
|
1099
1104
|
// curveIntensity = Math.max(-1, Math.min(1, curveIntensity || 0))
|
|
@@ -1480,8 +1485,11 @@ function chalkRainbowColor(input, color) {
|
|
|
1480
1485
|
function chalkNextRainbowColor(input) {
|
|
1481
1486
|
return chalkRainbowColor(input, rainbowIndex++);
|
|
1482
1487
|
}
|
|
1483
|
-
function seededChalkRainbowColor(input) {
|
|
1484
|
-
return
|
|
1488
|
+
function seededChalkRainbowColor(input, seed = input) {
|
|
1489
|
+
return seededChalkRainbowColorRaw(input, hashCode(seed));
|
|
1490
|
+
}
|
|
1491
|
+
function seededChalkRainbowColorRaw(input, seed = hashCode(input)) {
|
|
1492
|
+
return chalkRainbowColor(input, seed);
|
|
1485
1493
|
}
|
|
1486
1494
|
function randomChalkRainbowColor(input) {
|
|
1487
1495
|
return chalkRainbowColor(input, hashCode(input));
|
|
@@ -3345,7 +3353,7 @@ function toString(items, ignoreEmpty = false, cloneObj = true, rainbow = true, i
|
|
|
3345
3353
|
let output = "";
|
|
3346
3354
|
let padding = xChars(" ", indent);
|
|
3347
3355
|
let isComplex = true;
|
|
3348
|
-
if (
|
|
3356
|
+
if (isIterable(items) && !isString(items)) {
|
|
3349
3357
|
output += `${padding}[\n`;
|
|
3350
3358
|
let i = 0;
|
|
3351
3359
|
for (const item of items) {
|
|
@@ -3356,6 +3364,9 @@ function toString(items, ignoreEmpty = false, cloneObj = true, rainbow = true, i
|
|
|
3356
3364
|
}
|
|
3357
3365
|
output += `${padding}]`;
|
|
3358
3366
|
}
|
|
3367
|
+
else if (typeof items === "number") {
|
|
3368
|
+
output = `${softToFixed(items)}`;
|
|
3369
|
+
}
|
|
3359
3370
|
else if (items instanceof Set) {
|
|
3360
3371
|
output = toString(Array.from(items), ignoreEmpty, cloneObj, rainbow, indent + 4);
|
|
3361
3372
|
}
|