gluesql 0.15.1 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ npm install gluesql
30
30
 
31
31
  #### JavaScript modules
32
32
  ```javascript
33
- import { gluesql } from 'https://cdn.jsdelivr.net/npm/gluesql@0.15.0/gluesql.js';
33
+ import { gluesql } from 'https://cdn.jsdelivr.net/npm/gluesql/gluesql.js';
34
34
  ```
35
35
 
36
36
  ## Usage
@@ -1,81 +1,40 @@
1
+
1
2
  let imports = {};
2
3
  imports['__wbindgen_placeholder__'] = module.exports;
3
4
  let wasm;
4
5
  const { TextDecoder, TextEncoder } = require(`util`);
5
6
 
7
+ function addToExternrefTable0(obj) {
8
+ const idx = wasm.__externref_table_alloc();
9
+ wasm.__wbindgen_export_2.set(idx, obj);
10
+ return idx;
11
+ }
12
+
13
+ function handleError(f, args) {
14
+ try {
15
+ return f.apply(this, args);
16
+ } catch (e) {
17
+ const idx = addToExternrefTable0(e);
18
+ wasm.__wbindgen_exn_store(idx);
19
+ }
20
+ }
21
+
6
22
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
7
23
 
8
24
  cachedTextDecoder.decode();
9
25
 
10
- let cachedUint8Memory0 = null;
26
+ let cachedUint8ArrayMemory0 = null;
11
27
 
12
- function getUint8Memory0() {
13
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
14
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
28
+ function getUint8ArrayMemory0() {
29
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
30
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
15
31
  }
16
- return cachedUint8Memory0;
32
+ return cachedUint8ArrayMemory0;
17
33
  }
18
34
 
19
35
  function getStringFromWasm0(ptr, len) {
20
36
  ptr = ptr >>> 0;
21
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
22
- }
23
-
24
- const heap = new Array(128).fill(undefined);
25
-
26
- heap.push(undefined, null, true, false);
27
-
28
- let heap_next = heap.length;
29
-
30
- function addHeapObject(obj) {
31
- if (heap_next === heap.length) heap.push(heap.length + 1);
32
- const idx = heap_next;
33
- heap_next = heap[idx];
34
-
35
- heap[idx] = obj;
36
- return idx;
37
- }
38
-
39
- function getObject(idx) { return heap[idx]; }
40
-
41
- function dropObject(idx) {
42
- if (idx < 132) return;
43
- heap[idx] = heap_next;
44
- heap_next = idx;
45
- }
46
-
47
- function takeObject(idx) {
48
- const ret = getObject(idx);
49
- dropObject(idx);
50
- return ret;
51
- }
52
-
53
- function makeMutClosure(arg0, arg1, dtor, f) {
54
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
55
- const real = (...args) => {
56
- // First up with a closure we increment the internal reference
57
- // count. This ensures that the Rust closure environment won't
58
- // be deallocated while we're invoking it.
59
- state.cnt++;
60
- const a = state.a;
61
- state.a = 0;
62
- try {
63
- return f(a, state.b, ...args);
64
- } finally {
65
- if (--state.cnt === 0) {
66
- wasm.__wbindgen_export_0.get(state.dtor)(a, state.b);
67
-
68
- } else {
69
- state.a = a;
70
- }
71
- }
72
- };
73
- real.original = state;
74
-
75
- return real;
76
- }
77
- function __wbg_adapter_22(arg0, arg1, arg2) {
78
- wasm.__wbindgen_export_1(arg0, arg1, addHeapObject(arg2));
37
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
79
38
  }
80
39
 
81
40
  let WASM_VECTOR_LEN = 0;
@@ -100,7 +59,7 @@ function passStringToWasm0(arg, malloc, realloc) {
100
59
  if (realloc === undefined) {
101
60
  const buf = cachedTextEncoder.encode(arg);
102
61
  const ptr = malloc(buf.length, 1) >>> 0;
103
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
62
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
104
63
  WASM_VECTOR_LEN = buf.length;
105
64
  return ptr;
106
65
  }
@@ -108,7 +67,7 @@ function passStringToWasm0(arg, malloc, realloc) {
108
67
  let len = arg.length;
109
68
  let ptr = malloc(len, 1) >>> 0;
110
69
 
111
- const mem = getUint8Memory0();
70
+ const mem = getUint8ArrayMemory0();
112
71
 
113
72
  let offset = 0;
114
73
 
@@ -123,105 +82,129 @@ function passStringToWasm0(arg, malloc, realloc) {
123
82
  arg = arg.slice(offset);
124
83
  }
125
84
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
126
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
85
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
127
86
  const ret = encodeString(arg, view);
128
87
 
129
88
  offset += ret.written;
89
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
130
90
  }
131
91
 
132
92
  WASM_VECTOR_LEN = offset;
133
93
  return ptr;
134
94
  }
