@aiao/rxdb-adapter-sqliteai 0.0.20
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 +21 -0
- package/dist/RxDBAdapterSqliteai.d.ts +23 -0
- package/dist/RxDBAdapterSqliteai.d.ts.map +1 -0
- package/dist/SqliteaiClient.d.ts +14 -0
- package/dist/SqliteaiClient.d.ts.map +1 -0
- package/dist/create_sqlite_client.d.ts +14 -0
- package/dist/create_sqlite_client.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +50 -0
- package/dist/sqliteai-load.utils.d.ts +20 -0
- package/dist/sqliteai-load.utils.d.ts.map +1 -0
- package/dist/sqliteai.interface.d.ts +40 -0
- package/dist/sqliteai.interface.d.ts.map +1 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Aiao Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RxDB } from '../packages/rxdb/src/index.ts';
|
|
2
|
+
import { RxDBAdapterSqliteBase, SqliteClientLike } from '../packages/rxdb-adapter-sqlite-core/src/index.ts';
|
|
3
|
+
import { ADAPTER_NAME, SqliteaiOptions } from './sqliteai.interface.js';
|
|
4
|
+
/**
|
|
5
|
+
* 基于 `@sqliteai/sqlite-wasm` 的 RxDB 本地存储适配器。
|
|
6
|
+
*
|
|
7
|
+
* 与 `rxdb-adapter-sqlite`(官方 sqlite-wasm 绑定)API 对齐,差异:
|
|
8
|
+
* - WASM 二进制来自 SqliteAI 的发行版(OPFS / Worker 配置一致)
|
|
9
|
+
* - 客户端实现继承 `Oo1ClientBase`,复用 sqlite-core 的队列与事件批处理
|
|
10
|
+
*/
|
|
11
|
+
export declare class RxDBAdapterSqliteai extends RxDBAdapterSqliteBase {
|
|
12
|
+
#private;
|
|
13
|
+
readonly options: SqliteaiOptions;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
constructor(rxdb: RxDB, options: SqliteaiOptions);
|
|
16
|
+
protected createClient(): Promise<SqliteClientLike>;
|
|
17
|
+
}
|
|
18
|
+
declare module '../packages/rxdb/src/index.ts' {
|
|
19
|
+
interface RxDBAdapters {
|
|
20
|
+
[ADAPTER_NAME]: RxDBAdapterSqliteai;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=RxDBAdapterSqliteai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RxDBAdapterSqliteai.d.ts","sourceRoot":"","sources":["../src/RxDBAdapterSqliteai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE7E;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,qBAAqB;;IAM1D,QAAQ,CAAC,OAAO,EAAE,eAAe;IAJnC,SAAkB,IAAI,EAAE,MAAM,CAAgB;gBAG5C,IAAI,EAAE,IAAI,EACD,OAAO,EAAE,eAAe;cAMV,YAAY,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAGnE;AAED,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,YAAY;QACpB,CAAC,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACrC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BATCH_TIMEOUT, Oo1ClientBase, Oo1Static } from '../packages/rxdb-adapter-sqlite-core/src/index.ts';
|
|
2
|
+
import { SqliteaiLoadOptions } from './sqliteai.interface.js';
|
|
3
|
+
export { BATCH_TIMEOUT };
|
|
4
|
+
/**
|
|
5
|
+
* SqliteAI 的 oo1 客户端实现。
|
|
6
|
+
*
|
|
7
|
+
* 仅声明 `clientName` 与 `loadModule`,其余生命周期(init / disconnect / 事件批处理 /
|
|
8
|
+
* 队列 / 自定义函数注册 / OPFS fallback)全部由 `Oo1ClientBase` 提供。
|
|
9
|
+
*/
|
|
10
|
+
export declare class SqliteaiClient extends Oo1ClientBase<SqliteaiLoadOptions> {
|
|
11
|
+
protected get clientName(): string;
|
|
12
|
+
protected loadModule(options?: SqliteaiLoadOptions): Promise<Oo1Static>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SqliteaiClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SqliteaiClient.d.ts","sourceRoot":"","sources":["../src/SqliteaiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,aAAa,CAAC,mBAAmB,CAAC;IACpE,SAAS,KAAK,UAAU,IAAI,MAAM,CAEjC;IAED,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,SAAS,CAAC;CAGxE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SqliteaiOptions } from './sqliteai.interface.js';
|
|
2
|
+
import { SqliteaiClient } from './SqliteaiClient.js';
|
|
3
|
+
/**
|
|
4
|
+
* 创建 SqliteAI 客户端实例并完成初始化。
|
|
5
|
+
*
|
|
6
|
+
* 如果 `options` 中指定了 worker / sharedWorker,会通过 `wrapWithComlink` 把客户端代理到 worker;
|
|
7
|
+
* 否则在主线程直接 new。
|
|
8
|
+
*
|
|
9
|
+
* @param dbName - 数据库名(用于持久化文件名归一化)
|
|
10
|
+
* @param options - SqliteAI 适配器选项(含 OPFS / worker / 缓存大小等)
|
|
11
|
+
* @returns 已 `init` 完成、可直接执行 SQL 的客户端
|
|
12
|
+
*/
|
|
13
|
+
export declare function createSqliteClient(dbName: string, options: SqliteaiOptions): Promise<SqliteaiClient>;
|
|
14
|
+
//# sourceMappingURL=create_sqlite_client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create_sqlite_client.d.ts","sourceRoot":"","sources":["../src/create_sqlite_client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA4B,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAe1G"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ROWID, RxDBAdapterSqliteError, SqliteRepository, buildRuleGroup, get_table_name as sqliteGetTableName, get_table_name_by_metadata as sqliteGetTableNameByMetadata } from '../packages/rxdb-adapter-sqlite-core/src/index.ts';
|
|
2
|
+
export type { GenerateSqlResult } from '../packages/rxdb-adapter-sqlite-core/src/index.ts';
|
|
3
|
+
export { createSqliteClient } from './create_sqlite_client.js';
|
|
4
|
+
export { RxDBAdapterSqliteai } from './RxDBAdapterSqliteai.js';
|
|
5
|
+
export { sqliteaiLoad } from './sqliteai-load.utils.js';
|
|
6
|
+
export type { SqliteaiOptions } from './sqliteai.interface.js';
|
|
7
|
+
export { SqliteaiClient } from './SqliteaiClient.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,cAAc,IAAI,kBAAkB,EACpC,0BAA0B,IAAI,4BAA4B,EAC3D,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Oo1ClientBase as e, ROWID as t, RxDBAdapterSqliteBase as n, RxDBAdapterSqliteError as r, SqliteRepository as i, buildOo1InitOptions as a, buildRuleGroup as o, defaultWarn as s, get_table_name as c, get_table_name_by_metadata as l, withPatchedOpfsProxyWorker as u, withSqliteApiConfig as d, wrapWithComlink as f } from "@aiao/rxdb-adapter-sqlite-core";
|
|
2
|
+
import p from "@sqliteai/sqlite-wasm";
|
|
3
|
+
//#region src/sqliteai-load.utils.ts
|
|
4
|
+
var m, h = !1;
|
|
5
|
+
async function g(e) {
|
|
6
|
+
let t = !!e?.opfs && !!e.opfsProxyPath;
|
|
7
|
+
if (m && (!t || h)) return m;
|
|
8
|
+
let n = a(e);
|
|
9
|
+
return m = await u(e, async () => await d({ warn: s }, async () => await p(n))), h = t, m.config && (m.config.warn = s), m;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/SqliteaiClient.ts
|
|
13
|
+
var _ = class extends e {
|
|
14
|
+
get clientName() {
|
|
15
|
+
return "sqliteai";
|
|
16
|
+
}
|
|
17
|
+
loadModule(e) {
|
|
18
|
+
return g(e);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/create_sqlite_client.ts
|
|
23
|
+
async function v(e, t) {
|
|
24
|
+
let n = {
|
|
25
|
+
opfs: t.opfs,
|
|
26
|
+
wasmPath: t.wasmPath,
|
|
27
|
+
opfsProxyPath: t.opfsProxyPath,
|
|
28
|
+
locateFile: t.locateFile,
|
|
29
|
+
print: t.print,
|
|
30
|
+
printErr: t.printErr,
|
|
31
|
+
cacheSizeKb: t.cacheSizeKb,
|
|
32
|
+
batchTimeout: t.batchTimeout
|
|
33
|
+
}, r = f(new _(), t);
|
|
34
|
+
return await r.init(e, n), r;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/sqliteai.interface.ts
|
|
38
|
+
var y = "sqliteai", b = class extends n {
|
|
39
|
+
options;
|
|
40
|
+
#e;
|
|
41
|
+
name = y;
|
|
42
|
+
constructor(e, t) {
|
|
43
|
+
super(e, t), this.options = t, this.#e = e.config.dbName;
|
|
44
|
+
}
|
|
45
|
+
async createClient() {
|
|
46
|
+
return v(this.#e, this.options);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { t as ROWID, r as RxDBAdapterSqliteError, b as RxDBAdapterSqliteai, i as SqliteRepository, _ as SqliteaiClient, o as buildRuleGroup, v as createSqliteClient, c as sqliteGetTableName, l as sqliteGetTableNameByMetadata, g as sqliteaiLoad };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Oo1Static } from '../packages/rxdb-adapter-sqlite-core/src/index.ts';
|
|
2
|
+
import { SqliteaiLoadOptions } from './sqliteai.interface.js';
|
|
3
|
+
/**
|
|
4
|
+
* 清除模块级 SqliteAI WASM 缓存。
|
|
5
|
+
*
|
|
6
|
+
* 仅供测试使用:每个测试用例需要重新加载干净模块时调用,
|
|
7
|
+
* 生产代码不应依赖这个钩子。
|
|
8
|
+
*/
|
|
9
|
+
export declare function resetSqliteaiLoadCache(): void;
|
|
10
|
+
/**
|
|
11
|
+
* 加载 SqliteAI WASM 模块(带模块级缓存)。
|
|
12
|
+
*
|
|
13
|
+
* 第一次调用会下载并初始化 WASM;之后调用复用缓存的 `Oo1Static`。
|
|
14
|
+
* 若新调用需要 OPFS proxy patch 而缓存模块未启用过,会重新加载一次以应用 patch。
|
|
15
|
+
*
|
|
16
|
+
* @param options - 加载选项(含 OPFS / wasmPath / printErr 等)
|
|
17
|
+
* @returns 共享的 `Oo1Static` 实例
|
|
18
|
+
*/
|
|
19
|
+
export declare function sqliteaiLoad(options?: SqliteaiLoadOptions): Promise<Oo1Static>;
|
|
20
|
+
//# sourceMappingURL=sqliteai-load.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqliteai-load.utils.d.ts","sourceRoot":"","sources":["../src/sqliteai-load.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAGf,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAKnE;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,SAAS,CAAC,CAmBpF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EntityType, IRxDBAdapterOptions, RepositoryBase } from '../packages/rxdb/src/index.ts';
|
|
2
|
+
import { OpfsFallback, RxDBAdapterSqliteBase } from '../packages/rxdb-adapter-sqlite-core/src/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* SqliteAI 适配器的可配置项(不含自定义 repository 注册)。
|
|
5
|
+
*
|
|
6
|
+
* - `opfs` / `opfsProxyPath` / `opfsFallback`:OPFS 持久化相关
|
|
7
|
+
* - `wasmPath` / `locateFile`:WASM 资源定位
|
|
8
|
+
* - `worker` / `sharedWorker` + `*Instance`:跨线程运行
|
|
9
|
+
* - `cacheSizeKb` / `batchTimeout`:性能调优
|
|
10
|
+
*/
|
|
11
|
+
interface SqliteaiOptionsBase extends IRxDBAdapterOptions {
|
|
12
|
+
opfs?: boolean;
|
|
13
|
+
wasmPath?: string;
|
|
14
|
+
opfsProxyPath?: string;
|
|
15
|
+
locateFile?: (name: string) => string;
|
|
16
|
+
print?: (msg: string) => void;
|
|
17
|
+
printErr?: (msg: string) => void;
|
|
18
|
+
/** @see https://www.sqlite.org/pragma.html#pragma_cache_size @default 51200 */
|
|
19
|
+
cacheSizeKb?: number;
|
|
20
|
+
/** @default 16 (BALANCED) @see BATCH_TIMEOUT */
|
|
21
|
+
batchTimeout?: number;
|
|
22
|
+
/** Behaviour when OPFS database opening fails. @default 'memory' */
|
|
23
|
+
opfsFallback?: OpfsFallback;
|
|
24
|
+
worker?: boolean;
|
|
25
|
+
workerInstance?: Worker;
|
|
26
|
+
sharedWorker?: boolean;
|
|
27
|
+
sharedWorkerInstance?: SharedWorker;
|
|
28
|
+
}
|
|
29
|
+
/** 自定义 Repository 类的构造器签名(用户可覆盖默认 Repository / TreeRepository)。 */
|
|
30
|
+
export type SqliteaiRepositoryConstructor<T extends RepositoryBase<any>> = new (adapter: RxDBAdapterSqliteBase, EntityType: EntityType) => T;
|
|
31
|
+
/** SqliteAI 适配器完整选项(含可选的自定义 Repository 注册表)。 */
|
|
32
|
+
export interface SqliteaiOptions extends SqliteaiOptionsBase {
|
|
33
|
+
repositories?: Record<string, SqliteaiRepositoryConstructor<any>>;
|
|
34
|
+
}
|
|
35
|
+
/** `sqliteaiLoad` 接受的运行期选项子集(剥离 worker / repository 配置)。 */
|
|
36
|
+
export type SqliteaiLoadOptions = Pick<SqliteaiOptionsBase, 'opfs' | 'wasmPath' | 'opfsProxyPath' | 'locateFile' | 'print' | 'printErr' | 'cacheSizeKb' | 'batchTimeout' | 'opfsFallback'>;
|
|
37
|
+
/** 在 RxDB 中注册此适配器使用的名称。 */
|
|
38
|
+
export declare const ADAPTER_NAME: "sqliteai";
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=sqliteai.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqliteai.interface.d.ts","sourceRoot":"","sources":["../src/sqliteai.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE1F;;;;;;;GAOG;AACH,UAAU,mBAAoB,SAAQ,mBAAmB;IACvD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,YAAY,CAAC;CACrC;AAED,mEAAmE;AACnE,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,IAAI,KACzE,OAAO,EAAE,qBAAqB,EAC9B,UAAU,EAAE,UAAU,KACnB,CAAC,CAAC;AAEP,gDAAgD;AAChD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,GAAG,CAAC,CAAC,CAAC;CACnE;AAED,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,mBAAmB,EACjB,MAAM,GACN,UAAU,GACV,eAAe,GACf,YAAY,GACZ,OAAO,GACP,UAAU,GACV,aAAa,GACb,cAAc,GACd,cAAc,CACjB,CAAC;AAEF,2BAA2B;AAC3B,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aiao/rxdb-adapter-sqliteai",
|
|
3
|
+
"version": "0.0.20",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": "./package.json",
|
|
10
|
+
".": {
|
|
11
|
+
"@aiao/source": "./src/index.ts",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"!**/*.tsbuildinfo"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"nx": {
|
|
25
|
+
"name": "rxdb-adapter-sqliteai",
|
|
26
|
+
"tags": [
|
|
27
|
+
"js-lib"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@sqliteai/sqlite-wasm": "3.50.4-sync.1.0.16-vector.0.9.95-memory.0.9.0",
|
|
32
|
+
"comlink": "^4.4.2",
|
|
33
|
+
"rxjs": "^7.8.2",
|
|
34
|
+
"@aiao/rxdb": "0.0.20",
|
|
35
|
+
"@aiao/rxdb-adapter-sqlite-core": "0.0.20"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"ms": "^2.1.3",
|
|
39
|
+
"@aiao/rxdb-test": "0.0.20"
|
|
40
|
+
}
|
|
41
|
+
}
|