@materializeinc/sql-parser 26.54.0-dev.0.25633 → 26.54.0-dev.0.25634
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_67e7344beaa85059(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_5d9e815e6fdf150f(arg0, arg1) {
|
|
292
292
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
293
293
|
}
|
|
294
294
|
export function __wbg_parsedstatement_new(arg0) {
|
|
@@ -301,11 +301,12 @@ 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);
|
|
304
305
|
table.set(0, undefined);
|
|
305
|
-
table.set(
|
|
306
|
-
table.set(
|
|
307
|
-
table.set(
|
|
308
|
-
table.set(
|
|
306
|
+
table.set(offset + 0, undefined);
|
|
307
|
+
table.set(offset + 1, null);
|
|
308
|
+
table.set(offset + 2, true);
|
|
309
|
+
table.set(offset + 3, false);
|
|
309
310
|
}
|
|
310
311
|
const ParseErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
311
312
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -343,8 +344,7 @@ function getDataViewMemory0() {
|
|
|
343
344
|
}
|
|
344
345
|
|
|
345
346
|
function getStringFromWasm0(ptr, len) {
|
|
346
|
-
|
|
347
|
-
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
347
|
+
return decodeText(ptr >>> 0, 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, fatal: 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(ptr, len) {
|
|
420
|
+
numBytesDecoded += len;
|
|
421
421
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
422
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
422
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
423
423
|
cachedTextDecoder.decode();
|
|
424
|
-
numBytesDecoded =
|
|
424
|
+
numBytesDecoded = len;
|
|
425
425
|
}
|
|
426
|
-
return cachedTextDecoder.decode(
|
|
426
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
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.25634",
|
|
6
6
|
"files": [
|
|
7
7
|
"mz_sql_parser_wasm_bg.wasm",
|
|
8
8
|
"mz_sql_parser_wasm.js",
|