windmill-parser-wasm-regex 1.481.0 → 1.504.0

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Ruben Fiszel <ruben@windmill.dev>"
6
6
  ],
7
- "version": "1.481.0",
7
+ "version": "1.504.0",
8
8
  "files": [
9
9
  "windmill_parser_wasm_bg.wasm",
10
10
  "windmill_parser_wasm.js",
@@ -5,11 +5,13 @@ export function parse_powershell(code: string): string;
5
5
  export function parse_sql(code: string): string;
6
6
  export function parse_mysql(code: string): string;
7
7
  export function parse_oracledb(code: string): string;
8
+ export function parse_duckdb(code: string): string;
8
9
  export function parse_bigquery(code: string): string;
9
10
  export function parse_snowflake(code: string): string;
10
11
  export function parse_mssql(code: string): string;
11
12
  export function parse_db_resource(code: string): string | undefined;
12
13
  export function parse_graphql(code: string): string;
14
+ export function parse_assets_sql(code: string): string;
13
15
 
14
16
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
15
17
 
@@ -20,11 +22,13 @@ export interface InitOutput {
20
22
  readonly parse_sql: (a: number, b: number) => [number, number];
21
23
  readonly parse_mysql: (a: number, b: number) => [number, number];
22
24
  readonly parse_oracledb: (a: number, b: number) => [number, number];
25
+ readonly parse_duckdb: (a: number, b: number) => [number, number];
23
26
  readonly parse_bigquery: (a: number, b: number) => [number, number];
24
27
  readonly parse_snowflake: (a: number, b: number) => [number, number];
25
28
  readonly parse_mssql: (a: number, b: number) => [number, number];
26
29
  readonly parse_db_resource: (a: number, b: number) => [number, number];
27
30
  readonly parse_graphql: (a: number, b: number) => [number, number];
31
+ readonly parse_assets_sql: (a: number, b: number) => [number, number];
28
32
  readonly __wbindgen_export_0: WebAssembly.Table;
29
33
  readonly __wbindgen_malloc: (a: number, b: number) => number;
30
34
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -168,6 +168,25 @@ export function parse_oracledb(code) {
168
168
  }
169
169
  }
170
170
 
171
+ /**
172
+ * @param {string} code
173
+ * @returns {string}
174
+ */
175
+ export function parse_duckdb(code) {
176
+ let deferred2_0;
177
+ let deferred2_1;
178
+ try {
179
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
180
+ const len0 = WASM_VECTOR_LEN;
181
+ const ret = wasm.parse_duckdb(ptr0, len0);
182
+ deferred2_0 = ret[0];
183
+ deferred2_1 = ret[1];
184
+ return getStringFromWasm0(ret[0], ret[1]);
185
+ } finally {
186
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
187
+ }
188
+ }
189
+
171
190
  /**
172
191
  * @param {string} code
173
192
  * @returns {string}
@@ -260,6 +279,25 @@ export function parse_graphql(code) {
260
279
  }
261
280
  }
262
281
 
282
+ /**
283
+ * @param {string} code
284
+ * @returns {string}
285
+ */
286
+ export function parse_assets_sql(code) {
287
+ let deferred2_0;
288
+ let deferred2_1;
289
+ try {
290
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
291
+ const len0 = WASM_VECTOR_LEN;
292
+ const ret = wasm.parse_assets_sql(ptr0, len0);
293
+ deferred2_0 = ret[0];
294
+ deferred2_1 = ret[1];
295
+ return getStringFromWasm0(ret[0], ret[1]);
296
+ } finally {
297
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
298
+ }
299
+ }
300
+
263
301
  async function __wbg_load(module, imports) {
264
302
  if (typeof Response === 'function' && module instanceof Response) {
265
303
  if (typeof WebAssembly.instantiateStreaming === 'function') {
Binary file