gluesql 0.12.0 → 0.14.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.
@@ -7,19 +7,20 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
7
7
 
8
8
  cachedTextDecoder.decode();
9
9
 
10
- let cachegetUint8Memory0 = null;
10
+ let cachedUint8Memory0 = null;
11
+
11
12
  function getUint8Memory0() {
12
- if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
13
- cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
13
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
14
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
14
15
  }
15
- return cachegetUint8Memory0;
16
+ return cachedUint8Memory0;
16
17
  }
17
18
 
18
19
  function getStringFromWasm0(ptr, len) {
19
20
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
20
21
  }
21
22
 
22
- const heap = new Array(32).fill(undefined);
23
+ const heap = new Array(128).fill(undefined);
23
24
 
24
25
  heap.push(undefined, null, true, false);
25
26
 
@@ -37,7 +38,7 @@ function addHeapObject(obj) {
37
38
  function getObject(idx) { return heap[idx]; }
38
39
 
39
40
  function dropObject(idx) {
40
- if (idx < 36) return;
41
+ if (idx < 132) return;
41
42
  heap[idx] = heap_next;
42
43
  heap_next = idx;
43
44
  }
@@ -73,7 +74,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
73
74
  return real;
74
75
  }
75
76
  function __wbg_adapter_22(arg0, arg1, arg2) {
76
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he6fde4b2bf3fa88b(arg0, arg1, addHeapObject(arg2));
77
+ wasm.__wbindgen_export_1(arg0, arg1, addHeapObject(arg2));
77
78
  }
78
79
 
79
80
  let WASM_VECTOR_LEN = 0;
@@ -131,19 +132,20 @@ function passStringToWasm0(arg, malloc, realloc) {
131
132
  return ptr;
132
133
  }
133
134
 
134
- let cachegetInt32Memory0 = null;
135
+ let cachedInt32Memory0 = null;
136
+
135
137
  function getInt32Memory0() {
136
- if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
137
- cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
138
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
139
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
138
140
  }
139
- return cachegetInt32Memory0;
141
+ return cachedInt32Memory0;
140
142
  }
141
143
 
142
144
  function handleError(f, args) {
143
145
  try {
144
146
  return f.apply(this, args);
145
147
  } catch (e) {
146
- wasm.__wbindgen_exn_store(addHeapObject(e));
148
+ wasm.__wbindgen_export_5(addHeapObject(e));
147
149
  }
148
150
  }
149
151
 
@@ -151,7 +153,7 @@ function getArrayU8FromWasm0(ptr, len) {
151
153
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
152
154
  }
153
155
  function __wbg_adapter_59(arg0, arg1, arg2, arg3) {
154
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h0413e80f631de014(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
156
+ wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
155
157
  }
156
158
 
157
159
  /**
@@ -187,7 +189,7 @@ class Glue {
187
189
  * @returns {Promise<any>}
188
190
  */
189
191
  query(sql) {
190
- const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
192
+ const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
191
193
  const len0 = WASM_VECTOR_LEN;
192
194
  const ret = wasm.glue_query(this.ptr, ptr0, len0);
193
195
  return takeObject(ret);
@@ -195,15 +197,6 @@ class Glue {
195
197
  }
196
198
  module.exports.Glue = Glue;
197
199
 
198
- module.exports.__wbindgen_json_parse = function(arg0, arg1) {
199
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
200
- return addHeapObject(ret);
201
- };
202
-
203
- module.exports.__wbg_log_9d2d949c4b2a09d3 = function(arg0, arg1) {
204
- console.log(getStringFromWasm0(arg0, arg1));
205
- };
206
-
207
200
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
208
201
  const ret = getStringFromWasm0(arg0, arg1);
209
202
  return addHeapObject(ret);
@@ -213,24 +206,28 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
213
206
  takeObject(arg0);
214
207
  };
215
208
 
216
- module.exports.__wbg_new_693216e109162396 = function() {
209
+ module.exports.__wbg_log_ad3161670ab77d95 = function(arg0, arg1) {
210
+ console.log(getStringFromWasm0(arg0, arg1));
211
+ };
212
+
213
+ module.exports.__wbg_new_abda76e883ba8a5f = function() {
217
214
  const ret = new Error();
218
215
  return addHeapObject(ret);
219
216
  };
220
217
 
221
- module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
218
+ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
222
219
  const ret = getObject(arg1).stack;
223
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
220
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
224
221
  const len0 = WASM_VECTOR_LEN;
225
222
  getInt32Memory0()[arg0 / 4 + 1] = len0;
226
223
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
227
224
  };
228
225
 
229
- module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
226
+ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
230
227
  try {
231
228
  console.error(getStringFromWasm0(arg0, arg1));
232
229
  } finally {
233
- wasm.__wbindgen_free(arg0, arg1);
230
+ wasm.__wbindgen_export_4(arg0, arg1);
234
231
  }
235
232
  };
236
233
 
@@ -244,8 +241,16 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
244
241
  return ret;
