@materializeinc/sql-lexer 26.54.0-dev.0.25633 → 26.54.0-dev.0.25635
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_lexer_wasm_bg.js +14 -14
- package/mz_sql_lexer_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/mz_sql_lexer_wasm_bg.js
CHANGED
|
@@ -95,11 +95,11 @@ export function lex(query) {
|
|
|
95
95
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
96
96
|
return v2;
|
|
97
97
|
}
|
|
98
|
-
export function
|
|
98
|
+
export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
|
|
99
99
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
100
100
|
return ret;
|
|
101
101
|
}
|
|
102
|
-
export function
|
|
102
|
+
export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
|
|
103
103
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
104
104
|
}
|
|
105
105
|
export function __wbg_postoken_new(arg0) {
|
|
@@ -113,11 +113,12 @@ export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
|
113
113
|
}
|
|
114
114
|
export function __wbindgen_init_externref_table() {
|
|
115
115
|
const table = wasm.__wbindgen_externrefs;
|
|
116
|
+
const offset = table.grow(4);
|
|
116
117
|
table.set(0, undefined);
|
|
117
|
-
table.set(
|
|
118
|
-
table.set(
|
|
119
|
-
table.set(
|
|
120
|
-
table.set(
|
|
118
|
+
table.set(offset + 0, undefined);
|
|
119
|
+
table.set(offset + 1, null);
|
|
120
|
+
table.set(offset + 2, true);
|
|
121
|
+
table.set(offset + 3, false);
|
|
121
122
|
}
|
|
122
123
|
const PosTokenFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
123
124
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -143,8 +144,7 @@ function getDataViewMemory0() {
|
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
function getStringFromWasm0(ptr, len) {
|
|
146
|
-
|
|
147
|
-
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
147
|
+
return decodeText(ptr >>> 0, len);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -198,18 +198,18 @@ function takeFromExternrefTable0(idx) {
|
|
|
198
198
|
return value;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
201
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
202
202
|
cachedTextDecoder.decode();
|
|
203
203
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
204
204
|
let numBytesDecoded = 0;
|
|
205
|
-
function decodeText(
|
|
206
|
-
numBytesDecoded +=
|
|
205
|
+
function decodeText(ptr, len) {
|
|
206
|
+
numBytesDecoded += len;
|
|
207
207
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
208
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
208
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
209
209
|
cachedTextDecoder.decode();
|
|
210
|
-
numBytesDecoded =
|
|
210
|
+
numBytesDecoded = len;
|
|
211
211
|
}
|
|
212
|
-
return cachedTextDecoder.decode(
|
|
212
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
const cachedTextEncoder = new TextEncoder();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@materializeinc/sql-lexer",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "The lexer for Materialize's SQL dialect, with wasm build targets.",
|
|
5
|
-
"version": "26.54.0-dev.0.
|
|
5
|
+
"version": "26.54.0-dev.0.25635",
|
|
6
6
|
"files": [
|
|
7
7
|
"mz_sql_lexer_wasm_bg.wasm",
|
|
8
8
|
"mz_sql_lexer_wasm.js",
|