ahqstore-types 3.2.7 → 3.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.
@@ -4,35 +4,6 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
 
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
12
-
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
7
  let WASM_VECTOR_LEN = 0;
37
8
 
38
9
  let cachedUint8ArrayMemory0 = null;
@@ -141,16 +112,23 @@ function getArrayJsValueFromWasm0(ptr, len) {
141
112
  const mem = getDataViewMemory0();
142
113
  const result = [];
143
114
  for (let i = ptr; i < ptr + 4 * len; i += 4) {
144
- result.push(takeObject(mem.getUint32(i, true)));
115
+ result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
145
116
  }
117
+ wasm.__externref_drop_slice(ptr, len);
146
118
  return result;
147
119
  }
148
120
 
121
+ function addToExternrefTable0(obj) {
122
+ const idx = wasm.__externref_table_alloc();
123
+ wasm.__wbindgen_export_2.set(idx, obj);
124
+ return idx;
125
+ }
126
+
149
127
  function passArrayJsValueToWasm0(array, malloc) {
150
128
  const ptr = malloc(array.length * 4, 4) >>> 0;
151
129
  const mem = getDataViewMemory0();
152
130
  for (let i = 0; i < array.length; i++) {
153
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
131
+ mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
154
132
  }
155
133
  WASM_VECTOR_LEN = array.length;
156
134
  return ptr;
@@ -160,57 +138,60 @@ function handleError(f, args) {
160
138
  try {
161
139
  return f.apply(this, args);
162
140
  } catch (e) {
163
- wasm.__wbindgen_exn_store(addHeapObject(e));
141
+ const idx = addToExternrefTable0(e);
142
+ wasm.__wbindgen_exn_store(idx);
164
143
  }
165
144
  }
166
- /**
167
- */
145
+
168
146
  export const InstallerFormat = Object.freeze({
169
147
  /**
170
- *🎯 Stable as of v1
171
- */
148
+ *🎯 Stable as of v1
149
+ */
172
150
  WindowsZip:0,"0":"WindowsZip",
173
151
  /**
174
- *🎯 Stable as of v2
175
- *
176
- */
152
+ *🎯 Stable as of v2
153
+ *
154
+ */
177
155
  WindowsInstallerMsi:1,"1":"WindowsInstallerMsi",
178
156
  /**
179
- *🔬 Planned as of v2.5 or v3
180
- *
181
- *
182
- * **Doesn't work**
183
- * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
184
- *
185
- * [^1]: You'll need to provide app's final location
186
- */
157
+ *🔬 Planned as of v2.5 or v3
158
+ *
159
+ *
160
+ * **Doesn't work**
161
+ * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
162
+ *
163
+ * [^1]: You'll need to provide app's final location
164
+ */
187
165
  WindowsInstallerExe:2,"2":"WindowsInstallerExe",
188
166
  /**
189
- *🔬 Planned as of v3
190
- *
191
- *
192
- * **Doesn't work**
193
- * **Won't be worked on, until other formats are supported**
194
- * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
195
- *
196
- * [^1]: You'll need to provide app's final location
197
- */
167
+ *🔬 Planned as of v3
168
+ *
169
+ *
170
+ * **Doesn't work**
171
+ * **Won't be worked on, until other formats are supported**
172
+ * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
173
+ *
174
+ * [^1]: You'll need to provide app's final location
175
+ */
198
176
  WindowsUWPMsix:3,"3":"WindowsUWPMsix",
199
177
  /**
200
- *🎯 Stable as of v2
201
- *
202
- */
178
+ *🎯 Stable as of v2
179
+ *
180
+ */
203
181
  LinuxAppImage:4,"4":"LinuxAppImage",
204
182
  /**
205
- *🔬 Planned
206
- */
183
+ *🔬 Planned
184
+ */
207
185
  AndroidApkZip:5,"5":"AndroidApkZip", });
208
186
 
187
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
188
+
189
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
190
+
209
191
  const AppRepoFinalization = (typeof FinalizationRegistry === 'undefined')
210
192
  ? { register: () => {}, unregister: () => {} }
211
193
  : new FinalizationRegistry(ptr => wasm.__wbg_apprepo_free(ptr >>> 0, 1));
212
- /**
213
- */
194
+
214
195
  export class AppRepo {
215
196
 
216
197
  __destroy_into_raw() {
@@ -225,56 +206,48 @@ export class AppRepo {
225
206
  wasm.__wbg_apprepo_free(ptr, 0);
226
207
  }
227
208
  /**
228
- * author must be your GitHub username or username of an org where you're a "visible" member
229
- * @returns {string}
230
- */
209
+ * author must be your GitHub username or username of an org where you're a "visible" member
210
+ * @returns {string}
211
+ */
231
212
  get author() {
232
213
  let deferred1_0;
233
214
  let deferred1_1;
234
215
  try {
235
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
236
- wasm.__wbg_get_apprepo_author(retptr, this.__wbg_ptr);
237
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
238
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
239
- deferred1_0 = r0;
240
- deferred1_1 = r1;
241
- return getStringFromWasm0(r0, r1);
216
+ const ret = wasm.__wbg_get_apprepo_author(this.__wbg_ptr);
217
+ deferred1_0 = ret[0];
218
+ deferred1_1 = ret[1];
219
+ return getStringFromWasm0(ret[0], ret[1]);
242
220
  } finally {
243
- wasm.__wbindgen_add_to_stack_pointer(16);
244
221
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
245
222
  }
246
223
  }
247
224
  /**
248
- * author must be your GitHub username or username of an org where you're a "visible" member
249
- * @param {string} arg0
250
- */
225
+ * author must be your GitHub username or username of an org where you're a "visible" member
226
+ * @param {string} arg0
227
+ */
251
228
  set author(arg0) {
252
229
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
230
  const len0 = WASM_VECTOR_LEN;
254
231
  wasm.__wbg_set_apprepo_author(this.__wbg_ptr, ptr0, len0);
255
232
  }
256
233
  /**
257
- * @returns {string}
258
- */
234
+ * @returns {string}
235
+ */
259
236
  get repo() {
260
237
  let deferred1_0;
261
238
  let deferred1_1;
262
239
  try {
263
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
264
- wasm.__wbg_get_apprepo_repo(retptr, this.__wbg_ptr);
265
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
266
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
267
- deferred1_0 = r0;
268
- deferred1_1 = r1;
269
- return getStringFromWasm0(r0, r1);
240
+ const ret = wasm.__wbg_get_apprepo_repo(this.__wbg_ptr);
241
+ deferred1_0 = ret[0];
242
+ deferred1_1 = ret[1];
243
+ return getStringFromWasm0(ret[0], ret[1]);
270
244
  } finally {
271
- wasm.__wbindgen_add_to_stack_pointer(16);
272
245
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
273
246
  }
274
247
  }
275
248
  /**
276
- * @param {string} arg0
277
- */
249
+ * @param {string} arg0
250
+ */
278
251
  set repo(arg0) {
279
252
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
280
253
  const len0 = WASM_VECTOR_LEN;
@@ -300,14 +273,14 @@ export class Command {
300
273
  wasm.__wbg_command_free(ptr, 0);
301
274
  }
302
275
  /**
303
- * @param {string} value
304
- * @returns {Command | undefined}
305
- */
276
+ * @param {string} value
277
+ * @returns {Command | undefined}
278
+ */
306
279
  static try_from_js(value) {
307
280
  const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
281
  const len0 = WASM_VECTOR_LEN;
309
282
  const ret = wasm.command_try_from_js(ptr0, len0);
310
- return takeObject(ret);
283
+ return ret;
311
284
  }
312
285
  }
313
286
 
@@ -315,15 +288,15 @@ const CommitFinalization = (typeof FinalizationRegistry === 'undefined')
315
288
  ? { register: () => {}, unregister: () => {} }
316
289
  : new FinalizationRegistry(ptr => wasm.__wbg_commit_free(ptr >>> 0, 1));
317
290
  /**
318
- * **You should use cli**
319
- * ```sh
320
- * cargo install ahqstore_cli_rs
321
- * ```
322
- * or visit app / api sub module
323
- *
324
- * This Module:
325
- * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
326
- */
291
+ * **You should use cli**
292
+ * ```sh
293
+ * cargo install ahqstore_cli_rs
294
+ * ```
295
+ * or visit app / api sub module
296
+ *
297
+ * This Module:
298
+ * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
299
+ */
327
300
  export class Commit {
328
301
 
329
302
  __destroy_into_raw() {
@@ -338,27 +311,23 @@ export class Commit {
338
311
  wasm.__wbg_commit_free(ptr, 0);
339
312
  }
340
313
  /**
341
- * @returns {string}
342
- */
314
+ * @returns {string}
315
+ */
343
316
  get sha() {
344
317
  let deferred1_0;
345
318
  let deferred1_1;
346
319
  try {
347
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
348
- wasm.__wbg_get_commit_sha(retptr, this.__wbg_ptr);
349
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
350
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
351
- deferred1_0 = r0;
352
- deferred1_1 = r1;
353
- return getStringFromWasm0(r0, r1);
320
+ const ret = wasm.__wbg_get_commit_sha(this.__wbg_ptr);
321
+ deferred1_0 = ret[0];
322
+ deferred1_1 = ret[1];
323
+ return getStringFromWasm0(ret[0], ret[1]);
354
324
  } finally {
355
- wasm.__wbindgen_add_to_stack_pointer(16);
356
325
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
357
326
  }
358
327
  }
359
328
  /**
360
- * @param {string} arg0
361
- */
329
+ * @param {string} arg0
330
+ */
362
331
  set sha(arg0) {
363
332
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
364
333
  const len0 = WASM_VECTOR_LEN;
@@ -369,8 +338,7 @@ export class Commit {
369
338
  const DevDataFinalization = (typeof FinalizationRegistry === 'undefined')
370
339
  ? { register: () => {}, unregister: () => {} }
371
340
  : new FinalizationRegistry(ptr => wasm.__wbg_devdata_free(ptr >>> 0, 1));
372
- /**
373
- */
341
+
374
342
  export class DevData {
375
343
 
376
344
  __destroy_into_raw() {
@@ -385,108 +353,92 @@ export class DevData {
385
353
  wasm.__wbg_devdata_free(ptr, 0);
386
354
  }
387
355
  /**
388
- * @returns {string}
389
- */
356
+ * @returns {string}
357
+ */
390
358
  get name() {
391
359
  let deferred1_0;
392
360
  let deferred1_1;
393
361
  try {
394
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
395
- wasm.__wbg_get_devdata_name(retptr, this.__wbg_ptr);
396
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
397
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
398
- deferred1_0 = r0;
399
- deferred1_1 = r1;
400
- return getStringFromWasm0(r0, r1);
362
+ const ret = wasm.__wbg_get_devdata_name(this.__wbg_ptr);
363
+ deferred1_0 = ret[0];
364
+ deferred1_1 = ret[1];
365
+ return getStringFromWasm0(ret[0], ret[1]);
401
366
  } finally {
402
- wasm.__wbindgen_add_to_stack_pointer(16);
403
367
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
404
368
  }
405
369
  }
406
370
  /**
407
- * @param {string} arg0
408
- */
371
+ * @param {string} arg0
372
+ */
409
373
  set name(arg0) {
410
374
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
375
  const len0 = WASM_VECTOR_LEN;
412
376
  wasm.__wbg_set_devdata_name(this.__wbg_ptr, ptr0, len0);
413
377
  }
414
378
  /**
415
- * @returns {string}
416
- */
379
+ * @returns {string}
380
+ */
417
381
  get id() {
418
382
  let deferred1_0;
419
383
  let deferred1_1;
420
384
  try {
421
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
422
- wasm.__wbg_get_devdata_id(retptr, this.__wbg_ptr);
423
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
424
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
425
- deferred1_0 = r0;
426
- deferred1_1 = r1;
427
- return getStringFromWasm0(r0, r1);
385
+ const ret = wasm.__wbg_get_devdata_id(this.__wbg_ptr);
386
+ deferred1_0 = ret[0];
387
+ deferred1_1 = ret[1];
388
+ return getStringFromWasm0(ret[0], ret[1]);
428
389
  } finally {
429
- wasm.__wbindgen_add_to_stack_pointer(16);
430
390
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
431
391
  }
432
392
  }
433
393
  /**
434
- * @param {string} arg0
435
- */
394
+ * @param {string} arg0
395
+ */
436
396
  set id(arg0) {
437
397
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
438
398
  const len0 = WASM_VECTOR_LEN;
439
399
  wasm.__wbg_set_devdata_id(this.__wbg_ptr, ptr0, len0);
440
400
  }
441
401
  /**
442
- * @returns {string}
443
- */
402
+ * @returns {string}
403
+ */
444
404
  get github() {
445
405
  let deferred1_0;
446
406
  let deferred1_1;
447
407
  try {
448
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
449
- wasm.__wbg_get_devdata_github(retptr, this.__wbg_ptr);
450
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
451
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
452
- deferred1_0 = r0;
453
- deferred1_1 = r1;
454
- return getStringFromWasm0(r0, r1);
408
+ const ret = wasm.__wbg_get_devdata_github(this.__wbg_ptr);
409
+ deferred1_0 = ret[0];
410
+ deferred1_1 = ret[1];
411
+ return getStringFromWasm0(ret[0], ret[1]);
455
412
  } finally {
456
- wasm.__wbindgen_add_to_stack_pointer(16);
457
413
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
458
414
  }
459
415
  }
460
416
  /**
461
- * @param {string} arg0
462
- */
417
+ * @param {string} arg0
418
+ */
463
419
  set github(arg0) {
464
420
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
465
421
  const len0 = WASM_VECTOR_LEN;
466
422
  wasm.__wbg_set_devdata_github(this.__wbg_ptr, ptr0, len0);
467
423
  }
468
424
  /**
469
- * @returns {string}
470
- */
425
+ * @returns {string}
426
+ */
471
427
  get avatar_url() {
472
428
  let deferred1_0;
473
429
  let deferred1_1;
474
430
  try {
475
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
476
- wasm.__wbg_get_devdata_avatar_url(retptr, this.__wbg_ptr);
477
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
478
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
479
- deferred1_0 = r0;
480
- deferred1_1 = r1;
481
- return getStringFromWasm0(r0, r1);
431
+ const ret = wasm.__wbg_get_devdata_avatar_url(this.__wbg_ptr);
432
+ deferred1_0 = ret[0];
433
+ deferred1_1 = ret[1];
434
+ return getStringFromWasm0(ret[0], ret[1]);
482
435
  } finally {
483
- wasm.__wbindgen_add_to_stack_pointer(16);
484
436
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
485
437
  }
486
438
  }
487
439
  /**
488
- * @param {string} arg0
489
- */
440
+ * @param {string} arg0
441
+ */
490
442
  set avatar_url(arg0) {
491
443
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
492
444
  const len0 = WASM_VECTOR_LEN;
@@ -497,8 +449,7 @@ export class DevData {
497
449
  const DownloadUrlFinalization = (typeof FinalizationRegistry === 'undefined')
498
450
  ? { register: () => {}, unregister: () => {} }
499
451
  : new FinalizationRegistry(ptr => wasm.__wbg_downloadurl_free(ptr >>> 0, 1));
500
- /**
501
- */
452
+
502
453
  export class DownloadUrl {
503
454
 
504
455
  __destroy_into_raw() {
@@ -513,69 +464,61 @@ export class DownloadUrl {
513
464
  wasm.__wbg_downloadurl_free(ptr, 0);
514
465
  }
515
466
  /**
516
- * @returns {InstallerFormat}
517
- */
467
+ * @returns {InstallerFormat}
468
+ */
518
469
  get installerType() {
519
470
  const ret = wasm.__wbg_get_downloadurl_installerType(this.__wbg_ptr);
520
471
  return ret;
521
472
  }
522
473
  /**
523
- * @param {InstallerFormat} arg0
524
- */
474
+ * @param {InstallerFormat} arg0
475
+ */
525
476
  set installerType(arg0) {
526
477
  wasm.__wbg_set_downloadurl_installerType(this.__wbg_ptr, arg0);
527
478
  }
528
479
  /**
529
- * @returns {string}
530
- */
480
+ * @returns {string}
481
+ */
531
482
  get asset() {
532
483
  let deferred1_0;
533
484
  let deferred1_1;
534
485
  try {
535
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
536
- wasm.__wbg_get_apprepo_author(retptr, this.__wbg_ptr);
537
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
538
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
539
- deferred1_0 = r0;
540
- deferred1_1 = r1;
541
- return getStringFromWasm0(r0, r1);
486
+ const ret = wasm.__wbg_get_downloadurl_asset(this.__wbg_ptr);
487
+ deferred1_0 = ret[0];
488
+ deferred1_1 = ret[1];
489
+ return getStringFromWasm0(ret[0], ret[1]);
542
490
  } finally {
543
- wasm.__wbindgen_add_to_stack_pointer(16);
544
491
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
545
492
  }
546
493
  }
547
494
  /**
548
- * @param {string} arg0
549
- */
495
+ * @param {string} arg0
496
+ */
550
497
  set asset(arg0) {
551
498
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
552
499
  const len0 = WASM_VECTOR_LEN;
553
500
  wasm.__wbg_set_apprepo_author(this.__wbg_ptr, ptr0, len0);
554
501
  }
555
502
  /**
556
- * This will be based on asset and releaseId
557
- * @returns {string}
558
- */
503
+ * This will be based on asset and releaseId
504
+ * @returns {string}
505
+ */
559
506
  get url() {
560
507
  let deferred1_0;
561
508
  let deferred1_1;
562
509
  try {
563
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
564
- wasm.__wbg_get_apprepo_repo(retptr, this.__wbg_ptr);
565
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
566
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
567
- deferred1_0 = r0;
568
- deferred1_1 = r1;
569
- return getStringFromWasm0(r0, r1);
510
+ const ret = wasm.__wbg_get_downloadurl_url(this.__wbg_ptr);
511
+ deferred1_0 = ret[0];
512
+ deferred1_1 = ret[1];
513
+ return getStringFromWasm0(ret[0], ret[1]);
570
514
  } finally {
571
- wasm.__wbindgen_add_to_stack_pointer(16);
572
515
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
573
516
  }
574
517
  }
575
518
  /**
576
- * This will be based on asset and releaseId
577
- * @param {string} arg0
578
- */
519
+ * This will be based on asset and releaseId
520
+ * @param {string} arg0
521
+ */
579
522
  set url(arg0) {
580
523
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
581
524
  const len0 = WASM_VECTOR_LEN;
@@ -586,8 +529,7 @@ export class DownloadUrl {
586
529
  const GHRepoCommitFinalization = (typeof FinalizationRegistry === 'undefined')
587
530
  ? { register: () => {}, unregister: () => {} }
588
531
  : new FinalizationRegistry(ptr => wasm.__wbg_ghrepocommit_free(ptr >>> 0, 1));
589
- /**
590
- */
532
+
591
533
  export class GHRepoCommit {
592
534
 
593
535
  __destroy_into_raw() {
@@ -602,27 +544,23 @@ export class GHRepoCommit {
602
544
  wasm.__wbg_ghrepocommit_free(ptr, 0);
603
545
  }
604
546
  /**
605
- * @returns {string}
606
- */
547
+ * @returns {string}
548
+ */
607
549
  get sha() {
608
550
  let deferred1_0;
609
551
  let deferred1_1;
610
552
  try {
611
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
612
- wasm.__wbg_get_ghrepocommit_sha(retptr, this.__wbg_ptr);
613
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
614
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
615
- deferred1_0 = r0;
616
- deferred1_1 = r1;
617
- return getStringFromWasm0(r0, r1);
553
+ const ret = wasm.__wbg_get_ghrepocommit_sha(this.__wbg_ptr);
554
+ deferred1_0 = ret[0];
555
+ deferred1_1 = ret[1];
556
+ return getStringFromWasm0(ret[0], ret[1]);
618
557
  } finally {
619
- wasm.__wbindgen_add_to_stack_pointer(16);
620
558
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
621
559
  }
622
560
  }
623
561
  /**
624
- * @param {string} arg0
625
- */
562
+ * @param {string} arg0
563
+ */
626
564
  set sha(arg0) {
627
565
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
628
566
  const len0 = WASM_VECTOR_LEN;
@@ -633,8 +571,7 @@ export class GHRepoCommit {
633
571
  const InstallerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
634
572
  ? { register: () => {}, unregister: () => {} }
635
573
  : new FinalizationRegistry(ptr => wasm.__wbg_installeroptions_free(ptr >>> 0, 1));
636
- /**
637
- */
574
+
638
575
  export class InstallerOptions {
639
576
 
640
577
  __destroy_into_raw() {
@@ -649,19 +586,19 @@ export class InstallerOptions {
649
586
  wasm.__wbg_installeroptions_free(ptr, 0);
650
587
  }
651
588
  /**
652
- *🎯 Introduced in v1
653
- *
654
- * @returns {InstallerOptionsWindows | undefined}
655
- */
589
+ *🎯 Introduced in v1
590
+ *
591
+ * @returns {InstallerOptionsWindows | undefined}
592
+ */
656
593
  get win32() {
657
594
  const ret = wasm.__wbg_get_installeroptions_win32(this.__wbg_ptr);
658
595
  return ret === 0 ? undefined : InstallerOptionsWindows.__wrap(ret);
659
596
  }
660
597
  /**
661
- *🎯 Introduced in v1
662
- *
663
- * @param {InstallerOptionsWindows | undefined} [arg0]
664
- */
598
+ *🎯 Introduced in v1
599
+ *
600
+ * @param {InstallerOptionsWindows | undefined} [arg0]
601
+ */
665
602
  set win32(arg0) {
666
603
  let ptr0 = 0;
667
604
  if (!isLikeNone(arg0)) {
@@ -671,19 +608,19 @@ export class InstallerOptions {
671
608
  wasm.__wbg_set_installeroptions_win32(this.__wbg_ptr, ptr0);
672
609
  }
673
610
  /**
674
- *🎯 Introduced in v2
675
- *
676
- * @returns {InstallerOptionsWindows | undefined}
677
- */
611
+ *🎯 Introduced in v2
612
+ *
613
+ * @returns {InstallerOptionsWindows | undefined}
614
+ */
678
615
  get winarm() {
679
616
  const ret = wasm.__wbg_get_installeroptions_winarm(this.__wbg_ptr);
680
617
  return ret === 0 ? undefined : InstallerOptionsWindows.__wrap(ret);
681
618
  }
682
619
  /**
683
- *🎯 Introduced in v2
684
- *
685
- * @param {InstallerOptionsWindows | undefined} [arg0]
686
- */
620
+ *🎯 Introduced in v2
621
+ *
622
+ * @param {InstallerOptionsWindows | undefined} [arg0]
623
+ */
687
624
  set winarm(arg0) {
688
625
  let ptr0 = 0;
689
626
  if (!isLikeNone(arg0)) {
@@ -693,19 +630,19 @@ export class InstallerOptions {
693
630
  wasm.__wbg_set_installeroptions_winarm(this.__wbg_ptr, ptr0);
694
631
  }
695
632
  /**
696
- *🎯 Introduced in v1
697
- *
698
- * @returns {InstallerOptionsLinux | undefined}
699
- */
633
+ *🎯 Introduced in v1
634
+ *
635
+ * @returns {InstallerOptionsLinux | undefined}
636
+ */
700
637
  get linux() {
701
638
  const ret = wasm.__wbg_get_installeroptions_linux(this.__wbg_ptr);
702
639
  return ret === 0 ? undefined : InstallerOptionsLinux.__wrap(ret);
703
640
  }
704
641
  /**
705
- *🎯 Introduced in v1
706
- *
707
- * @param {InstallerOptionsLinux | undefined} [arg0]
708
- */
642
+ *🎯 Introduced in v1
643
+ *
644
+ * @param {InstallerOptionsLinux | undefined} [arg0]
645
+ */
709
646
  set linux(arg0) {
710
647
  let ptr0 = 0;
711
648
  if (!isLikeNone(arg0)) {
@@ -715,19 +652,19 @@ export class InstallerOptions {
715
652
  wasm.__wbg_set_installeroptions_linux(this.__wbg_ptr, ptr0);
716
653
  }
717
654
  /**
718
- *🎯 Introduced in v2
719
- *
720
- * @returns {InstallerOptionsLinux | undefined}
721
- */
655
+ *🎯 Introduced in v2
656
+ *
657
+ * @returns {InstallerOptionsLinux | undefined}
658
+ */
722
659
  get linuxArm64() {
723
660
  const ret = wasm.__wbg_get_installeroptions_linuxArm64(this.__wbg_ptr);
724
661
  return ret === 0 ? undefined : InstallerOptionsLinux.__wrap(ret);
725
662
  }
726
663
  /**
727
- *🎯 Introduced in v2
728
- *
729
- * @param {InstallerOptionsLinux | undefined} [arg0]
730
- */
664
+ *🎯 Introduced in v2
665
+ *
666
+ * @param {InstallerOptionsLinux | undefined} [arg0]
667
+ */
731
668
  set linuxArm64(arg0) {
732
669
  let ptr0 = 0;
733
670
  if (!isLikeNone(arg0)) {
@@ -737,19 +674,19 @@ export class InstallerOptions {
737
674
  wasm.__wbg_set_installeroptions_linuxArm64(this.__wbg_ptr, ptr0);
738
675
  }
739
676
  /**
740
- *🎯 Introduced in v2
741
- *
742
- * @returns {InstallerOptionsLinux | undefined}
743
- */
677
+ *🎯 Introduced in v2
678
+ *
679
+ * @returns {InstallerOptionsLinux | undefined}
680
+ */
744
681
  get linuxArm7() {
745
682
  const ret = wasm.__wbg_get_installeroptions_linuxArm7(this.__wbg_ptr);
746
683
  return ret === 0 ? undefined : InstallerOptionsLinux.__wrap(ret);
747
684
  }
748
685
  /**
749
- *🎯 Introduced in v2
750
- *
751
- * @param {InstallerOptionsLinux | undefined} [arg0]
752
- */
686
+ *🎯 Introduced in v2
687
+ *
688
+ * @param {InstallerOptionsLinux | undefined} [arg0]
689
+ */
753
690
  set linuxArm7(arg0) {
754
691
  let ptr0 = 0;
755
692
  if (!isLikeNone(arg0)) {
@@ -759,21 +696,21 @@ export class InstallerOptions {
759
696
  wasm.__wbg_set_installeroptions_linuxArm7(this.__wbg_ptr, ptr0);
760
697
  }
761
698
  /**
762
- *🔬 Planned
763
- *🎯 Introduced in v2
764
- *
765
- * @returns {InstallerOptionsAndroid | undefined}
766
- */
699
+ *🔬 Planned
700
+ *🎯 Introduced in v2
701
+ *
702
+ * @returns {InstallerOptionsAndroid | undefined}
703
+ */
767
704
  get android() {
768
705
  const ret = wasm.__wbg_get_installeroptions_android(this.__wbg_ptr);
769
706
  return ret === 0 ? undefined : InstallerOptionsAndroid.__wrap(ret);
770
707
  }
771
708
  /**
772
- *🔬 Planned
773
- *🎯 Introduced in v2
774
- *
775
- * @param {InstallerOptionsAndroid | undefined} [arg0]
776
- */
709
+ *🔬 Planned
710
+ *🎯 Introduced in v2
711
+ *
712
+ * @param {InstallerOptionsAndroid | undefined} [arg0]
713
+ */
777
714
  set android(arg0) {
778
715
  let ptr0 = 0;
779
716
  if (!isLikeNone(arg0)) {
@@ -788,9 +725,9 @@ const InstallerOptionsAndroidFinalization = (typeof FinalizationRegistry === 'un
788
725
  ? { register: () => {}, unregister: () => {} }
789
726
  : new FinalizationRegistry(ptr => wasm.__wbg_installeroptionsandroid_free(ptr >>> 0, 1));
790
727
  /**
791
- *🔬 Planned
792
- *
793
- */
728
+ *🔬 Planned
729
+ *
730
+ */
794
731
  export class InstallerOptionsAndroid {
795
732
 
796
733
  static __wrap(ptr) {
@@ -813,19 +750,19 @@ export class InstallerOptionsAndroid {
813
750
  wasm.__wbg_installeroptionsandroid_free(ptr, 0);
814
751
  }
815
752
  /**
816
- *🎯 Introduced in v2
817
- *
818
- * @returns {number}
819
- */
753
+ *🎯 Introduced in v2
754
+ *
755
+ * @returns {number}
756
+ */
820
757
  get assetId() {
821
758
  const ret = wasm.__wbg_get_installeroptionsandroid_assetId(this.__wbg_ptr);
822
759
  return ret;
823
760
  }
824
761
  /**
825
- *🎯 Introduced in v2
826
- *
827
- * @param {number} arg0
828
- */
762
+ *🎯 Introduced in v2
763
+ *
764
+ * @param {number} arg0
765
+ */
829
766
  set assetId(arg0) {
830
767
  wasm.__wbg_set_installeroptionsandroid_assetId(this.__wbg_ptr, arg0);
831
768
  }
@@ -835,9 +772,9 @@ const InstallerOptionsLinuxFinalization = (typeof FinalizationRegistry === 'unde
835
772
  ? { register: () => {}, unregister: () => {} }
836
773
  : new FinalizationRegistry(ptr => wasm.__wbg_installeroptionslinux_free(ptr >>> 0, 1));
837
774
  /**
838
- *🔬 Under Development
839
- *
840
- */
775
+ *🔬 Under Development
776
+ *
777
+ */
841
778
  export class InstallerOptionsLinux {
842
779
 
843
780
  static __wrap(ptr) {
@@ -860,19 +797,19 @@ export class InstallerOptionsLinux {
860
797
  wasm.__wbg_installeroptionslinux_free(ptr, 0);
861
798
  }
862
799
  /**
863
- *🎯 Introduced in v2
864
- *
865
- * @returns {number}
866
- */
800
+ *🎯 Introduced in v2
801
+ *
802
+ * @returns {number}
803
+ */
867
804
  get assetId() {
868
805
  const ret = wasm.__wbg_get_installeroptionsandroid_assetId(this.__wbg_ptr);
869
806
  return ret;
870
807
  }
871
808
  /**
872
- *🎯 Introduced in v2
873
- *
874
- * @param {number} arg0
875
- */
809
+ *🎯 Introduced in v2
810
+ *
811
+ * @param {number} arg0
812
+ */
876
813
  set assetId(arg0) {
877
814
  wasm.__wbg_set_installeroptionsandroid_assetId(this.__wbg_ptr, arg0);
878
815
  }
@@ -881,8 +818,7 @@ export class InstallerOptionsLinux {
881
818
  const InstallerOptionsWindowsFinalization = (typeof FinalizationRegistry === 'undefined')
882
819
  ? { register: () => {}, unregister: () => {} }
883
820
  : new FinalizationRegistry(ptr => wasm.__wbg_installeroptionswindows_free(ptr >>> 0, 1));
884
- /**
885
- */
821
+
886
822
  export class InstallerOptionsWindows {
887
823
 
888
824
  static __wrap(ptr) {
@@ -905,89 +841,75 @@ export class InstallerOptionsWindows {
905
841
  wasm.__wbg_installeroptionswindows_free(ptr, 0);
906
842
  }
907
843
  /**
908
- *🎯 Introduced in v2
909
- *
910
- * @returns {number}
911
- */
844
+ *🎯 Introduced in v2
845
+ *
846
+ * @returns {number}
847
+ */
912
848
  get assetId() {
913
849
  const ret = wasm.__wbg_get_installeroptionswindows_assetId(this.__wbg_ptr);
914
850
  return ret;
915
851
  }
916
852
  /**
917
- *🎯 Introduced in v2
918
- *
919
- * @param {number} arg0
920
- */
853
+ *🎯 Introduced in v2
854
+ *
855
+ * @param {number} arg0
856
+ */
921
857
  set assetId(arg0) {
922
858
  wasm.__wbg_set_installeroptionswindows_assetId(this.__wbg_ptr, arg0);
923
859
  }
924
860
  /**
925
- * The exe to link as a shortcut[^1]
926
- *
927
- * [^1]: Only if you choose WindowsZip
928
- * @returns {string | undefined}
929
- */
861
+ * The exe to link as a shortcut[^1]
862
+ *
863
+ * [^1]: Only if you choose WindowsZip
864
+ * @returns {string | undefined}
865
+ */
930
866
  get exec() {
931
- try {
932
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
933
- wasm.__wbg_get_installeroptionswindows_exec(retptr, this.__wbg_ptr);
934
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
935
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
936
- let v1;
937
- if (r0 !== 0) {
938
- v1 = getStringFromWasm0(r0, r1).slice();
939
- wasm.__wbindgen_free(r0, r1 * 1, 1);
940
- }
941
- return v1;
942
- } finally {
943
- wasm.__wbindgen_add_to_stack_pointer(16);
867
+ const ret = wasm.__wbg_get_installeroptionswindows_exec(this.__wbg_ptr);
868
+ let v1;
869
+ if (ret[0] !== 0) {
870
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
871
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
944
872
  }
873
+ return v1;
945
874
  }
946
875
  /**
947
- * The exe to link as a shortcut[^1]
948
- *
949
- * [^1]: Only if you choose WindowsZip
950
- * @param {string | undefined} [arg0]
951
- */
876
+ * The exe to link as a shortcut[^1]
877
+ *
878
+ * [^1]: Only if you choose WindowsZip
879
+ * @param {string | undefined} [arg0]
880
+ */
952
881
  set exec(arg0) {
953
882
  var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
954
883
  var len0 = WASM_VECTOR_LEN;
955
884
  wasm.__wbg_set_installeroptionswindows_exec(this.__wbg_ptr, ptr0, len0);
956
885
  }
957
886
  /**
958
- *🔬 Planned
959
- *
960
- *
961
- * Args to pass to the custom exe installer[^1]
962
- *
963
- * [^1]: Only if you choose WindowsInstallerExe
964
- * @returns {(string)[] | undefined}
965
- */
887
+ *🔬 Planned
888
+ *
889
+ *
890
+ * Args to pass to the custom exe installer[^1]
891
+ *
892
+ * [^1]: Only if you choose WindowsInstallerExe
893
+ * @returns {(string)[] | undefined}
894
+ */
966
895
  get installerArgs() {
967
- try {
968
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
969
- wasm.__wbg_get_installeroptionswindows_installerArgs(retptr, this.__wbg_ptr);
970
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
971
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
972
- let v1;
973
- if (r0 !== 0) {
974
- v1 = getArrayJsValueFromWasm0(r0, r1).slice();
975
- wasm.__wbindgen_free(r0, r1 * 4, 4);
976
- }
977
- return v1;
978
- } finally {
979
- wasm.__wbindgen_add_to_stack_pointer(16);
896
+ const ret = wasm.__wbg_get_installeroptionswindows_installerArgs(this.__wbg_ptr);
897
+ let v1;
898
+ if (ret[0] !== 0) {
899
+ v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
900
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
980
901
  }
902
+ return v1;
981
903
  }
982
904
  /**
983
- *🔬 Planned
984
- *
985
- *
986
- * Args to pass to the custom exe installer[^1]
987
- *
988
- * [^1]: Only if you choose WindowsInstallerExe
989
- * @param {(string)[] | undefined} [arg0]
990
- */
905
+ *🔬 Planned
906
+ *
907
+ *
908
+ * Args to pass to the custom exe installer[^1]
909
+ *
910
+ * [^1]: Only if you choose WindowsInstallerExe
911
+ * @param {(string)[] | undefined} [arg0]
912
+ */
991
913
  set installerArgs(arg0) {
992
914
  var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
993
915
  var len0 = WASM_VECTOR_LEN;
@@ -998,8 +920,7 @@ export class InstallerOptionsWindows {
998
920
  const PrefsFinalization = (typeof FinalizationRegistry === 'undefined')
999
921
  ? { register: () => {}, unregister: () => {} }
1000
922
  : new FinalizationRegistry(ptr => wasm.__wbg_prefs_free(ptr >>> 0, 1));
1001
- /**
1002
- */
923
+
1003
924
  export class Prefs {
1004
925
 
1005
926
  static __wrap(ptr) {
@@ -1022,70 +943,63 @@ export class Prefs {
1022
943
  wasm.__wbg_prefs_free(ptr, 0);
1023
944
  }
1024
945
  /**
1025
- * @returns {boolean}
1026
- */
946
+ * @returns {boolean}
947
+ */
1027
948
  get launch_app() {
1028
949
  const ret = wasm.__wbg_get_prefs_launch_app(this.__wbg_ptr);
1029
950
  return ret !== 0;
1030
951
  }
1031
952
  /**
1032
- * @param {boolean} arg0
1033
- */
953
+ * @param {boolean} arg0
954
+ */
1034
955
  set launch_app(arg0) {
1035
956
  wasm.__wbg_set_prefs_launch_app(this.__wbg_ptr, arg0);
1036
957
  }
1037
958
  /**
1038
- * @returns {boolean}
1039
- */
959
+ * @returns {boolean}
960
+ */
1040
961
  get install_apps() {
1041
962
  const ret = wasm.__wbg_get_prefs_install_apps(this.__wbg_ptr);
1042
963
  return ret !== 0;
1043
964
  }
1044
965
  /**
1045
- * @param {boolean} arg0
1046
- */
966
+ * @param {boolean} arg0
967
+ */
1047
968
  set install_apps(arg0) {
1048
969
  wasm.__wbg_set_prefs_install_apps(this.__wbg_ptr, arg0);
1049
970
  }
1050
971
  /**
1051
- * @returns {boolean}
1052
- */
972
+ * @returns {boolean}
973
+ */
1053
974
  get auto_update_apps() {
1054
975
  const ret = wasm.__wbg_get_prefs_auto_update_apps(this.__wbg_ptr);
1055
976
  return ret !== 0;
1056
977
  }
1057
978
  /**
1058
- * @param {boolean} arg0
1059
- */
979
+ * @param {boolean} arg0
980
+ */
1060
981
  set auto_update_apps(arg0) {
1061
982
  wasm.__wbg_set_prefs_auto_update_apps(this.__wbg_ptr, arg0);
1062
983
  }
1063
984
  /**
1064
- * @param {string} path
1065
- * @returns {Uint8Array | undefined}
1066
- */
985
+ * @param {string} path
986
+ * @returns {Uint8Array | undefined}
987
+ */
1067
988
  static get(path) {
1068
- try {
1069
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1070
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1071
- const len0 = WASM_VECTOR_LEN;
1072
- wasm.prefs_get(retptr, ptr0, len0);
1073
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1074
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1075
- let v2;
1076
- if (r0 !== 0) {
1077
- v2 = getArrayU8FromWasm0(r0, r1).slice();
1078
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1079
- }
1080
- return v2;
1081
- } finally {
1082
- wasm.__wbindgen_add_to_stack_pointer(16);
989
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
990
+ const len0 = WASM_VECTOR_LEN;
991
+ const ret = wasm.prefs_get(ptr0, len0);
992
+ let v2;
993
+ if (ret[0] !== 0) {
994
+ v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
995
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1083
996
  }
997
+ return v2;
1084
998
  }
1085
999
  /**
1086
- * @param {string} s
1087
- * @returns {Prefs | undefined}
1088
- */
1000
+ * @param {string} s
1001
+ * @returns {Prefs | undefined}
1002
+ */
1089
1003
  static str_to(s) {
1090
1004
  const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1091
1005
  const len0 = WASM_VECTOR_LEN;
@@ -1093,27 +1007,20 @@ export class Prefs {
1093
1007
  return ret === 0 ? undefined : Prefs.__wrap(ret);
1094
1008
  }
1095
1009
  /**
1096
- * @returns {string | undefined}
1097
- */
1010
+ * @returns {string | undefined}
1011
+ */
1098
1012
  convert() {
1099
- try {
1100
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1101
- wasm.prefs_convert(retptr, this.__wbg_ptr);
1102
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1103
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1104
- let v1;
1105
- if (r0 !== 0) {
1106
- v1 = getStringFromWasm0(r0, r1).slice();
1107
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1108
- }
1109
- return v1;
1110
- } finally {
1111
- wasm.__wbindgen_add_to_stack_pointer(16);
1013
+ const ret = wasm.prefs_convert(this.__wbg_ptr);
1014
+ let v1;
1015
+ if (ret[0] !== 0) {
1016
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
1017
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1112
1018
  }
1019
+ return v1;
1113
1020
  }
1114
1021
  /**
1115
- * @returns {Prefs}
1116
- */
1022
+ * @returns {Prefs}
1023
+ */
1117
1024
  static default() {
1118
1025
  const ret = wasm.prefs_default();
1119
1026
  return Prefs.__wrap(ret);
@@ -1138,29 +1045,21 @@ export class ResponseToSend {
1138
1045
  wasm.__wbg_responsetosend_free(ptr, 0);
1139
1046
  }
1140
1047
  /**
1141
- * @param {ResponseToSend} msg
1142
- * @returns {Uint8Array}
1143
- */
1048
+ * @param {ResponseToSend} msg
1049
+ * @returns {Uint8Array}
1050
+ */
1144
1051
  static as_msg(msg) {
1145
- try {
1146
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1147
- wasm.responsetosend_as_msg(retptr, addHeapObject(msg));
1148
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1149
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1150
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1151
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1152
- return v1;
1153
- } finally {
1154
- wasm.__wbindgen_add_to_stack_pointer(16);
1155
- }
1052
+ const ret = wasm.responsetosend_as_msg(msg);
1053
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1054
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1055
+ return v1;
1156
1056
  }
1157
1057
  }
1158
1058
 
1159
1059
  const SearchEntryFinalization = (typeof FinalizationRegistry === 'undefined')
1160
1060
  ? { register: () => {}, unregister: () => {} }
1161
1061
  : new FinalizationRegistry(ptr => wasm.__wbg_searchentry_free(ptr >>> 0, 1));
1162
- /**
1163
- */
1062
+
1164
1063
  export class SearchEntry {
1165
1064
 
1166
1065
  __destroy_into_raw() {
@@ -1175,81 +1074,69 @@ export class SearchEntry {
1175
1074
  wasm.__wbg_searchentry_free(ptr, 0);
1176
1075
  }
1177
1076
  /**
1178
- * @returns {string}
1179
- */
1077
+ * @returns {string}
1078
+ */
1180
1079
  get name() {
1181
1080
  let deferred1_0;
1182
1081
  let deferred1_1;
1183
1082
  try {
1184
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1185
- wasm.__wbg_get_devdata_name(retptr, this.__wbg_ptr);
1186
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1187
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1188
- deferred1_0 = r0;
1189
- deferred1_1 = r1;
1190
- return getStringFromWasm0(r0, r1);
1083
+ const ret = wasm.__wbg_get_searchentry_name(this.__wbg_ptr);
1084
+ deferred1_0 = ret[0];
1085
+ deferred1_1 = ret[1];
1086
+ return getStringFromWasm0(ret[0], ret[1]);
1191
1087
  } finally {
1192
- wasm.__wbindgen_add_to_stack_pointer(16);
1193
1088
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1194
1089
  }
1195
1090
  }
1196
1091
  /**
1197
- * @param {string} arg0
1198
- */
1092
+ * @param {string} arg0
1093
+ */
1199
1094
  set name(arg0) {
1200
1095
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1201
1096
  const len0 = WASM_VECTOR_LEN;
1202
1097
  wasm.__wbg_set_devdata_name(this.__wbg_ptr, ptr0, len0);
1203
1098
  }
1204
1099
  /**
1205
- * @returns {string}
1206
- */
1100
+ * @returns {string}
1101
+ */
1207
1102
  get title() {
1208
1103
  let deferred1_0;
1209
1104
  let deferred1_1;
1210
1105
  try {
1211
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1212
- wasm.__wbg_get_devdata_id(retptr, this.__wbg_ptr);
1213
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1214
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1215
- deferred1_0 = r0;
1216
- deferred1_1 = r1;
1217
- return getStringFromWasm0(r0, r1);
1106
+ const ret = wasm.__wbg_get_searchentry_title(this.__wbg_ptr);
1107
+ deferred1_0 = ret[0];
1108
+ deferred1_1 = ret[1];
1109
+ return getStringFromWasm0(ret[0], ret[1]);
1218
1110
  } finally {
1219
- wasm.__wbindgen_add_to_stack_pointer(16);
1220
1111
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1221
1112
  }
1222
1113
  }
1223
1114
  /**
1224
- * @param {string} arg0
1225
- */
1115
+ * @param {string} arg0
1116
+ */
1226
1117
  set title(arg0) {
1227
1118
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1228
1119
  const len0 = WASM_VECTOR_LEN;
1229
1120
  wasm.__wbg_set_devdata_id(this.__wbg_ptr, ptr0, len0);
1230
1121
  }
1231
1122
  /**
1232
- * @returns {string}
1233
- */
1123
+ * @returns {string}
1124
+ */
1234
1125
  get id() {
1235
1126
  let deferred1_0;
1236
1127
  let deferred1_1;
1237
1128
  try {
1238
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1239
- wasm.__wbg_get_devdata_github(retptr, this.__wbg_ptr);
1240
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1241
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1242
- deferred1_0 = r0;
1243
- deferred1_1 = r1;
1244
- return getStringFromWasm0(r0, r1);
1129
+ const ret = wasm.__wbg_get_searchentry_id(this.__wbg_ptr);
1130
+ deferred1_0 = ret[0];
1131
+ deferred1_1 = ret[1];
1132
+ return getStringFromWasm0(ret[0], ret[1]);
1245
1133
  } finally {
1246
- wasm.__wbindgen_add_to_stack_pointer(16);
1247
1134
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1248
1135
  }
1249
1136
  }
1250
1137
  /**
1251
- * @param {string} arg0
1252
- */
1138
+ * @param {string} arg0
1139
+ */
1253
1140
  set id(arg0) {
1254
1141
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1255
1142
  const len0 = WASM_VECTOR_LEN;
@@ -1260,8 +1147,7 @@ export class SearchEntry {
1260
1147
  const ServerJSONRespFinalization = (typeof FinalizationRegistry === 'undefined')
1261
1148
  ? { register: () => {}, unregister: () => {} }
1262
1149
  : new FinalizationRegistry(ptr => wasm.__wbg_serverjsonresp_free(ptr >>> 0, 1));
1263
- /**
1264
- */
1150
+
1265
1151
  export class ServerJSONResp {
1266
1152
 
1267
1153
  __destroy_into_raw() {
@@ -1276,40 +1162,36 @@ export class ServerJSONResp {
1276
1162
  wasm.__wbg_serverjsonresp_free(ptr, 0);
1277
1163
  }
1278
1164
  /**
1279
- * @returns {bigint}
1280
- */
1165
+ * @returns {bigint}
1166
+ */
1281
1167
  get last_updated() {
1282
1168
  const ret = wasm.__wbg_get_serverjsonresp_last_updated(this.__wbg_ptr);
1283
1169
  return BigInt.asUintN(64, ret);
1284
1170
  }
1285
1171
  /**
1286
- * @param {bigint} arg0
1287
- */
1172
+ * @param {bigint} arg0
1173
+ */
1288
1174
  set last_updated(arg0) {
1289
1175
  wasm.__wbg_set_serverjsonresp_last_updated(this.__wbg_ptr, arg0);
1290
1176
  }
1291
1177
  /**
1292
- * @returns {string}
1293
- */
1178
+ * @returns {string}
1179
+ */
1294
1180
  get config() {
1295
1181
  let deferred1_0;
1296
1182
  let deferred1_1;
1297
1183
  try {
1298
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1299
- wasm.__wbg_get_devdata_id(retptr, this.__wbg_ptr);
1300
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1301
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1302
- deferred1_0 = r0;
1303
- deferred1_1 = r1;
1304
- return getStringFromWasm0(r0, r1);
1184
+ const ret = wasm.__wbg_get_serverjsonresp_config(this.__wbg_ptr);
1185
+ deferred1_0 = ret[0];
1186
+ deferred1_1 = ret[1];
1187
+ return getStringFromWasm0(ret[0], ret[1]);
1305
1188
  } finally {
1306
- wasm.__wbindgen_add_to_stack_pointer(16);
1307
1189
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1308
1190
  }
1309
1191
  }
1310
1192
  /**
1311
- * @param {string} arg0
1312
- */
1193
+ * @param {string} arg0
1194
+ */
1313
1195
  set config(arg0) {
1314
1196
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1315
1197
  const len0 = WASM_VECTOR_LEN;
@@ -1317,22 +1199,13 @@ export class ServerJSONResp {
1317
1199
  }
1318
1200
  }
1319
1201
 
1320
- export function __wbindgen_object_drop_ref(arg0) {
1321
- takeObject(arg0);
1322
- };
1323
-
1324
- export function __wbindgen_object_clone_ref(arg0) {
1325
- const ret = getObject(arg0);
1326
- return addHeapObject(ret);
1327
- };
1328
-
1329
1202
  export function __wbindgen_is_undefined(arg0) {
1330
- const ret = getObject(arg0) === undefined;
1203
+ const ret = arg0 === undefined;
1331
1204
  return ret;
1332
1205
  };
1333
1206
 
1334
1207
  export function __wbindgen_string_get(arg0, arg1) {
1335
- const obj = getObject(arg1);
1208
+ const obj = arg1;
1336
1209
  const ret = typeof(obj) === 'string' ? obj : undefined;
1337
1210
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1338
1211
  var len1 = WASM_VECTOR_LEN;
@@ -1342,20 +1215,31 @@ export function __wbindgen_string_get(arg0, arg1) {
1342
1215
 
1343
1216
  export function __wbindgen_string_new(arg0, arg1) {
1344
1217
  const ret = getStringFromWasm0(arg0, arg1);
1345
- return addHeapObject(ret);
1218
+ return ret;
1346
1219
  };
1347
1220
 
1348
- export function __wbg_parse_52202f117ec9ecfa() { return handleError(function (arg0, arg1) {
1221
+ export function __wbg_parse_51ee5409072379d3() { return handleError(function (arg0, arg1) {
1349
1222
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1350
- return addHeapObject(ret);
1223
+ return ret;
1351
1224
  }, arguments) };
1352
1225
 
1353
- export function __wbg_stringify_bbf45426c92a6bf5() { return handleError(function (arg0) {
1354
- const ret = JSON.stringify(getObject(arg0));
1355
- return addHeapObject(ret);
1226
+ export function __wbg_stringify_eead5648c09faaf8() { return handleError(function (arg0) {
1227
+ const ret = JSON.stringify(arg0);
1228
+ return ret;
1356
1229
  }, arguments) };
1357
1230
 
1358
1231
  export function __wbindgen_throw(arg0, arg1) {
1359
1232
  throw new Error(getStringFromWasm0(arg0, arg1));
1360
1233
  };
1361
1234
 
1235
+ export function __wbindgen_init_externref_table() {
1236
+ const table = wasm.__wbindgen_export_2;
1237
+ const offset = table.grow(4);
1238
+ table.set(0, undefined);
1239
+ table.set(offset + 0, undefined);
1240
+ table.set(offset + 1, null);
1241
+ table.set(offset + 2, true);
1242
+ table.set(offset + 3, false);
1243
+ ;
1244
+ };
1245
+