@materializeinc/sql-parser 26.54.0-dev.0.25634 → 26.54.0-dev.0.25636
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/mz_sql_parser_wasm_bg.js +14 -14
- package/mz_sql_parser_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/mz_sql_parser_wasm_bg.js
CHANGED
|
@@ -284,11 +284,11 @@ export function parse(sql) {
|
|
|
284
284
|
const ret = wasm.parse(ptr0, len0);
|
|
285
285
|
return ParseResult.__wrap(ret);
|
|
286
286
|
}
|
|
287
|
-
export function
|
|
287
|
+
export function __wbg_Error_208446807d0d1e30(arg0, arg1) {
|
|
288
288
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
289
289
|
return ret;
|
|
290
290
|
}
|
|
291
|
-
export function
|
|
291
|
+
export function __wbg___wbindgen_throw_4c88d8bf264fd984(arg0, arg1) {
|
|
292
292
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
293
293
|
}
|
|
294
294
|
export function __wbg_parsedstatement_new(arg0) {
|
|
@@ -301,12 +301,11 @@ export function __wbg_parseerror_new(arg0) {
|
|
|
301
301
|
}
|
|
302
302
|
export function __wbindgen_init_externref_table() {
|
|
303
303
|
const table = wasm.__wbindgen_externrefs;
|
|
304
|
-
const offset = table.grow(4);
|
|
305
304
|
table.set(0, undefined);
|
|
306
|
-
table.set(
|
|
307
|
-
table.set(
|
|
308
|
-
table.set(
|
|
309
|
-
table.set(
|
|
305
|
+
table.set(1024, undefined);
|
|
306
|
+
table.set(1025, null);
|
|
307
|
+
table.set(1026, true);
|
|
308
|
+
table.set(1027, false);
|
|
310
309
|
}
|
|
311
310
|
const ParseErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
312
311
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -344,7 +343,8 @@ function getDataViewMemory0() {
|
|
|
344
343
|
}
|
|
345
344
|
|
|
346
345
|
function getStringFromWasm0(ptr, len) {
|
|
347
|
-
|
|
346
|
+
ptr = ptr >>> 0;
|
|
347
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -412,18 +412,18 @@ function takeFromExternrefTable0(idx) {
|
|
|
412
412
|
return value;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
415
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
416
416
|
cachedTextDecoder.decode();
|
|
417
417
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
418
418
|
let numBytesDecoded = 0;
|
|
419
|
-
function decodeText(
|
|
420
|
-
numBytesDecoded +=
|
|
419
|
+
function decodeText(bytes) {
|
|
420
|
+
numBytesDecoded += bytes.length;
|
|
421
421
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
422
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
422
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
423
423
|
cachedTextDecoder.decode();
|
|
424
|
-
numBytesDecoded =
|
|
424
|
+
numBytesDecoded = bytes.length;
|
|
425
425
|
}
|
|
426
|
-
return cachedTextDecoder.decode(
|
|
426
|
+
return cachedTextDecoder.decode(bytes);
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
const cachedTextEncoder = new TextEncoder();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@materializeinc/sql-parser",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "The parser for Materialize's SQL dialect, with wasm build targets.",
|
|
5
|
-
"version": "26.54.0-dev.0.
|
|
5
|
+
"version": "26.54.0-dev.0.25636",
|
|
6
6
|
"files": [
|
|
7
7
|
"mz_sql_parser_wasm_bg.wasm",
|
|
8
8
|
"mz_sql_parser_wasm.js",
|