bq2cst 0.5.10 → 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;
@@ -855,6 +875,13 @@ export type ForSystemTimeAsOfClause = BaseNode & {
855
875
  };
856
876
  };
857
877
 
878
+ export type FromStatement = XXXStatement & {
879
+ node_type: "FromStatement";
880
+ children: {
881
+ expr: NodeChild;
882
+ };
883
+ }
884
+
858
885
  export type GrantStatement = XXXStatement & {
859
886
  node_type: "GrantStatement";
860
887
  children: {
@@ -939,6 +966,17 @@ export type Identifier = IdentifierGeneral & {
939
966
  node_type: "Identifier";
940
967
  };
941
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
+
942
980
  export type IfStatement = XXXStatement & {
943
981
  node_type: "IfStatement";
944
982
  children: {
@@ -1007,6 +1045,15 @@ export type JoinOperator = FromItemExpr & {
1007
1045
  };
1008
1046
  };
1009
1047
 
1048
+ export type JoinPipeOperator = PipeOperator & {
1049
+ node_type: "JoinPipeOperator";
1050
+ children: {
1051
+ method?: NodeChild;
1052
+ on?: NodeChild;
1053
+ using?: NodeChild;
1054
+ }
1055
+ }
1056
+
1010
1057
  export type Keyword = BaseNode & {
1011
1058
  token: Token;
1012
1059
  node_type: "Keyword";
@@ -1015,7 +1062,7 @@ export type Keyword = BaseNode & {
1015
1062
  export type KeywordSequence = BaseNode & {
1016
1063
  node_type: "KeywordSequence";
1017
1064
  children: {
1018
- next_keyword: { Node: Keyword | KeywordSequence | KeywordWithExpr };
1065
+ next_keyword: { Node: Keyword | KeywordSequence | KeywordWithExpr | KeywordWithGroupedXXX };
1019
1066
  };
1020
1067
  };
1021
1068
 
@@ -1069,6 +1116,13 @@ export type LimitClause = BaseNode & {
1069
1116
  };
1070
1117
  };
1071
1118
 
1119
+ export type LimitPipeOperator = PipeOperator & {
1120
+ node_type: "LimitPipeOperator";
1121
+ children: {
1122
+ offset?: NodeChild;
1123
+ }
1124
+ }
1125
+
1072
1126
  export type LoopStatement = LabelableStatement & {
1073
1127
  node_type: "LoopStatement";
1074
1128
  children: {
@@ -1145,6 +1199,24 @@ export type Parameter = IdentifierGeneral & {
1145
1199
  node_type: "Parameter";
1146
1200
  };
1147
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
+
1148
1220
  export type PivotOperator = BaseNode & {
1149
1221
  token: Token;
1150
1222
  node_type: "PivotOperator";
@@ -1236,6 +1308,9 @@ export type SetOperator = XXXStatement & {
1236
1308
  node_type: "SetOperator";
1237
1309
  children: {
1238
1310
  with?: { Node: WithClause };
1311
+ method?: NodeChild;
1312
+ by?: NodeChild;
1313
+ corresponding?: NodeChild;
1239
1314
  distinct_or_all: NodeChild;
1240
1315
  left: { Node: SetOperator | SelectStatement | GroupedStatement };
1241
1316
  right: { Node: SetOperator | SelectStatement | GroupedStatement };
@@ -1280,6 +1355,14 @@ export type TableSampleClause = BaseNode & {
1280
1355
  };
1281
1356
  };
1282
1357
 
1358
+ export type TableSamplePipeOperator = PipeOperator & {
1359
+ node_type: "TableSamplePipeOperator";
1360
+ children: {
1361
+ exprs: undefined;
1362
+ group?: NodeChild;
1363
+ }
1364
+ }
1365
+
1283
1366
  export type TableSampleRatio = BaseNode & {
1284
1367
  token: Token;
1285
1368
  node_type: "TableSampleRatio";
@@ -1364,6 +1447,15 @@ export type UndropStatement = XXXStatement & {
1364
1447
  };
1365
1448
  };
1366
1449
 
1450
+ export type UnionPipeOperator = PipeOperator & {
1451
+ node_type: "UnionPipeOperator";
1452
+ children: {
1453
+ method?: NodeChild;
1454
+ by?: NodeChild;
1455
+ corresponding?: NodeChild;
1456
+ }
1457
+ }
1458
+
1367
1459
  export type UnpivotConfig = BaseNode & {
1368
1460
  token: Token;
1369
1461
  node_type: "UnpivotConfig";
@@ -1375,6 +1467,16 @@ export type UnpivotConfig = BaseNode & {
1375
1467
  };
1376
1468
  };
1377
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
+
1378
1480
  export type UnpivotOperator = BaseNode & {
1379
1481
  token: Token;
1380
1482
  node_type: "UnpivotOperator";
package/bq2cst.js CHANGED
@@ -4,35 +4,6 @@ imports['__wbindgen_placeholder__'] = module.exports;
4
4
  let wasm;
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
12
-
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
7
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
8
 
38
9
  cachedTextDecoder.decode();
@@ -51,6 +22,71 @@ function getStringFromWasm0(ptr, len) {
51
22
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
52
23
  }
53
24
 
25
+ let WASM_VECTOR_LEN = 0;
26
+
27
+ let cachedTextEncoder = new TextEncoder('utf-8');
28
+
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
+ });
41
+
42
+ function passStringToWasm0(arg, malloc, realloc) {
43
+
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
+ }
51
+
52
+ let len = arg.length;
53
+ let ptr = malloc(len, 1) >>> 0;
54
+
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;
79
+ }
80
+
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;
88
+ }
89
+
54
90
  function debugString(val) {
55
91
  // primitive types
56
92
  const type = typeof 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_object_drop_ref = function(arg0) {
228
- takeObject(arg0);
200
+ module.exports.__wbg_new_254fa9eac11932ae = function() {
201
+ const ret = new Array();
202
+ return ret;
229
203
  };
230
204
 
231
- module.exports.__wbindgen_as_number = function(arg0) {
232
- const ret = +getObject(arg0);
205
+ module.exports.__wbg_new_688846f374351c92 = function() {
206
+ const ret = new Object();
233
207
  return ret;
234
208
  };
235
209
 
236
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
237
- const ret = getObject(arg0);
238
- return addHeapObject(ret);
210
+ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
211
+ const ret = new Error();
212
+ return ret;
239
213
  };
240
214
 
241
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
242
- const ret = new Error(getStringFromWasm0(arg0, arg1));
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_a220cf903aa02ca2 = 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_8608a2b51a5f6737 = 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_525245e2b9901204 = 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_673dda6c73d19609 = function(arg0, arg1, arg2) {
311
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
312
- };
313
-
314
- module.exports.__wbg_set_49185437f0ab06f8 = 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.10",
6
+ "version": "0.5.11",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "bq2cst_bg.wasm",