@flipt-io/flipt-client-js 0.3.0 → 0.4.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.
@@ -96,26 +96,6 @@ function getDataViewMemory0() {
96
96
  return cachedDataViewMemory0;
97
97
  }
98
98
 
99
- function addToExternrefTable0(obj) {
100
- const idx = wasm.__externref_table_alloc();
101
- wasm.__wbindgen_export_4.set(idx, obj);
102
- return idx;
103
- }
104
-
105
- function handleError(f, args) {
106
- try {
107
- return f.apply(this, args);
108
- } catch (e) {
109
- const idx = addToExternrefTable0(e);
110
- wasm.__wbindgen_exn_store(idx);
111
- }
112
- }
113
-
114
- function getArrayU8FromWasm0(ptr, len) {
115
- ptr = ptr >>> 0;
116
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
117
- }
118
-
119
99
  function isLikeNone(x) {
120
100
  return x === undefined || x === null;
121
101
  }
@@ -185,8 +165,28 @@ function debugString(val) {
185
165
  return className;
186
166
  }
187
167
 
168
+ function addToExternrefTable0(obj) {
169
+ const idx = wasm.__externref_table_alloc();
170
+ wasm.__wbindgen_externrefs.set(idx, obj);
171
+ return idx;
172
+ }
173
+
174
+ function handleError(f, args) {
175
+ try {
176
+ return f.apply(this, args);
177
+ } catch (e) {
178
+ const idx = addToExternrefTable0(e);
179
+ wasm.__wbindgen_exn_store(idx);
180
+ }
181
+ }
182
+
183
+ function getArrayU8FromWasm0(ptr, len) {
184
+ ptr = ptr >>> 0;
185
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
186
+ }
187
+
188
188
  function takeFromExternrefTable0(idx) {
189
- const value = wasm.__wbindgen_export_4.get(idx);
189
+ const value = wasm.__wbindgen_externrefs.get(idx);
190
190
  wasm.__externref_table_dealloc(idx);
191
191
  return value;
192
192
  }
@@ -312,7 +312,7 @@ async function __wbg_load(module, imports) {
312
312
  function __wbg_get_imports() {
313
313
  const imports = {};
314
314
  imports.wbg = {};
315
- imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
315
+ imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
316
316
  const ret = Error(getStringFromWasm0(arg0, arg1));
317
317
  return ret;
318
318
  };
@@ -323,15 +323,69 @@ function __wbg_get_imports() {
323
323
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
324
324
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
325
325
  };
326
- imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
326
+ imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
327
+ const v = arg0;
328
+ const ret = typeof(v) === 'boolean' ? v : undefined;
329
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
330
+ };
331
+ imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
332
+ const ret = debugString(arg1);
333
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
+ const len1 = WASM_VECTOR_LEN;
335
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
336
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
337
+ };
338
+ imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
339
+ const ret = arg0 in arg1;
340
+ return ret;
341
+ };
342
+ imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
343
+ const ret = typeof(arg0) === 'function';
344
+ return ret;
345
+ };
346
+ imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
347
+ const val = arg0;
348
+ const ret = typeof(val) === 'object' && val !== null;
349
+ return ret;
350
+ };
351
+ imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
352
+ const ret = typeof(arg0) === 'string';
353
+ return ret;
354
+ };
355
+ imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
356
+ const ret = arg0 === undefined;
357
+ return ret;
358
+ };
359
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
360
+ const ret = arg0 == arg1;
361
+ return ret;
362
+ };
363
+ imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
364
+ const obj = arg1;
365
+ const ret = typeof(obj) === 'number' ? obj : undefined;
366
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
367
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
368
+ };
369
+ imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
370
+ const obj = arg1;
371
+ const ret = typeof(obj) === 'string' ? obj : undefined;
372
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
373
+ var len1 = WASM_VECTOR_LEN;
374
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
375
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
376
+ };
377
+ imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
378
+ throw new Error(getStringFromWasm0(arg0, arg1));
379
+ };
380
+ imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
327
381
  const ret = arg0.call(arg1);
328
382
  return ret;
329
383
  }, arguments) };
330
- imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
384
+ imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
331
385
  const ret = arg0.done;
332
386
  return ret;
333
387
  };
334
- imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
388
+ imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
335
389
  const ret = Object.entries(arg0);
336
390
  return ret;
337
391
  };
@@ -346,23 +400,23 @@ function __wbg_get_imports() {
346
400
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
347
401
  }
348
402
  };
349
- imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
403
+ imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
350
404
  const ret = arg0.getTime();
351
405
  return ret;
352
406
  };
353
- imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
407
+ imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
354
408
  const ret = arg0[arg1 >>> 0];
355
409
  return ret;
356
410
  };
357
- imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
411
+ imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
358
412
  const ret = Reflect.get(arg0, arg1);
359
413
  return ret;
360
414
  }, arguments) };
361
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
415
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
362
416
  const ret = arg0[arg1];
363
417
  return ret;
364
418
  };
365
- imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
419
+ imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
366
420
  let result;
