diff --git a/web/flow-typed/npm/sql.js_vx.x.x.js b/web/flow-typed/npm/sql.js_vx.x.x.js deleted file mode 100644 --- a/web/flow-typed/npm/sql.js_vx.x.x.js +++ /dev/null @@ -1,89 +0,0 @@ -// @flow - -// flow-typed signature: f355493becad56880bf30832260c5460 -// flow-typed version: <>/sql.js_v1.8.0/flow_v0.182.0 - -declare module 'sql.js' { - declare export type SqlValue = number | string | Uint8Array | null; - declare export type ParamsObject = { +[key: string]: SqlValue }; - declare export type ParamsCallback = (obj: ParamsObject) => void; - - declare export type BindParams = - | $ReadOnlyArray - | ParamsObject - | null; - - declare export type QueryExecResult = { - columns: string[], - values: SqlValue[][], - }; - - declare export type StatementIteratorResult = { - +done: boolean, - +value: SqliteStatement, - }; - - declare export type SqlJsStatic = { - +Database: Class, - +Statement: Class, - }; - - declare type EmscriptenModule = { - +locateFile: (path: string, prefix?: string) => string, - ... - }; - - declare type InitSqlJsStatic = { - (config?: EmscriptenModule): Promise, - }; - - declare export class SqliteDatabase { - constructor(data?: Array | Uint8Array | Buffer | null): this; - close(): void; - - create_function( - name: string, - func: (...args: $ReadOnlyArray) => R, - ): SqliteDatabase; - each( - sql: string, - params: BindParams, - callback: ParamsCallback, - done: () => void, - ): SqliteDatabase; - each( - sql: string, - callback: ParamsCallback, - done: () => void, - ): SqliteDatabase; - exec(sql: string, params?: BindParams): QueryExecResult[]; - export(): Uint8Array; - getRowsModified(): number; - handleError(): null | empty; - iterateStatements(sql: string): StatementIterator; - prepare(sql: string, params?: BindParams): SqliteStatement; - run(sql: string, params?: BindParams): SqliteDatabase; - } - - declare export class SqliteStatement { - bind(values?: BindParams): boolean; - free(): boolean; - freemem(): void; - get(params?: BindParams): $ReadOnlyArray; - getAsObject(params?: BindParams): ParamsObject; - getColumnNames(): $ReadOnlyArray; - getNormalizedSQL(): string; - getSQL(): string; - reset(): void; - run(values?: BindParams): void; - step(): boolean; - } - - declare export class StatementIterator implements Iterable { - @@iterator: () => Iterator; - getRemainingSql(): string; - next(): StatementIteratorResult; - } - - declare export default InitSqlJsStatic; -} diff --git a/web/package.json b/web/package.json --- a/web/package.json +++ b/web/package.json @@ -87,7 +87,6 @@ "reselect": "^4.0.0", "simple-markdown": "^0.7.2", "siwe": "^1.1.6", - "sql.js": "^1.8.0", "thumbhash": "^0.1.1", "tinycolor2": "^1.4.1", "uuid": "^3.4.0", diff --git a/yarn.lock b/yarn.lock --- a/yarn.lock +++ b/yarn.lock @@ -21940,11 +21940,6 @@ resolved "https://registry.yarnpkg.com/sql-template-strings/-/sql-template-strings-2.2.2.tgz#3f11508a25addfce217a3042a9d300c3193b96ff" integrity sha1-PxFQiiWt384hejBCqdMAwxk7lv8= -sql.js@^1.8.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/sql.js/-/sql.js-1.8.0.tgz#cb45d957e17a2239662fe2f614c9b678990867a6" - integrity sha512-3HD8pSkZL+5YvYUI8nlvNILs61ALqq34xgmF+BHpqxe68yZIJ1H+sIVIODvni25+CcxHUxDyrTJUL0lE/m7afw== - sqlite3@^5.0.2: version "5.1.5" resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-5.1.5.tgz#cf5a753c98914f3aa44b7bd057702fdca6abceb6"