245
242
  };
246
243
 
247
- module.exports.__wbg_process_2f24d6544ea7b200 = function(arg0) {
248
- const ret = getObject(arg0).process;
244
+ module.exports.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
245
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
246
+ }, arguments) };
247
+
248
+ module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
249
+ getObject(arg0).getRandomValues(getObject(arg1));
250
+ }, arguments) };
251
+
252
+ module.exports.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
253
+ const ret = getObject(arg0).crypto;
249
254
  return addHeapObject(ret);
250
255
  };
251
256
 
@@ -255,12 +260,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
255
260
  return ret;
256
261
  };
257
262
 
258
- module.exports.__wbg_versions_6164651e75405d4a = function(arg0) {
263
+ module.exports.__wbg_process_038c26bf42b093f8 = function(arg0) {
264
+ const ret = getObject(arg0).process;
265
+ return addHeapObject(ret);
266
+ };
267
+
268
+ module.exports.__wbg_versions_ab37218d2f0b24a8 = function(arg0) {
259
269
  const ret = getObject(arg0).versions;
260
270
  return addHeapObject(ret);
261
271
  };
262
272
 
263
- module.exports.__wbg_node_4b517d861cbcb3bc = function(arg0) {
273
+ module.exports.__wbg_node_080f4b19d15bc1fe = function(arg0) {
264
274
  const ret = getObject(arg0).node;
265
275
  return addHeapObject(ret);
266
276
  };
@@ -270,60 +280,47 @@ module.exports.__wbindgen_is_string = function(arg0) {
270
280
  return ret;
271
281
  };
272
282
 
273
- module.exports.__wbg_modulerequire_3440a4bcf44437db = function() { return handleError(function (arg0, arg1) {
274
- const ret = module.require(getStringFromWasm0(arg0, arg1));
283
+ module.exports.__wbg_require_78a3dcfbdba9cbce = function() { return handleError(function () {
284
+ const ret = module.require;
275
285
  return addHeapObject(ret);
276
286
  }, arguments) };
277
287
 
278
- module.exports.__wbg_crypto_98fc271021c7d2ad = function(arg0) {
279
- const ret = getObject(arg0).crypto;
280
- return addHeapObject(ret);
281
- };
282
-
283
- module.exports.__wbg_msCrypto_a2cdb043d2bfe57f = function(arg0) {
288
+ module.exports.__wbg_msCrypto_6e7d3e1f92610cbb = function(arg0) {
284
289
  const ret = getObject(arg0).msCrypto;
285
290
  return addHeapObject(ret);
286
291
  };
287
292
 
288
- module.exports.__wbg_getRandomValues_98117e9a7e993920 = function() { return handleError(function (arg0, arg1) {
289
- getObject(arg0).getRandomValues(getObject(arg1));
290
- }, arguments) };
291
-
292
- module.exports.__wbg_randomFillSync_64cc7d048f228ca8 = function() { return handleError(function (arg0, arg1, arg2) {
293
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
294
- }, arguments) };
293
+ module.exports.__wbindgen_is_function = function(arg0) {
294
+ const ret = typeof(getObject(arg0)) === 'function';
295
+ return ret;
296
+ };
295
297
 
296
- module.exports.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) {
298
+ module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
297
299
  const ret = new Function(getStringFromWasm0(arg0, arg1));
298
300
  return addHeapObject(ret);
299
301
  };
300
302
 
301
- module.exports.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) {
303
+ module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
302
304
  const ret = getObject(arg0).call(getObject(arg1));
303
305
  return addHeapObject(ret);
304
306
  }, arguments) };
305
307
 
306
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
307
- const ret = getObject(arg0);
308
- return addHeapObject(ret);
309
- };
310
-
311
- module.exports.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
308
+ module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
312
309
  const ret = self.self;
313
310
  return addHeapObject(ret);
314
311
  }, arguments) };
315
312
 
316
- module.exports.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () {
313
+ module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
317
314
  const ret = window.window;
318
315
  return addHeapObject(ret);
319
316
  }, arguments) };
320
317
 
321
- module.exports.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () {
318
+ module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
322
319
  const ret = globalThis.globalThis;
323
320
  return addHeapObject(ret);
324
321
  }, arguments) };
325
322
 
326
- module.exports.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () {
323
+ module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
327
324
  const ret = global.global;
328
325
  return addHeapObject(ret);
329
326
  }, arguments) };
@@ -333,22 +330,22 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
333
330
  return ret;
334
331
  };
335
332
 
336
- module.exports.__wbg_call_3ed288a247f13ea5 = function() { return handleError(function (arg0, arg1, arg2) {
333
+ module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
337
334
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
338
335
  return addHeapObject(ret);
339
336
  }, arguments) };
340
337
 
341
- module.exports.__wbg_getTime_bffb1c09df09618b = function(arg0) {
338
+ module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
342
339
  const ret = getObject(arg0).getTime();
343
340
  return ret;
344
341
  };
345
342
 
