llonebot-dist 7.11.4 → 7.12.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.
Files changed (42) hide show
  1. package/llbot.js +29897 -27381
  2. package/llbot.js.map +1 -1
  3. package/node_modules/file-type/package.json +2 -1
  4. package/node_modules/file-type/source/index.js +7 -2
  5. package/node_modules/reggol/lib/browser.d.ts +1 -0
  6. package/node_modules/reggol/lib/browser.js +255 -0
  7. package/node_modules/reggol/lib/node.d.ts +1 -0
  8. package/node_modules/reggol/lib/node.js +251 -27
  9. package/node_modules/reggol/lib/shared.d.ts +78 -0
  10. package/node_modules/reggol/package.json +10 -14
  11. package/node_modules/supports-color/browser.d.ts +1 -0
  12. package/node_modules/supports-color/browser.js +25 -14
  13. package/node_modules/supports-color/index.d.ts +55 -0
  14. package/node_modules/supports-color/index.js +88 -38
  15. package/node_modules/supports-color/package.json +21 -15
  16. package/node_modules/supports-color/readme.md +20 -22
  17. package/package.json +1 -1
  18. package/webui/assets/index-CW4srXaj.css +2 -0
  19. package/webui/assets/index-CuYVu9u0.js +37 -0
  20. package/webui/index.html +2 -2
  21. package//346/233/264/346/226/260/346/227/245/345/277/227.txt +15 -0
  22. package/node_modules/@minatojs/sql.js/LICENSE +0 -44
  23. package/node_modules/@minatojs/sql.js/README.md +0 -357
  24. package/node_modules/@minatojs/sql.js/dist/sql-wasm.d.ts +0 -316
  25. package/node_modules/@minatojs/sql.js/dist/sql-wasm.js +0 -225
  26. package/node_modules/@minatojs/sql.js/dist/sql-wasm.wasm +0 -0
  27. package/node_modules/@minatojs/sql.js/package.json +0 -58
  28. package/node_modules/has-flag/index.d.ts +0 -39
  29. package/node_modules/has-flag/index.js +0 -8
  30. package/node_modules/has-flag/license +0 -9
  31. package/node_modules/has-flag/package.json +0 -46
  32. package/node_modules/has-flag/readme.md +0 -89
  33. package/node_modules/reggol/index.d.ts +0 -79
  34. package/node_modules/reggol/lib/browser.mjs +0 -299
  35. package/node_modules/reggol/lib/shared.js +0 -258
  36. package/node_modules/reggol/lib/shared.mjs +0 -266
  37. package/node_modules/reggol/src/browser.ts +0 -8
  38. package/node_modules/reggol/src/index.ts +0 -3
  39. package/node_modules/reggol/src/node.ts +0 -8
  40. package/node_modules/reggol/src/shared.ts +0 -249
  41. package/webui/assets/index-CIxcRDVu.js +0 -37
  42. package/webui/assets/index-DsGxgscs.css +0 -2