135
95
 
136
- let cachedInt32Memory0 = null;
96
+ let cachedDataViewMemory0 = null;
137
97
 
138
- function getInt32Memory0() {
139
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
140
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
98
+ function getDataViewMemory0() {
99
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
100
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
141
101
  }
142
- return cachedInt32Memory0;
102
+ return cachedDataViewMemory0;
143
103
  }
144
104
 
145
- function handleError(f, args) {
146
- try {
147
- return f.apply(this, args);
148
- } catch (e) {
149
- wasm.__wbindgen_export_5(addHeapObject(e));
150
- }
105
+ function isLikeNone(x) {
106
+ return x === undefined || x === null;
107
+ }
108
+
109
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
110
+ ? { register: () => {}, unregister: () => {} }
111
+ : new FinalizationRegistry(state => {
112
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
113
+ });
114
+
115
+ function makeMutClosure(arg0, arg1, dtor, f) {
116
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
117
+ const real = (...args) => {
118
+ // First up with a closure we increment the internal reference
119
+ // count. This ensures that the Rust closure environment won't
120
+ // be deallocated while we're invoking it.
121
+ state.cnt++;
122
+ const a = state.a;
123
+ state.a = 0;
124
+ try {
125
+ return f(a, state.b, ...args);
126
+ } finally {
127
+ if (--state.cnt === 0) {
128
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
129
+ CLOSURE_DTORS.unregister(state);
130
+ } else {
131
+ state.a = a;
132
+ }
133
+ }
134
+ };
135
+ real.original = state;
136
+ CLOSURE_DTORS.register(real, state, state);
137
+ return real;
151
138
  }
152
- function __wbg_adapter_59(arg0, arg1, arg2, arg3) {
153
- wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
139
+ function __wbg_adapter_24(arg0, arg1, arg2) {
140
+ wasm.closure189_externref_shim(arg0, arg1, arg2);
154
141
  }
155
142
 
156
- /**
157
- */
158
- class Glue {
143
+ function __wbg_adapter_65(arg0, arg1, arg2, arg3) {
144
+ wasm.closure2638_externref_shim(arg0, arg1, arg2, arg3);
145
+ }
159
146
 
160
- static __wrap(ptr) {
161
- ptr = ptr >>> 0;
162
- const obj = Object.create(Glue.prototype);
163
- obj.__wbg_ptr = ptr;
147
+ const GlueFinalization = (typeof FinalizationRegistry === 'undefined')
148
+ ? { register: () => {}, unregister: () => {} }
149
+ : new FinalizationRegistry(ptr => wasm.__wbg_glue_free(ptr >>> 0, 1));
164
150
 
165
- return obj;
166
- }
151
+ class Glue {
167
152
 
168
153
  __destroy_into_raw() {
169
154
  const ptr = this.__wbg_ptr;
170
155
  this.__wbg_ptr = 0;
171
-
156
+ GlueFinalization.unregister(this);
172
157
  return ptr;
173
158
  }
174
159
 
175
160
  free() {
176
161
  const ptr = this.__destroy_into_raw();
177
- wasm.__wbg_glue_free(ptr);
162
+ wasm.__wbg_glue_free(ptr, 0);
178
163
  }
179
- /**
180
- */
181
164
  constructor() {
182
165
  const ret = wasm.glue_new();
183
- return Glue.__wrap(ret);
166
+ this.__wbg_ptr = ret >>> 0;
167
+ GlueFinalization.register(this, this.__wbg_ptr, this);
168
+ return this;
184
169
  }
185
170
  /**
186
- * @param {string} sql
187
- * @returns {Promise<any>}
188
- */
171
+ * @param {string} sql
172
+ * @returns {Promise<any>}
173
+ */
189
174
  query(sql) {
190
- const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
175
+ const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
191
176
  const len0 = WASM_VECTOR_LEN;
192
177
  const ret = wasm.glue_query(this.__wbg_ptr, ptr0, len0);
193
- return takeObject(ret);
178
+ return ret;
194
179
  }
195
180
  }
196
181
  module.exports.Glue = Glue;
197
182
 
198
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
199
- const ret = getStringFromWasm0(arg0, arg1);
200
- return addHeapObject(ret);
183
+ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
184
+ const ret = arg0.buffer;
185
+ return ret;
201
186
  };
202
187
 
203
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
204
- takeObject(arg0);
205
- };
188
+ module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
189
+ const ret = arg0.call(arg1);
190
+ return ret;
191
+ }, arguments) };
206
192
 