367
421
  try {
368
422
  result = arg0 instanceof ArrayBuffer;
@@ -372,7 +426,7 @@ function __wbg_get_imports() {
372
426
  const ret = result;
373
427
  return ret;
374
428
  };
375
- imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
429
+ imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
376
430
  let result;
377
431
  try {
378
432
  result = arg0 instanceof Uint8Array;
@@ -382,35 +436,31 @@ function __wbg_get_imports() {
382
436
  const ret = result;
383
437
  return ret;
384
438
  };
385
- imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) {
439
+ imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
386
440
  const ret = Array.isArray(arg0);
387
441
  return ret;
388
442
  };
389
- imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
443
+ imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
390
444
  const ret = Symbol.iterator;
391
445
  return ret;
392
446
  };
393
- imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
447
+ imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
394
448
  const ret = arg0.length;
395
449
  return ret;
396
450
  };
397
- imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
451
+ imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
398
452
  const ret = arg0.length;
399
453
  return ret;
400
454
  };
401
- imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
455
+ imports.wbg.__wbg_new_0_f9740686d739025c = function() {
402
456
  const ret = new Date();
403
457
  return ret;
404
458
  };
405
- imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
459
+ imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
406
460
  const ret = new Object();
407
461
  return ret;
408
462
  };
409
- imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
410
- const ret = new Array();
411
- return ret;
412
- };
413
- imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
463
+ imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
414
464
  const ret = new Uint8Array(arg0);
415
465
  return ret;
416
466
  };
@@ -418,18 +468,22 @@ function __wbg_get_imports() {
418
468
  const ret = new Error();
419
469
  return ret;
420
470
  };
421
- imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
422
- const ret = new Function(getStringFromWasm0(arg0, arg1));
471
+ imports.wbg.__wbg_new_e17d9f43105b08be = function() {
472
+ const ret = new Array();
423
473
  return ret;
424
474
  };
425
- imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
426
- const ret = arg0.next;
475
+ imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
476
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
427
477
  return ret;
428
478
  };
429
- imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
479
+ imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
430
480
  const ret = arg0.next();
431
481
  return ret;
432
482
  }, arguments) };
483
+ imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
484
+ const ret = arg0.next;
485
+ return ret;
486
+ };
433
487
  imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
434
488
  const ret = arg0.now();
435
489
  return ret;
@@ -438,13 +492,13 @@ function __wbg_get_imports() {
438
492
  const ret = arg0.performance;
439
493
  return ret;
440
494
  };
441
- imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
495
+ imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
442
496
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
443
497
  };
444
498
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
445
499
  arg0[arg1] = arg2;
446
500
  };
447
- imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
501
+ imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
448
502
  arg0[arg1 >>> 0] = arg2;
449
503
  };
450
504
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
@@ -454,80 +508,26 @@ function __wbg_get_imports() {
454
508
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
455
509
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
456
510
  };
457
- imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
511
+ imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
458
512
  const ret = typeof global === 'undefined' ? null : global;
459
513
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
460
514
  };
461
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
515
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
462
516
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
463
517
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
464
518
  };
465
- imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
519
+ imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
466
520
  const ret = typeof self === 'undefined' ? null : self;
467
521
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
468
522
  };
469
- imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
523
+ imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
470
524
  const ret = typeof window === 'undefined' ? null : window;
471
525
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
472
526
  };
473
- imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
527
+ imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
474
528
  const ret = arg0.value;
475
529
  return ret;
476
530
  };
477
- imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
478
- const v = arg0;
479
- const ret = typeof(v) === 'boolean' ? v : undefined;
480
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
481
- };
482
- imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
483
- const ret = debugString(arg1);
484
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
485
- const len1 = WASM_VECTOR_LEN;
486
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
487
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
488
- };
489
- imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
490
- const ret = arg0 in arg1;
491
- return ret;
492
- };
493
- imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
494
- const ret = typeof(arg0) === 'function';
495
- return ret;
496
- };
497
- imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
498
- const val = arg0;
499
- const ret = typeof(val) === 'object' && val !== null;
500
- return ret;
501
- };
502
- imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
503
- const ret = typeof(arg0) === 'string';
504
- return ret;
505
- };
506
- imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
507
- const ret = arg0 === undefined;
508
- return ret;
509
- };
510
- imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
511
- const ret = arg0 == arg1;
512
- return ret;
513
- };
514
- imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
515
- const obj = arg1;
516
- const ret = typeof(obj) === 'number' ? obj : undefined;
517
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
518
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
519
- };
520
- imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
521
- const obj = arg1;
522
- const ret = typeof(obj) === 'string' ? obj : undefined;
523
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
524
- var len1 = WASM_VECTOR_LEN;
525
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
526
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
527
- };
528
- imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
529
- throw new Error(getStringFromWasm0(arg0, arg1));
530
- };
531
531
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
532
532
  // Cast intrinsic for `Ref(String) -> Externref`.
533
533
  const ret = getStringFromWasm0(arg0, arg1);
@@ -539,7 +539,7 @@ function __wbg_get_imports() {
539
539
  return ret;
540
540
  };
541
541
  imports.wbg.__wbindgen_init_externref_table = function() {
542
- const table = wasm.__wbindgen_export_4;
542
+ const table = wasm.__wbindgen_externrefs;
543
543
  const offset = table.grow(4);
544
544
  table.set(0, undefined);
545
545
  table.set(offset + 0, undefined);