@univerjs-pro/collaboration-comment-endpoint 1.3.0 → 1.4.0

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/README.md CHANGED
@@ -37,11 +37,11 @@ const commentEndpoint = new UniverCommentEndpoint({
37
37
  });
38
38
 
39
39
  transport.use(authenticationMiddleware);
40
- transport.register(commentEndpoint);
41
40
  transport.register(collabEndpoint);
41
+ transport.register(commentEndpoint);
42
42
  ```
43
43
 
44
- Registration order is authentication → Comment Endpoint → main Collaboration Endpoint. `roomHost` lets Comment realtime delivery reuse Sessions and Unit rooms already established by the main Endpoint.
44
+ Registration order is authentication → main Collaboration Endpoint → Comment Endpoint. `roomHost` lets Comment realtime delivery reuse Sessions and Unit rooms already established by the main Endpoint. The Transport disposes Endpoints in reverse order, so Comment is released before its `roomHost`.
45
45
 
46
46
  ## HTTP and realtime updates
47
47
 
package/README.zh-CN.md CHANGED
@@ -39,12 +39,13 @@ const commentEndpoint = new UniverCommentEndpoint({
39
39
  });
40
40
 
41
41
  transport.use(authenticationMiddleware);
42
- transport.register(commentEndpoint);
43
42
  transport.register(collabEndpoint);
43
+ transport.register(commentEndpoint);
44
44
  ```
45
45
 
46
- 注册顺序是认证 → Comment Endpoint → 主协同 Endpoint。`roomHost` 让 Comment 实时投递
47
- 复用主 Endpoint 已建立的 Session 和 Unit room。
46
+ 注册顺序是认证 → 主协同 Endpoint → Comment Endpoint。`roomHost` 让 Comment 实时投递
47
+ 复用主 Endpoint 已建立的 Session 和 Unit room。Transport 按逆序释放 Endpoint,因此 Comment
48
+ 先于它的 `roomHost` 释放。
48
49
 
49
50
  ## HTTP 与实时更新
