@flipt-io/flipt-client-js 0.5.0 → 0.5.1

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.
@@ -114,7 +114,7 @@ if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
114
114
  function __wbg_get_imports() {
115
115
  const import0 = {
116
116
  __proto__: null,
117
- __wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
117
+ __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
118
118
  const ret = Error(getStringFromWasm0(arg0, arg1));
119
119
  return ret;
120
120
  },
@@ -125,50 +125,50 @@ function __wbg_get_imports() {
125
125
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
126
126
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
127
127
  },
128
- __wbg___wbindgen_boolean_get_edaed31a367ce1bd: function(arg0) {
128
+ __wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
129
129
  const v = arg0;
130
130
  const ret = typeof(v) === 'boolean' ? v : undefined;
131
131
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
132
132
  },
133
- __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
133
+ __wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
134
134
  const ret = debugString(arg1);
135
135
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
136
136
  const len1 = WASM_VECTOR_LEN;
137
137
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
138
138
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
139
139
  },
140
- __wbg___wbindgen_in_4990f46af709e33c: function(arg0, arg1) {
140
+ __wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
141
141
  const ret = arg0 in arg1;
142
142
  return ret;
143
143
  },
144
- __wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
144
+ __wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
145
145
  const ret = typeof(arg0) === 'function';
146
146
  return ret;
147
147
  },
148
- __wbg___wbindgen_is_object_0beba4a1980d3eea: function(arg0) {
148
+ __wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
149
149
  const val = arg0;
150
150
  const ret = typeof(val) === 'object' && val !== null;
151
151
  return ret;
152
152
  },
153
- __wbg___wbindgen_is_string_1fca8072260dd261: function(arg0) {
153
+ __wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
154
154
  const ret = typeof(arg0) === 'string';
155
155
  return ret;
156
156
  },
157
- __wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
157
+ __wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
158
158
  const ret = arg0 === undefined;
159
159
  return ret;
160
160
  },
161
- __wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582: function(arg0, arg1) {
161
+ __wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
162
162
  const ret = arg0 == arg1;
163
163
  return ret;
164
164
  },
165
- __wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
165
+ __wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
166
166
  const obj = arg1;
167
167
  const ret = typeof(obj) === 'number' ? obj : undefined;
168
168
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
169
169
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
170
170
  },
171
- __wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
171
+ __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
172
172
  const obj = arg1;
173
173
  const ret = typeof(obj) === 'string' ? obj : undefined;
174
174
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -176,22 +176,22 @@ function __wbg_get_imports() {
176
176
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
177
177
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
178
178
  },
179
- __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
179
+ __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
180
180
  throw new Error(getStringFromWasm0(arg0, arg1));
181
181
  },
182
- __wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
182
+ __wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
183
183
  const ret = arg0.call(arg1);
184
184
  return ret;
185
185
  }, arguments); },
