@univerjs-pro/collaboration-comment-database-sqlite 1.0.0-insiders.20260727-46ed76c

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.
@@ -0,0 +1,2 @@
1
+ export { SQLiteCommentDatabaseAdapter } from "./sqlite-comment-database-adapter.js";
2
+ export type { SQLiteCommentDatabaseAdapterOptions } from "./sqlite-comment-database-adapter.js";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['SQLiteCommentDatabaseAdapter']=void 0x0;var sqlite_comment_database_adapter_js_1=require('./sqlite-comment-database-adapter.js');Object['defineProperty'](exports,'SQLiteCommentDatabaseAdapter',{'enumerable':!![],'get':function(){return sqlite_comment_database_adapter_js_1['SQLiteCommentDatabaseAdapter'];}});
@@ -0,0 +1,23 @@
1
+ import type { CommentDatabaseContext, CommentRecord, CreateCommentDatabaseResult, CreateReplyDatabaseInput, CreateReplyDatabaseResult, CreateRootDatabaseInput, DeleteCommentDatabaseInput, DeleteCommentDatabaseResult, EditCommentDatabaseInput, EditCommentDatabaseResult, GetCommentDatabaseInput, ICommentDatabaseAdapter, ListThreadsDatabaseInput, SetThreadSolvedDatabaseInput, SetThreadSolvedDatabaseResult } from "@univerjs-pro/collaboration-comment-service";
2
+ export interface SQLiteCommentDatabaseAdapterOptions {
3
+ readonly filename: string;
4
+ readonly busyTimeoutMs?: number;
5
+ }
6
+ export declare class SQLiteCommentDatabaseAdapter implements ICommentDatabaseAdapter {
7
+ private readonly _database;
8
+ private _disposed;
9
+ constructor(options: SQLiteCommentDatabaseAdapterOptions);
10
+ createRoot(input: CreateRootDatabaseInput, _context: CommentDatabaseContext): Promise<CreateCommentDatabaseResult>;
11
+ createReply(input: CreateReplyDatabaseInput, _context: CommentDatabaseContext): Promise<CreateReplyDatabaseResult>;
12
+ getComment(input: GetCommentDatabaseInput, _context: CommentDatabaseContext): Promise<CommentRecord | null>;
13
+ listThreads(input: ListThreadsDatabaseInput, _context: CommentDatabaseContext): Promise<readonly CommentRecord[]>;
14
+ editComment(input: EditCommentDatabaseInput, _context: CommentDatabaseContext): Promise<EditCommentDatabaseResult>;
15
+ setThreadSolved(input: SetThreadSolvedDatabaseInput, _context: CommentDatabaseContext): Promise<SetThreadSolvedDatabaseResult>;
16
+ deleteComment(input: DeleteCommentDatabaseInput, _context: CommentDatabaseContext): Promise<DeleteCommentDatabaseResult>;
17
+ dispose(): Promise<void>;
18
+ private _insert;
19
+ private _getByReply;
20
+ private _require;
21
+ private _transaction;
22
+ private _assertOpen;
23
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const _0x243336=_0xe91f;(function(_0x128836,_0x81d35d){const _0x4c587e=_0xe91f,_0x19978a=_0x128836();while(!![]){try{const _0x4faa8d=parseInt(_0x4c587e(0x137))/0x1+parseInt(_0x4c587e(0x121))/0x2+-parseInt(_0x4c587e(0x122))/0x3*(parseInt(_0x4c587e(0x11f))/0x4)+-parseInt(_0x4c587e(0xfb))/0x5+-parseInt(_0x4c587e(0x13c))/0x6*(-parseInt(_0x4c587e(0x134))/0x7)+-parseInt(_0x4c587e(0x135))/0x8+parseInt(_0x4c587e(0x112))/0x9*(-parseInt(_0x4c587e(0x143))/0xa);if(_0x4faa8d===_0x81d35d)break;else _0x19978a['push'](_0x19978a['shift']());}catch(_0x4f9cb8){_0x19978a['push'](_0x19978a['shift']());}}}(_0x1b9f,0x63bd6));Object[_0x243336(0x129)](exports,_0x243336(0x145),{'value':!![]}),exports[_0x243336(0x103)]=void 0x0;function _0x1b9f(){const _0xdb6138=['closed','duplicate','busyTimeoutMs','stringify','isSafeInteger','14yByKvS','294960UGWAzj','\x20WHERE\x20unit_id\x20=\x20?\x20AND\x20reply_id\x20=\x20?','750832gPRSPQ','expectedAuthorUserID',':memory:','get','OpenOrReOpen','1139322qdOBSI','SQLite\x20Comment\x20contains\x20invalid\x20solved\x20status','_disposed','updated_at','author_user_id','length','createRoot','169640WAekNS','COMMIT;','__esModule','run','_insert','isArray','createdAt','created_at','unchanged','UPDATE\x20collaboration_comments\x20SET\x20solved\x20=\x20?,\x20updated_at\x20=\x20?\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20unit_id\x20=\x20?\x20AND\x20reply_id\x20=\x20?','exec','_database','SQLite\x20Comment\x20contains\x20invalid\x20mentions','generation','\x20WHERE\x20unit_id\x20=\x20?','localeCompare','ROLLBACK;','unit_id','3600720DkdtLO','CommentSolvedStatus','some','PRAGMA\x20journal_mode\x20=\x20WAL;','dispose','created','SELECT\x20unit_id,\x20thread_id,\x20reply_id,\x20author_user_id,\x0a\x20\x20content,\x20mentions_json,\x20solved,\x20created_at,\x20updated_at,\x20generation\x0a\x20\x20FROM\x20collaboration_comments','threadIDs','SQLiteCommentDatabaseAdapter','setThreadSolved','createReply','all','_transaction','getComment','listThreads','now','mentions','INSERT\x20INTO\x20collaboration_comments\x0a\x20\x20\x20\x20\x20\x20\x20(unit_id,\x20thread_id,\x20reply_id,\x20author_user_id,\x20content,\x20mentions_json,\x0a\x20\x20\x20\x20\x20\x20\x20\x20solved,\x20created_at,\x20updated_at,\x20generation)\x0a\x20\x20\x20\x20\x20\x20\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','deleteComment','DELETE\x20FROM\x20collaboration_comments\x20WHERE\x20unit_id\x20=\x20?\x20AND\x20thread_id\x20=\x20?\x20AND\x20reply_id\x20=\x20?\x20AND\x20generation\x20=\x20?','thread_id','solved','filename','207qXpChd','expectedGeneration','replyID','_getByReply','updatedAt','unitID','close','\x20WHERE\x20unit_id\x20=\x20?\x20AND\x20thread_id\x20IN\x20(','every','authorUserID','generation-mismatch','author-mismatch','randomUUID','4CeywIy','content','1398134lEsSiK','821859ThViHE','_assertOpen','threadID','not-found','BEGIN\x20IMMEDIATE;','max','SQLite\x20Comment\x20Database\x20Adapter\x20is\x20disposed','defineProperty','DELETE\x20FROM\x20collaboration_comments\x20WHERE\x20unit_id\x20=\x20?\x20AND\x20thread_id\x20=\x20?','prepare','_require','UPDATE\x20collaboration_comments\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20content\x20=\x20?,\x20mentions_json\x20=\x20?,\x20updated_at\x20=\x20?\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20unit_id\x20=\x20?\x20AND\x20thread_id\x20=\x20?\x20AND\x20reply_id\x20=\x20?','busyTimeoutMs\x20must\x20be\x20a\x20non-negative\x20safe\x20integer'];_0x1b9f=function(){return _0xdb6138;};return _0x1b9f();}const node_crypto_1=require('node:crypto'),node_sqlite_1=require('node:sqlite'),protocol_1=require('@univerjs/protocol'),DEFAULT_BUSY_TIMEOUT_MS=0x1388;class SQLiteCommentDatabaseAdapter{[_0x243336(0x14e)];['_disposed']=![];constructor(_0x369ffa){const _0x4f03f5=_0x243336;validateOptions(_0x369ffa),this['_database']=new node_sqlite_1['DatabaseSync'](_0x369ffa['filename']);try{this[_0x4f03f5(0x14e)][_0x4f03f5(0x14d)]('PRAGMA\x20busy_timeout\x20=\x20'+(_0x369ffa[_0x4f03f5(0x131)]??DEFAULT_BUSY_TIMEOUT_MS)+';');if(_0x369ffa['filename']!==_0x4f03f5(0x139))this[_0x4f03f5(0x14e)][_0x4f03f5(0x14d)](_0x4f03f5(0xfe));this[_0x4f03f5(0x14e)]['exec']('\x0a\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20collaboration_comments\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20unit_id\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20thread_id\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20reply_id\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20author_user_id\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mentions_json\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20solved\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20created_at\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updated_at\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20generation\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(unit_id,\x20reply_id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20INDEX\x20IF\x20NOT\x20EXISTS\x20collaboration_comments_thread_lookup\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20collaboration_comments(unit_id,\x20thread_id,\x20created_at,\x20reply_id);\x0a\x20\x20\x20\x20\x20\x20');}catch(_0x1de8f7){this['_database']['close']();throw _0x1de8f7;}}async[_0x243336(0x142)](_0x5a7081,_0x1eed32){const _0x17c226=_0x243336;return this[_0x17c226(0x123)](),this[_0x17c226(0x107)](()=>{const _0x167adf=_0x17c226;if(this[_0x167adf(0x115)](_0x5a7081[_0x167adf(0x117)],_0x5a7081[_0x167adf(0x124)]))return{'status':_0x167adf(0x130)};const _0x5a8810=Date[_0x167adf(0x10a)]();return this[_0x167adf(0x147)]({..._0x5a7081,'replyID':_0x5a7081[_0x167adf(0x124)],'solved':protocol_1[_0x167adf(0xfc)][_0x167adf(0x13b)],'createdAt':_0x5a8810,'updatedAt':_0x5a8810,'generation':(0x0,node_crypto_1[_0x167adf(0x11e)])()}),{'status':_0x167adf(0x100),'record':this['_require'](_0x5a7081[_0x167adf(0x117)],_0x5a7081[_0x167adf(0x124)])};});}async[_0x243336(0x105)](_0x54910c,_0x57bd2f){return this['_assertOpen'](),this['_transaction'](()=>{const _0x50df04=_0xe91f;if(this[_0x50df04(0x115)](_0x54910c[_0x50df04(0x117)],_0x54910c[_0x50df04(0x114)]))return{'status':_0x50df04(0x130)};const _0x3f067d=this['_getByReply'](_0x54910c[_0x50df04(0x117)],_0x54910c[_0x50df04(0x124)]);if(!_0x3f067d||_0x3f067d[_0x50df04(0x124)]!==_0x3f067d[_0x50df04(0x114)])return{'status':'not-found'};if(_0x3f067d[_0x50df04(0x110)]!==protocol_1[_0x50df04(0xfc)][_0x50df04(0x13b)])return{'status':_0x50df04(0x12f)};const _0x4e5c87=Date[_0x50df04(0x10a)]();return this['_insert']({..._0x54910c,'solved':_0x3f067d[_0x50df04(0x110)],'createdAt':_0x4e5c87,'updatedAt':_0x4e5c87,'generation':(0x0,node_crypto_1[_0x50df04(0x11e)])()}),{'status':_0x50df04(0x100),'record':this[_0x50df04(0x12c)](_0x54910c[_0x50df04(0x117)],_0x54910c[_0x50df04(0x114)])};});}async[_0x243336(0x108)](_0x400c9b,_0x4f8a10){const _0x413822=_0x243336;this[_0x413822(0x123)]();const _0x50d2ff=this[_0x413822(0x115)](_0x400c9b[_0x413822(0x117)],_0x400c9b['replyID']);return _0x50d2ff?.[_0x413822(0x124)]===_0x400c9b[_0x413822(0x124)]?_0x50d2ff:null;}async[_0x243336(0x109)](_0x3ad049,_0xc732ad){const _0x377db0=_0x243336;this[_0x377db0(0x123)]();const _0x1fe8a5=[...new Set(_0x3ad049[_0x377db0(0x102)])],_0x171210=_0x1fe8a5[_0x377db0(0x141)]===0x0?this[_0x377db0(0x14e)][_0x377db0(0x12b)](SELECT_COLUMNS+_0x377db0(0x151))['all'](_0x3ad049[_0x377db0(0x117)]):this[_0x377db0(0x14e)][_0x377db0(0x12b)](SELECT_COLUMNS+_0x377db0(0x119)+_0x1fe8a5['map'](()=>'?')['join'](',')+')')[_0x377db0(0x106)](_0x3ad049[_0x377db0(0x117)],..._0x1fe8a5);return _0x171210['map'](rowToRecord)['sort'](compareRecords);}async['editComment'](_0x1b3c46,_0x504eb2){const _0x40f1a1=_0x243336;return this[_0x40f1a1(0x123)](),this[_0x40f1a1(0x107)](()=>{const _0x5e65d0=_0x40f1a1,_0x52eb08=this['_getByReply'](_0x1b3c46['unitID'],_0x1b3c46[_0x5e65d0(0x114)]),_0x3e4bb5=this[_0x5e65d0(0x115)](_0x1b3c46['unitID'],_0x1b3c46['threadID']);if(!_0x52eb08||_0x52eb08[_0x5e65d0(0x124)]!==_0x1b3c46[_0x5e65d0(0x124)]||!_0x3e4bb5)return{'status':_0x5e65d0(0x125)};if(_0x3e4bb5['solved']!==protocol_1[_0x5e65d0(0xfc)]['OpenOrReOpen'])return{'status':_0x5e65d0(0x12f)};if(_0x52eb08[_0x5e65d0(0x11b)]!==_0x1b3c46[_0x5e65d0(0x138)])return{'status':_0x5e65d0(0x11d)};if(_0x52eb08[_0x5e65d0(0x120)]===_0x1b3c46[_0x5e65d0(0x120)]&&equalStrings(_0x52eb08[_0x5e65d0(0x10b)],_0x1b3c46['mentions']))return{'status':_0x5e65d0(0x14b),'record':_0x52eb08};return this[_0x5e65d0(0x14e)][_0x5e65d0(0x12b)](_0x5e65d0(0x12d))[_0x5e65d0(0x146)](_0x1b3c46[_0x5e65d0(0x120)],JSON['stringify'](_0x1b3c46['mentions']),Math[_0x5e65d0(0x127)](Date[_0x5e65d0(0x10a)](),_0x52eb08[_0x5e65d0(0x116)]+0x1),_0x1b3c46[_0x5e65d0(0x117)],_0x1b3c46[_0x5e65d0(0x124)],_0x1b3c46[_0x5e65d0(0x114)]),{'status':'edited','record':this['_require'](_0x1b3c46[_0x5e65d0(0x117)],_0x1b3c46[_0x5e65d0(0x114)])};});}async[_0x243336(0x104)](_0x3fc978,_0x1fbbcb){const _0x18947a=_0x243336;return this[_0x18947a(0x123)](),this[_0x18947a(0x107)](()=>{const _0x5429d8=_0x18947a,_0x28a41e=this['_getByReply'](_0x3fc978[_0x5429d8(0x117)],_0x3fc978[_0x5429d8(0x124)]);if(!_0x28a41e||_0x28a41e[_0x5429d8(0x124)]!==_0x28a41e[_0x5429d8(0x114)])return{'status':'not-found'};if(_0x28a41e['solved']===_0x3fc978[_0x5429d8(0x110)])return{'status':_0x5429d8(0x14b)};return this['_database'][_0x5429d8(0x12b)](_0x5429d8(0x14c))[_0x5429d8(0x146)](_0x3fc978[_0x5429d8(0x110)],Math[_0x5429d8(0x127)](Date['now'](),_0x28a41e[_0x5429d8(0x116)]+0x1),_0x3fc978[_0x5429d8(0x117)],_0x3fc978['threadID']),{'status':'updated'};});}async[_0x243336(0x10d)](_0x58c5f8,_0x176f55){const _0x1f0b11=_0x243336;return this[_0x1f0b11(0x123)](),this['_transaction'](()=>{const _0x1abe74=_0x1f0b11,_0x2eb772=_0x58c5f8[_0x1abe74(0x114)]??_0x58c5f8[_0x1abe74(0x124)],_0x55cc28=this[_0x1abe74(0x115)](_0x58c5f8[_0x1abe74(0x117)],_0x2eb772);if(!_0x55cc28||_0x55cc28[_0x1abe74(0x124)]!==_0x58c5f8[_0x1abe74(0x124)])return{'status':_0x1abe74(0x125)};if(_0x55cc28[_0x1abe74(0x150)]!==_0x58c5f8[_0x1abe74(0x113)])return{'status':_0x1abe74(0x11c)};return _0x58c5f8[_0x1abe74(0x114)]===undefined?this[_0x1abe74(0x14e)]['prepare'](_0x1abe74(0x12a))[_0x1abe74(0x146)](_0x58c5f8['unitID'],_0x58c5f8['threadID']):this[_0x1abe74(0x14e)][_0x1abe74(0x12b)](_0x1abe74(0x10e))[_0x1abe74(0x146)](_0x58c5f8[_0x1abe74(0x117)],_0x58c5f8[_0x1abe74(0x124)],_0x58c5f8[_0x1abe74(0x114)],_0x58c5f8[_0x1abe74(0x113)]),{'status':'deleted'};});}async[_0x243336(0xff)](){const _0x1ff62f=_0x243336;if(this[_0x1ff62f(0x13e)])return;this['_disposed']=!![],this[_0x1ff62f(0x14e)][_0x1ff62f(0x118)]();}[_0x243336(0x147)](_0x3852ff){const _0x1e91d0=_0x243336;this[_0x1e91d0(0x14e)][_0x1e91d0(0x12b)](_0x1e91d0(0x10c))[_0x1e91d0(0x146)](_0x3852ff[_0x1e91d0(0x117)],_0x3852ff[_0x1e91d0(0x124)],_0x3852ff[_0x1e91d0(0x114)],_0x3852ff[_0x1e91d0(0x11b)],_0x3852ff[_0x1e91d0(0x120)],JSON[_0x1e91d0(0x132)](_0x3852ff[_0x1e91d0(0x10b)]),_0x3852ff[_0x1e91d0(0x110)],_0x3852ff[_0x1e91d0(0x149)],_0x3852ff['updatedAt'],_0x3852ff[_0x1e91d0(0x150)]);}[_0x243336(0x115)](_0x305ee0,_0x168695){const _0x55278c=_0x243336,_0x3974a3=this[_0x55278c(0x14e)][_0x55278c(0x12b)](SELECT_COLUMNS+_0x55278c(0x136))[_0x55278c(0x13a)](_0x305ee0,_0x168695);return _0x3974a3?rowToRecord(_0x3974a3):null;}['_require'](_0x9b8a5a,_0x3bef33){const _0x9811d=this['_getByReply'](_0x9b8a5a,_0x3bef33);if(!_0x9811d)throw new Error('SQLite\x20Comment\x20write\x20did\x20not\x20persist\x20its\x20record');return _0x9811d;}[_0x243336(0x107)](_0xaec3c){const _0xb964ed=_0x243336;this[_0xb964ed(0x14e)][_0xb964ed(0x14d)](_0xb964ed(0x126));try{const _0x1d88e5=_0xaec3c();return this[_0xb964ed(0x14e)][_0xb964ed(0x14d)](_0xb964ed(0x144)),_0x1d88e5;}catch(_0xb2fba1){try{this[_0xb964ed(0x14e)][_0xb964ed(0x14d)](_0xb964ed(0x153));}catch{}throw _0xb2fba1;}}['_assertOpen'](){const _0x593cc7=_0x243336;if(this[_0x593cc7(0x13e)])throw new Error(_0x593cc7(0x128));}}exports[_0x243336(0x103)]=SQLiteCommentDatabaseAdapter;const SELECT_COLUMNS=_0x243336(0x101);function _0xe91f(_0x1909af,_0x43f8f8){_0x1909af=_0x1909af-0xfb;const _0x1b9f75=_0x1b9f();let _0xe91f4d=_0x1b9f75[_0x1909af];return _0xe91f4d;}function rowToRecord(_0x19de01){const _0xaf50ca=_0x243336,_0x85d602=JSON['parse'](_0x19de01['mentions_json']);if(!Array[_0xaf50ca(0x148)](_0x85d602)||_0x85d602[_0xaf50ca(0xfd)](_0x53629c=>typeof _0x53629c!=='string'))throw new Error(_0xaf50ca(0x14f));if(_0x19de01['solved']!==protocol_1[_0xaf50ca(0xfc)][_0xaf50ca(0x13b)]&&_0x19de01[_0xaf50ca(0x110)]!==protocol_1[_0xaf50ca(0xfc)]['Solved'])throw new Error(_0xaf50ca(0x13d));return{'unitID':_0x19de01[_0xaf50ca(0x154)],'threadID':_0x19de01[_0xaf50ca(0x10f)],'replyID':_0x19de01['reply_id'],'authorUserID':_0x19de01[_0xaf50ca(0x140)],'content':_0x19de01[_0xaf50ca(0x120)],'mentions':_0x85d602,'solved':_0x19de01[_0xaf50ca(0x110)],'createdAt':_0x19de01[_0xaf50ca(0x14a)],'updatedAt':_0x19de01[_0xaf50ca(0x13f)],'generation':_0x19de01[_0xaf50ca(0x150)]};}function compareRecords(_0x197e3a,_0x4f09a4){const _0x5d8e76=_0x243336,_0xf221d4=_0x197e3a[_0x5d8e76(0x124)][_0x5d8e76(0x152)](_0x4f09a4[_0x5d8e76(0x124)]);if(_0xf221d4!==0x0)return _0xf221d4;if(_0x197e3a[_0x5d8e76(0x114)]===_0x197e3a['threadID'])return-0x1;if(_0x4f09a4[_0x5d8e76(0x114)]===_0x4f09a4['threadID'])return 0x1;return _0x197e3a[_0x5d8e76(0x149)]-_0x4f09a4[_0x5d8e76(0x149)]||_0x197e3a[_0x5d8e76(0x114)][_0x5d8e76(0x152)](_0x4f09a4['replyID']);}function equalStrings(_0x4134d3,_0x4b7d59){const _0x406b9b=_0x243336;return _0x4134d3[_0x406b9b(0x141)]===_0x4b7d59[_0x406b9b(0x141)]&&_0x4134d3[_0x406b9b(0x11a)]((_0xea1a56,_0x5bbe1a)=>_0xea1a56===_0x4b7d59[_0x5bbe1a]);}function validateOptions(_0x59d0f8){const _0x2d0ce3=_0x243336;if(!_0x59d0f8?.[_0x2d0ce3(0x111)])throw new TypeError('SQLiteCommentDatabaseAdapter\x20requires\x20a\x20filename');if(_0x59d0f8[_0x2d0ce3(0x131)]!==undefined&&(!Number[_0x2d0ce3(0x133)](_0x59d0f8[_0x2d0ce3(0x131)])||_0x59d0f8['busyTimeoutMs']<0x0))throw new TypeError(_0x2d0ce3(0x12e));}
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@univerjs-pro/collaboration-comment-database-sqlite",
3
+ "type": "commonjs",
4
+ "main": "./dist/index.js",
5
+ "types": "./dist/index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js",
10
+ "require": "./dist/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "engines": {
17
+ "node": ">=24"
18
+ },
19
+ "version": "1.0.0-insiders.20260727-46ed76c",
20
+ "dependencies": {
21
+ "@univerjs-pro/collaboration-comment-service": "1.0.0-insiders.20260727-46ed76c",
22
+ "@univerjs/protocol": "1.0.0-insiders.20260727-46ed76c"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ }
27
+ }