207
- module.exports.__wbg_debug_48a424355767756a = function(arg0, arg1) {
208
- console.debug(getStringFromWasm0(arg0, arg1));
209
- };
193
+ module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
194
+ const ret = arg0.call(arg1, arg2);
195
+ return ret;
196
+ }, arguments) };
210
197
 
211
- module.exports.__wbg_new_abda76e883ba8a5f = function() {
212
- const ret = new Error();
213
- return addHeapObject(ret);
198
+ module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
199
+ const ret = arg0.crypto;
200
+ return ret;
214
201
  };
215
202
 
216
- module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
217
- const ret = getObject(arg1).stack;
218
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
219
- const len1 = WASM_VECTOR_LEN;
220
- getInt32Memory0()[arg0 / 4 + 1] = len1;
221
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
203
+ module.exports.__wbg_debug_92859dac05840d3a = function(arg0, arg1) {
204
+ console.debug(getStringFromWasm0(arg0, arg1));
222
205
  };
223
206
 
224
- module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
207
+ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
225
208
  let deferred0_0;
226
209
  let deferred0_1;
227
210
  try {
@@ -229,204 +212,217 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
229
212
  deferred0_1 = arg1;
230
213
  console.error(getStringFromWasm0(arg0, arg1));
231
214
  } finally {
232
- wasm.__wbindgen_export_4(deferred0_0, deferred0_1, 1);
215
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
233
216
  }
234
217
  };
235
218
 
236
- module.exports.__wbindgen_cb_drop = function(arg0) {
237
- const obj = takeObject(arg0).original;
238
- if (obj.cnt-- == 1) {
239
- obj.a = 0;
240
- return true;
241
- }
242
- const ret = false;
219
+ module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
220
+ arg0.getRandomValues(arg1);
221
+ }, arguments) };
222
+
223
+ module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
224
+ const ret = arg0.getTime();
243
225
  return ret;
244
226
  };
245
227
 
246
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
247
- const ret = getObject(arg0).crypto;
248
- return addHeapObject(ret);
228
+ module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
229
+ const ret = arg0.msCrypto;
230
+ return ret;
249
231
  };
250
232
 
251
- module.exports.__wbindgen_is_object = function(arg0) {
252
- const val = getObject(arg0);
253
- const ret = typeof(val) === 'object' && val !== null;
233
+ module.exports.__wbg_new0_f788a2397c7ca929 = function() {
234
+ const ret = new Date();
254
235
  return ret;
255
236
  };
256
237
 
257
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
258
- const ret = getObject(arg0).process;
259
- return addHeapObject(ret);
238
+ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
239
+ try {
240
+ var state0 = {a: arg0, b: arg1};
241
+ var cb0 = (arg0, arg1) => {
242
+ const a = state0.a;
243
+ state0.a = 0;
244
+ try {
245
+ return __wbg_adapter_65(a, state0.b, arg0, arg1);
246
+ } finally {
247
+ state0.a = a;
248
+ }
249
+ };
250
+ const ret = new Promise(cb0);
251
+ return ret;
252
+ } finally {
253
+ state0.a = state0.b = 0;
254
+ }
260
255
  };
261
256
 
262
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
263
- const ret = getObject(arg0).versions;
264
- return addHeapObject(ret);
257
+ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
258
+ const ret = new Error();
259
+ return ret;
265
260
  };
266
261
 
267
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
268
- const ret = getObject(arg0).node;
269
- return addHeapObject(ret);
262
+ module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
263
+ const ret = new Uint8Array(arg0);
264
+ return ret;
270
265
  };