186
- __wbg_done_b62d4a7d2286852a: function(arg0) {
186
+ __wbg_done_669171204c3dcae2: function(arg0) {
187
187
  const ret = arg0.done;
188
188
  return ret;
189
189
  },
190
- __wbg_entries_c261c3fa1f281256: function(arg0) {
190
+ __wbg_entries_7774d489e1da5f4f: function(arg0) {
191
191
  const ret = Object.entries(arg0);
192
192
  return ret;
193
193
  },
194
- __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
194
+ __wbg_error_757e9472f8410341: function(arg0, arg1) {
195
195
  let deferred0_0;
196
196
  let deferred0_1;
197
197
  try {
@@ -202,19 +202,19 @@ function __wbg_get_imports() {
202
202
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
203
203
  }
204
204
  },
205
- __wbg_getTime_7a770f8a2ec8d634: function(arg0) {
205
+ __wbg_getTime_63fb0332e6c4ec17: function(arg0) {
206
206
  const ret = arg0.getTime();
207
207
  return ret;
208
208
  },
209
- __wbg_get_197a3fe98f169e38: function(arg0, arg1) {
209
+ __wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
210
210
  const ret = arg0[arg1 >>> 0];
211
211
  return ret;
212
212
  },
213
- __wbg_get_9a29be2cb383ed9a: function() { return handleError(function (arg0, arg1) {
213
+ __wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
214
214
  const ret = Reflect.get(arg0, arg1);
215
215
  return ret;
216
216
  }, arguments); },
217
- __wbg_get_unchecked_54a4374c38e08460: function(arg0, arg1) {
217
+ __wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
218
218
  const ret = arg0[arg1 >>> 0];
219
219
  return ret;
220
220
  },
@@ -222,7 +222,7 @@ function __wbg_get_imports() {
222
222
  const ret = arg0[arg1];
223
223
  return ret;
224
224
  },
225
- __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
225
+ __wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
226
226
  let result;
227
227
  try {
228
228
  result = arg0 instanceof ArrayBuffer;
@@ -232,7 +232,7 @@ function __wbg_get_imports() {
232
232
  const ret = result;
233
233
  return ret;
234
234
  },
235
- __wbg_instanceof_Uint8Array_f080092dc70f5d58: function(arg0) {
235
+ __wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
236
236
  let result;
237
237
  try {
238
238
  result = arg0 instanceof Uint8Array;
@@ -242,47 +242,47 @@ function __wbg_get_imports() {
242
242
  const ret = result;
243
243
  return ret;
244
244
  },
245
- __wbg_isArray_145a34fd0a38d37b: function(arg0) {
245
+ __wbg_isArray_6339f732981044bf: function(arg0) {
246
246
  const ret = Array.isArray(arg0);
247
247
  return ret;
248
248
  },
249
- __wbg_iterator_cc47ba25a2be735a: function() {
249
+ __wbg_iterator_5cebbb86e33c6dd6: function() {
250
250
  const ret = Symbol.iterator;
251
251
  return ret;
252
252
  },
253
- __wbg_length_589238bdcf171f0e: function(arg0) {
253
+ __wbg_length_36bd29c6848c2144: function(arg0) {
254
254
  const ret = arg0.length;
255
255
  return ret;
256
256
  },
257
- __wbg_length_c6054974c0a6cdb9: function(arg0) {
257
+ __wbg_length_ecfa2c63d3d0d82c: function(arg0) {
258
258
  const ret = arg0.length;
259
259
  return ret;
260
260
  },
261
- __wbg_new_0_1b32bedde98fef4b: function() {
261
+ __wbg_new_0_f117d868b403dc07: function() {
262
262
  const ret = new Date();
263
263
  return ret;
264
264
  },
265
- __wbg_new_227d7c05414eb861: function() {
266
- const ret = new Error();
265
+ __wbg_new_116be93542d39019: function() {
266
+ const ret = new Array();
267
267
  return ret;
268
268
  },
269
- __wbg_new_2e117a478906f062: function() {
270
- const ret = new Object();
269
+ __wbg_new_227d7c05414eb861: function() {
270
+ const ret = new Error();
271
271
  return ret;
272
272
  },
273
- __wbg_new_36e147a8ced3c6e0: function() {
274
- const ret = new Array();
273
+ __wbg_new_77cc4f4f472aeb81: function(arg0) {
274
+ const ret = new Uint8Array(arg0);
275
275
  return ret;
276
276
  },
277
- __wbg_new_81880fb5002cb255: function(arg0) {
278
- const ret = new Uint8Array(arg0);
277
+ __wbg_new_ebe3e0f6837f0879: function() {
278
+ const ret = new Object();
279
279
  return ret;
280
280
  },
281
- __wbg_next_0c4066e251d2eff9: function() { return handleError(function (arg0) {
281
+ __wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
282
282
  const ret = arg0.next();
283
283
  return ret;
284
284
  }, arguments); },
285
- __wbg_next_402fa10b59ab20c3: function(arg0) {
285
+ __wbg_next_8f26b64fa5e9f64b: function(arg0) {
286
286
  const ret = arg0.next;
287
287
  return ret;
288
288
  },
@@ -294,13 +294,13 @@ function __wbg_get_imports() {
294
294
  const ret = arg0.performance;
295
295
  return ret;
296
296
  },
297
- __wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
297
+ __wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
298
298
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
299
299
  },
300
300
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
301
301
  arg0[arg1] = arg2;
302
302
  },
303
- __wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
303
+ __wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
304
304
  arg0[arg1 >>> 0] = arg2;
305
305
  },
306
306
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
@@ -310,23 +310,23 @@ function __wbg_get_imports() {
310
310
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
311
311
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
312
312
  },
313
- __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
313
+ __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
314
314
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
315
315
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
316
316
  },
317
- __wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
317
+ __wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
318
318
  const ret = typeof global === 'undefined' ? null : global;
319
319
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
320
320
  },
321
- __wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
321
+ __wbg_static_accessor_SELF_42d4fae05e59267a: function() {
322
322
  const ret = typeof self === 'undefined' ? null : self;
323
323
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
324
324
  },
325
- __wbg_static_accessor_WINDOW_168f178805d978fe: function() {
325
+ __wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
326
326
  const ret = typeof window === 'undefined' ? null : window;
327
327
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
328
328
  },
329
- __wbg_value_49f783bb59765962: function(arg0) {
329
+ __wbg_value_1e2369fab29b420e: function(arg0) {
330
330
  const ret = arg0.value;
331
331
  return ret;
332
332
  },
@@ -552,11 +552,15 @@ function __wbg_finalize_init(instance, module) {
552
552
 
553
553
  async function __wbg_load(module, imports) {
554
554
  if (typeof Response === 'function' && module instanceof Response) {
555
+ if (!module.ok) {
556
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
557
+ }
558
+
555
559
  if (typeof WebAssembly.instantiateStreaming === 'function') {
556
560
  try {
557
561
  return await WebAssembly.instantiateStreaming(module, imports);
558
562
  } catch (e) {
559
- const validResponse = module.ok && expectedResponseType(module.type);
563
+ const validResponse = expectedResponseType(module.type);
560
564
 
561
565
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
562
566
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
@@ -111,7 +111,7 @@ if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
111
111
  function __wbg_get_imports() {
112
112
  const import0 = {
113
113
  __proto__: null,
114
- __wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
114
+ __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
115
115
  const ret = Error(getStringFromWasm0(arg0, arg1));
116
116
  return ret;
117
117
  },
@@ -122,50 +122,50 @@ function __wbg_get_imports() {
122
122
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
123
123
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
124
124
  },
125
- __wbg___wbindgen_boolean_get_edaed31a367ce1bd: function(arg0) {
125
+ __wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
126
126
  const v = arg0;
127
127
  const ret = typeof(v) === 'boolean' ? v : undefined;
128
128
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
129
129
  },
130
- __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
130
+ __wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
131
131
  const ret = debugString(arg1);
132
132
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
133
133
  const len1 = WASM_VECTOR_LEN;
134
134
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
135
135
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
136
136
  },
137
- __wbg___wbindgen_in_4990f46af709e33c: function(arg0, arg1) {
137
+ __wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
138
138
  const ret = arg0 in arg1;
139
139
  return ret;
140
140
  },
141
- __wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
141
+ __wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
142
142
  const ret = typeof(arg0) === 'function';
143
143
  return ret;
144
144
  },
145
- __wbg___wbindgen_is_object_0beba4a1980d3eea: function(arg0) {
145
+ __wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
146
146
  const val = arg0;
147
147
  const ret = typeof(val) === 'object' && val !== null;
148
148
  return ret;
149
149
  },
150
- __wbg___wbindgen_is_string_1fca8072260dd261: function(arg0) {
150
+ __wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
151
151
  const ret = typeof(arg0) === 'string';
152
152
  return ret;
153
153
  },
154
- __wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
154
+ __wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
155
155
  const ret = arg0 === undefined;
156
156
  return ret;
157
157
  },
158
- __wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582: function(arg0, arg1) {
158
+ __wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
159
159
  const ret = arg0 == arg1;
160
160
  return ret;
161
161
  },
162
- __wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
162
+ __wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
163
163
  const obj = arg1;
164
164
  const ret = typeof(obj) === 'number' ? obj : undefined;
165
165
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
166
166
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
167
167
  },
168
- __wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
168
+ __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
169
169
  const obj = arg1;
170
170
  const ret = typeof(obj) === 'string' ? obj : undefined;
171
171
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -173,22 +173,22 @@ function __wbg_get_imports() {
173
173
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
174
174
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
175
175
  },
176
- __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
176
+ __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
177
177
  throw new Error(getStringFromWasm0(arg0, arg1));
178
178
  },
179
- __wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
179
+ __wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
180
180
  const ret = arg0.call(arg1);
181
181
  return ret;
182
182
  }, arguments); },
183
- __wbg_done_b62d4a7d2286852a: function(arg0) {
183
+ __wbg_done_669171204c3dcae2: function(arg0) {
184
184
  const ret = arg0.done;
185
185
  return ret;
186
186
  },
187
- __wbg_entries_c261c3fa1f281256: function(arg0) {
187
+ __wbg_entries_7774d489e1da5f4f: function(arg0) {
188
188
  const ret = Object.entries(arg0);
189
189
  return ret;
190
190
  },
191
- __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
191
+ __wbg_error_757e9472f8410341: function(arg0, arg1) {
192
192
  let deferred0_0;
193
193
  let deferred0_1;
194
194
  try {
@@ -199,19 +199,19 @@ function __wbg_get_imports() {
199
199
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
200
200
  }
201
201
  },
202
- __wbg_getTime_7a770f8a2ec8d634: function(arg0) {
202
+ __wbg_getTime_63fb0332e6c4ec17: function(arg0) {
203
203
  const ret = arg0.getTime();
204
204
  return ret;
205
205
  },
206
- __wbg_get_197a3fe98f169e38: function(arg0, arg1) {
206
+ __wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
207
207
  const ret = arg0[arg1 >>> 0];
208
208
  return ret;
209
209
  },
210
- __wbg_get_9a29be2cb383ed9a: function() { return handleError(function (arg0, arg1) {
210
+ __wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
211
211
  const ret = Reflect.get(arg0, arg1);
212
212
  return ret;
213
213
  }, arguments); },
214
- __wbg_get_unchecked_54a4374c38e08460: function(arg0, arg1) {
214
+ __wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
215
215
  const ret = arg0[arg1 >>> 0];
216
216
  return ret;
217
217
  },
@@ -219,7 +219,7 @@ function __wbg_get_imports() {
219
219
  const ret = arg0[arg1];
220
220
  return ret;
221
221
  },
222
- __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
222
+ __wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
223
223
  let result;
224
224
  try {
225
225
  result = arg0 instanceof ArrayBuffer;
@@ -229,7 +229,7 @@ function __wbg_get_imports() {
229
229
  const ret = result;
230
230
  return ret;
231
231
  },
232
- __wbg_instanceof_Uint8Array_f080092dc70f5d58: function(arg0) {
232
+ __wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
233
233
  let result;
234
234
  try {
235
235
  result = arg0 instanceof Uint8Array;
@@ -239,47 +239,47 @@ function __wbg_get_imports() {
239
239
  const ret = result;
240
240
  return ret;
241
241
  },
242
- __wbg_isArray_145a34fd0a38d37b: function(arg0) {
242
+ __wbg_isArray_6339f732981044bf: function(arg0) {
243
243
  const ret = Array.isArray(arg0);
244
244
  return ret;
245
245
  },
246
- __wbg_iterator_cc47ba25a2be735a: function() {
246
+ __wbg_iterator_5cebbb86e33c6dd6: function() {
247
247
  const ret = Symbol.iterator;
248
248
  return ret;
249
249
  },
250
- __wbg_length_589238bdcf171f0e: function(arg0) {
250
+ __wbg_length_36bd29c6848c2144: function(arg0) {
251
251
  const ret = arg0.length;
252
252
  return ret;
253
253
  },
254
- __wbg_length_c6054974c0a6cdb9: function(arg0) {
254
+ __wbg_length_ecfa2c63d3d0d82c: function(arg0) {
255
255
  const ret = arg0.length;
256
256
  return ret;
257
257
  },
258
- __wbg_new_0_1b32bedde98fef4b: function() {
258
+ __wbg_new_0_f117d868b403dc07: function() {
259
259
  const ret = new Date();
260
260
  return ret;
261
261
  },
262
- __wbg_new_227d7c05414eb861: function() {
263
- const ret = new Error();
262
+ __wbg_new_116be93542d39019: function() {
263
+ const ret = new Array();
264
264
  return ret;
265
265
  },
266
- __wbg_new_2e117a478906f062: function() {
267
- const ret = new Object();
266
+ __wbg_new_227d7c05414eb861: function() {
267
+ const ret = new Error();
268
268
  return ret;
269
269
  },
270
- __wbg_new_36e147a8ced3c6e0: function() {
271
- const ret = new Array();
270
+ __wbg_new_77cc4f4f472aeb81: function(arg0) {
271
+ const ret = new Uint8Array(arg0);
272
272
  return ret;
273
273
  },
274
- __wbg_new_81880fb5002cb255: function(arg0) {
275
- const ret = new Uint8Array(arg0);
274
+ __wbg_new_ebe3e0f6837f0879: function() {
275
+ const ret = new Object();
276
276
  return ret;
277
277
  },
278
- __wbg_next_0c4066e251d2eff9: function() { return handleError(function (arg0) {
278
+ __wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
279
279
  const ret = arg0.next();
280
280
  return ret;
281
281
  }, arguments); },
282
- __wbg_next_402fa10b59ab20c3: function(arg0) {
282
+ __wbg_next_8f26b64fa5e9f64b: function(arg0) {
283
283
  const ret = arg0.next;
284
284
  return ret;
285
285
  },
@@ -291,13 +291,13 @@ function __wbg_get_imports() {
291
291
  const ret = arg0.performance;
292
292
  return ret;
293
293
  },
294
- __wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
294
+ __wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
295
295
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
296
296
  },
297
297
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
298
298
  arg0[arg1] = arg2;
299
299
  },
300
- __wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
300
+ __wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
301
301
  arg0[arg1 >>> 0] = arg2;
302
302
  },
303
303
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
@@ -307,23 +307,23 @@ function __wbg_get_imports() {
307
307
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
308
308
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
309
309
  },
310
- __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
310
+ __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
311
311
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
312
312
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
313
313
  },
314
- __wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
314
+ __wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
315
315
  const ret = typeof global === 'undefined' ? null : global;
316
316
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
317
317
  },
318
- __wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
318
+ __wbg_static_accessor_SELF_42d4fae05e59267a: function() {
319
319
  const ret = typeof self === 'undefined' ? null : self;
320
320
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
321
321
  },
322
- __wbg_static_accessor_WINDOW_168f178805d978fe: function() {
322
+ __wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
323
323
  const ret = typeof window === 'undefined' ? null : window;
324
324
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
325
325
  },
326
- __wbg_value_49f783bb59765962: function(arg0) {
326
+ __wbg_value_1e2369fab29b420e: function(arg0) {
327
327
  const ret = arg0.value;
328
328
  return ret;
329
329
  },
@@ -549,11 +549,15 @@ function __wbg_finalize_init(instance, module) {
549
549
 
550
550
  async function __wbg_load(module, imports) {
551
551
  if (typeof Response === 'function' && module instanceof Response) {
552
+ if (!module.ok) {
553
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
554
+ }
555
+
552
556
  if (typeof WebAssembly.instantiateStreaming === 'function') {
553
557
  try {
554
558
  return await WebAssembly.instantiateStreaming(module, imports);
555
559
  } catch (e) {
556
- const validResponse = module.ok && expectedResponseType(module.type);
560
+ const validResponse = expectedResponseType(module.type);
557
561
 
558
562
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
559
563
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipt-io/flipt-client-js",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Flipt Client Evaluation SDK for Web and Node.js",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.cjs",
@@ -91,7 +91,7 @@
91
91
  "@rollup/plugin-typescript": "^12.1.0",
92
92
  "@rollup/plugin-wasm": "^6.2.2",
93
93
  "@types/jest": "^30.0.0",
94
- "@types/node": "^25.0.2",
94
+ "@types/node": "^26.0.0",
95
95
  "@types/node-fetch": "^2.6.11",
96
96
  "@typescript-eslint/eslint-plugin": "^8.33.1",
97
97
  "@typescript-eslint/parser": "^8.33.1",