@@ -1,316 +0,0 @@
1
- // Type definitions for sql.js 1.4
2
- // Project: https://github.com/sql-js/sql.js
3
- // Definitions by: Florian Imdahl <https://github.com/ffflorian>
4
- // Yehyoung Kang <https://github.com/pastelmind>
5
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
- // TypeScript Version: 2.3
7
-
8
- /// <reference types="node" />
9
- /// <reference types="emscripten" />
10
-
11
- type SqlValue = number | string | Uint8Array | null;
12
- type ParamsObject = Record<string, SqlValue>;
13
- type ParamsCallback = (obj: ParamsObject) => void;
14
- type SqlJsConfig = Partial<EmscriptenModule>;
15
- type BindParams = SqlValue[] | ParamsObject | null;
16
-
17
- interface QueryExecResult {
18
- columns: string[];
19
- values: SqlValue[][];
20
- }
21
-
22
- interface StatementIteratorResult {
23
- /** `true` if there are no more available statements */
24
- done: boolean;
25
- /** the next available Statement (as returned by `Database.prepare`) */
26
- value: Statement;
27
- }
28
-
29
- interface SqlJsStatic {
30
- Database: typeof Database;
31
- Statement: typeof Statement;
32
- }
33
-
34
- interface InitSqlJsStatic {
35
- (config?: SqlJsConfig): Promise<SqlJsStatic>;
36
- readonly default: this;
37
- }
38
-
39
- declare class Database {
40
- /**
41
- * Represents an SQLite database
42
- * @see [https://sql.js.org/documentation/Database.html#Database](https://sql.js.org/documentation/Database.html#Database)
43
- *
44
- * @param data An array of bytes representing an SQLite database file
45
- */
46
- constructor(filepath?: string, data?: ArrayLike<number> | Buffer | null);
47
-
48
- /**
49
- * Close the database, and all associated prepared statements. The
50
- * memory associated to the database and all associated statements will
51
- * be freed.
52
- *
53
- * **Warning**: A statement belonging to a database that has been closed
54
- * cannot be used anymore.
55
- *
56
- * Databases must be closed when you're finished with them, or the
57
- * memory consumption will grow forever
58
- * @see [https://sql.js.org/documentation/Database.html#["close"]](https://sql.js.org/documentation/Database.html#%5B%22close%22%5D)
59
- */
60
- close(): void;
61
-
62
- /**
63
- * Register a custom function with SQLite
64
- * @see [https://sql.js.org/documentation/Database.html#["create_function"]](https://sql.js.org/documentation/Database.html#%5B%22create_function%22%5D)
65
- *
66
- * @param name the name of the function as referenced in SQL statements.
67
- * @param func the actual function to be executed.
68
- */
69
- create_function(name: string, func: (...args: any[]) => any): Database;
70
-
71
- /**
72
- * Execute an sql statement, and call a callback for each row of result.
73
- *
74
- * Currently this method is synchronous, it will not return until the
75
- * callback has been called on every row of the result. But this might
76
- * change.
77
- * @see [https://sql.js.org/documentation/Database.html#["each"]](https://sql.js.org/documentation/Database.html#%5B%22each%22%5D)
78
- *
79
- * @param sql A string of SQL text. Can contain placeholders that will
80
- * be bound to the parameters given as the second argument
81
- * @param params Parameters to bind to the query
82
- * @param callback Function to call on each row of result
83
- * @param done A function that will be called when all rows have been
84
- * retrieved
85
- */
86
- each(sql: string, params: BindParams, callback: ParamsCallback, done: () => void): Database;
87
- each(sql: string, callback: ParamsCallback, done: () => void): Database;
88
-
89
- /**
90
- * Execute an SQL query, and returns the result.
91
- *
92
- * This is a wrapper against `Database.prepare`, `Statement.bind`, `Statement.step`, `Statement.get`, and `Statement.free`.
93
- *
94
- * The result is an array of result elements. There are as many result elements as the number of statements in your sql string (statements are separated by a semicolon)
95
- * @see [https://sql.js.org/documentation/Database.html#["exec"]](https://sql.js.org/documentation/Database.html#%5B%22exec%22%5D)
96
- *
97
- * @param sql a string containing some SQL text to execute
98
- * @param params When the SQL statement contains placeholders, you can
99
- * pass them in here. They will be bound to the statement before it is
100
- * executed. If you use the params argument as an array, you **cannot**
101
- * provide an sql string that contains several statements (separated by
102
- * `;`). This limitation does not apply to params as an object.
103
- */
104
- exec(sql: string, params?: BindParams): QueryExecResult[];
105
-
106
- /**
107
- * Exports the contents of the database to a binary array
108
- * @see [https://sql.js.org/documentation/Database.html#["export"]](https://sql.js.org/documentation/Database.html#%5B%22export%22%5D)
109
- */
110
- export(): Uint8Array;
111
-
112
- /**
113
- * Returns the number of changed rows (modified, inserted or deleted) by
114
- * the latest completed `INSERT`, `UPDATE` or `DELETE` statement on the
115
- * database. Executing any other type of SQL statement does not modify
116
- * the value returned by this function.
117
- * @see [https://sql.js.org/documentation/Database.html#["getRowsModified"]](https://sql.js.org/documentation/Database.html#%5B%22getRowsModified%22%5D)
118
- */
119
- getRowsModified(): number;
120
-
121
- /**
122
- * Analyze a result code, return null if no error occured, and throw an
123
- * error with a descriptive message otherwise
124
- * @see [https://sql.js.org/documentation/Database.html#["handleError"]](https://sql.js.org/documentation/Database.html#%5B%22handleError%22%5D)
125
- */
126
- handleError(): null | never;
127
-
128
- /**
129
- * Iterate over multiple SQL statements in a SQL string. This function
130
- * returns an iterator over Statement objects. You can use a `for..of`
131
- * loop to execute the returned statements one by one.
132
- * @see [https://sql.js.org/documentation/Database.html#["iterateStatements"]](https://sql.js.org/documentation/Database.html#%5B%22iterateStatements%22%5D)
133
- *
134
- * @param sql a string of SQL that can contain multiple statements
135
- */
136
- iterateStatements(sql: string): StatementIterator;
137
-
138
- /**
139
- * Prepare an SQL statement
140
- * @see [https://sql.js.org/documentation/Database.html#["prepare"]](https://sql.js.org/documentation/Database.html#%5B%22prepare%22%5D)
141
- *
142
- * @param sql a string of SQL, that can contain placeholders (`?`, `:VVV`, `:AAA`, `@AAA`)
143
- * @param params values to bind to placeholders
144
- */
145
- prepare(sql: string, params?: BindParams): Statement;
146
-
147
- /**
148
- * Execute an SQL query, ignoring the rows it returns.
149
- * @see [https://sql.js.org/documentation/Database.html#["run"]](https://sql.js.org/documentation/Database.html#%5B%22run%22%5D)
150
- *
151
- * @param sql a string containing some SQL text to execute
152
- * @param params When the SQL statement contains placeholders, you can
153
- * pass them in here. They will be bound to the statement before it is
154
- * executed. If you use the params argument as an array, you **cannot**
155
- * provide an sql string that contains several statements (separated by
156
- * `;`). This limitation does not apply to params as an object.
157
- */
158
- run(sql: string, params?: BindParams): Database;
159
-
160
- flush(): void;
161
- size(): number;
162
- }
163
-
164
- declare class Statement {
165
- /**
166
- * Bind values to the parameters, after having reseted the statement. If
167
- * values is null, do nothing and return true.
168
- *
169
- * SQL statements can have parameters, named '?', '?NNN', ':VVV',
170
- * '@VVV', '$VVV', where NNN is a number and VVV a string. This function
171
- * binds these parameters to the given values.
172
- *
173
- * Warning: ':', '@', and '$' are included in the parameters names
174
- *
175
- * ### Value types
176
- *
177
- * |Javascript type|SQLite type|
178
- * |-|-|
179
- * |number|REAL, INTEGER|
180
- * |boolean|INTEGER|
181
- * |string|TEXT|
182
- * |Array, Uint8Array|BLOB|
183
- * |null|NULL|
184
- * @see [https://sql.js.org/documentation/Statement.html#["bind"]](https://sql.js.org/documentation/Statement.html#%5B%22bind%22%5D)
185
- *
186
- * @param values The values to bind
187
- */
188
- bind(values?: BindParams): boolean;
189
-
190
- /**
191
- * Free the memory used by the statement
192
- * @see [https://sql.js.org/documentation/Statement.html#["free"]](https://sql.js.org/documentation/Statement.html#%5B%22free%22%5D)
193
- */
194
- free(): boolean;
195
-
196
- /**
197
- * Free the memory allocated during parameter binding
198
- * @see [https://sql.js.org/documentation/Statement.html#["freemem"]](https://sql.js.org/documentation/Statement.html#%5B%22freemem%22%5D)
199
- */
200
- freemem(): void;
201
-
202
- /**
203
- * Get one row of results of a statement. If the first parameter is not
204
- * provided, step must have been called before.
205
- * @see [https://sql.js.org/documentation/Statement.html#["get"]](https://sql.js.org/documentation/Statement.html#%5B%22get%22%5D)
206
- *
207
- * @param params If set, the values will be bound to the statement
208
- * before it is executed
209
- */
210
- get(params?: BindParams): SqlValue[];
211
-
212
- /**
213
- * Get one row of result as a javascript object, associating column
214
- * names with their value in the current row
215
- * @see [https://sql.js.org/documentation/Statement.html#["getAsObject"]](https://sql.js.org/documentation/Statement.html#%5B%22getAsObject%22%5D)
216
- *
217
- * @param params If set, the values will be bound to the statement, and
218
- * it will be executed
219
- */
220
- getAsObject(params?: BindParams): ParamsObject;
221
-
222
- /**
223
- * Get the list of column names of a row of result of a statement.
224
- * @see [https://sql.js.org/documentation/Statement.html#["getColumnNames"]](https://sql.js.org/documentation/Statement.html#%5B%22getColumnNames%22%5D)
225
- */
226
- getColumnNames(): string[];
227
-
228
- /**
229
- * Get the SQLite's normalized version of the SQL string used in
230
- * preparing this statement. The meaning of "normalized" is not
231
- * well-defined: see
232
- * [the SQLite documentation](https://sqlite.org/c3ref/expanded_sql.html).
233
- * @see [https://sql.js.org/documentation/Statement.html#["getNormalizedSQL"]](https://sql.js.org/documentation/Statement.html#%5B%22getNormalizedSQL%22%5D)
234
- */
235
- getNormalizedSQL(): string;
236
-
237
- /**
238
- * Get the SQL string used in preparing this statement.
239
- * @see [https://sql.js.org/documentation/Statement.html#["getSQL"]](https://sql.js.org/documentation/Statement.html#%5B%22getSQL%22%5D)
240
- */
241
- getSQL(): string;
242
-
243
- /**
244
- * Reset a statement, so that it's parameters can be bound to new
245
- * values. It also clears all previous bindings, freeing the memory used
246
- * by bound parameters.
247
- * @see [https://sql.js.org/documentation/Statement.html#["reset"]](https://sql.js.org/documentation/Statement.html#%5B%22reset%22%5D)
248
- */
249
- reset(): void;
250
-
251
- /**
252
- * Shorthand for bind + step + reset Bind the values, execute the
253
- * statement, ignoring the rows it returns, and resets it
254
- * @param values Value to bind to the statement
255
- */
256
- run(values?: BindParams): void;
257
-
258
- /**
259
- * Execute the statement, fetching the the next line of result, that can
260
- * be retrieved with `Statement.get`.
261
- * @see [https://sql.js.org/documentation/Statement.html#["step"]](https://sql.js.org/documentation/Statement.html#%5B%22step%22%5D)
262
- */
263
- step(): boolean;
264
- }
265
-
266
- /**
267
- * An iterator over multiple SQL statements in a string, preparing and
268
- * returning a Statement object for the next SQL statement on each
269
- * iteration.
270
- *
271
- * You can't instantiate this class directly, you have to use a Database
272
- * object in order to create a statement iterator
273
- * @see [https://sql.js.org/documentation/StatementIterator.html#StatementIterator](https://sql.js.org/documentation/StatementIterator.html#StatementIterator)
274
- */
275
- declare class StatementIterator implements Iterator<Statement>, Iterable<Statement> {
276
- [Symbol.iterator](): Iterator<Statement>;
277
- /**
278
- * Get any un-executed portions remaining of the original SQL string
279
- * @see [https://sql.js.org/documentation/StatementIterator.html#["getRemainingSQL"]](https://sql.js.org/documentation/StatementIterator.html#%5B%22getRemainingSQL%22%5D)
280
- */
281
- getRemainingSql(): string;
282
-
283
- /**
284
- * Prepare the next available SQL statement
285
- * @see [https://sql.js.org/documentation/StatementIterator.html#["next"]](https://sql.js.org/documentation/StatementIterator.html#%5B%22next%22%5D)
286
- */
287
- next(): StatementIteratorResult;
288
- }
289
-
290
- declare namespace initSqlJs {
291
- export {
292
- // types
293
- SqlValue,
294
- ParamsObject,
295
- ParamsCallback,
296
- SqlJsConfig,
297
- BindParams,
298
-
299
- // interfaces
300
- QueryExecResult,
301
- StatementIteratorResult,
302
- SqlJsStatic,
303
- InitSqlJsStatic,
304
- };
305
-
306
- // classes
307
- type _Database = Database;
308
- type _Statement = Statement;
309
- type _StatementIterator = StatementIterator;
310
- export { _Database as Database, _Statement as Statement, _StatementIterator as StatementIterator };
311
- }
312
-
313
- declare var initSqlJs: InitSqlJsStatic;
314
-
315
- export = initSqlJs;
316
- export as namespace initSqlJs;