271
266
 
272
- module.exports.__wbindgen_is_string = function(arg0) {
273
- const ret = typeof(getObject(arg0)) === 'string';
267
+ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
268
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
274
269
  return ret;
275
270
  };
276
271
 
277
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
278
- const ret = getObject(arg0).msCrypto;
279
- return addHeapObject(ret);
272
+ module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
273
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
274
+ return ret;
280
275
  };
281
276
 
282
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
283
- const ret = module.require;
284
- return addHeapObject(ret);
285
- }, arguments) };
286
-
287
- module.exports.__wbindgen_is_function = function(arg0) {
288
- const ret = typeof(getObject(arg0)) === 'function';
277
+ module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
278
+ const ret = new Uint8Array(arg0 >>> 0);
289
279
  return ret;
290
280
  };
291
281
 
292
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
293
- getObject(arg0).getRandomValues(getObject(arg1));
294
- }, arguments) };
282
+ module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
283
+ const ret = arg0.node;
284
+ return ret;
285
+ };
295
286
 
296
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
297
- getObject(arg0).randomFillSync(takeObject(arg1));
287
+ module.exports.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
288
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
289
+ return ret;
298
290
  }, arguments) };
299
291
 
300
- module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
301
- const ret = new Function(getStringFromWasm0(arg0, arg1));
302
- return addHeapObject(ret);
292
+ module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
293
+ const ret = arg0.process;
294
+ return ret;
303
295
  };
304
296
 
305
- module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
306
- const ret = getObject(arg0).call(getObject(arg1));
307
- return addHeapObject(ret);
308
- }, arguments) };
297
+ module.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
298
+ queueMicrotask(arg0);
299
+ };
309
300
 
310
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
311
- const ret = getObject(arg0);
312
- return addHeapObject(ret);
301
+ module.exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
302
+ const ret = arg0.queueMicrotask;
303
+ return ret;
313
304
  };
314
305
 
315
- module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
316
- const ret = self.self;
317
- return addHeapObject(ret);
306
+ module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
307
+ arg0.randomFillSync(arg1);
318
308
  }, arguments) };
319
309
 
320
- module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
321
- const ret = window.window;
322
- return addHeapObject(ret);
310
+ module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
311
+ const ret = module.require;
312
+ return ret;
323
313
  }, arguments) };
324
314
 
325
- module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
326
- const ret = globalThis.globalThis;
327
- return addHeapObject(ret);
328
- }, arguments) };
315
+ module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
316
+ const ret = Promise.resolve(arg0);
317
+ return ret;
318
+ };
329
319
 
330
- module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
331
- const ret = global.global;
332
- return addHeapObject(ret);
333
- }, arguments) };
320
+ module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
321
+ arg0.set(arg1, arg2 >>> 0);
322
+ };
334
323
 
335
- module.exports.__wbindgen_is_undefined = function(arg0) {
336
- const ret = getObject(arg0) === undefined;
337
- return ret;
324
+ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
325
+ const ret = arg1.stack;
326
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
327
+ const len1 = WASM_VECTOR_LEN;
328
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
329
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
338
330
  };
339
331
 
340
- module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
341
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
342
- return addHeapObject(ret);
343
- }, arguments) };
332
+ module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
333
+ const ret = typeof global === 'undefined' ? null : global;
334
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
335
+ };
344
336
 
345
- module.exports.__wbg_getTime_5e2054f832d82ec9 = function(arg0) {
346
- const ret = getObject(arg0).getTime();
347
- return ret;
337
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
338
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
339
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
348
340
  };
349
341
 
350
- module.exports.__wbg_new0_c0be7df4b6bd481f = function() {
351
- const ret = new Date();
352
- return addHeapObject(ret);
342
+ module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
343
+ const ret = typeof self === 'undefined' ? null : self;
344
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
353
345
  };
354
346
 
355
- module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
356
- try {
357
- var state0 = {a: arg0, b: arg1};
358
- var cb0 = (arg0, arg1) => {
359
- const a = state0.a;
360
- state0.a = 0;
361
- try {
362
- return __wbg_adapter_59(a, state0.b, arg0, arg1);
363
- } finally {
364
- state0.a = a;
365
- }
366
- };
367
- const ret = new Promise(cb0);
368
- return addHeapObject(ret);
369
- } finally {
370
- state0.a = state0.b = 0;
371
- }
347
+ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
348
+ const ret = typeof window === 'undefined' ? null : window;
349
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
372
350
  };