346
- module.exports.__wbg_new0_0ff7eb5c1486f3ec = function() {
343
+ module.exports.__wbg_new0_25059e40b1c02766 = function() {
347
344
  const ret = new Date();
348
345
  return addHeapObject(ret);
349
346
  };
350
347
 
351
- module.exports.__wbg_new_37705eed627d5ed9 = function(arg0, arg1) {
348
+ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
352
349
  try {
353
350
  var state0 = {a: arg0, b: arg1};
354
351
  var cb0 = (arg0, arg1) => {
@@ -367,45 +364,55 @@ module.exports.__wbg_new_37705eed627d5ed9 = function(arg0, arg1) {
367
364
  }
368
365
  };
369
366
 
370
- module.exports.__wbg_resolve_a9a87bdd64e9e62c = function(arg0) {
367
+ module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
371
368
  const ret = Promise.resolve(getObject(arg0));
372
369
  return addHeapObject(ret);
373
370
  };
374
371
 
375
- module.exports.__wbg_then_ce526c837d07b68f = function(arg0, arg1) {
372
+ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
376
373
  const ret = getObject(arg0).then(getObject(arg1));
377
374
  return addHeapObject(ret);
378
375
  };
379
376
 
380
- module.exports.__wbg_buffer_7af23f65f6c64548 = function(arg0) {
377
+ module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
381
378
  const ret = getObject(arg0).buffer;
382
379
  return addHeapObject(ret);
383
380
  };
384
381
 
385
- module.exports.__wbg_new_cc9018bd6f283b6f = function(arg0) {
382
+ module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
386
383
  const ret = new Uint8Array(getObject(arg0));
387
384
  return addHeapObject(ret);
388
385
  };
389
386
 
390
- module.exports.__wbg_set_f25e869e4565d2a2 = function(arg0, arg1, arg2) {
387
+ module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
391
388
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
392
389
  };
393
390
 
394
- module.exports.__wbg_length_0acb1cf9bbaf8519 = function(arg0) {
391
+ module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
395
392
  const ret = getObject(arg0).length;
396
393
  return ret;
397
394
  };
398
395
 
399
- module.exports.__wbg_newwithlength_8f0657faca9f1422 = function(arg0) {
396
+ module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
400
397
  const ret = new Uint8Array(arg0 >>> 0);
401
398
  return addHeapObject(ret);
402
399
  };
403
400
 
404
- module.exports.__wbg_subarray_da527dbd24eafb6b = function(arg0, arg1, arg2) {
401
+ module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
405
402
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
406
403
  return addHeapObject(ret);
407
404
  };
408
405
 
406
+ module.exports.__wbg_parse_3ac95b51fc312db8 = function() { return handleError(function (arg0, arg1) {
407
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
408
+ return addHeapObject(ret);
409
+ }, arguments) };
410
+
411
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
412
+ const ret = getObject(arg0);
413
+ return addHeapObject(ret);
414
+ };
415
+
409
416
  module.exports.__wbindgen_throw = function(arg0, arg1) {
410
417
  throw new Error(getStringFromWasm0(arg0, arg1));
411
418
  };
@@ -415,8 +422,8 @@ module.exports.__wbindgen_memory = function() {
415
422
  return addHeapObject(ret);
416
423
  };
417
424
 
418
- module.exports.__wbindgen_closure_wrapper385 = function(arg0, arg1, arg2) {
419
- const ret = makeMutClosure(arg0, arg1, 76, __wbg_adapter_22);
425
+ module.exports.__wbindgen_closure_wrapper999 = function(arg0, arg1, arg2) {
426
+ const ret = makeMutClosure(arg0, arg1, 98, __wbg_adapter_22);
420
427
  return addHeapObject(ret);
421
428
  };
422
429
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gluesql",
3
- "version": "0.12.0",
3
+ "version": "0.14.3",
4
4
  "description": "GlueSQL is quite sticky, it attaches to anywhere",
5
5
  "browser": "gluesql.js",
6
6
  "main": "gluesql.node.js",
@@ -22,14 +22,12 @@
22
22
  "bugs": {
23
23
  "url": "https://github.com/gluesql/gluesql/issues"
24
24
  },
25
- "homepage": "https://github.com/gluesql/gluesql/tree/main/gluesql-js#readme",
25
+ "homepage": "https://gluesql.org/docs",
26
26
  "files": [
27
- "dist/nodejs/gluesql_js.js",
28
- "dist/nodejs/gluesql_js_bg.wasm",
29
- "dist/nodejs/package.json",
30
- "dist/web/gluesql_js.js",
31
- "dist/web/gluesql_js_bg.wasm",
32
- "dist/web/package.json",
27
+ "nodejs/gluesql_js.js",
28
+ "nodejs/gluesql_js_bg.wasm",
29
+ "web/gluesql_js.js",
30
+ "web/gluesql_js_bg.wasm",
33
31
  "gluesql.js",
34
32
  "gluesql.node.js",
35
33
  "gluesql.rollup.js",