@univerjs-pro/collaboration-comment-endpoint 1.0.0 → 1.0.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.
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(_0x268ab6){if(!_0x268ab6?.['service'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20service');if(!_0x268ab6?.['roomHost'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20roomHost');this['_service']=_0x268ab6['service'],this['_roomHost']=_0x268ab6['roomHost'],this['_protocolBasePath']=f(_0x268ab6['protocolBasePath']??'/universer-api'),this['_subscription']=this['_service']['on']('commentCommitted',_0x2f0993=>this['_track'](this['_publish'](_0x2f0993)));}['register'](_0x5f2ea3){if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0x329a58=_0x164355=>_0x2d4b27=>this['_track'](this['_handleHttp'](_0x2d4b27,{'action':_0x164355,'unitID':_0x2d4b27['params']['unitID']}));for(let _0x5c8d76 of['add','list','reply','solved','edit','delete'])_0x5f2ea3['post'](this['_protocolBasePath']+'/comment/unit/:unitID/'+_0x5c8d76,_0x329a58(_0x5c8d76));_0x5f2ea3['get'](this['_protocolBasePath']+'/comment/unit/:unitID/list',_0x329a58('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'](_0x141a77){return this['_calls']['add'](_0x141a77),_0x141a77['finally'](()=>this['_calls']['delete'](_0x141a77))['catch'](()=>void 0x0),_0x141a77;}async['_handleHttp'](_0x4fb9d2,_0x444dfd){try{if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0x3d9397=new URL(_0x4fb9d2['incomingMessage']['url']??'/','http://localhost');if(!_0x444dfd['unitID']||_0x444dfd['unitID']['includes']('/'))throw d('Invalid\x20route\x20unitId');if(!_0x4fb9d2['userID'])throw new e['CollabError']('UNAUTHENTICATED','HTTP\x20user\x20is\x20not\x20authenticated');if(_0x444dfd['action']==='list'){let _0x3f2f7e=a(_0x4fb9d2['incomingMessage']['method']==='GET'?{'unitId':_0x444dfd['unitID'],'threadId':_0x3d9397['searchParams']['getAll']('threadId')}:await _0x4fb9d2['readJson'](),_0x444dfd['unitID']),_0x4f0bb2=await this['_service']['listComments']({'unitID':_0x444dfd['unitID'],'threadIDs':_0x3f2f7e['threadId']},{'userID':_0x4fb9d2['userID'],'customData':_0x4fb9d2['customData']});h(_0x4fb9d2['response'],0xc8,{'error':r,..._0x4f0bb2});return;}let _0x428c9f=o(await _0x4fb9d2['readJson']());if(s(_0x428c9f['unitId'],'unitId')!==_0x444dfd['unitID'])throw d('Route\x20and\x20body\x20unitId\x20must\x20match');let _0x1c5b3b=s(_0x428c9f['memberId'],'memberId'),_0x54a1a8=this['_resolveWriteSession'](_0x444dfd['action'],_0x444dfd['unitID'],_0x1c5b3b,_0x4fb9d2['userID']),_0x393c77={'userID':_0x4fb9d2['userID'],'memberID':_0x54a1a8['memberID'],'customData':_0x4fb9d2['customData']};switch(_0x444dfd['action']){case'add':{let _0x2027eb=await this['_service']['addComment']({'unitID':_0x444dfd['unitID'],'content':s(_0x428c9f['content'],'content'),'mentions':l(_0x428c9f['mention'],'mention')},_0x393c77);h(_0x4fb9d2['response'],0xc8,{'error':r,'comment':_0x2027eb});return;}case'reply':{let _0x135c0f=await this['_service']['replyComment']({'unitID':_0x444dfd['unitID'],'threadID':s(_0x428c9f['threadId'],'threadId'),'content':s(_0x428c9f['content'],'content'),'mentions':l(_0x428c9f['mention'],'mention')},_0x393c77);h(_0x4fb9d2['response'],0xc8,{'error':r,'reply':_0x135c0f});return;}case'solved':{let _0x28068a=u(_0x428c9f['solved']);await this['_service']['setThreadSolved']({'unitID':_0x444dfd['unitID'],'threadID':s(_0x428c9f['threadId'],'threadId'),'solved':_0x28068a},_0x393c77),h(_0x4fb9d2['response'],0xc8,{'error':r});return;}case'edit':await this['_service']['editComment']({'unitID':_0x444dfd['unitID'],'threadID':s(_0x428c9f['threadId'],'threadId'),'replyID':s(_0x428c9f['replyId'],'replyId'),'content':s(_0x428c9f['content'],'content'),'mentions':l(_0x428c9f['mention'],'mention')},_0x393c77),h(_0x4fb9d2['response'],0xc8,{'error':r});return;case'delete':await this['_service']['deleteComment']({'unitID':_0x444dfd['unitID'],'threadID':s(_0x428c9f['threadId'],'threadId'),...c(_0x428c9f['replyId'],'replyId')},_0x393c77),h(_0x4fb9d2['response'],0xc8,{'error':r});return;}}catch(_0x162875){p(_0x4fb9d2['response'],_0x162875,_0x444dfd['action']);}}['_resolveWriteSession'](_0xc4e0f1,_0x265510,_0x1ede8d,_0x5e0d88){let _0x3ed6f7=this['_roomHost']['findJoinedSession']({'unitID':_0x265510,'memberID':_0x1ede8d,'authenticatedUserID':_0x5e0d88});if(_0x3ed6f7)return _0x3ed6f7;if(_0xc4e0f1==='solved'&&_0x1ede8d===_0x5e0d88){let _0x2fd2d6=this['_roomHost']['findJoinedSessionByUser']({'unitID':_0x265510,'authenticatedUserID':_0x5e0d88});if(_0x2fd2d6)return _0x2fd2d6;}throw new e['CollabError']('PERMISSION_DENIED','Comment\x20member\x20is\x20not\x20an\x20authenticated\x20joined\x20Session');}async['_publish'](_0x4ce2e6){try{await this['_roomHost']['publishTrustedUnitEvent']({'unitID':_0x4ce2e6['update']['unitId'],'memberID':_0x4ce2e6['memberID'],'eventID':'comment_update','data':{'commentUpdateEvent':_0x4ce2e6['update']}});}catch{}}};function a(_0x470f63,_0x50a1f8){let _0x5f3cc2=o(_0x470f63),_0x3b845a=s(_0x5f3cc2['unitId'],'unitId');if(_0x3b845a!==_0x50a1f8)throw d('Route\x20and\x20body\x20unitId\x20must\x20match');return{'unitId':_0x3b845a,'threadId':l(_0x5f3cc2['threadId'],'threadId')};}function o(_0x22bab0){if(!_0x22bab0||typeof _0x22bab0!='object'||Array['isArray'](_0x22bab0))throw d('Request\x20body\x20must\x20be\x20an\x20object');return _0x22bab0;}function s(_0xbc4b6a,_0x3a24bd){if(typeof _0xbc4b6a!='string'||_0xbc4b6a['length']===0x0)throw d(_0x3a24bd+'\x20must\x20be\x20a\x20non-empty\x20string');return _0xbc4b6a;}function c(_0x540fc9,_0x4479d1){return _0x540fc9==null||_0x540fc9===''?{}:{'replyID':s(_0x540fc9,_0x4479d1)};}function l(_0x4fa6ba,_0x88d466){if(!Array['isArray'](_0x4fa6ba)||_0x4fa6ba['some'](_0x52b147=>typeof _0x52b147!='string'||_0x52b147['length']===0x0))throw d(_0x88d466+'\x20must\x20be\x20an\x20array\x20of\x20non-empty\x20strings');return[..._0x4fa6ba];}function u(_0x1dbfcc){if(_0x1dbfcc!==n['CommentSolvedStatus']['OpenOrReOpen']&&_0x1dbfcc!==n['CommentSolvedStatus']['Solved'])throw d('solved\x20must\x20be\x20OpenOrReOpen\x20or\x20Solved');return _0x1dbfcc;}function d(_0x328562){return new e['CollabError']('INVALID_REQUEST',_0x328562);}function f(_0x1d3ad3){if(!_0x1d3ad3['startsWith']('/')||_0x1d3ad3==='/'||_0x1d3ad3['endsWith']('/')||_0x1d3ad3['includes']('//'))throw TypeError('protocolBasePath\x20must\x20be\x20an\x20absolute\x20path\x20without\x20a\x20trailing\x20slash');return _0x1d3ad3;}function p(_0x4c2801,_0x3ee285,_0x4f6287){let _0x2343e3=m(_0x3ee285),_0x3434c6=_0x4f6287==='list'?{'comments':{},'users':{}}:_0x4f6287==='add'?{'comment':void 0x0}:_0x4f6287==='reply'?{'reply':void 0x0}:{};h(_0x4c2801,_0x2343e3['status'],{'error':_0x2343e3['error'],..._0x3434c6});}function m(_0x3be60b){if(_0x3be60b instanceof t['NodeTransportError'])return _0x3be60b['code']==='REQUEST_BODY_TOO_LARGE'?{'status':0x19d,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x3be60b['message']}}:_0x3be60b['code']==='INVALID_JSON'||_0x3be60b['code']==='REQUEST_ABORTED'?{'status':0x190,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x3be60b['message']}}:{'status':0x1f7,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':_0x3be60b['message']}};if(!(_0x3be60b instanceof e['CollabError']))return{'status':0x1f4,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':'Internal\x20error'}};let [_0x2ec08c,_0x359420]=((()=>{switch(_0x3be60b['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':_0x2ec08c,'error':{'code':_0x359420,'message':_0x3be60b['message']}};}function h(_0x2c995f,_0x1492c1,_0x1158b9){_0x2c995f['writableEnded']||(_0x2c995f['statusCode']=_0x1492c1,_0x2c995f['setHeader']('content-type','application/json;\x20charset=utf-8'),_0x2c995f['end'](JSON['stringify'](_0x1158b9)));}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(_0x2f8212){if(!_0x2f8212?.['service'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20service');if(!_0x2f8212?.['roomHost'])throw TypeError('UniverCommentEndpoint\x20requires\x20a\x20roomHost');this['_service']=_0x2f8212['service'],this['_roomHost']=_0x2f8212['roomHost'],this['_protocolBasePath']=f(_0x2f8212['protocolBasePath']??'/universer-api'),this['_subscription']=this['_service']['on']('commentCommitted',_0x118302=>this['_track'](this['_publish'](_0x118302)));}['register'](_0x5d225f){if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0x48464b=_0x56ff51=>_0x50687a=>this['_track'](this['_handleHttp'](_0x50687a,{'action':_0x56ff51,'unitID':_0x50687a['params']['unitID']}));for(let _0x52e9d5 of['add','list','reply','solved','edit','delete'])_0x5d225f['post'](this['_protocolBasePath']+'/comment/unit/:unitID/'+_0x52e9d5,_0x48464b(_0x52e9d5));_0x5d225f['get'](this['_protocolBasePath']+'/comment/unit/:unitID/list',_0x48464b('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'](_0x59b72d){return this['_calls']['add'](_0x59b72d),_0x59b72d['finally'](()=>this['_calls']['delete'](_0x59b72d))['catch'](()=>void 0x0),_0x59b72d;}async['_handleHttp'](_0x22c36a,_0x1abdf8){try{if(this['_disposed'])throw new e['CollabError']('INTERNAL_ERROR','Comment\x20Endpoint\x20is\x20disposed');let _0x28ac61=new URL(_0x22c36a['incomingMessage']['url']??'/','http://localhost');if(!_0x1abdf8['unitID']||_0x1abdf8['unitID']['includes']('/'))throw d('Invalid\x20route\x20unitId');if(!_0x22c36a['userID'])throw new e['CollabError']('UNAUTHENTICATED','HTTP\x20user\x20is\x20not\x20authenticated');if(_0x1abdf8['action']==='list'){let _0x502e82=a(_0x22c36a['incomingMessage']['method']==='GET'?{'unitId':_0x1abdf8['unitID'],'threadId':_0x28ac61['searchParams']['getAll']('threadId')}:await _0x22c36a['readJson'](),_0x1abdf8['unitID']),_0x5a39ef=await this['_service']['listComments']({'unitID':_0x1abdf8['unitID'],'threadIDs':_0x502e82['threadId']},{'userID':_0x22c36a['userID'],'customData':_0x22c36a['customData']});h(_0x22c36a['response'],0xc8,{'error':r,..._0x5a39ef});return;}let _0x2bae0a=o(await _0x22c36a['readJson']());if(s(_0x2bae0a['unitId'],'unitId')!==_0x1abdf8['unitID'])throw d('Route\x20and\x20body\x20unitId\x20must\x20match');let _0xb43ec3=s(_0x2bae0a['memberId'],'memberId'),_0x400634=this['_resolveWriteSession'](_0x1abdf8['action'],_0x1abdf8['unitID'],_0xb43ec3,_0x22c36a['userID']),_0xce8b88={'userID':_0x22c36a['userID'],'memberID':_0x400634['memberID'],'customData':_0x22c36a['customData']};switch(_0x1abdf8['action']){case'add':{let _0x448d54=await this['_service']['addComment']({'unitID':_0x1abdf8['unitID'],'content':s(_0x2bae0a['content'],'content'),'mentions':l(_0x2bae0a['mention'],'mention')},_0xce8b88);h(_0x22c36a['response'],0xc8,{'error':r,'comment':_0x448d54});return;}case'reply':{let _0x2b5342=await this['_service']['replyComment']({'unitID':_0x1abdf8['unitID'],'threadID':s(_0x2bae0a['threadId'],'threadId'),'content':s(_0x2bae0a['content'],'content'),'mentions':l(_0x2bae0a['mention'],'mention')},_0xce8b88);h(_0x22c36a['response'],0xc8,{'error':r,'reply':_0x2b5342});return;}case'solved':{let _0x56dd3c=u(_0x2bae0a['solved']);await this['_service']['setThreadSolved']({'unitID':_0x1abdf8['unitID'],'threadID':s(_0x2bae0a['threadId'],'threadId'),'solved':_0x56dd3c},_0xce8b88),h(_0x22c36a['response'],0xc8,{'error':r});return;}case'edit':await this['_service']['editComment']({'unitID':_0x1abdf8['unitID'],'threadID':s(_0x2bae0a['threadId'],'threadId'),'replyID':s(_0x2bae0a['replyId'],'replyId'),'content':s(_0x2bae0a['content'],'content'),'mentions':l(_0x2bae0a['mention'],'mention')},_0xce8b88),h(_0x22c36a['response'],0xc8,{'error':r});return;case'delete':await this['_service']['deleteComment']({'unitID':_0x1abdf8['unitID'],'threadID':s(_0x2bae0a['threadId'],'threadId'),...c(_0x2bae0a['replyId'],'replyId')},_0xce8b88),h(_0x22c36a['response'],0xc8,{'error':r});return;}}catch(_0x56551f){p(_0x22c36a['response'],_0x56551f,_0x1abdf8['action']);}}['_resolveWriteSession'](_0x2ad7c4,_0x1ba319,_0x1dd74d,_0x400ab7){let _0x29d1c0=this['_roomHost']['findJoinedSession']({'unitID':_0x1ba319,'memberID':_0x1dd74d,'authenticatedUserID':_0x400ab7});if(_0x29d1c0)return _0x29d1c0;if(_0x2ad7c4==='solved'&&_0x1dd74d===_0x400ab7){let _0x4c8e29=this['_roomHost']['findJoinedSessionByUser']({'unitID':_0x1ba319,'authenticatedUserID':_0x400ab7});if(_0x4c8e29)return _0x4c8e29;}throw new e['CollabError']('PERMISSION_DENIED','Comment\x20member\x20is\x20not\x20an\x20authenticated\x20joined\x20Session');}async['_publish'](_0x2eb502){try{await this['_roomHost']['publishTrustedUnitEvent']({'unitID':_0x2eb502['update']['unitId'],'memberID':_0x2eb502['memberID'],'eventID':'comment_update','data':{'commentUpdateEvent':_0x2eb502['update']}});}catch{}}};function a(_0x3038bd,_0x4cad43){let _0x257076=o(_0x3038bd),_0x32d162=s(_0x257076['unitId'],'unitId');if(_0x32d162!==_0x4cad43)throw d('Route\x20and\x20body\x20unitId\x20must\x20match');return{'unitId':_0x32d162,'threadId':l(_0x257076['threadId'],'threadId')};}function o(_0x27de56){if(!_0x27de56||typeof _0x27de56!='object'||Array['isArray'](_0x27de56))throw d('Request\x20body\x20must\x20be\x20an\x20object');return _0x27de56;}function s(_0x4872f3,_0x28b3e7){if(typeof _0x4872f3!='string'||_0x4872f3['length']===0x0)throw d(_0x28b3e7+'\x20must\x20be\x20a\x20non-empty\x20string');return _0x4872f3;}function c(_0x3e739d,_0x3e4fed){return _0x3e739d==null||_0x3e739d===''?{}:{'replyID':s(_0x3e739d,_0x3e4fed)};}function l(_0x1c5721,_0x5c8098){if(!Array['isArray'](_0x1c5721)||_0x1c5721['some'](_0x1a3bf5=>typeof _0x1a3bf5!='string'||_0x1a3bf5['length']===0x0))throw d(_0x5c8098+'\x20must\x20be\x20an\x20array\x20of\x20non-empty\x20strings');return[..._0x1c5721];}function u(_0x33efa4){if(_0x33efa4!==n['CommentSolvedStatus']['OpenOrReOpen']&&_0x33efa4!==n['CommentSolvedStatus']['Solved'])throw d('solved\x20must\x20be\x20OpenOrReOpen\x20or\x20Solved');return _0x33efa4;}function d(_0xefe562){return new e['CollabError']('INVALID_REQUEST',_0xefe562);}function f(_0x1f9606){if(!_0x1f9606['startsWith']('/')||_0x1f9606==='/'||_0x1f9606['endsWith']('/')||_0x1f9606['includes']('//'))throw TypeError('protocolBasePath\x20must\x20be\x20an\x20absolute\x20path\x20without\x20a\x20trailing\x20slash');return _0x1f9606;}function p(_0x1cdfc4,_0x2021a6,_0x2a94cb){let _0x5133bf=m(_0x2021a6),_0x4e1032=_0x2a94cb==='list'?{'comments':{},'users':{}}:_0x2a94cb==='add'?{'comment':void 0x0}:_0x2a94cb==='reply'?{'reply':void 0x0}:{};h(_0x1cdfc4,_0x5133bf['status'],{'error':_0x5133bf['error'],..._0x4e1032});}function m(_0x352e5b){if(_0x352e5b instanceof t['NodeTransportError'])return _0x352e5b['code']==='REQUEST_BODY_TOO_LARGE'?{'status':0x19d,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x352e5b['message']}}:_0x352e5b['code']==='INVALID_JSON'||_0x352e5b['code']==='REQUEST_ABORTED'?{'status':0x190,'error':{'code':n['ErrorCode']['INVALID_ARGUMENT'],'message':_0x352e5b['message']}}:{'status':0x1f7,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':_0x352e5b['message']}};if(!(_0x352e5b instanceof e['CollabError']))return{'status':0x1f4,'error':{'code':n['ErrorCode']['INTERNAL_ERROR'],'message':'Internal\x20error'}};let [_0x3dba41,_0x28658d]=((()=>{switch(_0x352e5b['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':_0x3dba41,'error':{'code':_0x28658d,'message':_0x352e5b['message']}};}function h(_0x11391a,_0x5dec0d,_0x47ce83){_0x11391a['writableEnded']||(_0x11391a['statusCode']=_0x5dec0d,_0x11391a['setHeader']('content-type','application/json;\x20charset=utf-8'),_0x11391a['end'](JSON['stringify'](_0x47ce83)));}exports['UniverCommentEndpoint']=i;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- function _0x52f1(_0x5f4e19,_0x4ec737){_0x5f4e19=_0x5f4e19-0x6e;const _0x9bca4a=_0x9bca();let _0x52f18c=_0x9bca4a[_0x5f4e19];return _0x52f18c;}function _0x9bca(){const _0xd1afb4=['42DfgAUx','8150424bIpfQE','4867767jfynih','30426737pHgukF','20EViQtv','5pwluuR','7WHUqZP','30645qQEQiB','428046AAiKGy','1633140jbobfD','1537652GjiClN'];_0x9bca=function(){return _0xd1afb4;};return _0x9bca();}(function(_0x110ba9,_0x253e69){const _0x27f239=_0x52f1,_0x2e7b84=_0x110ba9();while(!![]){try{const _0x146de1=-parseInt(_0x27f239(0x77))/0x1*(parseInt(_0x27f239(0x6f))/0x2)+parseInt(_0x27f239(0x70))/0x3+parseInt(_0x27f239(0x71))/0x4+parseInt(_0x27f239(0x6e))/0x5*(parseInt(_0x27f239(0x72))/0x6)+parseInt(_0x27f239(0x78))/0x7*(-parseInt(_0x27f239(0x73))/0x8)+-parseInt(_0x27f239(0x74))/0x9*(parseInt(_0x27f239(0x76))/0xa)+parseInt(_0x27f239(0x75))/0xb;if(_0x146de1===_0x253e69)break;else _0x2e7b84['push'](_0x2e7b84['shift']());}catch(_0x334ce4){_0x2e7b84['push'](_0x2e7b84['shift']());}}}(_0x9bca,0x8a74f));import _0x321cc8 from'./index.cjs';const facadeExport0=_0x321cc8['UniverCommentEndpoint'];export{facadeExport0 as UniverCommentEndpoint};
1
+ const _0xe9cf81=_0x5ded;(function(_0x5c64dc,_0x10b19d){const _0xc3ed1d=_0x5ded,_0x414062=_0x5c64dc();while(!![]){try{const _0x50a14d=parseInt(_0xc3ed1d(0xd6))/0x1*(parseInt(_0xc3ed1d(0xdd))/0x2)+parseInt(_0xc3ed1d(0xdf))/0x3*(parseInt(_0xc3ed1d(0xdb))/0x4)+-parseInt(_0xc3ed1d(0xda))/0x5*(-parseInt(_0xc3ed1d(0xd5))/0x6)+-parseInt(_0xc3ed1d(0xd9))/0x7*(-parseInt(_0xc3ed1d(0xd8))/0x8)+-parseInt(_0xc3ed1d(0xe0))/0x9+-parseInt(_0xc3ed1d(0xe1))/0xa*(parseInt(_0xc3ed1d(0xdc))/0xb)+-parseInt(_0xc3ed1d(0xd7))/0xc;if(_0x50a14d===_0x10b19d)break;else _0x414062['push'](_0x414062['shift']());}catch(_0x31869e){_0x414062['push'](_0x414062['shift']());}}}(_0x4ca7,0xd15cb));function _0x5ded(_0x46176a,_0x1d528e){_0x46176a=_0x46176a-0xd5;const _0x4ca799=_0x4ca7();let _0x5dedab=_0x4ca799[_0x46176a];return _0x5dedab;}import _0x36975f from'./index.cjs';const facadeExport0=_0x36975f[_0xe9cf81(0xde)];function _0x4ca7(){const _0x3526c2=['9184164rBkTMt','8496RHafXJ','5852JxlhYw','160ongSgW','15532GSxAgN','9027733ajipPW','4244TkrRWP','UniverCommentEndpoint','429pwGfmZ','2878398WqSOXz','10ZpXtBY','29922pXEsYb','547POzVNe'];_0x4ca7=function(){return _0x3526c2;};return _0x4ca7();}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.0.0",
4
+ "version": "1.0.1",
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.0.0",
20
- "@univerjs-pro/collaboration-endpoint": "1.0.0",
21
- "@univerjs-pro/collaboration-service": "1.0.0",
22
- "@univerjs-pro/collaboration-transport-node": "1.0.0",
23
- "@univerjs/protocol": "1.0.0"
19
+ "@univerjs-pro/collaboration-comment-service": "1.0.1",
20
+ "@univerjs-pro/collaboration-endpoint": "1.0.1",
21
+ "@univerjs-pro/collaboration-service": "1.0.1",
22
+ "@univerjs-pro/collaboration-transport-node": "1.0.1",
23
+ "@univerjs/protocol": "1.0.1"
24
24
  }
25
25
  }