50
51
 
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});let e=require('@univerjs-pro/collaboration-service'),t=require('@univerjs-pro/collaboration-transport-node'),n=require('@univerjs/protocol');var r={'code':n['ErrorCode']['OK'],'message':''},i=class{['_service'];['_roomHost'];['_protocolBasePath'];['_subscription'];['_calls']=new Set();['_disposed']=!0x1;['_disposePromise'];constructor(_0x8b32a6){if(!_0x8b32a6?.['service'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20service');if(!_0x8b32a6?.['roomHost'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20roomHost');this['_service']=_0x8b32a6['service'],this['_roomHost']=_0x8b32a6['roomHost'],this['_protocolBasePath']=f(_0x8b32a6['protocolBasePath']??'/universer-api'),this['_subscription']=this['_service']['on']('commentCommitted',_0x814f7b=>this['_track'](this['_publish'](_0x814f7b)));}['register'](_0x36a77d){if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0xa6bda8=_0xabdedc=>_0x2fdd22=>this['_track'](this['_handleHttp'](_0x2fdd22,{'action':_0xabdedc,'unitID':_0x2fdd22['params']['unitID']}));for(let _0x180ca6 of['add','list','reply','solved','edit','delete'])_0x36a77d['post'](this['_protocolBasePath']+'/comment/unit/:unitID/'+_0x180ca6,_0xa6bda8(_0x180ca6));_0x36a77d['get'](this['_protocolBasePath']+'/comment/unit/:unitID/list',_0xa6bda8('list'));}['dispose'](){return this['_disposePromise']?this['_disposePromise']:(this['_disposed']=!0x0,this['_subscription']['dispose'](),this['_disposePromise']=Promise['allSettled']([...this['_calls']])['then'](()=>void 0x0),this['_disposePromise']);}['_track'](_0xbaf60a){return this['_calls']['add'](_0xbaf60a),_0xbaf60a['finally'](()=>this['_calls']['delete'](_0xbaf60a))['catch'](()=>void 0x0),_0xbaf60a;}async['_handleHttp'](_0x150a2a,_0x5ad1cc){try{if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0x22f945=new URL(_0x150a2a['incomingMessage']['url']??'/','http://localhost');if(!_0x5ad1cc['unitID']||_0x5ad1cc['unitID']['includes']('/'))throw d('Invalid\x20route\x20unitId');if(!_0x150a2a['userID'])throw new e['CollabError']('UNAUTHENTICATED','HTTP\x20user\x20is\x20not\x20authenticated');if(_0x5ad1cc['action']==='list'){let _0x1070c9=a(_0x150a2a['incomingMessage']['method']==='GET'?{'unitId':_0x5ad1cc['unitID'],'threadId':_0x22f945['searchParams']['getAll']('threadId')}:await _0x150a2a['readJson'](),_0x5ad1cc['unitID']),_0x204989=await this['_service']['listComments']({'unitID':_0x5ad1cc['unitID'],'threadIDs':_0x1070c9['threadId']},{'userID':_0x150a2a['userID'],'customData':_0x150a2a['customData']});h(_0x150a2a['response'],0xc8,{'error':r,..._0x204989});return;}let _0x4f14e1=o(await _0x150a2a['readJson']());if(s(_0x4f14e1['unitId'],'unitId')!==_0x5ad1cc['unitID'])throw d('Route\x20and\x20body\x20unitId\x20must\x20match');let _0x1b45ed=s(_0x4f14e1['memberId'],'memberId'),_0x332360={'userID':_0x150a2a['userID'],'memberID':_0x1b45ed,'customData':_0x150a2a['customData']};switch(_0x5ad1cc['action']){case'add':{let _0x572a7c=await this['_service']['addComment']({'unitID':_0x5ad1cc['unitID'],'content':s(_0x4f14e1['content'],'content'),'mentions':l(_0x4f14e1['mention'],'mention')},_0x332360);h(_0x150a2a['response'],0xc8,{'error':r,'comment':_0x572a7c});return;}case'reply':{let _0x531cbe=await this['_service']['replyComment']({'unitID':_0x5ad1cc['unitID'],'threadID':s(_0x4f14e1['threadId'],'threadId'),'content':s(_0x4f14e1['content'],'content'),'mentions':l(_0x4f14e1['mention'],'mention')},_0x332360);h(_0x150a2a['response'],0xc8,{'error':r,'reply':_0x531cbe});return;}case'solved':{let _0x247a40=u(_0x4f14e1['solved']);await this['_service']['setThreadSolved']({'unitID':_0x5ad1cc['unitID'],'threadID':s(_0x4f14e1['threadId'],'threadId'),'solved':_0x247a40},_0x332360),h(_0x150a2a['response'],0xc8,{'error':r});return;}case'edit':await this['_service']['editComment']({'unitID':_0x5ad1cc['unitID'],'threadID':s(_0x4f14e1['threadId'],'threadId'),'replyID':s(_0x4f14e1['replyId'],'replyId'),'content':s(_0x4f14e1['content'],'content'),'mentions':l(_0x4f14e1['mention'],'mention')},_0x332360),h(_0x150a2a['response'],0xc8,{'error':r});return;case'delete':await this['_service']['deleteComment']({'unitID':_0x5ad1cc['unitID'],'threadID':s(_0x4f14e1['threadId'],'threadId'),...c(_0x4f14e1['replyId'],'replyId')},_0x332360),h(_0x150a2a['response'],0xc8,{'error':r});return;}}catch(_0x3d71be){p(_0x150a2a['response'],_0x3d71be,_0x5ad1cc['action']);}}async['_publish'](_0x1869f7){try{await this['_roomHost']['publishTrustedUnitEvent']({'unitID':_0x1869f7['update']['unitId'],'memberID':_0x1869f7['memberID'],'userID':_0x1869f7['userID'],'eventID':'comment_update','data':{'commentUpdateEvent':_0x1869f7['update']}});}catch{}}};function a(_0xbf154a,_0x2ef48c){let _0x27cc6b=o(_0xbf154a),_0x4328b2=s(_0x27cc6b['unitId'],'unitId');if(_0x4328b2!==_0x2ef48c)throw d('Route\x20and\x20body\x20unitId\x20must\x20match');return{'unitId':_0x4328b2,'threadId':l(_0x27cc6b['threadId'],'threadId')};}function o(_0x5d0949){if(!_0x5d0949||typeof _0x5d0949!='object'||Array['isArray'](_0x5d0949))throw d('Request\x20body\x20must\x20be\x20an\x20object');return _0x5d0949;}function s(_0x2aa5c8,_0x159f03){if(typeof _0x2aa5c8!='string'||_0x2aa5c8['length']===0x0)throw d(_0x159f03+'\x20must\x20be\x20a\x20non-empty\x20string');return _0x2aa5c8;}function c(_0x252551,_0x1e07ec){return _0x252551==null||_0x252551===''?{}:{'replyID':s(_0x252551,_0x1e07ec)};}function l(_0x2fe7fa,_0x34a84d){if(!Array['isArray'](_0x2fe7fa)||_0x2fe7fa['some'](_0xadfb9c=>typeof _0xadfb9c!='string'||_0xadfb9c['length']===0x0))throw d(_0x34a84d+'\x20must\x20be\x20an\x20array\x20of\x20non-empty\x20strings');return[..._0x2fe7fa];}function u(_0xb8be2d){if(_0xb8be2d!==n['CommentSolvedStatus']['OpenOrReOpen']&&_0xb8be2d!==n['CommentSolvedStatus']['Solved'])throw d('solved\x20must\x20be\x20OpenOrReOpen\x20or\x20Solved');return _0xb8be2d;}function d(_0x3ca9d1){return new e['CollabError']('INVALID_REQUEST',_0x3ca9d1);}function f(_0x44ed1d){if(!_0x44ed1d['startsWith']('/')||_0x44ed1d==='/'||_0x44ed1d['endsWith']('/')||_0x44ed1d['includes']('//'))throw TypeError('protocolBasePath\x20must\x20be\x20an\x20absolute\x20path\x20without\x20a\x20trailing\x20slash');return _0x44ed1d;}function p(_0x3db720,_0xc033e5,_0x2628ca){let _0x2ea97b=m(_0xc033e5),_0x4fd391=_0x2628ca==='list'?{'comments':{},'users':{}}:_0x2628ca==='add'?{'comment':void 0x0}:_0x2628ca==='reply'?{'reply':void 0x0}:{};h(_0x3db720,_0x2ea97b['status'],{'error':_0x2ea97b['error'],..._0x4fd391});}function m(_0x4e5e05){if(_0x4e5e05 instanceof t['NodeTransportError'])return _0x4e5e05['code']==='REQUEST_BODY_TOO_LARGE'?{'status':0x19d,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x4e5e05['message']}}:_0x4e5e05['code']==='INVALID_JSON'||_0x4e5e05['code']==='REQUEST_ABORTED'?{'status':0x190,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x4e5e05['message']}}:{'status':0x1f7,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':_0x4e5e05['message']}};if(!(_0x4e5e05 instanceof e['CollabError']))return{'status':0x1f4,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':'Internal\x20error'}};let [_0xc11ef9,_0x103b25]=((()=>{switch(_0x4e5e05['code']){case'INVALID_REQUEST':return[0x190,n['ErrorCode']['INVALID_ARGUMENT']];case'UNAUTHENTICATED':return[0x191,n['ErrorCode']['UNAUTHENTICATED']];case'PERMISSION_DENIED':return[0x193,n['ErrorCode']['PERMISSION_DENIED']];case'UNIT_NOT_FOUND':return[0x194,n['ErrorCode']['NOT_FOUND']];case'ADAPTER_FAILURE':return[0x1f7,n['ErrorCode']['INTERNAL_ERROR']];default:return[0x1f4,n['ErrorCode']['INTERNAL_ERROR']];}})());return{'status':_0xc11ef9,'error':{'code':_0x103b25,'message':_0x4e5e05['message']}};}function h(_0x3a25ec,_0x40e39f,_0x538c4c){_0x3a25ec['writableEnded']||(_0x3a25ec['statusCode']=_0x40e39f,_0x3a25ec['setHeader']('content-type','application/json;\x20charset=utf-8'),_0x3a25ec['end'](JSON['stringify'](_0x538c4c)));}exports['UniverCommentEndpoint']=i;
1
+ Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});let e=require('@univerjs-pro/collaboration-service'),t=require('@univerjs-pro/collaboration-transport-node'),n=require('@univerjs/protocol');var r={'code':n['ErrorCode']['OK'],'message':''},i=class{['_service'];['_roomHost'];['_protocolBasePath'];['_subscription'];['_calls']=new Set();['_disposed']=!0x1;['_disposePromise'];constructor(_0x56770e){if(!_0x56770e?.['service'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20service');if(!_0x56770e?.['roomHost'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20roomHost');this['_service']=_0x56770e['service'],this['_roomHost']=_0x56770e['roomHost'],this['_protocolBasePath']=f(_0x56770e['protocolBasePath']??'/universer-api'),this['_subscription']=this['_service']['on']('commentCommitted',_0x452107=>this['_track'](this['_publish'](_0x452107)));}['register'](_0x1e2154){if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0xa2f85c=_0x4b2fed=>_0x567b88=>this['_track'](this['_handleHttp'](_0x567b88,{'action':_0x4b2fed,'unitID':_0x567b88['params']['unitID']}));for(let _0x2704e4 of['add','list','reply','solved','edit','delete'])_0x1e2154['post'](this['_protocolBasePath']+'/comment/unit/:unitID/'+_0x2704e4,_0xa2f85c(_0x2704e4));_0x1e2154['get'](this['_protocolBasePath']+'/comment/unit/:unitID/list',_0xa2f85c('list'));}['dispose'](){return this['_disposePromise']?this['_disposePromise']:(this['_disposed']=!0x0,this['_subscription']['dispose'](),this['_disposePromise']=Promise['allSettled']([...this['_calls']])['then'](()=>void 0x0),this['_disposePromise']);}['_track'](_0x430d95){return this['_calls']['add'](_0x430d95),_0x430d95['finally'](()=>this['_calls']['delete'](_0x430d95))['catch'](()=>void 0x0),_0x430d95;}async['_handleHttp'](_0x17cca0,_0x361655){try{if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0x56c1b7=new URL(_0x17cca0['incomingMessage']['url']??'/','http://localhost');if(!_0x361655['unitID']||_0x361655['unitID']['includes']('/'))throw d('Invalid\x20route\x20unitId');if(!_0x17cca0['userID'])throw new e['CollabError']('UNAUTHENTICATED','HTTP\x20user\x20is\x20not\x20authenticated');if(_0x361655['action']==='list'){let _0x42cb4d=a(_0x17cca0['incomingMessage']['method']==='GET'?{'unitId':_0x361655['unitID'],'threadId':_0x56c1b7['searchParams']['getAll']('threadId')}:await _0x17cca0['readJson'](),_0x361655['unitID']),_0x2c9a00=await this['_service']['listComments']({'unitID':_0x361655['unitID'],'threadIDs':_0x42cb4d['threadId']},{'userID':_0x17cca0['userID'],'customData':_0x17cca0['customData']});h(_0x17cca0['response'],0xc8,{'error':r,..._0x2c9a00});return;}let _0x373d39=o(await _0x17cca0['readJson']());if(s(_0x373d39['unitId'],'unitId')!==_0x361655['unitID'])throw d('Route\x20and\x20body\x20unitId\x20must\x20match');let _0x25f9ba=s(_0x373d39['memberId'],'memberId'),_0xf4f87e={'userID':_0x17cca0['userID'],'memberID':_0x25f9ba,'customData':_0x17cca0['customData']};switch(_0x361655['action']){case'add':{let _0x4623e2=await this['_service']['addComment']({'unitID':_0x361655['unitID'],'content':s(_0x373d39['content'],'content'),'mentions':l(_0x373d39['mention'],'mention')},_0xf4f87e);h(_0x17cca0['response'],0xc8,{'error':r,'comment':_0x4623e2});return;}case'reply':{let _0x50a5a5=await this['_service']['replyComment']({'unitID':_0x361655['unitID'],'threadID':s(_0x373d39['threadId'],'threadId'),'content':s(_0x373d39['content'],'content'),'mentions':l(_0x373d39['mention'],'mention')},_0xf4f87e);h(_0x17cca0['response'],0xc8,{'error':r,'reply':_0x50a5a5});return;}case'solved':{let _0x2350d3=u(_0x373d39['solved']);await this['_service']['setThreadSolved']({'unitID':_0x361655['unitID'],'threadID':s(_0x373d39['threadId'],'threadId'),'solved':_0x2350d3},_0xf4f87e),h(_0x17cca0['response'],0xc8,{'error':r});return;}case'edit':await this['_service']['editComment']({'unitID':_0x361655['unitID'],'threadID':s(_0x373d39['threadId'],'threadId'),'replyID':s(_0x373d39['replyId'],'replyId'),'content':s(_0x373d39['content'],'content'),'mentions':l(_0x373d39['mention'],'mention')},_0xf4f87e),h(_0x17cca0['response'],0xc8,{'error':r});return;case'delete':await this['_service']['deleteComment']({'unitID':_0x361655['unitID'],'threadID':s(_0x373d39['threadId'],'threadId'),...c(_0x373d39['replyId'],'replyId')},_0xf4f87e),h(_0x17cca0['response'],0xc8,{'error':r});return;}}catch(_0x5dcb57){p(_0x17cca0['response'],_0x5dcb57,_0x361655['action']);}}async['_publish'](_0x1137a1){try{await this['_roomHost']['publishTrustedUnitEvent']({'unitID':_0x1137a1['update']['unitId'],'memberID':_0x1137a1['memberID'],'userID':_0x1137a1['userID'],'eventID':'comment_update','data':{'commentUpdateEvent':_0x1137a1['update']}});}catch{}}};function a(_0x1b8539,_0x768665){let _0x467972=o(_0x1b8539),_0x212847=s(_0x467972['unitId'],'unitId');if(_0x212847!==_0x768665)throw d('Route\x20and\x20body\x20unitId\x20must\x20match');return{'unitId':_0x212847,'threadId':l(_0x467972['threadId'],'threadId')};}function o(_0x555260){if(!_0x555260||typeof _0x555260!='object'||Array['isArray'](_0x555260))throw d('Request\x20body\x20must\x20be\x20an\x20object');return _0x555260;}function s(_0x2ca1c0,_0xe4535e){if(typeof _0x2ca1c0!='string'||_0x2ca1c0['length']===0x0)throw d(_0xe4535e+'\x20must\x20be\x20a\x20non-empty\x20string');return _0x2ca1c0;}function c(_0x2ee561,_0x52663a){return _0x2ee561==null||_0x2ee561===''?{}:{'replyID':s(_0x2ee561,_0x52663a)};}function l(_0x39234c,_0x8880a1){if(!Array['isArray'](_0x39234c)||_0x39234c['some'](_0x2492db=>typeof _0x2492db!='string'||_0x2492db['length']===0x0))throw d(_0x8880a1+'\x20must\x20be\x20an\x20array\x20of\x20non-empty\x20strings');return[..._0x39234c];}function u(_0x10c21b){if(_0x10c21b!==n['CommentSolvedStatus']['OpenOrReOpen']&&_0x10c21b!==n['CommentSolvedStatus']['Solved'])throw d('solved\x20must\x20be\x20OpenOrReOpen\x20or\x20Solved');return _0x10c21b;}function d(_0x38a9ab){return new e['CollabError']('INVALID_REQUEST',_0x38a9ab);}function f(_0x546675){if(!_0x546675['startsWith']('/')||_0x546675==='/'||_0x546675['endsWith']('/')||_0x546675['includes']('//'))throw TypeError('protocolBasePath\x20must\x20be\x20an\x20absolute\x20path\x20without\x20a\x20trailing\x20slash');return _0x546675;}function p(_0x5379ee,_0x61d42a,_0x257657){let _0x15dede=m(_0x61d42a),_0x977c3d=_0x257657==='list'?{'comments':{},'users':{}}:_0x257657==='add'?{'comment':void 0x0}:_0x257657==='reply'?{'reply':void 0x0}:{};h(_0x5379ee,_0x15dede['status'],{'error':_0x15dede['error'],..._0x977c3d});}function m(_0x44f570){if(_0x44f570 instanceof t['NodeTransportError'])return _0x44f570['code']==='REQUEST_BODY_TOO_LARGE'?{'status':0x19d,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x44f570['message']}}:_0x44f570['code']==='INVALID_JSON'||_0x44f570['code']==='REQUEST_ABORTED'?{'status':0x190,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x44f570['message']}}:{'status':0x1f7,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':_0x44f570['message']}};if(!(_0x44f570 instanceof e['CollabError']))return{'status':0x1f4,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':'Internal\x20error'}};let [_0x4d0a3a,_0x114fc5]=((()=>{switch(_0x44f570['code']){case'INVALID_REQUEST':return[0x190,n['ErrorCode']['INVALID_ARGUMENT']];case'UNAUTHENTICATED':return[0x191,n['ErrorCode']['UNAUTHENTICATED']];case'PERMISSION_DENIED':return[0x193,n['ErrorCode']['PERMISSION_DENIED']];case'UNIT_NOT_FOUND':return[0x194,n['ErrorCode']['NOT_FOUND']];case'ADAPTER_FAILURE':return[0x1f7,n['ErrorCode']['INTERNAL_ERROR']];default:return[0x1f4,n['ErrorCode']['INTERNAL_ERROR']];}})());return{'status':_0x4d0a3a,'error':{'code':_0x114fc5,'message':_0x44f570['message']}};}function h(_0xe84a56,_0x377962,_0x41b1ed){_0xe84a56['writableEnded']||(_0xe84a56['statusCode']=_0x377962,_0xe84a56['setHeader']('content-type','application/json;\x20charset=utf-8'),_0xe84a56['end'](JSON['stringify'](_0x41b1ed)));}exports['UniverCommentEndpoint']=i;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x577964=_0x45af;function _0x4328(){const _0x147568=['1015uyRPBl','209952riwWno','903144ucAbxN','199440dDSlag','1503835gZOICS','219317THTrgR','UniverCommentEndpoint','3032BnkRIO','1008444SJmVxb'];_0x4328=function(){return _0x147568;};return _0x4328();}(function(_0x4e6b66,_0x5e6da6){const _0x4b781c=_0x45af,_0x2fc897=_0x4e6b66();while(!![]){try{const _0x4be75e=-parseInt(_0x4b781c(0xc8))/0x1+parseInt(_0x4b781c(0xc4))/0x2+parseInt(_0x4b781c(0xcb))/0x3+parseInt(_0x4b781c(0xc6))/0x4+-parseInt(_0x4b781c(0xc7))/0x5+parseInt(_0x4b781c(0xc5))/0x6+-parseInt(_0x4b781c(0xcc))/0x7*(-parseInt(_0x4b781c(0xca))/0x8);if(_0x4be75e===_0x5e6da6)break;else _0x2fc897['push'](_0x2fc897['shift']());}catch(_0x238e89){_0x2fc897['push'](_0x2fc897['shift']());}}}(_0x4328,0x2b0fb));function _0x45af(_0xac8541,_0x2e96a5){_0xac8541=_0xac8541-0xc4;const _0x4328a4=_0x4328();let _0x45af8f=_0x4328a4[_0xac8541];return _0x45af8f;}import _0x5c5380 from'./index.cjs';const facadeExport0=_0x5c5380[_0x577964(0xc9)];export{facadeExport0 as UniverCommentEndpoint};
1
+ const _0x445c63=_0x3bda;(function(_0x400bed,_0x4dee47){const _0x385b3c=_0x3bda,_0x86bc1c=_0x400bed();while(!![]){try{const _0x35143d=-parseInt(_0x385b3c(0x1a2))/0x1+-parseInt(_0x385b3c(0x1a9))/0x2*(-parseInt(_0x385b3c(0x1a8))/0x3)+parseInt(_0x385b3c(0x19f))/0x4*(parseInt(_0x385b3c(0x1a3))/0x5)+parseInt(_0x385b3c(0x1a7))/0x6+parseInt(_0x385b3c(0x1a6))/0x7+-parseInt(_0x385b3c(0x1a5))/0x8*(parseInt(_0x385b3c(0x1a0))/0x9)+-parseInt(_0x385b3c(0x1a1))/0xa;if(_0x35143d===_0x4dee47)break;else _0x86bc1c['push'](_0x86bc1c['shift']());}catch(_0x14f37d){_0x86bc1c['push'](_0x86bc1c['shift']());}}}(_0x3962,0xf3d3c));function _0x3bda(_0x46b3c7,_0x31cde7){_0x46b3c7=_0x46b3c7-0x19f;const _0x39624a=_0x3962();let _0x3bda95=_0x39624a[_0x46b3c7];return _0x3bda95;}import _0x569345 from'./index.cjs';const facadeExport0=_0x569345[_0x445c63(0x1a4)];function _0x3962(){const _0x4c51bf=['9211600IxbYfb','UniverCommentEndpoint','1016OySDru','13336995LLxdjB','8069130ddQEAa','9uyslDJ','542786LusZry','4zmjTMs','74673btIfbU','30630130HqASUr','791191ddGgqY'];_0x3962=function(){return _0x4c51bf;};return _0x3962();}export{facadeExport0 as UniverCommentEndpoint};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-comment-endpoint",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -16,10 +16,10 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@univerjs-pro/collaboration-comment-service": "1.3.0",
20
- "@univerjs-pro/collaboration-endpoint": "1.3.0",
21
- "@univerjs-pro/collaboration-service": "1.3.0",
22
- "@univerjs-pro/collaboration-transport-node": "1.3.0",
23
- "@univerjs/protocol": "1.3.0"
19
+ "@univerjs-pro/collaboration-comment-service": "1.4.0",
20
+ "@univerjs-pro/collaboration-endpoint": "1.4.0",
21
+ "@univerjs-pro/collaboration-service": "1.4.0",
22
+ "@univerjs-pro/collaboration-transport-node": "1.4.0",
23
+ "@univerjs/protocol": "1.4.0"
24
24
  }
25
25
  }