gluesql 0.14.3 → 0.15.0-rc.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.
- package/{nodejs → dist_nodejs}/gluesql_js.js +68 -66
- package/dist_nodejs/gluesql_js_bg.wasm +0 -0
- package/{web → dist_web}/gluesql_js.js +292 -271
- package/dist_web/gluesql_js_bg.wasm +0 -0
- package/gluesql.js +1 -1
- package/gluesql.node.js +1 -1
- package/gluesql.rollup.js +2 -2
- package/package.json +5 -5
- package/nodejs/gluesql_js_bg.wasm +0 -0
- package/web/gluesql_js_bg.wasm +0 -0
|
@@ -17,6 +17,7 @@ function getUint8Memory0() {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
function getStringFromWasm0(ptr, len) {
|
|
20
|
+
ptr = ptr >>> 0;
|
|
20
21
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -98,14 +99,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
98
99
|
|
|
99
100
|
if (realloc === undefined) {
|
|
100
101
|
const buf = cachedTextEncoder.encode(arg);
|
|
101
|
-
const ptr = malloc(buf.length);
|
|
102
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
102
103
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
103
104
|
WASM_VECTOR_LEN = buf.length;
|
|
104
105
|
return ptr;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
let len = arg.length;
|
|
108
|
-
let ptr = malloc(len);
|
|
109
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
109
110
|
|
|
110
111
|
const mem = getUint8Memory0();
|
|
111
112
|
|
|
@@ -121,7 +122,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
121
122
|
if (offset !== 0) {
|
|
122
123
|
arg = arg.slice(offset);
|
|
123
124
|
}
|
|
124
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
125
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
125
126
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
126
127
|
const ret = encodeString(arg, view);
|
|
127
128
|
|
|
@@ -148,10 +149,6 @@ function handleError(f, args) {
|
|
|
148
149
|
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
|
|
152
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
153
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
154
|
-
}
|
|
155
152
|
function __wbg_adapter_59(arg0, arg1, arg2, arg3) {
|
|
156
153
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
157
154
|
}
|
|
@@ -161,15 +158,16 @@ function __wbg_adapter_59(arg0, arg1, arg2, arg3) {
|
|
|
161
158
|
class Glue {
|
|
162
159
|
|
|
163
160
|
static __wrap(ptr) {
|
|
161
|
+
ptr = ptr >>> 0;
|
|
164
162
|
const obj = Object.create(Glue.prototype);
|
|
165
|
-
obj.
|
|
163
|
+
obj.__wbg_ptr = ptr;
|
|
166
164
|
|
|
167
165
|
return obj;
|
|
168
166
|
}
|
|
169
167
|
|
|
170
168
|
__destroy_into_raw() {
|
|
171
|
-
const ptr = this.
|
|
172
|
-
this.
|
|
169
|
+
const ptr = this.__wbg_ptr;
|
|
170
|
+
this.__wbg_ptr = 0;
|
|
173
171
|
|
|
174
172
|
return ptr;
|
|
175
173
|
}
|
|
@@ -191,7 +189,7 @@ class Glue {
|
|
|
191
189
|
query(sql) {
|
|
192
190
|
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
|
|
193
191
|
const len0 = WASM_VECTOR_LEN;
|
|
194
|
-
const ret = wasm.glue_query(this.
|
|
192
|
+
const ret = wasm.glue_query(this.__wbg_ptr, ptr0, len0);
|
|
195
193
|
return takeObject(ret);
|
|
196
194
|
}
|
|
197
195
|
}
|
|
@@ -206,8 +204,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
206
204
|
takeObject(arg0);
|
|
207
205
|
};
|
|
208
206
|
|
|
209
|
-
module.exports.
|
|
210
|
-
console.
|
|
207
|
+
module.exports.__wbg_debug_48a424355767756a = function(arg0, arg1) {
|
|
208
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
211
209
|
};
|
|
212
210
|
|
|
213
211
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
@@ -217,17 +215,21 @@ module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
|
217
215
|
|
|
218
216
|
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
219
217
|
const ret = getObject(arg1).stack;
|
|
220
|
-
const
|
|
221
|
-
const
|
|
222
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
223
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
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;
|
|
224
222
|
};
|
|
225
223
|
|
|
226
224
|
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
225
|
+
let deferred0_0;
|
|
226
|
+
let deferred0_1;
|
|
227
227
|
try {
|
|
228
|
+
deferred0_0 = arg0;
|
|
229
|
+
deferred0_1 = arg1;
|
|
228
230
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
229
231
|
} finally {
|
|
230
|
-
wasm.__wbindgen_export_4(
|
|
232
|
+
wasm.__wbindgen_export_4(deferred0_0, deferred0_1, 1);
|
|
231
233
|
}
|
|
232
234
|
};
|
|
233
235
|
|
|
@@ -241,15 +243,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
241
243
|
return ret;
|
|
242
244
|
};
|
|
243
245
|
|
|
244
|
-
module.exports.
|
|
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) {
|
|
246
|
+
module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
253
247
|
const ret = getObject(arg0).crypto;
|
|
254
248
|
return addHeapObject(ret);
|
|
255
249
|
};
|
|
@@ -260,17 +254,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
260
254
|
return ret;
|
|
261
255
|
};
|
|
262
256
|
|
|
263
|
-
module.exports.
|
|
257
|
+
module.exports.__wbg_process_298734cf255a885d = function(arg0) {
|
|
264
258
|
const ret = getObject(arg0).process;
|
|
265
259
|
return addHeapObject(ret);
|
|
266
260
|
};
|
|
267
261
|
|
|
268
|
-
module.exports.
|
|
262
|
+
module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
|
|
269
263
|
const ret = getObject(arg0).versions;
|
|
270
264
|
return addHeapObject(ret);
|
|
271
265
|
};
|
|
272
266
|
|
|
273
|
-
module.exports.
|
|
267
|
+
module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
|
|
274
268
|
const ret = getObject(arg0).node;
|
|
275
269
|
return addHeapObject(ret);
|
|
276
270
|
};
|
|
@@ -280,47 +274,60 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
280
274
|
return ret;
|
|
281
275
|
};
|
|
282
276
|
|
|
283
|
-
module.exports.
|
|
284
|
-
const ret = module.require;
|
|
285
|
-
return addHeapObject(ret);
|
|
286
|
-
}, arguments) };
|
|
287
|
-
|
|
288
|
-
module.exports.__wbg_msCrypto_6e7d3e1f92610cbb = function(arg0) {
|
|
277
|
+
module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
289
278
|
const ret = getObject(arg0).msCrypto;
|
|
290
279
|
return addHeapObject(ret);
|
|
291
280
|
};
|
|
292
281
|
|
|
282
|
+
module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
283
|
+
const ret = module.require;
|
|
284
|
+
return addHeapObject(ret);
|
|
285
|
+
}, arguments) };
|
|
286
|
+
|
|
293
287
|
module.exports.__wbindgen_is_function = function(arg0) {
|
|
294
288
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
295
289
|
return ret;
|
|
296
290
|
};
|
|
297
291
|
|
|
298
|
-
module.exports.
|
|
292
|
+
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
293
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
294
|
+
}, arguments) };
|
|
295
|
+
|
|
296
|
+
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
297
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
298
|
+
}, arguments) };
|
|
299
|
+
|
|
300
|
+
module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
|
|
299
301
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
300
302
|
return addHeapObject(ret);
|
|
301
303
|
};
|
|
302
304
|
|
|
303
|
-
module.exports.
|
|
305
|
+
module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
|
|
304
306
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
305
307
|
return addHeapObject(ret);
|
|
306
308
|
}, arguments) };
|
|
307
309
|
|
|
308
|
-
module.exports.
|
|
310
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
311
|
+
const ret = getObject(arg0);
|
|
312
|
+
return addHeapObject(ret);
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
|
|
309
316
|
const ret = self.self;
|
|
310
317
|
return addHeapObject(ret);
|
|
311
318
|
}, arguments) };
|
|
312
319
|
|
|
313
|
-
module.exports.
|
|
320
|
+
module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
|
|
314
321
|
const ret = window.window;
|
|
315
322
|
return addHeapObject(ret);
|
|
316
323
|
}, arguments) };
|
|
317
324
|
|
|
318
|
-
module.exports.
|
|
325
|
+
module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
|
|
319
326
|
const ret = globalThis.globalThis;
|
|
320
327
|
return addHeapObject(ret);
|
|
321
328
|
}, arguments) };
|
|
322
329
|
|
|
323
|
-
module.exports.
|
|
330
|
+
module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
|
|
324
331
|
const ret = global.global;
|
|
325
332
|
return addHeapObject(ret);
|
|
326
333
|
}, arguments) };
|
|
@@ -330,22 +337,22 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
330
337
|
return ret;
|
|
331
338
|
};
|
|
332
339
|
|
|
333
|
-
module.exports.
|
|
340
|
+
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
334
341
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
335
342
|
return addHeapObject(ret);
|
|
336
343
|
}, arguments) };
|
|
337
344
|
|
|
338
|
-
module.exports.
|
|
345
|
+
module.exports.__wbg_getTime_5e2054f832d82ec9 = function(arg0) {
|
|
339
346
|
const ret = getObject(arg0).getTime();
|
|
340
347
|
return ret;
|
|
341
348
|
};
|
|
342
349
|
|
|
343
|
-
module.exports.
|
|
350
|
+
module.exports.__wbg_new0_c0be7df4b6bd481f = function() {
|
|
344
351
|
const ret = new Date();
|
|
345
352
|
return addHeapObject(ret);
|
|
346
353
|
};
|
|
347
354
|
|
|
348
|
-
module.exports.
|
|
355
|
+
module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
|
|
349
356
|
try {
|
|
350
357
|
var state0 = {a: arg0, b: arg1};
|
|
351
358
|
var cb0 = (arg0, arg1) => {
|
|
@@ -364,55 +371,50 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
364
371
|
}
|
|
365
372
|
};
|
|
366
373
|
|
|
367
|
-
module.exports.
|
|
374
|
+
module.exports.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
|
|
368
375
|
const ret = Promise.resolve(getObject(arg0));
|
|
369
376
|
return addHeapObject(ret);
|
|
370
377
|
};
|
|
371
378
|
|
|
372
|
-
module.exports.
|
|
379
|
+
module.exports.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
|
|
373
380
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
374
381
|
return addHeapObject(ret);
|
|
375
382
|
};
|
|
376
383
|
|
|
377
|
-
module.exports.
|
|
384
|
+
module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
|
|
378
385
|
const ret = getObject(arg0).buffer;
|
|
379
386
|
return addHeapObject(ret);
|
|
380
387
|
};
|
|
381
388
|
|
|
382
|
-
module.exports.
|
|
383
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
389
|
+
module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
|
|
390
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
384
391
|
return addHeapObject(ret);
|
|
385
392
|
};
|
|
386
393
|
|
|
387
|
-
module.exports.
|
|
388
|
-
getObject(arg0)
|
|
394
|
+
module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
|
|
395
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
396
|
+
return addHeapObject(ret);
|
|
389
397
|
};
|
|
390
398
|
|
|
391
|
-
module.exports.
|
|
392
|
-
|
|
393
|
-
return ret;
|
|
399
|
+
module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
|
|
400
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
394
401
|
};
|
|
395
402
|
|
|
396
|
-
module.exports.
|
|
403
|
+
module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
|
|
397
404
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
398
405
|
return addHeapObject(ret);
|
|
399
406
|
};
|
|
400
407
|
|
|
401
|
-
module.exports.
|
|
408
|
+
module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
|
|
402
409
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
403
410
|
return addHeapObject(ret);
|
|
404
411
|
};
|
|
405
412
|
|
|
406
|
-
module.exports.
|
|
413
|
+
module.exports.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
|
|
407
414
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
408
415
|
return addHeapObject(ret);
|
|
409
416
|
}, arguments) };
|
|
410
417
|
|
|
411
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
412
|
-
const ret = getObject(arg0);
|
|
413
|
-
return addHeapObject(ret);
|
|
414
|
-
};
|
|
415
|
-
|
|
416
418
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
417
419
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
418
420
|
};
|
|
@@ -422,8 +424,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
422
424
|
return addHeapObject(ret);
|
|
423
425
|
};
|
|
424
426
|
|
|
425
|
-
module.exports.
|
|
426
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
427
|
+
module.exports.__wbindgen_closure_wrapper974 = function(arg0, arg1, arg2) {
|
|
428
|
+
const ret = makeMutClosure(arg0, arg1, 129, __wbg_adapter_22);
|
|
427
429
|
return addHeapObject(ret);
|
|
428
430
|
};
|
|
429
431
|
|
|
Binary file
|