bq2cst 0.5.9 → 0.5.11

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/bq2cst.d.ts CHANGED
@@ -8,6 +8,7 @@ export type UnknownNode =
8
8
  | AccessOperator
9
9
  | AddColumnClause
10
10
  | AddConstraintClause
11
+ | AggregatePipeOperator
11
12
  | AlterBICapacityStatement
12
13
  | AlterColumnStatement
13
14
  | AlterModelStatement
@@ -21,6 +22,7 @@ export type UnknownNode =
21
22
  | ArrayLiteral
22
23
  | AssertStatement
23
24
  | Asterisk
25
+ | BasePipeOperator
24
26
  | BinaryOperator
25
27
  | BeginStatement
26
28
  | BetweenOperator
@@ -61,6 +63,7 @@ export type UnknownNode =
61
63
  | ExtractArgument
62
64
  | ForStatement
63
65
  | ForSystemTimeAsOfClause
66
+ | FromStatement
64
67
  | GrantStatement
65
68
  | GroupByExprs
66
69
  | GroupedExpr
@@ -77,6 +80,7 @@ export type UnknownNode =
77
80
  | IntervalLiteral
78
81
  | IsDistinctFromOperator
79
82
  | JoinOperator
83
+ | JoinPipeOperator
80
84
  | Keyword
81
85
  | KeywordSequence
82
86
  | KeywordWithExpr
@@ -86,6 +90,7 @@ export type UnknownNode =
86
90
  | KeywordWithStatements
87
91
  | KeywordWithType
88
92
  | LimitClause
93
+ | LimitPipeOperator
89
94
  | LoadStatement
90
95
  | LoopStatement
91
96
  | MergeStatement
@@ -95,7 +100,9 @@ export type UnknownNode =
95
100
  | OverClause
96
101
  | OverwritePartitionsClause
97
102
  | Parameter
103
+ | PipeStatement
98
104
  | PivotOperator
105
+ | PivotPipeOperator
99
106
  | PivotConfig
100
107
  | RaiseStatement
101
108
  | RangeLiteral
@@ -110,6 +117,7 @@ export type UnknownNode =
110
117
  | StructLiteral
111
118
  | Symbol_
112
119
  | TableSampleClause
120
+ | TableSamplePipeOperator
113
121
  | TableSampleRatio
114
122
  | Template
115
123
  | TransactionStatement
@@ -119,7 +127,9 @@ export type UnknownNode =
119
127
  | TypeDeclaration
120
128
  | UnaryOperator
121
129
  | UndropStatement
130
+ | UnionPipeOperator
122
131
  | UnpivotConfig
132
+ | UnpivotPipeOperator
123
133
  | UnpivotOperator
124
134
  | UpdateStatement
125
135
  | WhenClause
@@ -202,17 +212,6 @@ export type IdentifierGeneral = FromItemExpr & {
202
212
  };
203
213
  };
204
214
 
