@materializeinc/sql-lexer 26.54.0-dev.0.25635 → 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_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_208446807d0d1e30(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_4c88d8bf264fd984(arg0, arg1) {
|
|
103
103
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
104
104
|
}
|
|
105
105
|
export function __wbg_postoken_new(arg0) {
|
|
@@ -113,12 +113,11 @@ 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);
|
|
117
116
|
table.set(0, undefined);
|
|
118
|
-
table.set(
|
|
119
|
-
table.set(
|
|
120
|
-
table.set(
|
|
121
|
-
table.set(
|
|
117
|
+
table.set(1024, undefined);
|
|
118
|
+
table.set(1025, null);
|
|
119
|
+
table.set(1026, true);
|
|
120
|
+
table.set(1027, false);
|
|
122
121
|
}
|
|
123
122
|
const PosTokenFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
124
123
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -144,7 +143,8 @@ function getDataViewMemory0() {
|
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
function getStringFromWasm0(ptr, len) {
|
|
147
|
-
|
|
146
|
+
ptr = ptr >>> 0;
|
|
147
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + 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 });
|
|
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(bytes) {
|
|
206
|
+
numBytesDecoded += bytes.length;
|
|
207
207
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
208
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
208
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
209
209
|
cachedTextDecoder.decode();
|
|
210
|
-
numBytesDecoded =
|
|
210
|
+
numBytesDecoded = bytes.length;
|
|
211
211
|
}
|
|
212
|
-
return cachedTextDecoder.decode(
|
|
212
|
+
return cachedTextDecoder.decode(bytes);
|
|
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.25636",
|
|
6
6
|
"files": [
|
|
7
7
|
"mz_sql_lexer_wasm_bg.wasm",
|
|
8
8
|
"mz_sql_lexer_wasm.js",
|