@materializeinc/sql-parser 26.36.0-dev.0.23256 → 26.36.0-dev.0.23258

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.
@@ -1,7 +1,7 @@
1
1
  /* @ts-self-types="./mz_sql_parser_wasm.d.ts" */
2
-
3
2
  import * as wasm from "./mz_sql_parser_wasm_bg.wasm";
4
3
  import { __wbg_set_wasm } from "./mz_sql_parser_wasm_bg.js";
4
+
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
@@ -1,6 +1,5 @@
1
1
  export class ParseError {
2
2
  static __wrap(ptr) {
3
- ptr = ptr >>> 0;
4
3
  const obj = Object.create(ParseError.prototype);
5
4
  obj.__wbg_ptr = ptr;
6
5
  ParseErrorFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -66,7 +65,6 @@ if (Symbol.dispose) ParseError.prototype[Symbol.dispose] = ParseError.prototype.
66
65
 
67
66
  export class ParseResult {
68
67
  static __wrap(ptr) {
69
- ptr = ptr >>> 0;
70
68
  const obj = Object.create(ParseResult.prototype);
71
69
  obj.__wbg_ptr = ptr;
72
70
  ParseResultFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -126,7 +124,6 @@ if (Symbol.dispose) ParseResult.prototype[Symbol.dispose] = ParseResult.prototyp
126
124
 
127
125
  export class ParsedStatement {
128
126
  static __wrap(ptr) {
129
- ptr = ptr >>> 0;
130
127
  const obj = Object.create(ParsedStatement.prototype);
131
128
  obj.__wbg_ptr = ptr;
132
129
  ParsedStatementFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -287,11 +284,11 @@ export function parse(sql) {
287
284
  const ret = wasm.parse(ptr0, len0);
288
285
  return ParseResult.__wrap(ret);
289
286
  }
290
- export function __wbg_Error_83742b46f01ce22d(arg0, arg1) {
287
+ export function __wbg_Error_92b29b0548f8b746(arg0, arg1) {
291
288
  const ret = Error(getStringFromWasm0(arg0, arg1));
292
289
  return ret;
293
290
  }
294
- export function __wbg___wbindgen_throw_6ddd609b62940d55(arg0, arg1) {
291
+ export function __wbg___wbindgen_throw_344f42d3211c4765(arg0, arg1) {
295
292
  throw new Error(getStringFromWasm0(arg0, arg1));
296
293
  }
297
294
  export function __wbg_parsedstatement_new(arg0) {
@@ -313,13 +310,13 @@ export function __wbindgen_init_externref_table() {
313
310
  }
314
311
  const ParseErrorFinalization = (typeof FinalizationRegistry === 'undefined')
315
312
  ? { register: () => {}, unregister: () => {} }
316
- : new FinalizationRegistry(ptr => wasm.__wbg_parseerror_free(ptr >>> 0, 1));
313
+ : new FinalizationRegistry(ptr => wasm.__wbg_parseerror_free(ptr, 1));
317
314
  const ParseResultFinalization = (typeof FinalizationRegistry === 'undefined')
318
315
  ? { register: () => {}, unregister: () => {} }
319
- : new FinalizationRegistry(ptr => wasm.__wbg_parseresult_free(ptr >>> 0, 1));
316
+ : new FinalizationRegistry(ptr => wasm.__wbg_parseresult_free(ptr, 1));
320
317
  const ParsedStatementFinalization = (typeof FinalizationRegistry === 'undefined')
321
318
  ? { register: () => {}, unregister: () => {} }
322
- : new FinalizationRegistry(ptr => wasm.__wbg_parsedstatement_free(ptr >>> 0, 1));
319
+ : new FinalizationRegistry(ptr => wasm.__wbg_parsedstatement_free(ptr, 1));
323
320
 
324
321
  function addToExternrefTable0(obj) {
325
322
  const idx = wasm.__externref_table_alloc();
@@ -347,8 +344,7 @@ function getDataViewMemory0() {
347
344
  }
348
345
 
349
346
  function getStringFromWasm0(ptr, len) {
350
- ptr = ptr >>> 0;
351
- return decodeText(ptr, len);
347
+ return decodeText(ptr >>> 0, len);
352
348
  }
353
349
 
354
350
  let cachedUint8ArrayMemory0 = null;
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.36.0-dev.0.23256",
5
+ "version": "26.36.0-dev.0.23258",
6
6
  "files": [
7
7
  "mz_sql_parser_wasm_bg.wasm",
8
8
  "mz_sql_parser_wasm.js",