373
351
 
374
- module.exports.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
375
- const ret = Promise.resolve(getObject(arg0));
376
- return addHeapObject(ret);
352
+ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
353
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
354
+ return ret;
377
355
  };
378
356
 
379
- module.exports.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
380
- const ret = getObject(arg0).then(getObject(arg1));
381
- return addHeapObject(ret);
357
+ module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
358
+ const ret = arg0.then(arg1);
359
+ return ret;
382
360
  };
383
361
 
384
- module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
385
- const ret = getObject(arg0).buffer;
386
- return addHeapObject(ret);
362
+ module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
363
+ const ret = arg0.versions;
364
+ return ret;
387
365
  };
388
366
 
389
- module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
390
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
391
- return addHeapObject(ret);
367
+ module.exports.__wbindgen_cb_drop = function(arg0) {
368
+ const obj = arg0.original;
369
+ if (obj.cnt-- == 1) {
370
+ obj.a = 0;
371
+ return true;
372
+ }
373
+ const ret = false;
374
+ return ret;
392
375
  };
393
376
 
394
- module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
395
- const ret = new Uint8Array(getObject(arg0));
396
- return addHeapObject(ret);
377
+ module.exports.__wbindgen_closure_wrapper1028 = function(arg0, arg1, arg2) {
378
+ const ret = makeMutClosure(arg0, arg1, 190, __wbg_adapter_24);
379
+ return ret;
397
380
  };
398
381
 
399
- module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
400
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
382
+ module.exports.__wbindgen_init_externref_table = function() {
383
+ const table = wasm.__wbindgen_export_2;
384
+ const offset = table.grow(4);
385
+ table.set(0, undefined);
386
+ table.set(offset + 0, undefined);
387
+ table.set(offset + 1, null);
388
+ table.set(offset + 2, true);
389
+ table.set(offset + 3, false);
390
+ ;
401
391
  };
402
392
 
403
- module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
404
- const ret = new Uint8Array(arg0 >>> 0);
405
- return addHeapObject(ret);
393
+ module.exports.__wbindgen_is_function = function(arg0) {
394
+ const ret = typeof(arg0) === 'function';
395
+ return ret;
406
396
  };
407
397
 
408
- module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
409
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
410
- return addHeapObject(ret);
398
+ module.exports.__wbindgen_is_object = function(arg0) {
399
+ const val = arg0;
400
+ const ret = typeof(val) === 'object' && val !== null;
401
+ return ret;
411
402
  };
412
403
 
413
- module.exports.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
414
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
415
- return addHeapObject(ret);
416
- }, arguments) };
404
+ module.exports.__wbindgen_is_string = function(arg0) {
405
+ const ret = typeof(arg0) === 'string';
406
+ return ret;
407
+ };
417
408
 
418
- module.exports.__wbindgen_throw = function(arg0, arg1) {
419
- throw new Error(getStringFromWasm0(arg0, arg1));
409
+ module.exports.__wbindgen_is_undefined = function(arg0) {
410
+ const ret = arg0 === undefined;
411
+ return ret;
420
412
  };
421
413
 
422
414
  module.exports.__wbindgen_memory = function() {
423
415
  const ret = wasm.memory;
424
- return addHeapObject(ret);
416
+ return ret;
425
417
  };
426
418
 
427
- module.exports.__wbindgen_closure_wrapper974 = function(arg0, arg1, arg2) {
428
- const ret = makeMutClosure(arg0, arg1, 129, __wbg_adapter_22);
429
- return addHeapObject(ret);
419
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
420
+ const ret = getStringFromWasm0(arg0, arg1);
421
+ return ret;
422
+ };
423
+
424
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
425
+ throw new Error(getStringFromWasm0(arg0, arg1));
430
426
  };
431
427
 
432
428
  const path = require('path').join(__dirname, 'gluesql_js_bg.wasm');
@@ -437,3 +433,5 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
437
433
  wasm = wasmInstance.exports;
438
434
  module.exports.__wasm = wasm;
439
435
 
436
+ wasm.__wbindgen_start();
437
+
Binary file