205
- export type IdentWithOptions = Expr & {
206
- node_type: "IdentWithOptions";
207
- children: {
208
- as: undefined;
209
- alias: undefined;
210
- order: undefined;
211
- null_order: undefined;
212
- options?: NodeChild;
213
- };
214
- };
215
-
216
215
  export type XXXStatement = BaseNode & {
217
216
  token: Token;
218
217
  children: {
@@ -220,6 +219,14 @@ export type XXXStatement = BaseNode & {
220
219
  };
221
220
  };
222
221
 
222
+ export type PipeOperator = BaseNode & {
223
+ children: {
224
+ keywords?: NodeChild;
225
+ exprs?: NodeVecChild;
226
+ };
227
+ }
228
+
229
+ // ----- sub types of BaseNode (concrete) -----
223
230
  export type AddColumnClause = BaseNode & {
224
231
  node_type: "AddColumnClause";
225
232
  children: {
@@ -238,7 +245,13 @@ export type AddConstraintClause = BaseNode & {
238
245
  };
239
246
  };
240
247
 
241
- // ----- sub types of BaseNode (concrete) -----
248
+ export type AggregatePipeOperator = PipeOperator & {
249
+ node_type: "AggregatePipeOperator";
250
+ children: {
251
+ groupby?: NodeChild;
252
+ }
253
+ }
254
+
242
255
  export type AlterBICapacityStatement = XXXStatement & {
243
256
  node_type: "AlterBICapacityStatement";
244
257
  children: {
@@ -314,7 +327,9 @@ export type AlterSchemaStatement = XXXStatement & {
314
327
  what: NodeChild;
315
328
  if_exists?: NodeVecChild;
316
329
  ident: NodeChild;
317
- set: NodeChild;
330
+ set?: NodeChild;
331
+ add?: NodeChild;
332
+ drop?: NodeChild;
318
333
  default_collate?: NodeChild;
319
334
  options?: NodeChild;
320
335
  };
@@ -409,6 +424,10 @@ export type Asterisk = Expr & {
409
424
  };
410
425
  };
411
426
 
427
+ export type BasePipeOperator = PipeOperator & {
428
+ node_type: "BasePipeOperator";
429
+ }
430
+
412
431
  export type BinaryOperator = Expr & {
413
432
  node_type: "BinaryOperator";
414
433
  children: {
@@ -577,6 +596,7 @@ export type CreateFunctionStatement = XXXStatement & {
577
596
  group: NodeChild;
578
597
  returns?: NodeChild;
579
598
  remote?: NodeChild;
599
+ connection?: NodeChild;
580
600
  determinism?: NodeVecChild;
581
601
  language?: NodeChild;
582
602
  options?: NodeChild;
@@ -648,10 +668,12 @@ export type CreateRowAccessPolicyStatement = XXXStatement & {
648
668
  export type CreateSchemaStatement = XXXStatement & {
649
669
  node_type: "CreateSchemaStatement";
650
670
  children: {
671
+ external?: NodeChild;
651
672
  what: NodeChild;
652
673
  if_not_exists?: NodeVecChild;
653
674
  ident: NodeChild;
654
675
  default_collate: NodeChild;
676
+ with_connection?: NodeChild;
655
677
  options?: NodeChild;
656
678
  };
657
679
  };
@@ -853,6 +875,13 @@ export type ForSystemTimeAsOfClause = BaseNode & {
853
875
  };
854
876
  };
855
877
 
878
+ export type FromStatement = XXXStatement & {
879
+ node_type: "FromStatement";
880
+ children: {
881
+ expr: NodeChild;
882
+ };
883
+ }
884
+
856
885
  export type GrantStatement = XXXStatement & {
857
886
  node_type: "GrantStatement";
858
887
  children: {
@@ -937,6 +966,17 @@ export type Identifier = IdentifierGeneral & {
937
966
  node_type: "Identifier";
938
967
  };
939
968
 
969
+ export type IdentWithOptions = Expr & {
970
+ node_type: "IdentWithOptions";
971
+ children: {
972
+ as: undefined;
973
+ alias: undefined;
974
+ order: undefined;
975
+ null_order: undefined;
976
+ options?: NodeChild;
977
+ };
978
+ };
979
+
940
980
  export type IfStatement = XXXStatement & {
941
981
  node_type: "IfStatement";
942
982
  children: {
@@ -1005,6 +1045,15 @@ export type JoinOperator = FromItemExpr & {
1005
1045
  };
1006
1046
  };
1007
1047
 
1048
+ export type JoinPipeOperator = PipeOperator & {
1049
+ node_type: "JoinPipeOperator";
1050
+ children: {
1051
+ method?: NodeChild;
1052
+ on?: NodeChild;
1053
+ using?: NodeChild;
1054
+ }
1055
+ }
1056
+
1008
1057
  export type Keyword = BaseNode & {
1009
1058
  token: Token;
1010
1059
  node_type: "Keyword";
@@ -1013,7 +1062,7 @@ export type Keyword = BaseNode & {
1013
1062
  export type KeywordSequence = BaseNode & {
1014
1063
  node_type: "KeywordSequence";
1015
1064
  children: {
1016
- next_keyword: { Node: Keyword | KeywordSequence | KeywordWithExpr };
1065
+ next_keyword: { Node: Keyword | KeywordSequence | KeywordWithExpr | KeywordWithGroupedXXX };
1017
1066
  };
1018
1067
  };
1019
1068
 
@@ -1067,6 +1116,13 @@ export type LimitClause = BaseNode & {
1067
1116
  };
1068
1117
  };
1069
1118
 
1119
+ export type LimitPipeOperator = PipeOperator & {
1120
+ node_type: "LimitPipeOperator";
1121
+ children: {
1122
+ offset?: NodeChild;
1123
+ }
1124
+ }
1125
+
1070
1126
  export type LoopStatement = LabelableStatement & {
1071
1127
  node_type: "LoopStatement";
1072
1128
  children: {
@@ -1143,6 +1199,24 @@ export type Parameter = IdentifierGeneral & {
1143
1199
  node_type: "Parameter";
1144
1200
  };
1145
1201
 
1202
+ export type PipeStatement = XXXStatement & {
1203
+ node_type: "PipeStatement";
1204
+ children: {
1205
+ left: NodeChild;
1206
+ right: NodeChild;
1207
+ };
1208
+ }
1209
+
1210
+ export type PivotPipeOperator = PipeOperator & {
1211
+ node_type: "PivotPipeOperator";
1212
+ children: {
1213
+ exprs: undefined;
1214
+ config: NodeChild;
1215
+ as?: NodeChild;
1216
+ alias?: NodeChild;
1217
+ }
1218
+ }
1219
+
1146
1220
  export type PivotOperator = BaseNode & {
1147
1221
  token: Token;
1148
1222
  node_type: "PivotOperator";
@@ -1234,6 +1308,9 @@ export type SetOperator = XXXStatement & {
1234
1308
  node_type: "SetOperator";
1235
1309
  children: {
1236
1310
  with?: { Node: WithClause };
1311
+ method?: NodeChild;
1312
+ by?: NodeChild;
1313
+ corresponding?: NodeChild;
1237
1314
  distinct_or_all: NodeChild;
1238
1315
  left: { Node: SetOperator | SelectStatement | GroupedStatement };
1239
1316
  right: { Node: SetOperator | SelectStatement | GroupedStatement };
@@ -1278,6 +1355,14 @@ export type TableSampleClause = BaseNode & {
1278
1355
  };
1279
1356
  };
1280
1357
 
1358
+ export type TableSamplePipeOperator = PipeOperator & {
1359
+ node_type: "TableSamplePipeOperator";
1360
+ children: {
1361
+ exprs: undefined;
1362
+ group?: NodeChild;
1363
+ }
1364
+ }
1365
+
1281
1366
  export type TableSampleRatio = BaseNode & {
1282
1367
  token: Token;
1283
1368
  node_type: "TableSampleRatio";
@@ -1362,6 +1447,15 @@ export type UndropStatement = XXXStatement & {
1362
1447
  };
1363
1448
  };
1364
1449
 
1450
+ export type UnionPipeOperator = PipeOperator & {
1451
+ node_type: "UnionPipeOperator";
1452
+ children: {
1453
+ method?: NodeChild;
1454
+ by?: NodeChild;
1455
+ corresponding?: NodeChild;
1456
+ }
1457
+ }
1458
+
1365
1459
  export type UnpivotConfig = BaseNode & {
1366
1460
  token: Token;
1367
1461
  node_type: "UnpivotConfig";
@@ -1373,6 +1467,16 @@ export type UnpivotConfig = BaseNode & {
1373
1467
  };
1374
1468
  };
1375
1469
 
1470
+ export type UnpivotPipeOperator = PipeOperator & {
1471
+ node_type: "UnpivotPipeOperator";
1472
+ children: {
1473
+ exprs: undefined;
1474
+ config: NodeChild;
1475
+ as?: NodeChild;
1476
+ alias?: NodeChild;
1477
+ }
1478
+ }
1479
+
1376
1480
  export type UnpivotOperator = BaseNode & {
1377
1481
  token: Token;
1378
1482
  node_type: "UnpivotOperator";
package/bq2cst.js CHANGED
@@ -22,33 +22,69 @@ function getStringFromWasm0(ptr, len) {
22
22
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
23
23
  }
24
24
 
25
- const heap = new Array(128).fill(undefined);
25
+ let WASM_VECTOR_LEN = 0;
26
26
 
27
- heap.push(undefined, null, true, false);
27
+ let cachedTextEncoder = new TextEncoder('utf-8');
28
28
 
29
- let heap_next = heap.length;
29
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
30
+ ? function (arg, view) {
31
+ return cachedTextEncoder.encodeInto(arg, view);
32
+ }
33
+ : function (arg, view) {
34
+ const buf = cachedTextEncoder.encode(arg);
35
+ view.set(buf);
36
+ return {
37
+ read: arg.length,
38
+ written: buf.length
39
+ };
40
+ });
30
41
 
31
- function addHeapObject(obj) {
32
- if (heap_next === heap.length) heap.push(heap.length + 1);
33
- const idx = heap_next;
34
- heap_next = heap[idx];
42
+ function passStringToWasm0(arg, malloc, realloc) {
35
43
 
36
- heap[idx] = obj;
37
- return idx;
38
- }
44
+ if (realloc === undefined) {
45
+ const buf = cachedTextEncoder.encode(arg);
46
+ const ptr = malloc(buf.length, 1) >>> 0;
47
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
48
+ WASM_VECTOR_LEN = buf.length;
49
+ return ptr;
50
+ }
39
51
 
40
- function getObject(idx) { return heap[idx]; }
52
+ let len = arg.length;
53
+ let ptr = malloc(len, 1) >>> 0;
41
54
 
42
- function dropObject(idx) {
43
- if (idx < 132) return;
44
- heap[idx] = heap_next;
45
- heap_next = idx;
55
+ const mem = getUint8ArrayMemory0();
56
+
57
+ let offset = 0;
58
+
59
+ for (; offset < len; offset++) {
60
+ const code = arg.charCodeAt(offset);
61
+ if (code > 0x7F) break;
62
+ mem[ptr + offset] = code;
63
+ }
64
+
65
+ if (offset !== len) {
66
+ if (offset !== 0) {
67
+ arg = arg.slice(offset);
68
+ }
69
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
70
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
71
+ const ret = encodeString(arg, view);
72
+
73
+ offset += ret.written;
74
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
75
+ }
76
+
77
+ WASM_VECTOR_LEN = offset;
78
+ return ptr;
46
79
  }
47
80
 
48
- function takeObject(idx) {
49
- const ret = getObject(idx);
50
- dropObject(idx);
51
- return ret;
81
+ let cachedDataViewMemory0 = null;
82
+
83
+ function getDataViewMemory0() {
84
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
85
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
86
+ }
87
+ return cachedDataViewMemory0;
52
88
  }
53
89
 
54
90
  function debugString(val) {
@@ -92,7 +128,7 @@ function debugString(val) {
92
128
  // Test for built-in
93
129
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
94
130
  let className;
95
- if (builtInMatches.length > 1) {
131
+ if (builtInMatches && builtInMatches.length > 1) {
96
132
  className = builtInMatches[1];
97
133
  } else {
98
134
  // Failed to match the standard '[object ClassName]'
@@ -116,212 +152,139 @@ function debugString(val) {
116
152
  return className;
117
153
  }
118
154
 
119
- let WASM_VECTOR_LEN = 0;
120
-
121
- let cachedTextEncoder = new TextEncoder('utf-8');
122
-
123
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
124
- ? function (arg, view) {
125
- return cachedTextEncoder.encodeInto(arg, view);
126
- }
127
- : function (arg, view) {
128
- const buf = cachedTextEncoder.encode(arg);
129
- view.set(buf);
130
- return {
131
- read: arg.length,
132
- written: buf.length
133
- };
134
- });
135
-
136
- function passStringToWasm0(arg, malloc, realloc) {
137
-
138
- if (realloc === undefined) {
139
- const buf = cachedTextEncoder.encode(arg);
140
- const ptr = malloc(buf.length, 1) >>> 0;
141
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
142
- WASM_VECTOR_LEN = buf.length;
143
- return ptr;
144
- }
145
-
146
- let len = arg.length;
147
- let ptr = malloc(len, 1) >>> 0;
148
-
149
- const mem = getUint8ArrayMemory0();
150
-
151
- let offset = 0;
152
-
153
- for (; offset < len; offset++) {
154
- const code = arg.charCodeAt(offset);
155
- if (code > 0x7F) break;
156
- mem[ptr + offset] = code;
157
- }
158
-
159
- if (offset !== len) {
160
- if (offset !== 0) {
161
- arg = arg.slice(offset);
162
- }
163
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
164
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
165
- const ret = encodeString(arg, view);
166
-
167
- offset += ret.written;
168
- ptr = realloc(ptr, len, offset, 1) >>> 0;
169
- }
170
-
171
- WASM_VECTOR_LEN = offset;
172
- return ptr;
173
- }
174
-
175
- let cachedDataViewMemory0 = null;
176
-
177
- function getDataViewMemory0() {
178
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
179
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
180
- }
181
- return cachedDataViewMemory0;
155
+ function takeFromExternrefTable0(idx) {
156
+ const value = wasm.__wbindgen_export_3.get(idx);
157
+ wasm.__externref_table_dealloc(idx);
158
+ return value;
182
159
  }
183
160
  /**
184
- * @param {string} code
185
- * @returns {any}
186
- */
161
+ * @param {string} code
162
+ * @returns {any}
163
+ */
187
164
  module.exports.parse = function(code) {
188
- try {
189
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
190
- const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
191
- const len0 = WASM_VECTOR_LEN;
192
- wasm.parse(retptr, ptr0, len0);
193
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
194
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
195
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
196
- if (r2) {
197
- throw takeObject(r1);
198
- }
199
- return takeObject(r0);
200
- } finally {
201
- wasm.__wbindgen_add_to_stack_pointer(16);
165
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
166
+ const len0 = WASM_VECTOR_LEN;
167
+ const ret = wasm.parse(ptr0, len0);
168
+ if (ret[2]) {
169
+ throw takeFromExternrefTable0(ret[1]);
202
170
  }
171
+ return takeFromExternrefTable0(ret[0]);
203
172
  };
204
173
 
205
174
  /**
206
- * @param {string} code
207
- * @returns {any}
208
- */
175
+ * @param {string} code
176
+ * @returns {any}
177
+ */
209
178
  module.exports.tokenize = function(code) {
179
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
180
+ const len0 = WASM_VECTOR_LEN;
181
+ const ret = wasm.tokenize(ptr0, len0);
182
+ if (ret[2]) {
183
+ throw takeFromExternrefTable0(ret[1]);
184
+ }
185
+ return takeFromExternrefTable0(ret[0]);
186
+ };
187
+
188
+ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
189
+ let deferred0_0;
190
+ let deferred0_1;
210
191
  try {
211
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
212
- const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
213
- const len0 = WASM_VECTOR_LEN;
214
- wasm.tokenize(retptr, ptr0, len0);
215
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
216
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
217
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
218
- if (r2) {
219
- throw takeObject(r1);
220
- }
221
- return takeObject(r0);
192
+ deferred0_0 = arg0;
193
+ deferred0_1 = arg1;
194
+ console.error(getStringFromWasm0(arg0, arg1));
222
195
  } finally {
223
- wasm.__wbindgen_add_to_stack_pointer(16);
196
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
224
197
  }
225
198
  };
226
199
 
227
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
228
- const ret = new Error(getStringFromWasm0(arg0, arg1));
229
- return addHeapObject(ret);
200
+ module.exports.__wbg_new_254fa9eac11932ae = function() {
201
+ const ret = new Array();
202
+ return ret;
230
203
  };
231
204
 
232
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
233
- takeObject(arg0);
205
+ module.exports.__wbg_new_688846f374351c92 = function() {
206
+ const ret = new Object();
207
+ return ret;
234
208
  };
235
209
 
236
- module.exports.__wbindgen_as_number = function(arg0) {
237
- const ret = +getObject(arg0);
210
+ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
211
+ const ret = new Error();
238
212
  return ret;
239
213
  };
240
214
 
241
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
242
- const ret = getObject(arg0);
243
- return addHeapObject(ret);
215
+ module.exports.__wbg_new_bc96c6a1c0786643 = function() {
216
+ const ret = new Map();
217
+ return ret;
244
218
  };
245
219
 
246
- module.exports.__wbg_new_abda76e883ba8a5f = function() {
247
- const ret = new Error();
248
- return addHeapObject(ret);
220
+ module.exports.__wbg_set_1d80752d0d5f0b21 = function(arg0, arg1, arg2) {
221
+ arg0[arg1 >>> 0] = arg2;
222
+ };
223
+
224
+ module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
225
+ arg0[arg1] = arg2;
226
+ };
227
+
228
+ module.exports.__wbg_set_76818dc3c59a63d5 = function(arg0, arg1, arg2) {
229
+ const ret = arg0.set(arg1, arg2);
230
+ return ret;
249
231
  };
250
232
 
251
- module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
252
- const ret = getObject(arg1).stack;
233
+ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
234
+ const ret = arg1.stack;
253
235
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
254
236
  const len1 = WASM_VECTOR_LEN;
255
237
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
256
238
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
257
239
  };
258
240
 
259
- module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
260
- let deferred0_0;
261
- let deferred0_1;
262
- try {
263
- deferred0_0 = arg0;
264
- deferred0_1 = arg1;
265
- console.error(getStringFromWasm0(arg0, arg1));
266
- } finally {
267
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
268
- }
269
- };
270
-
271
- module.exports.__wbindgen_number_new = function(arg0) {
272
- const ret = arg0;
273
- return addHeapObject(ret);
241
+ module.exports.__wbindgen_as_number = function(arg0) {
242
+ const ret = +arg0;
243
+ return ret;
274
244
  };
275
245
 
276
246
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
277
247
  const ret = BigInt.asUintN(64, arg0);
278
- return addHeapObject(ret);
279
- };
280
-
281
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
282
- const ret = getStringFromWasm0(arg0, arg1);
283
- return addHeapObject(ret);
284
- };
285
-
286
- module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
287
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
248
+ return ret;
288
249
  };
289
250
 
290
- module.exports.__wbg_new_16b304a2cfa7ff4a = function() {
291
- const ret = new Array();
292
- return addHeapObject(ret);
251
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
252
+ const ret = debugString(arg1);
253
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
254
+ const len1 = WASM_VECTOR_LEN;
255
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
256
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
293
257
  };
294
258
 
295
- module.exports.__wbg_new_d9bc3a0147634640 = function() {
296
- const ret = new Map();
297
- return addHeapObject(ret);
259
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
260
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
261
+ return ret;
298
262
  };
299
263
 
300
- module.exports.__wbg_new_72fb9a18b5ae2624 = function() {
301
- const ret = new Object();
302
- return addHeapObject(ret);
264
+ module.exports.__wbindgen_init_externref_table = function() {
265
+ const table = wasm.__wbindgen_export_3;
266
+ const offset = table.grow(4);
267
+ table.set(0, undefined);
268
+ table.set(offset + 0, undefined);
269
+ table.set(offset + 1, null);
270
+ table.set(offset + 2, true);
271
+ table.set(offset + 3, false);
272
+ ;
303
273
  };
304
274
 
305
275
  module.exports.__wbindgen_is_string = function(arg0) {
306
- const ret = typeof(getObject(arg0)) === 'string';
276
+ const ret = typeof(arg0) === 'string';
307
277
  return ret;
308
278
  };
309
279
 
310
- module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
311
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
312
- };
313
-
314
- module.exports.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) {
315
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
316
- return addHeapObject(ret);
280
+ module.exports.__wbindgen_number_new = function(arg0) {
281
+ const ret = arg0;
282
+ return ret;
317
283
  };
318
284
 
319
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
320
- const ret = debugString(getObject(arg1));
321
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
- const len1 = WASM_VECTOR_LEN;
323
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
324
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
285
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
286
+ const ret = getStringFromWasm0(arg0, arg1);
287
+ return ret;
325
288
  };
326
289
 
327
290
  module.exports.__wbindgen_throw = function(arg0, arg1) {
@@ -336,3 +299,5 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
336
299
  wasm = wasmInstance.exports;
337
300
  module.exports.__wasm = wasm;
338
301
 
302
+ wasm.__wbindgen_start();
303
+
package/bq2cst_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "kitta65 <kitta65kitta@gmail.com>"
5
5
  ],
6
- "version": "0.5.9",
6
+ "version": "0.5.11",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "bq2cst_bg.wasm",