bq2cst 0.5.13 → 1.0.0-beta.1
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/LICENSE-THIRD-PARTY +377 -0
- package/bq2cst.d.ts +32 -33
- package/bq2cst_bg.wasm +0 -0
- package/package.json +3 -2
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
The source code of bq2cst does not include any third party's source code,
|
|
2
|
+
but it depends on some libraries which carry their own copyright notices and license terms.
|
|
3
|
+
These libraries are normally linked static into the wasm binary of bq2cst:
|
|
4
|
+
|
|
5
|
+
* aho-corasick - https://github.com/BurntSushi/aho-corasick/blob/master/LICENSE-MIT
|
|
6
|
+
* memchr - https://github.com/BurntSushi/memchr/blob/master/LICENSE-MIT
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2015 Andrew Gallant
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in
|
|
18
|
+
all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
+
THE SOFTWARE.
|
|
27
|
+
|
|
28
|
+
* bumpalo - https://github.com/fitzgen/bumpalo/blob/master/LICENSE-MIT
|
|
29
|
+
* console_error_panic_hook - https://github.com/rustwasm/console_error_panic_hook/blob/master/LICENSE-MIT
|
|
30
|
+
|
|
31
|
+
Copyright (c) 2019 Nick Fitzgerald
|
|
32
|
+
|
|
33
|
+
Permission is hereby granted, free of charge, to any
|
|
34
|
+
person obtaining a copy of this software and associated
|
|
35
|
+
documentation files (the "Software"), to deal in the
|
|
36
|
+
Software without restriction, including without
|
|
37
|
+
limitation the rights to use, copy, modify, merge,
|
|
38
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
39
|
+
the Software, and to permit persons to whom the Software
|
|
40
|
+
is furnished to do so, subject to the following
|
|
41
|
+
conditions:
|
|
42
|
+
|
|
43
|
+
The above copyright notice and this permission notice
|
|
44
|
+
shall be included in all copies or substantial portions
|
|
45
|
+
of the Software.
|
|
46
|
+
|
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
48
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
49
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
50
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
51
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
52
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
53
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
54
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
55
|
+
DEALINGS IN THE SOFTWARE.
|
|
56
|
+
|
|
57
|
+
* cfg-if - https://github.com/alexcrichton/cfg-if/blob/main/LICENSE-MIT
|
|
58
|
+
* proc-macro2 - https://github.com/dtolnay/proc-macro2/blob/master/LICENSE-MIT
|
|
59
|
+
* wasm-bindgen, wasm-bindgen-backend, wasm-bindgen-macro, wasm-bindgen-shared - https://github.com/rustwasm/wasm-bindgen/blob/master/LICENSE-MIT
|
|
60
|
+
* wasm-bindgen-macro-support - https://github.com/rustwasm/wasm-bindgen/blob/master/crates/macro-support/LICENSE-MIT
|
|
61
|
+
|
|
62
|
+
Copyright (c) 2014 Alex Crichton
|
|
63
|
+
|
|
64
|
+
Permission is hereby granted, free of charge, to any
|
|
65
|
+
person obtaining a copy of this software and associated
|
|
66
|
+
documentation files (the "Software"), to deal in the
|
|
67
|
+
Software without restriction, including without
|
|
68
|
+
limitation the rights to use, copy, modify, merge,
|
|
69
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
70
|
+
the Software, and to permit persons to whom the Software
|
|
71
|
+
is furnished to do so, subject to the following
|
|
72
|
+
conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice
|
|
75
|
+
shall be included in all copies or substantial portions
|
|
76
|
+
of the Software.
|
|
77
|
+
|
|
78
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
79
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
80
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
81
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
82
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
83
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
84
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
85
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
86
|
+
DEALINGS IN THE SOFTWARE.
|
|
87
|
+
|
|
88
|
+
* itoa - https://github.com/dtolnay/itoa/blob/master/LICENSE-MIT
|
|
89
|
+
* syn - https://github.com/dtolnay/syn/blob/master/LICENSE-MIT
|
|
90
|
+
Permission is hereby granted, free of charge, to any
|
|
91
|
+
person obtaining a copy of this software and associated
|
|
92
|
+
documentation files (the "Software"), to deal in the
|
|
93
|
+
Software without restriction, including without
|
|
94
|
+
limitation the rights to use, copy, modify, merge,
|
|
95
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
96
|
+
the Software, and to permit persons to whom the Software
|
|
97
|
+
is furnished to do so, subject to the following
|
|
98
|
+
conditions:
|
|
99
|
+
|
|
100
|
+
The above copyright notice and this permission notice
|
|
101
|
+
shall be included in all copies or substantial portions
|
|
102
|
+
of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
105
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
106
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
107
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
108
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
109
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
110
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
111
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
112
|
+
DEALINGS IN THE SOFTWARE.
|
|
113
|
+
|
|
114
|
+
* lazy_static - https://github.com/rust-lang-nursery/lazy-static.rs/blob/master/LICENSE-MIT
|
|
115
|
+
* log - https://github.com/rust-lang/log/blob/master/LICENSE-MIT
|
|
116
|
+
* quote - https://github.com/dtolnay/quote/blob/master/LICENSE-MIT
|
|
117
|
+
* regex, regex-syntax - https://github.com/rust-lang/regex/blob/master/LICENSE-MIT
|
|
118
|
+
* unicode-xid - https://github.com/unicode-rs/unicode-xid/blob/master/LICENSE-MIT
|
|
119
|
+
|
|
120
|
+
Copyright (c) 2010 The Rust Project Developers
|
|
121
|
+
|
|
122
|
+
Permission is hereby granted, free of charge, to any
|
|
123
|
+
person obtaining a copy of this software and associated
|
|
124
|
+
documentation files (the "Software"), to deal in the
|
|
125
|
+
Software without restriction, including without
|
|
126
|
+
limitation the rights to use, copy, modify, merge,
|
|
127
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
128
|
+
the Software, and to permit persons to whom the Software
|
|
129
|
+
is furnished to do so, subject to the following
|
|
130
|
+
conditions:
|
|
131
|
+
|
|
132
|
+
The above copyright notice and this permission notice
|
|
133
|
+
shall be included in all copies or substantial portions
|
|
134
|
+
of the Software.
|
|
135
|
+
|
|
136
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
137
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
138
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
139
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
140
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
141
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
142
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
143
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
144
|
+
DEALINGS IN THE SOFTWARE.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
* serde, serde_derive - https://github.com/serde-rs/serde/blob/master/LICENSE-MIT
|
|
148
|
+
* serde_json - https://github.com/serde-rs/json/blob/master/LICENSE-MIT
|
|
149
|
+
|
|
150
|
+
Permission is hereby granted, free of charge, to any
|
|
151
|
+
person obtaining a copy of this software and associated
|
|
152
|
+
documentation files (the "Software"), to deal in the
|
|
153
|
+
Software without restriction, including without
|
|
154
|
+
limitation the rights to use, copy, modify, merge,
|
|
155
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
156
|
+
the Software, and to permit persons to whom the Software
|
|
157
|
+
is furnished to do so, subject to the following
|
|
158
|
+
conditions:
|
|
159
|
+
|
|
160
|
+
The above copyright notice and this permission notice
|
|
161
|
+
shall be included in all copies or substantial portions
|
|
162
|
+
of the Software.
|
|
163
|
+
|
|
164
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
165
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
166
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
167
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
168
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
169
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
170
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
171
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
172
|
+
DEALINGS IN THE SOFTWARE.
|
|
173
|
+
|
|
174
|
+
* ryu - https://github.com/dtolnay/ryu/blob/master/LICENSE-APACHE
|
|
175
|
+
|
|
176
|
+
Apache License
|
|
177
|
+
Version 2.0, January 2004
|
|
178
|
+
http://www.apache.org/licenses/
|
|
179
|
+
|
|
180
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
181
|
+
|
|
182
|
+
1. Definitions.
|
|
183
|
+
|
|
184
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
185
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
186
|
+
|
|
187
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
188
|
+
the copyright owner that is granting the License.
|
|
189
|
+
|
|
190
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
191
|
+
other entities that control, are controlled by, or are under common
|
|
192
|
+
control with that entity. For the purposes of this definition,
|
|
193
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
194
|
+
direction or management of such entity, whether by contract or
|
|
195
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
196
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
197
|
+
|
|
198
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
199
|
+
exercising permissions granted by this License.
|
|
200
|
+
|
|
201
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
202
|
+
including but not limited to software source code, documentation
|
|
203
|
+
source, and configuration files.
|
|
204
|
+
|
|
205
|
+
"Object" form shall mean any form resulting from mechanical
|
|
206
|
+
transformation or translation of a Source form, including but
|
|
207
|
+
not limited to compiled object code, generated documentation,
|
|
208
|
+
and conversions to other media types.
|
|
209
|
+
|
|
210
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
211
|
+
Object form, made available under the License, as indicated by a
|
|
212
|
+
copyright notice that is included in or attached to the work
|
|
213
|
+
(an example is provided in the Appendix below).
|
|
214
|
+
|
|
215
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
216
|
+
form, that is based on (or derived from) the Work and for which the
|
|
217
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
218
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
219
|
+
of this License, Derivative Works shall not include works that remain
|
|
220
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
221
|
+
the Work and Derivative Works thereof.
|
|
222
|
+
|
|
223
|
+
"Contribution" shall mean any work of authorship, including
|
|
224
|
+
the original version of the Work and any modifications or additions
|
|
225
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
226
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
227
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
228
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
229
|
+
means any form of electronic, verbal, or written communication sent
|
|
230
|
+
to the Licensor or its representatives, including but not limited to
|
|
231
|
+
communication on electronic mailing lists, source code control systems,
|
|
232
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
233
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
234
|
+
excluding communication that is conspicuously marked or otherwise
|
|
235
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
236
|
+
|
|
237
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
238
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
239
|
+
subsequently incorporated within the Work.
|
|
240
|
+
|
|
241
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
242
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
243
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
244
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
245
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
246
|
+
Work and such Derivative Works in Source or Object form.
|
|
247
|
+
|
|
248
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
249
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
250
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
251
|
+
(except as stated in this section) patent license to make, have made,
|
|
252
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
253
|
+
where such license applies only to those patent claims licensable
|
|
254
|
+
by such Contributor that are necessarily infringed by their
|
|
255
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
256
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
257
|
+
institute patent litigation against any entity (including a
|
|
258
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
259
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
260
|
+
or contributory patent infringement, then any patent licenses
|
|
261
|
+
granted to You under this License for that Work shall terminate
|
|
262
|
+
as of the date such litigation is filed.
|
|
263
|
+
|
|
264
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
265
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
266
|
+
modifications, and in Source or Object form, provided that You
|
|
267
|
+
meet the following conditions:
|
|
268
|
+
|
|
269
|
+
(a) You must give any other recipients of the Work or
|
|
270
|
+
Derivative Works a copy of this License; and
|
|
271
|
+
|
|
272
|
+
(b) You must cause any modified files to carry prominent notices
|
|
273
|
+
stating that You changed the files; and
|
|
274
|
+
|
|
275
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
276
|
+
that You distribute, all copyright, patent, trademark, and
|
|
277
|
+
attribution notices from the Source form of the Work,
|
|
278
|
+
excluding those notices that do not pertain to any part of
|
|
279
|
+
the Derivative Works; and
|
|
280
|
+
|
|
281
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
282
|
+
distribution, then any Derivative Works that You distribute must
|
|
283
|
+
include a readable copy of the attribution notices contained
|
|
284
|
+
within such NOTICE file, excluding those notices that do not
|
|
285
|
+
pertain to any part of the Derivative Works, in at least one
|
|
286
|
+
of the following places: within a NOTICE text file distributed
|
|
287
|
+
as part of the Derivative Works; within the Source form or
|
|
288
|
+
documentation, if provided along with the Derivative Works; or,
|
|
289
|
+
within a display generated by the Derivative Works, if and
|
|
290
|
+
wherever such third-party notices normally appear. The contents
|
|
291
|
+
of the NOTICE file are for informational purposes only and
|
|
292
|
+
do not modify the License. You may add Your own attribution
|
|
293
|
+
notices within Derivative Works that You distribute, alongside
|
|
294
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
295
|
+
that such additional attribution notices cannot be construed
|
|
296
|
+
as modifying the License.
|
|
297
|
+
|
|
298
|
+
You may add Your own copyright statement to Your modifications and
|
|
299
|
+
may provide additional or different license terms and conditions
|
|
300
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
301
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
302
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
303
|
+
the conditions stated in this License.
|
|
304
|
+
|
|
305
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
306
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
307
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
308
|
+
this License, without any additional terms or conditions.
|
|
309
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
310
|
+
the terms of any separate license agreement you may have executed
|
|
311
|
+
with Licensor regarding such Contributions.
|
|
312
|
+
|
|
313
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
314
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
315
|
+
except as required for reasonable and customary use in describing the
|
|
316
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
317
|
+
|
|
318
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
319
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
320
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
321
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
322
|
+
implied, including, without limitation, any warranties or conditions
|
|
323
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
324
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
325
|
+
appropriateness of using or redistributing the Work and assume any
|
|
326
|
+
risks associated with Your exercise of permissions under this License.
|
|
327
|
+
|
|
328
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
329
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
330
|
+
unless required by applicable law (such as deliberate and grossly
|
|
331
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
332
|
+
liable to You for damages, including any direct, indirect, special,
|
|
333
|
+
incidental, or consequential damages of any character arising as a
|
|
334
|
+
result of this License or out of the use or inability to use the
|
|
335
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
336
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
337
|
+
other commercial damages or losses), even if such Contributor
|
|
338
|
+
has been advised of the possibility of such damages.
|
|
339
|
+
|
|
340
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
341
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
342
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
343
|
+
or other liability obligations and/or rights consistent with this
|
|
344
|
+
License. However, in accepting such obligations, You may act only
|
|
345
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
346
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
347
|
+
defend, and hold each Contributor harmless for any liability
|
|
348
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
349
|
+
of your accepting any such warranty or additional liability.
|
|
350
|
+
|
|
351
|
+
END OF TERMS AND CONDITIONS
|
|
352
|
+
|
|
353
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
354
|
+
|
|
355
|
+
To apply the Apache License to your work, attach the following
|
|
356
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
357
|
+
replaced with your own identifying information. (Don't include
|
|
358
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
359
|
+
comment syntax for the file format. We also recommend that a
|
|
360
|
+
file or class name and description of purpose be included on the
|
|
361
|
+
same "printed page" as the copyright notice for easier
|
|
362
|
+
identification within third-party archives.
|
|
363
|
+
|
|
364
|
+
Copyright [yyyy] [name of copyright owner]
|
|
365
|
+
|
|
366
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
367
|
+
you may not use this file except in compliance with the License.
|
|
368
|
+
You may obtain a copy of the License at
|
|
369
|
+
|
|
370
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
371
|
+
|
|
372
|
+
Unless required by applicable law or agreed to in writing, software
|
|
373
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
374
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
375
|
+
See the License for the specific language governing permissions and
|
|
376
|
+
limitations under the License.
|
|
377
|
+
|
package/bq2cst.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// NOTE:
|
|
2
|
+
// typescript_custom_section is available (https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-rust-exports/typescript_custom_section.html)
|
|
3
|
+
// but i prefer to maintain this file as plain .d.ts file.
|
|
3
4
|
|
|
4
5
|
export function parse(code: string): UnknownNode[];
|
|
5
6
|
export function tokenize(code: string): Token[];
|
|
@@ -179,7 +180,7 @@ export type CallingFunctionGeneral = Expr & {
|
|
|
179
180
|
children: {
|
|
180
181
|
func: { Node: IdentifierGeneral & UnknownNode };
|
|
181
182
|
distinct?: NodeChild;
|
|
182
|
-
args?: { NodeVec: (Expr & UnknownNode | SelectStatement)[] };
|
|
183
|
+
args?: { NodeVec: ((Expr & UnknownNode) | SelectStatement)[] };
|
|
183
184
|
ignore_nulls?: NodeVecChild;
|
|
184
185
|
orderby?: NodeChild;
|
|
185
186
|
limit?: NodeChild;
|
|
@@ -237,7 +238,7 @@ export type PipeOperator = BaseNode & {
|
|
|
237
238
|
keywords?: NodeChild;
|
|
238
239
|
exprs?: NodeVecChild;
|
|
239
240
|
};
|
|
240
|
-
}
|
|
241
|
+
};
|
|
241
242
|
|
|
242
243
|
// ----- sub types of BaseNode (concrete) -----
|
|
243
244
|
export type AddColumnClause = BaseNode & {
|
|
@@ -262,8 +263,8 @@ export type AggregatePipeOperator = PipeOperator & {
|
|
|
262
263
|
node_type: "AggregatePipeOperator";
|
|
263
264
|
children: {
|
|
264
265
|
groupby?: NodeChild;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
266
|
+
};
|
|
267
|
+
};
|
|
267
268
|
|
|
268
269
|
export type AlterBICapacityStatement = XXXStatement & {
|
|
269
270
|
node_type: "AlterBICapacityStatement";
|
|
@@ -450,7 +451,7 @@ export type Asterisk = Expr & {
|
|
|
450
451
|
|
|
451
452
|
export type BasePipeOperator = PipeOperator & {
|
|
452
453
|
node_type: "BasePipeOperator";
|
|
453
|
-
}
|
|
454
|
+
};
|
|
454
455
|
|
|
455
456
|
export type BinaryOperator = Expr & {
|
|
456
457
|
node_type: "BinaryOperator";
|
|
@@ -829,7 +830,7 @@ export type ElseIfClause = BaseNode & {
|
|
|
829
830
|
export type EmptyStruct = Expr & {
|
|
830
831
|
node_type: "EmptyStruct";
|
|
831
832
|
children: {
|
|
832
|
-
rparen: NodeChild
|
|
833
|
+
rparen: NodeChild;
|
|
833
834
|
};
|
|
834
835
|
};
|
|
835
836
|
|
|
@@ -906,7 +907,7 @@ export type FromStatement = XXXStatement & {
|
|
|
906
907
|
with: NodeChild;
|
|
907
908
|
expr: NodeChild;
|
|
908
909
|
};
|
|
909
|
-
}
|
|
910
|
+
};
|
|
910
911
|
|
|
911
912
|
export type FunctionChain = FromItemExpr & {
|
|
912
913
|
node_type: "FunctionChain";
|
|
@@ -914,7 +915,7 @@ export type FunctionChain = FromItemExpr & {
|
|
|
914
915
|
left: NodeChild;
|
|
915
916
|
right: NodeChild;
|
|
916
917
|
};
|
|
917
|
-
}
|
|
918
|
+
};
|
|
918
919
|
|
|
919
920
|
export type GrantStatement = XXXStatement & {
|
|
920
921
|
node_type: "GrantStatement";
|
|
@@ -1095,8 +1096,8 @@ export type JoinPipeOperator = PipeOperator & {
|
|
|
1095
1096
|
method?: NodeChild;
|
|
1096
1097
|
on?: NodeChild;
|
|
1097
1098
|
using?: NodeChild;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1100
1101
|
|
|
1101
1102
|
export type Keyword = BaseNode & {
|
|
1102
1103
|
token: Token;
|
|
@@ -1106,7 +1107,9 @@ export type Keyword = BaseNode & {
|
|
|
1106
1107
|
export type KeywordSequence = BaseNode & {
|
|
1107
1108
|
node_type: "KeywordSequence";
|
|
1108
1109
|
children: {
|
|
1109
|
-
next_keyword: {
|
|
1110
|
+
next_keyword: {
|
|
1111
|
+
Node: Keyword | KeywordSequence | KeywordWithExpr | KeywordWithGroupedXXX;
|
|
1112
|
+
};
|
|
1110
1113
|
};
|
|
1111
1114
|
};
|
|
1112
1115
|
|
|
@@ -1164,8 +1167,8 @@ export type LimitPipeOperator = PipeOperator & {
|
|
|
1164
1167
|
node_type: "LimitPipeOperator";
|
|
1165
1168
|
children: {
|
|
1166
1169
|
offset?: NodeChild;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1169
1172
|
|
|
1170
1173
|
export type MatchRecognizeClause = BaseNode & {
|
|
1171
1174
|
token: Token;
|
|
@@ -1262,7 +1265,6 @@ export type OrPattern = BaseNode & {
|
|
|
1262
1265
|
};
|
|
1263
1266
|
};
|
|
1264
1267
|
|
|
1265
|
-
|
|
1266
1268
|
export type OverClause = BaseNode & {
|
|
1267
1269
|
token: Token;
|
|
1268
1270
|
node_type: "OverClause";
|
|
@@ -1289,7 +1291,7 @@ export type Pattern = BaseNode & {
|
|
|
1289
1291
|
node_type: "Pattern";
|
|
1290
1292
|
children: {
|
|
1291
1293
|
suffixes: NodeVecChild;
|
|
1292
|
-
}
|
|
1294
|
+
};
|
|
1293
1295
|
};
|
|
1294
1296
|
|
|
1295
1297
|
export type PatternClause = BaseNode & {
|
|
@@ -1297,7 +1299,7 @@ export type PatternClause = BaseNode & {
|
|
|
1297
1299
|
node_type: "PatternClause";
|
|
1298
1300
|
children: {
|
|
1299
1301
|
pattern: NodeChild;
|
|
1300
|
-
}
|
|
1302
|
+
};
|
|
1301
1303
|
};
|
|
1302
1304
|
|
|
1303
1305
|
export type PatternQuantifier = BaseNode & {
|
|
@@ -1308,7 +1310,7 @@ export type PatternQuantifier = BaseNode & {
|
|
|
1308
1310
|
comma?: NodeChild;
|
|
1309
1311
|
max?: NodeChild;
|
|
1310
1312
|
rbrace: NodeChild;
|
|
1311
|
-
}
|
|
1313
|
+
};
|
|
1312
1314
|
};
|
|
1313
1315
|
|
|
1314
1316
|
export type PipeStatement = XXXStatement & {
|
|
@@ -1317,7 +1319,7 @@ export type PipeStatement = XXXStatement & {
|
|
|
1317
1319
|
left: NodeChild;
|
|
1318
1320
|
right: NodeChild;
|
|
1319
1321
|
};
|
|
1320
|
-
}
|
|
1322
|
+
};
|
|
1321
1323
|
|
|
1322
1324
|
export type PivotPipeOperator = PipeOperator & {
|
|
1323
1325
|
node_type: "PivotPipeOperator";
|
|
@@ -1326,8 +1328,8 @@ export type PivotPipeOperator = PipeOperator & {
|
|
|
1326
1328
|
config: NodeChild;
|
|
1327
1329
|
as?: NodeChild;
|
|
1328
1330
|
alias?: NodeChild;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1331
1333
|
|
|
1332
1334
|
export type PivotOperator = BaseNode & {
|
|
1333
1335
|
token: Token;
|
|
@@ -1421,8 +1423,7 @@ export type SelectPipeOperator = PipeOperator & {
|
|
|
1421
1423
|
children: {
|
|
1422
1424
|
window?: NodeChild;
|
|
1423
1425
|
};
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
+
};
|
|
1426
1427
|
|
|
1427
1428
|
export type SetOperator = XXXStatement & {
|
|
1428
1429
|
node_type: "SetOperator";
|
|
@@ -1480,8 +1481,8 @@ export type TableSamplePipeOperator = PipeOperator & {
|
|
|
1480
1481
|
children: {
|
|
1481
1482
|
exprs: undefined;
|
|
1482
1483
|
group?: NodeChild;
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1485
1486
|
|
|
1486
1487
|
export type TableSampleRatio = BaseNode & {
|
|
1487
1488
|
token: Token;
|
|
@@ -1535,7 +1536,7 @@ export type Type = BaseNode & {
|
|
|
1535
1536
|
enforced?: NodeChild;
|
|
1536
1537
|
default?: NodeChild;
|
|
1537
1538
|
options?: NodeChild;
|
|
1538
|
-
collate?: NodeChild
|
|
1539
|
+
collate?: NodeChild;
|
|
1539
1540
|
aggregate?: NodeChild;
|
|
1540
1541
|
};
|
|
1541
1542
|
};
|
|
@@ -1573,8 +1574,8 @@ export type UnionPipeOperator = PipeOperator & {
|
|
|
1573
1574
|
method?: NodeChild;
|
|
1574
1575
|
by?: NodeChild;
|
|
1575
1576
|
corresponding?: NodeChild;
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1578
1579
|
|
|
1579
1580
|
export type UnpivotConfig = BaseNode & {
|
|
1580
1581
|
token: Token;
|
|
@@ -1594,8 +1595,8 @@ export type UnpivotPipeOperator = PipeOperator & {
|
|
|
1594
1595
|
config: NodeChild;
|
|
1595
1596
|
as?: NodeChild;
|
|
1596
1597
|
alias?: NodeChild;
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1599
1600
|
|
|
1600
1601
|
export type UnpivotOperator = BaseNode & {
|
|
1601
1602
|
token: Token;
|
|
@@ -1731,5 +1732,3 @@ export type XXXByExprs = BaseNode & {
|
|
|
1731
1732
|
exprs: { NodeVec: Expr[] & UnknownNode[] };
|
|
1732
1733
|
};
|
|
1733
1734
|
};
|
|
1734
|
-
|
|
1735
|
-
|
package/bq2cst_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
"collaborators": [
|
|
4
4
|
"kitta65 <kitta65kitta@gmail.com>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0-beta.1",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"files": [
|
|
9
9
|
"bq2cst_bg.wasm",
|
|
10
10
|
"bq2cst.js",
|
|
11
|
-
"bq2cst.d.ts"
|
|
11
|
+
"bq2cst.d.ts",
|
|
12
|
+
"LICENSE-THIRD-PARTY"
|
|
12
13
|
],
|
|
13
14
|
"main": "bq2cst.js",
|
|
14
15
|
"types": "bq2cst.d.ts"
|