@univerjs-pro/collaboration-client-node 0.22.1-insiders.20260518-a662f1e → 0.23.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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x78022c=_0x6e16;function _0x508a(){const _0x270c18=['Inject','22QGXsDy','error','NodeCollaborationSocketService','_registerDependencies','0.23.0','prototype','3AGLFIk','string','Disposable','Module','_doCreateSocket','headers','registerDependencies','Observable','DisposableCollection','UniverCollaborationClientNodePlugin','56WpaUtQ','setConfig','constructor','share','packageName','CollaborationSocketService','defineProperty','WebSocket','function','createSocket','symbol','removeEventListener','message','pluginName','addEventListener','DependentOn','605ELpINi','customHeaders','Injector','ISnapshotServerService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverCollaborationClientPlugin','IConfigService','8886KVOOXn','registerHTTPInterceptor','1617932yxiJKR','_configService','218866qCqzXX','HTTPService','4955364gRnbJw','close','342018CVYxHO','@univerjs-pro/collaboration-client-node','call','send','version','COLLABORATION_CLIENT_NODE_CONFIG_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pipe','toDisposable','198317TpBCkc','864770SOMskd','ISocketService','add','set','next','length','Plugin','_injector','collaboration-client-node.config','open','onStarting','object','getOwnPropertyDescriptor','getConfig'];_0x508a=function(){return _0x270c18;};return _0x508a();}(function(_0x1b5a1a,_0x507b7b){const _0x271ef5=_0x6e16,_0x56595f=_0x1b5a1a();while(!![]){try{const _0x27ea79=-parseInt(_0x271ef5(0xbc))/0x1+parseInt(_0x271ef5(0xc0))/0x2+parseInt(_0x271ef5(0x97))/0x3*(-parseInt(_0x271ef5(0xba))/0x4)+-parseInt(_0x271ef5(0xb1))/0x5*(parseInt(_0x271ef5(0xb8))/0x6)+parseInt(_0x271ef5(0x81))/0x7*(parseInt(_0x271ef5(0xa1))/0x8)+parseInt(_0x271ef5(0xbe))/0x9+-parseInt(_0x271ef5(0x82))/0xa*(-parseInt(_0x271ef5(0x91))/0xb);if(_0x27ea79===_0x507b7b)break;else _0x56595f['push'](_0x56595f['shift']());}catch(_0x30a1d1){_0x56595f['push'](_0x56595f['shift']());}}}(_0x508a,0x46e16),Object[_0x78022c(0xa7)](exports,Symbol['toStringTag'],{'value':_0x78022c(0x9a)}));let e=require(`@univerjs-pro/collaboration-client`),t=require(`@univerjs/core`),n=require(`@univerjs/network`),r=require(`rxjs`),i=require(`ws`),a=require(`@univerjs-pro/collaboration`);const o=_0x78022c(0x8a);Symbol(o);const s={};var c=_0x78022c(0x79),l=_0x78022c(0x95);function u(_0x39b417,_0x1da549){return function(_0x26161a,_0x54afc5){_0x1da549(_0x26161a,_0x54afc5,_0x39b417);};}function d(_0x37cc9f,_0x33c650,_0x450f25,_0x59b392){const _0x48a0dd=_0x78022c;var _0x10dbd3=arguments[_0x48a0dd(0x87)],_0x1ba043=_0x10dbd3<0x3?_0x33c650:_0x59b392===null?_0x59b392=Object[_0x48a0dd(0x8e)](_0x33c650,_0x450f25):_0x59b392,_0x341377;if(typeof Reflect==_0x48a0dd(0x8d)&&typeof Reflect['decorate']==_0x48a0dd(0xa9))_0x1ba043=Reflect['decorate'](_0x37cc9f,_0x33c650,_0x450f25,_0x59b392);else{for(var _0x41c643=_0x37cc9f['length']-0x1;_0x41c643>=0x0;_0x41c643--)(_0x341377=_0x37cc9f[_0x41c643])&&(_0x1ba043=(_0x10dbd3<0x3?_0x341377(_0x1ba043):_0x10dbd3>0x3?_0x341377(_0x33c650,_0x450f25,_0x1ba043):_0x341377(_0x33c650,_0x450f25))||_0x1ba043);}return _0x10dbd3>0x3&&_0x1ba043&&Object[_0x48a0dd(0xa7)](_0x33c650,_0x450f25,_0x1ba043),_0x1ba043;}let f=class extends t[_0x78022c(0x99)]{constructor(_0x4eec38){const _0x5dd037=_0x78022c;super(),this[_0x5dd037(0xbb)]=_0x4eec38;}[_0x78022c(0xaa)](_0x9b421a){const _0x41b61a=_0x78022c;var _0x297845;let _0x356a6c=((_0x297845=this[_0x41b61a(0xbb)][_0x41b61a(0x8f)](e[_0x41b61a(0x7e)]))==null?void 0x0:_0x297845['customHeaders'])||{};try{let _0x246b47=new i[(_0x41b61a(0xa8))](_0x9b421a,{'headers':{..._0x356a6c}}),_0x4de40c=new t[(_0x41b61a(0x9f))]();return{'URL':_0x9b421a,'close':(_0x254332,_0x271873)=>{_0x246b47['close'](_0x254332,_0x271873),_0x4de40c['dispose']();},'send':_0x451f16=>{const _0x4aebe8=_0x41b61a;_0x246b47[_0x4aebe8(0x7b)](_0x451f16);},'open$':new r[(_0x41b61a(0x9e))](_0x4f7b8c=>{const _0x37bf5d=_0x41b61a;let _0x5ac242=_0x1b354f=>_0x4f7b8c[_0x37bf5d(0x86)](_0x1b354f);_0x246b47[_0x37bf5d(0xaf)](_0x37bf5d(0x8b),_0x5ac242),_0x4de40c[_0x37bf5d(0x84)]((0x0,t['toDisposable'])(()=>_0x246b47[_0x37bf5d(0xac)](_0x37bf5d(0x8b),_0x5ac242)));})[_0x41b61a(0x7f)]((0x0,r[_0x41b61a(0xa4)])()),'close$':new r[(_0x41b61a(0x9e))](_0x48bf1d=>{const _0x127d5c=_0x41b61a;let _0x3a9828=_0x5bcd0b=>_0x48bf1d['next'](_0x5bcd0b);_0x246b47[_0x127d5c(0xaf)](_0x127d5c(0xbf),_0x3a9828),_0x4de40c['add']((0x0,t[_0x127d5c(0x80)])(()=>_0x246b47[_0x127d5c(0xac)](_0x127d5c(0xbf),_0x3a9828)));})[_0x41b61a(0x7f)]((0x0,r[_0x41b61a(0xa4)])()),'error$':new r[(_0x41b61a(0x9e))](_0x477b9c=>{const _0x1a7712=_0x41b61a;let _0x260aa4=_0x20ccf6=>_0x477b9c[_0x1a7712(0x86)](_0x20ccf6);_0x246b47[_0x1a7712(0xaf)]('error',_0x260aa4),_0x4de40c[_0x1a7712(0x84)]((0x0,t['toDisposable'])(()=>_0x246b47['removeEventListener']('error',_0x260aa4)));})[_0x41b61a(0x7f)]((0x0,r[_0x41b61a(0xa4)])()),'message$':new r[(_0x41b61a(0x9e))](_0x2378d0=>{const _0x133739=_0x41b61a;let _0x340f4b=_0x304e7b=>_0x2378d0[_0x133739(0x86)](_0x304e7b);_0x246b47['addEventListener'](_0x133739(0xad),_0x340f4b),_0x4de40c[_0x133739(0x84)]((0x0,t[_0x133739(0x80)])(()=>_0x246b47[_0x133739(0xac)]('message',_0x340f4b)));})[_0x41b61a(0x7f)]((0x0,r[_0x41b61a(0xa4)])())};}catch(_0x59d34e){return console[_0x41b61a(0x92)](_0x59d34e),null;}}};f=d([u(0x0,t[_0x78022c(0xb7)])],f);function _0x6e16(_0x2ec79c,_0x27813f){_0x2ec79c=_0x2ec79c-0x79;const _0x508a52=_0x508a();let _0x6e16c9=_0x508a52[_0x2ec79c];return _0x6e16c9;}function p(_0x2d9939){'@babel/helpers - typeof';const _0x469a38=_0x78022c;return p=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x469a38(0xab)?function(_0x2c3622){return typeof _0x2c3622;}:function(_0x4f3551){const _0x2916a0=_0x469a38;return _0x4f3551&&typeof Symbol==_0x2916a0(0xa9)&&_0x4f3551[_0x2916a0(0xa3)]===Symbol&&_0x4f3551!==Symbol[_0x2916a0(0x96)]?_0x2916a0(0xab):typeof _0x4f3551;},p(_0x2d9939);}function m(_0x4855e9,_0x4f2775){const _0x7ee8a9=_0x78022c;if(p(_0x4855e9)!=_0x7ee8a9(0x8d)||!_0x4855e9)return _0x4855e9;var _0x4b0dbb=_0x4855e9[Symbol['toPrimitive']];if(_0x4b0dbb!==void 0x0){var _0x5efd65=_0x4b0dbb[_0x7ee8a9(0x7a)](_0x4855e9,_0x4f2775||'default');if(p(_0x5efd65)!='object')return _0x5efd65;throw TypeError(_0x7ee8a9(0xb5));}return(_0x4f2775===_0x7ee8a9(0x98)?String:Number)(_0x4855e9);}function h(_0x12bcdb){const _0x1a3810=_0x78022c;var _0x44ea4a=m(_0x12bcdb,'string');return p(_0x44ea4a)==_0x1a3810(0xab)?_0x44ea4a:_0x44ea4a+'';}function g(_0x359ca5,_0x263444,_0x40cd92){return(_0x263444=h(_0x263444))in _0x359ca5?Object['defineProperty'](_0x359ca5,_0x263444,{'value':_0x40cd92,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359ca5[_0x263444]=_0x40cd92,_0x359ca5;}let _=class extends t[_0x78022c(0x88)]{constructor(_0x3fd5d1=s,_0x2d8073,_0x1f41b0){const _0x423c86=_0x78022c;super(),this['_configService']=_0x2d8073,this[_0x423c86(0x89)]=_0x1f41b0,this['_configService'][_0x423c86(0xa2)](o,_0x3fd5d1);}[_0x78022c(0x8c)](){const _0x4c7c25=_0x78022c;this[_0x4c7c25(0x94)]();}['_registerDependencies'](){const _0x1d2b26=_0x78022c;(0x0,t[_0x1d2b26(0x9d)])(this['_injector'],[[n[_0x1d2b26(0x83)],{'useClass':f}]]);}};g(_,_0x78022c(0xae),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x78022c(0xa5),c),g(_,_0x78022c(0x7c),l),_=d([(0x0,t[_0x78022c(0xb0)])(e[_0x78022c(0xb6)]),u(0x1,t[_0x78022c(0xb7)]),u(0x2,(0x0,t[_0x78022c(0x90)])(t[_0x78022c(0xb3)]))],_);let v=class extends e[_0x78022c(0xa6)]{constructor(_0x23e44f,_0x40eb42,_0x1675d0,_0x330859,_0x5b2b14){const _0x14c3e6=_0x78022c;super(_0x23e44f,_0x40eb42,_0x1675d0,_0x330859,_0x5b2b14);let _0x54673f=this[_0x14c3e6(0xbb)]['getConfig'](e[_0x14c3e6(0x7e)]);this['_httpService'][_0x14c3e6(0xb9)]({'interceptor':(_0x1cdc09,_0x59fd5a)=>{const _0xc9d7b4=_0x14c3e6;let _0x41e196=_0x1cdc09[_0xc9d7b4(0x9c)];if(_0x54673f!=null&&_0x54673f[_0xc9d7b4(0xb2)]){for(let _0xb5f58b in _0x54673f[_0xc9d7b4(0xb2)])_0x41e196[_0xc9d7b4(0x85)](_0xb5f58b,_0x54673f[_0xc9d7b4(0xb2)][_0xb5f58b]);}return _0x59fd5a(_0x1cdc09);}});}async[_0x78022c(0xaa)](_0x3c13d9){const _0x156641=_0x78022c;return this[_0x156641(0x9b)](_0x3c13d9);}};v=d([u(0x0,(0x0,t['Inject'])(t['Injector'])),u(0x1,(0x0,t[_0x78022c(0x90)])(n[_0x78022c(0xbd)])),u(0x2,t[_0x78022c(0xb7)]),u(0x3,t['ILogService']),u(0x4,a[_0x78022c(0xb4)])],v),exports[_0x78022c(0x7d)]=o,Object[_0x78022c(0xa7)](exports,_0x78022c(0x93),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x78022c(0xa7)](exports,_0x78022c(0xa0),{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x368623=_0x3648;(function(_0x50b80,_0x36c82c){const _0x1edb00=_0x3648,_0x504388=_0x50b80();while(!![]){try{const _0x3f1eef=parseInt(_0x1edb00(0x1b5))/0x1+parseInt(_0x1edb00(0x1a4))/0x2*(-parseInt(_0x1edb00(0x197))/0x3)+-parseInt(_0x1edb00(0x1a5))/0x4+parseInt(_0x1edb00(0x193))/0x5+-parseInt(_0x1edb00(0x1b2))/0x6+-parseInt(_0x1edb00(0x1a2))/0x7+parseInt(_0x1edb00(0x1b0))/0x8;if(_0x3f1eef===_0x36c82c)break;else _0x504388['push'](_0x504388['shift']());}catch(_0x31917a){_0x504388['push'](_0x504388['shift']());}}}(_0x4ac5,0xddc02));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4f7b90,CollaborationSocketService as _0x1c6542,UniverCollaborationClientPlugin as _0x1ae38f}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x1cc31b,Disposable as _0x159b12,DisposableCollection as _0x498e9b,IConfigService as _0x528f0c,ILogService as _0x25ad68,Inject as _0xfe4f0a,Injector as _0x436111,Plugin as _0x1b3afb,registerDependencies as _0x2a11b8,toDisposable as _0x51cdc3}from'@univerjs/core';import{HTTPService as _0x4a3fa6,ISocketService as _0x489353}from'@univerjs/network';import{Observable as _0x459532,share as _0x190bdf}from'rxjs';import{WebSocket as _0x2bace2}from'ws';import{ISnapshotServerService as _0x314f45}from'@univerjs-pro/collaboration';function _0x3648(_0x526aa5,_0x2b8422){_0x526aa5=_0x526aa5-0x191;const _0x4ac5a9=_0x4ac5();let _0x3648b0=_0x4ac5a9[_0x526aa5];return _0x3648b0;}const y=_0x368623(0x1a1);Symbol(y);const b={};var x='@univerjs-pro/collaboration-client-node',S='0.23.0';function C(_0x5a4560,_0x2ae0d4){return function(_0x1a4ffc,_0x2bf9b5){_0x2ae0d4(_0x1a4ffc,_0x2bf9b5,_0x5a4560);};}function w(_0x37e4fd,_0x3565f1,_0x4ef006,_0x27a3b7){const _0x238c72=_0x368623;var _0x3f9cd0=arguments[_0x238c72(0x1bc)],_0x290fd0=_0x3f9cd0<0x3?_0x3565f1:_0x27a3b7===null?_0x27a3b7=Object[_0x238c72(0x1a9)](_0x3565f1,_0x4ef006):_0x27a3b7,_0x41d316;if(typeof Reflect==_0x238c72(0x1ac)&&typeof Reflect[_0x238c72(0x1b9)]==_0x238c72(0x198))_0x290fd0=Reflect[_0x238c72(0x1b9)](_0x37e4fd,_0x3565f1,_0x4ef006,_0x27a3b7);else{for(var _0x5bebf6=_0x37e4fd['length']-0x1;_0x5bebf6>=0x0;_0x5bebf6--)(_0x41d316=_0x37e4fd[_0x5bebf6])&&(_0x290fd0=(_0x3f9cd0<0x3?_0x41d316(_0x290fd0):_0x3f9cd0>0x3?_0x41d316(_0x3565f1,_0x4ef006,_0x290fd0):_0x41d316(_0x3565f1,_0x4ef006))||_0x290fd0);}return _0x3f9cd0>0x3&&_0x290fd0&&Object[_0x238c72(0x19a)](_0x3565f1,_0x4ef006,_0x290fd0),_0x290fd0;}let T=class extends _0x159b12{constructor(_0x55c04e){super(),this['_configService']=_0x55c04e;}[_0x368623(0x1a0)](_0x2a8f89){const _0x1d1ad1=_0x368623;var _0x156bc7;let _0x3cf388=((_0x156bc7=this['_configService']['getConfig'](_0x4f7b90))==null?void 0x0:_0x156bc7['customHeaders'])||{};try{let _0xdd28ef=new _0x2bace2(_0x2a8f89,{'headers':{..._0x3cf388}}),_0x1b6b54=new _0x498e9b();return{'URL':_0x2a8f89,'close':(_0xb2a356,_0x114190)=>{const _0x2de5be=_0x3648;_0xdd28ef[_0x2de5be(0x1bd)](_0xb2a356,_0x114190),_0x1b6b54[_0x2de5be(0x199)]();},'send':_0x9f68a=>{const _0x3134bb=_0x3648;_0xdd28ef[_0x3134bb(0x1af)](_0x9f68a);},'open$':new _0x459532(_0x205624=>{const _0x22d3bf=_0x3648;let _0x22c541=_0x5db915=>_0x205624[_0x22d3bf(0x19f)](_0x5db915);_0xdd28ef[_0x22d3bf(0x194)](_0x22d3bf(0x19b),_0x22c541),_0x1b6b54['add'](_0x51cdc3(()=>_0xdd28ef[_0x22d3bf(0x1b7)](_0x22d3bf(0x19b),_0x22c541)));})['pipe'](_0x190bdf()),'close$':new _0x459532(_0x3a1f0f=>{const _0x1f9d76=_0x3648;let _0x554497=_0x5bb5fa=>_0x3a1f0f[_0x1f9d76(0x19f)](_0x5bb5fa);_0xdd28ef['addEventListener'](_0x1f9d76(0x1bd),_0x554497),_0x1b6b54[_0x1f9d76(0x1ae)](_0x51cdc3(()=>_0xdd28ef['removeEventListener']('close',_0x554497)));})['pipe'](_0x190bdf()),'error$':new _0x459532(_0x50e16c=>{const _0x180a50=_0x3648;let _0x511250=_0x4f3e6f=>_0x50e16c[_0x180a50(0x19f)](_0x4f3e6f);_0xdd28ef[_0x180a50(0x194)](_0x180a50(0x1b3),_0x511250),_0x1b6b54[_0x180a50(0x1ae)](_0x51cdc3(()=>_0xdd28ef[_0x180a50(0x1b7)](_0x180a50(0x1b3),_0x511250)));})[_0x1d1ad1(0x1b6)](_0x190bdf()),'message$':new _0x459532(_0x4a3c9d=>{const _0x5f5b37=_0x1d1ad1;let _0x54be56=_0x2d8b57=>_0x4a3c9d[_0x5f5b37(0x19f)](_0x2d8b57);_0xdd28ef[_0x5f5b37(0x194)](_0x5f5b37(0x1b8),_0x54be56),_0x1b6b54[_0x5f5b37(0x1ae)](_0x51cdc3(()=>_0xdd28ef[_0x5f5b37(0x1b7)](_0x5f5b37(0x1b8),_0x54be56)));})[_0x1d1ad1(0x1b6)](_0x190bdf())};}catch(_0x5127e4){return console[_0x1d1ad1(0x1b3)](_0x5127e4),null;}}};T=w([C(0x0,_0x528f0c)],T);function _0x4ac5(){const _0x42537a=['onStarting','699230WvUXcp','addEventListener','_doCreateSocket','_injector','3uBErlr','function','dispose','defineProperty','open','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','next','createSocket','collaboration-client-node.config','4098857PrfeCa','registerHTTPInterceptor','3561668EBYMsx','4090340ZvNGZl','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_registerDependencies','symbol','getOwnPropertyDescriptor','customHeaders','prototype','object','version','add','send','24146856DLZHhK','constructor','2549160wexXkR','error','default','1563917lvziuM','pipe','removeEventListener','message','decorate','getConfig','_httpService','length','close','packageName','pluginName','_configService'];_0x4ac5=function(){return _0x42537a;};return _0x4ac5();}function E(_0x5c31e6){'@babel/helpers - typeof';const _0x10836f=_0x368623;return E=typeof Symbol==_0x10836f(0x198)&&typeof Symbol[_0x10836f(0x19c)]=='symbol'?function(_0x58ff01){return typeof _0x58ff01;}:function(_0x906b37){const _0x47510d=_0x10836f;return _0x906b37&&typeof Symbol==_0x47510d(0x198)&&_0x906b37[_0x47510d(0x1b1)]===Symbol&&_0x906b37!==Symbol[_0x47510d(0x1ab)]?_0x47510d(0x1a8):typeof _0x906b37;},E(_0x5c31e6);}function D(_0x20ae36,_0x3dc0d0){const _0x108a7e=_0x368623;if(E(_0x20ae36)!=_0x108a7e(0x1ac)||!_0x20ae36)return _0x20ae36;var _0xbb70a3=_0x20ae36[Symbol['toPrimitive']];if(_0xbb70a3!==void 0x0){var _0x514a33=_0xbb70a3['call'](_0x20ae36,_0x3dc0d0||_0x108a7e(0x1b4));if(E(_0x514a33)!=_0x108a7e(0x1ac))return _0x514a33;throw TypeError(_0x108a7e(0x19d));}return(_0x3dc0d0===_0x108a7e(0x19e)?String:Number)(_0x20ae36);}function O(_0x5df9aa){const _0xca6cc3=_0x368623;var _0x47657f=D(_0x5df9aa,'string');return E(_0x47657f)==_0xca6cc3(0x1a8)?_0x47657f:_0x47657f+'';}function k(_0xa5d515,_0x9eb929,_0xca48d1){const _0x4fe1b3=_0x368623;return(_0x9eb929=O(_0x9eb929))in _0xa5d515?Object[_0x4fe1b3(0x19a)](_0xa5d515,_0x9eb929,{'value':_0xca48d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa5d515[_0x9eb929]=_0xca48d1,_0xa5d515;}let A=class extends _0x1b3afb{constructor(_0x54ac0b=b,_0x5ad743,_0x391305){const _0x817e84=_0x368623;super(),this[_0x817e84(0x191)]=_0x5ad743,this['_injector']=_0x391305,this[_0x817e84(0x191)]['setConfig'](y,_0x54ac0b);}[_0x368623(0x192)](){this['_registerDependencies']();}[_0x368623(0x1a7)](){const _0x439269=_0x368623;_0x2a11b8(this[_0x439269(0x196)],[[_0x489353,{'useClass':T}]]);}};k(A,_0x368623(0x1bf),_0x368623(0x1a6)),k(A,_0x368623(0x1be),x),k(A,_0x368623(0x1ad),S),A=w([_0x1cc31b(_0x1ae38f),C(0x1,_0x528f0c),C(0x2,_0xfe4f0a(_0x436111))],A);let j=class extends _0x1c6542{constructor(_0x3d6860,_0x5b773c,_0x4a5485,_0x2494e1,_0x5a6c64){const _0x40128c=_0x368623;super(_0x3d6860,_0x5b773c,_0x4a5485,_0x2494e1,_0x5a6c64);let _0x5a0627=this['_configService'][_0x40128c(0x1ba)](_0x4f7b90);this[_0x40128c(0x1bb)][_0x40128c(0x1a3)]({'interceptor':(_0x40e11d,_0x1e0e9a)=>{const _0x547e1=_0x40128c;let _0x4fe1dc=_0x40e11d['headers'];if(_0x5a0627!=null&&_0x5a0627[_0x547e1(0x1aa)]){for(let _0x21db30 in _0x5a0627[_0x547e1(0x1aa)])_0x4fe1dc['set'](_0x21db30,_0x5a0627[_0x547e1(0x1aa)][_0x21db30]);}return _0x1e0e9a(_0x40e11d);}});}async[_0x368623(0x1a0)](_0x1c4176){const _0x731821=_0x368623;return this[_0x731821(0x195)](_0x1c4176);}};j=w([C(0x0,_0xfe4f0a(_0x436111)),C(0x1,_0xfe4f0a(_0x4a3fa6)),C(0x2,_0x528f0c),C(0x3,_0x25ad68),C(0x4,_0x314f45)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x368623=_0x3648;(function(_0x50b80,_0x36c82c){const _0x1edb00=_0x3648,_0x504388=_0x50b80();while(!![]){try{const _0x3f1eef=parseInt(_0x1edb00(0x1b5))/0x1+parseInt(_0x1edb00(0x1a4))/0x2*(-parseInt(_0x1edb00(0x197))/0x3)+-parseInt(_0x1edb00(0x1a5))/0x4+parseInt(_0x1edb00(0x193))/0x5+-parseInt(_0x1edb00(0x1b2))/0x6+-parseInt(_0x1edb00(0x1a2))/0x7+parseInt(_0x1edb00(0x1b0))/0x8;if(_0x3f1eef===_0x36c82c)break;else _0x504388['push'](_0x504388['shift']());}catch(_0x31917a){_0x504388['push'](_0x504388['shift']());}}}(_0x4ac5,0xddc02));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4f7b90,CollaborationSocketService as _0x1c6542,UniverCollaborationClientPlugin as _0x1ae38f}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x1cc31b,Disposable as _0x159b12,DisposableCollection as _0x498e9b,IConfigService as _0x528f0c,ILogService as _0x25ad68,Inject as _0xfe4f0a,Injector as _0x436111,Plugin as _0x1b3afb,registerDependencies as _0x2a11b8,toDisposable as _0x51cdc3}from'@univerjs/core';import{HTTPService as _0x4a3fa6,ISocketService as _0x489353}from'@univerjs/network';import{Observable as _0x459532,share as _0x190bdf}from'rxjs';import{WebSocket as _0x2bace2}from'ws';import{ISnapshotServerService as _0x314f45}from'@univerjs-pro/collaboration';function _0x3648(_0x526aa5,_0x2b8422){_0x526aa5=_0x526aa5-0x191;const _0x4ac5a9=_0x4ac5();let _0x3648b0=_0x4ac5a9[_0x526aa5];return _0x3648b0;}const y=_0x368623(0x1a1);Symbol(y);const b={};var x='@univerjs-pro/collaboration-client-node',S='0.23.0';function C(_0x5a4560,_0x2ae0d4){return function(_0x1a4ffc,_0x2bf9b5){_0x2ae0d4(_0x1a4ffc,_0x2bf9b5,_0x5a4560);};}function w(_0x37e4fd,_0x3565f1,_0x4ef006,_0x27a3b7){const _0x238c72=_0x368623;var _0x3f9cd0=arguments[_0x238c72(0x1bc)],_0x290fd0=_0x3f9cd0<0x3?_0x3565f1:_0x27a3b7===null?_0x27a3b7=Object[_0x238c72(0x1a9)](_0x3565f1,_0x4ef006):_0x27a3b7,_0x41d316;if(typeof Reflect==_0x238c72(0x1ac)&&typeof Reflect[_0x238c72(0x1b9)]==_0x238c72(0x198))_0x290fd0=Reflect[_0x238c72(0x1b9)](_0x37e4fd,_0x3565f1,_0x4ef006,_0x27a3b7);else{for(var _0x5bebf6=_0x37e4fd['length']-0x1;_0x5bebf6>=0x0;_0x5bebf6--)(_0x41d316=_0x37e4fd[_0x5bebf6])&&(_0x290fd0=(_0x3f9cd0<0x3?_0x41d316(_0x290fd0):_0x3f9cd0>0x3?_0x41d316(_0x3565f1,_0x4ef006,_0x290fd0):_0x41d316(_0x3565f1,_0x4ef006))||_0x290fd0);}return _0x3f9cd0>0x3&&_0x290fd0&&Object[_0x238c72(0x19a)](_0x3565f1,_0x4ef006,_0x290fd0),_0x290fd0;}let T=class extends _0x159b12{constructor(_0x55c04e){super(),this['_configService']=_0x55c04e;}[_0x368623(0x1a0)](_0x2a8f89){const _0x1d1ad1=_0x368623;var _0x156bc7;let _0x3cf388=((_0x156bc7=this['_configService']['getConfig'](_0x4f7b90))==null?void 0x0:_0x156bc7['customHeaders'])||{};try{let _0xdd28ef=new _0x2bace2(_0x2a8f89,{'headers':{..._0x3cf388}}),_0x1b6b54=new _0x498e9b();return{'URL':_0x2a8f89,'close':(_0xb2a356,_0x114190)=>{const _0x2de5be=_0x3648;_0xdd28ef[_0x2de5be(0x1bd)](_0xb2a356,_0x114190),_0x1b6b54[_0x2de5be(0x199)]();},'send':_0x9f68a=>{const _0x3134bb=_0x3648;_0xdd28ef[_0x3134bb(0x1af)](_0x9f68a);},'open$':new _0x459532(_0x205624=>{const _0x22d3bf=_0x3648;let _0x22c541=_0x5db915=>_0x205624[_0x22d3bf(0x19f)](_0x5db915);_0xdd28ef[_0x22d3bf(0x194)](_0x22d3bf(0x19b),_0x22c541),_0x1b6b54['add'](_0x51cdc3(()=>_0xdd28ef[_0x22d3bf(0x1b7)](_0x22d3bf(0x19b),_0x22c541)));})['pipe'](_0x190bdf()),'close$':new _0x459532(_0x3a1f0f=>{const _0x1f9d76=_0x3648;let _0x554497=_0x5bb5fa=>_0x3a1f0f[_0x1f9d76(0x19f)](_0x5bb5fa);_0xdd28ef['addEventListener'](_0x1f9d76(0x1bd),_0x554497),_0x1b6b54[_0x1f9d76(0x1ae)](_0x51cdc3(()=>_0xdd28ef['removeEventListener']('close',_0x554497)));})['pipe'](_0x190bdf()),'error$':new _0x459532(_0x50e16c=>{const _0x180a50=_0x3648;let _0x511250=_0x4f3e6f=>_0x50e16c[_0x180a50(0x19f)](_0x4f3e6f);_0xdd28ef[_0x180a50(0x194)](_0x180a50(0x1b3),_0x511250),_0x1b6b54[_0x180a50(0x1ae)](_0x51cdc3(()=>_0xdd28ef[_0x180a50(0x1b7)](_0x180a50(0x1b3),_0x511250)));})[_0x1d1ad1(0x1b6)](_0x190bdf()),'message$':new _0x459532(_0x4a3c9d=>{const _0x5f5b37=_0x1d1ad1;let _0x54be56=_0x2d8b57=>_0x4a3c9d[_0x5f5b37(0x19f)](_0x2d8b57);_0xdd28ef[_0x5f5b37(0x194)](_0x5f5b37(0x1b8),_0x54be56),_0x1b6b54[_0x5f5b37(0x1ae)](_0x51cdc3(()=>_0xdd28ef[_0x5f5b37(0x1b7)](_0x5f5b37(0x1b8),_0x54be56)));})[_0x1d1ad1(0x1b6)](_0x190bdf())};}catch(_0x5127e4){return console[_0x1d1ad1(0x1b3)](_0x5127e4),null;}}};T=w([C(0x0,_0x528f0c)],T);function _0x4ac5(){const _0x42537a=['onStarting','699230WvUXcp','addEventListener','_doCreateSocket','_injector','3uBErlr','function','dispose','defineProperty','open','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','next','createSocket','collaboration-client-node.config','4098857PrfeCa','registerHTTPInterceptor','3561668EBYMsx','4090340ZvNGZl','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_registerDependencies','symbol','getOwnPropertyDescriptor','customHeaders','prototype','object','version','add','send','24146856DLZHhK','constructor','2549160wexXkR','error','default','1563917lvziuM','pipe','removeEventListener','message','decorate','getConfig','_httpService','length','close','packageName','pluginName','_configService'];_0x4ac5=function(){return _0x42537a;};return _0x4ac5();}function E(_0x5c31e6){'@babel/helpers - typeof';const _0x10836f=_0x368623;return E=typeof Symbol==_0x10836f(0x198)&&typeof Symbol[_0x10836f(0x19c)]=='symbol'?function(_0x58ff01){return typeof _0x58ff01;}:function(_0x906b37){const _0x47510d=_0x10836f;return _0x906b37&&typeof Symbol==_0x47510d(0x198)&&_0x906b37[_0x47510d(0x1b1)]===Symbol&&_0x906b37!==Symbol[_0x47510d(0x1ab)]?_0x47510d(0x1a8):typeof _0x906b37;},E(_0x5c31e6);}function D(_0x20ae36,_0x3dc0d0){const _0x108a7e=_0x368623;if(E(_0x20ae36)!=_0x108a7e(0x1ac)||!_0x20ae36)return _0x20ae36;var _0xbb70a3=_0x20ae36[Symbol['toPrimitive']];if(_0xbb70a3!==void 0x0){var _0x514a33=_0xbb70a3['call'](_0x20ae36,_0x3dc0d0||_0x108a7e(0x1b4));if(E(_0x514a33)!=_0x108a7e(0x1ac))return _0x514a33;throw TypeError(_0x108a7e(0x19d));}return(_0x3dc0d0===_0x108a7e(0x19e)?String:Number)(_0x20ae36);}function O(_0x5df9aa){const _0xca6cc3=_0x368623;var _0x47657f=D(_0x5df9aa,'string');return E(_0x47657f)==_0xca6cc3(0x1a8)?_0x47657f:_0x47657f+'';}function k(_0xa5d515,_0x9eb929,_0xca48d1){const _0x4fe1b3=_0x368623;return(_0x9eb929=O(_0x9eb929))in _0xa5d515?Object[_0x4fe1b3(0x19a)](_0xa5d515,_0x9eb929,{'value':_0xca48d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa5d515[_0x9eb929]=_0xca48d1,_0xa5d515;}let A=class extends _0x1b3afb{constructor(_0x54ac0b=b,_0x5ad743,_0x391305){const _0x817e84=_0x368623;super(),this[_0x817e84(0x191)]=_0x5ad743,this['_injector']=_0x391305,this[_0x817e84(0x191)]['setConfig'](y,_0x54ac0b);}[_0x368623(0x192)](){this['_registerDependencies']();}[_0x368623(0x1a7)](){const _0x439269=_0x368623;_0x2a11b8(this[_0x439269(0x196)],[[_0x489353,{'useClass':T}]]);}};k(A,_0x368623(0x1bf),_0x368623(0x1a6)),k(A,_0x368623(0x1be),x),k(A,_0x368623(0x1ad),S),A=w([_0x1cc31b(_0x1ae38f),C(0x1,_0x528f0c),C(0x2,_0xfe4f0a(_0x436111))],A);let j=class extends _0x1c6542{constructor(_0x3d6860,_0x5b773c,_0x4a5485,_0x2494e1,_0x5a6c64){const _0x40128c=_0x368623;super(_0x3d6860,_0x5b773c,_0x4a5485,_0x2494e1,_0x5a6c64);let _0x5a0627=this['_configService'][_0x40128c(0x1ba)](_0x4f7b90);this[_0x40128c(0x1bb)][_0x40128c(0x1a3)]({'interceptor':(_0x40e11d,_0x1e0e9a)=>{const _0x547e1=_0x40128c;let _0x4fe1dc=_0x40e11d['headers'];if(_0x5a0627!=null&&_0x5a0627[_0x547e1(0x1aa)]){for(let _0x21db30 in _0x5a0627[_0x547e1(0x1aa)])_0x4fe1dc['set'](_0x21db30,_0x5a0627[_0x547e1(0x1aa)][_0x21db30]);}return _0x1e0e9a(_0x40e11d);}});}async[_0x368623(0x1a0)](_0x1c4176){const _0x731821=_0x368623;return this[_0x731821(0x195)](_0x1c4176);}};j=w([C(0x0,_0xfe4f0a(_0x436111)),C(0x1,_0xfe4f0a(_0x4a3fa6)),C(0x2,_0x528f0c),C(0x3,_0x25ad68),C(0x4,_0x314f45)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x12619c,_0x10369e){const _0x35238a=_0x1030,_0x21bf66=_0x12619c();while(!![]){try{const _0x1d17cf=parseInt(_0x35238a(0xfe))/0x1+-parseInt(_0x35238a(0x143))/0x2*(-parseInt(_0x35238a(0x111))/0x3)+-parseInt(_0x35238a(0x117))/0x4+parseInt(_0x35238a(0x128))/0x5*(-parseInt(_0x35238a(0x13f))/0x6)+-parseInt(_0x35238a(0x12e))/0x7*(parseInt(_0x35238a(0x103))/0x8)+-parseInt(_0x35238a(0x13a))/0x9*(parseInt(_0x35238a(0x136))/0xa)+parseInt(_0x35238a(0x12d))/0xb;if(_0x1d17cf===_0x10369e)break;else _0x21bf66['push'](_0x21bf66['shift']());}catch(_0x11767e){_0x21bf66['push'](_0x21bf66['shift']());}}}(_0x5c4a,0x53672),function(_0x275011,_0x24c15d){const _0x429d83=_0x1030;typeof exports==_0x429d83(0x116)&&typeof module<'u'?_0x24c15d(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x429d83(0x10a)&&define[_0x429d83(0x13b)]?define(['exports',_0x429d83(0xf9),_0x429d83(0x120),'@univerjs/network','rxjs',_0x429d83(0x13d)],_0x24c15d):(_0x275011=typeof globalThis<'u'?globalThis:_0x275011||self,_0x24c15d(_0x275011['UniverProCollaborationClientNode']={},_0x275011[_0x429d83(0x110)],_0x275011[_0x429d83(0x106)],_0x275011[_0x429d83(0x142)],_0x275011[_0x429d83(0x114)],_0x275011[_0x429d83(0x125)]));}(this,function(_0x132b7b,_0x51745d,_0x16580c,_0x3fd025,_0x5f1bca,_0x405472){const _0x4f62ae=_0x1030;Object[_0x4f62ae(0x133)](_0x132b7b,Symbol[_0x4f62ae(0x13e)],{'value':_0x4f62ae(0xfc)});var _0xd7ef87=(_0x123c28,_0x57236f)=>()=>(_0x57236f||(_0x123c28((_0x57236f={'exports':{}})[_0x4f62ae(0x100)],_0x57236f),_0x123c28=null),_0x57236f['exports']);let _0x5545bd=_0x4f62ae(0x149);Symbol(_0x5545bd);let _0x42b01b={};var _0x276b4d=_0x4f62ae(0x104),_0x1b34cd='0.22.1-insiders.20260518-a662f1e',_0x2b9137=_0xd7ef87((_0x8ea552,_0x30abd2)=>{const _0x3844f3=_0x4f62ae;_0x30abd2[_0x3844f3(0x100)]=function(){const _0x44fe3a=_0x3844f3;throw Error(_0x44fe3a(0x119));};})();function _0x3c2aaf(_0x4d5273,_0x5eaffa){return function(_0x330198,_0x1d89c3){_0x5eaffa(_0x330198,_0x1d89c3,_0x4d5273);};}function _0x32e966(_0x21bc43,_0xed928,_0x29adf0,_0x3ab338){const _0x26f9f0=_0x4f62ae;var _0x2df0e9=arguments[_0x26f9f0(0x118)],_0x403115=_0x2df0e9<0x3?_0xed928:_0x3ab338===null?_0x3ab338=Object[_0x26f9f0(0x127)](_0xed928,_0x29adf0):_0x3ab338,_0x5d6384;if(typeof Reflect==_0x26f9f0(0x116)&&typeof Reflect[_0x26f9f0(0x138)]==_0x26f9f0(0x10a))_0x403115=Reflect[_0x26f9f0(0x138)](_0x21bc43,_0xed928,_0x29adf0,_0x3ab338);else{for(var _0x2f1e34=_0x21bc43['length']-0x1;_0x2f1e34>=0x0;_0x2f1e34--)(_0x5d6384=_0x21bc43[_0x2f1e34])&&(_0x403115=(_0x2df0e9<0x3?_0x5d6384(_0x403115):_0x2df0e9>0x3?_0x5d6384(_0xed928,_0x29adf0,_0x403115):_0x5d6384(_0xed928,_0x29adf0))||_0x403115);}return _0x2df0e9>0x3&&_0x403115&&Object[_0x26f9f0(0x133)](_0xed928,_0x29adf0,_0x403115),_0x403115;}let _0x247817=class extends _0x16580c[_0x4f62ae(0x11d)]{constructor(_0x232883){const _0x12552c=_0x4f62ae;super(),this[_0x12552c(0x132)]=_0x232883;}[_0x4f62ae(0x11c)](_0x486782){const _0x4caf14=_0x4f62ae;var _0x5701a6;let _0x4a36bd=((_0x5701a6=this[_0x4caf14(0x132)]['getConfig'](_0x51745d[_0x4caf14(0x10f)]))==null?void 0x0:_0x5701a6[_0x4caf14(0x126)])||{};try{let _0x4f9069=new _0x2b9137[(_0x4caf14(0x113))](_0x486782,{'headers':{..._0x4a36bd}}),_0x9ef903=new _0x16580c['DisposableCollection']();return{'URL':_0x486782,'close':(_0x28bbf3,_0x4e3b42)=>{const _0x5e64bb=_0x4caf14;_0x4f9069[_0x5e64bb(0x131)](_0x28bbf3,_0x4e3b42),_0x9ef903[_0x5e64bb(0x123)]();},'send':_0x33a811=>{const _0x2988b7=_0x4caf14;_0x4f9069[_0x2988b7(0x144)](_0x33a811);},'open$':new _0x5f1bca[(_0x4caf14(0x12b))](_0x5dd7d1=>{const _0x37d0fc=_0x4caf14;let _0x276b86=_0x5ee3cf=>_0x5dd7d1[_0x37d0fc(0x14b)](_0x5ee3cf);_0x4f9069[_0x37d0fc(0x108)](_0x37d0fc(0x121),_0x276b86),_0x9ef903[_0x37d0fc(0x147)]((0x0,_0x16580c[_0x37d0fc(0x11b)])(()=>_0x4f9069[_0x37d0fc(0x124)](_0x37d0fc(0x121),_0x276b86)));})[_0x4caf14(0x122)]((0x0,_0x5f1bca['share'])()),'close$':new _0x5f1bca[(_0x4caf14(0x12b))](_0x169c5f=>{const _0x16afba=_0x4caf14;let _0x5b2a47=_0x121adc=>_0x169c5f[_0x16afba(0x14b)](_0x121adc);_0x4f9069[_0x16afba(0x108)](_0x16afba(0x131),_0x5b2a47),_0x9ef903[_0x16afba(0x147)]((0x0,_0x16580c[_0x16afba(0x11b)])(()=>_0x4f9069[_0x16afba(0x124)]('close',_0x5b2a47)));})[_0x4caf14(0x122)]((0x0,_0x5f1bca[_0x4caf14(0x115)])()),'error$':new _0x5f1bca[(_0x4caf14(0x12b))](_0x36f903=>{const _0x518f0b=_0x4caf14;let _0x3103ae=_0x57fe7a=>_0x36f903[_0x518f0b(0x14b)](_0x57fe7a);_0x4f9069[_0x518f0b(0x108)](_0x518f0b(0xff),_0x3103ae),_0x9ef903['add']((0x0,_0x16580c[_0x518f0b(0x11b)])(()=>_0x4f9069[_0x518f0b(0x124)](_0x518f0b(0xff),_0x3103ae)));})[_0x4caf14(0x122)]((0x0,_0x5f1bca[_0x4caf14(0x115)])()),'message$':new _0x5f1bca[(_0x4caf14(0x12b))](_0x1bb1bc=>{const _0xb41c45=_0x4caf14;let _0x5eb1ad=_0x880855=>_0x1bb1bc[_0xb41c45(0x14b)](_0x880855);_0x4f9069[_0xb41c45(0x108)](_0xb41c45(0x130),_0x5eb1ad),_0x9ef903[_0xb41c45(0x147)]((0x0,_0x16580c['toDisposable'])(()=>_0x4f9069['removeEventListener'](_0xb41c45(0x130),_0x5eb1ad)));})[_0x4caf14(0x122)]((0x0,_0x5f1bca[_0x4caf14(0x115)])())};}catch(_0x208625){return console[_0x4caf14(0xff)](_0x208625),null;}}};_0x247817=_0x32e966([_0x3c2aaf(0x0,_0x16580c[_0x4f62ae(0x148)])],_0x247817);function _0x49f6ee(_0x1be31a){'@babel/helpers - typeof';const _0x437b6a=_0x4f62ae;return _0x49f6ee=typeof Symbol==_0x437b6a(0x10a)&&typeof Symbol[_0x437b6a(0x101)]==_0x437b6a(0x14c)?function(_0x3f9f77){return typeof _0x3f9f77;}:function(_0x181968){const _0x1178f9=_0x437b6a;return _0x181968&&typeof Symbol==_0x1178f9(0x10a)&&_0x181968[_0x1178f9(0x107)]===Symbol&&_0x181968!==Symbol['prototype']?_0x1178f9(0x14c):typeof _0x181968;},_0x49f6ee(_0x1be31a);}function _0x2369f5(_0x2de631,_0x43c60a){const _0x377721=_0x4f62ae;if(_0x49f6ee(_0x2de631)!='object'||!_0x2de631)return _0x2de631;var _0x1eb7d6=_0x2de631[Symbol[_0x377721(0x105)]];if(_0x1eb7d6!==void 0x0){var _0x25bb33=_0x1eb7d6[_0x377721(0x12a)](_0x2de631,_0x43c60a||'default');if(_0x49f6ee(_0x25bb33)!='object')return _0x25bb33;throw TypeError(_0x377721(0x134));}return(_0x43c60a===_0x377721(0x145)?String:Number)(_0x2de631);}function _0x197f4d(_0x41ec45){const _0x4d5f38=_0x4f62ae;var _0x32336a=_0x2369f5(_0x41ec45,'string');return _0x49f6ee(_0x32336a)==_0x4d5f38(0x14c)?_0x32336a:_0x32336a+'';}function _0x36dde4(_0x3cf428,_0x177876,_0x2b94c2){const _0x24330e=_0x4f62ae;return(_0x177876=_0x197f4d(_0x177876))in _0x3cf428?Object[_0x24330e(0x133)](_0x3cf428,_0x177876,{'value':_0x2b94c2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3cf428[_0x177876]=_0x2b94c2,_0x3cf428;}let _0x21afca=class extends _0x16580c[_0x4f62ae(0x10b)]{constructor(_0x4d0dc4=_0x42b01b,_0x4f0dfc,_0x34440f){const _0x1db1db=_0x4f62ae;super(),this[_0x1db1db(0x132)]=_0x4f0dfc,this[_0x1db1db(0x109)]=_0x34440f,this[_0x1db1db(0x132)]['setConfig'](_0x5545bd,_0x4d0dc4);}[_0x4f62ae(0x139)](){const _0xc04d00=_0x4f62ae;this[_0xc04d00(0x10c)]();}['_registerDependencies'](){const _0x36d869=_0x4f62ae;(0x0,_0x16580c['registerDependencies'])(this[_0x36d869(0x109)],[[_0x3fd025[_0x36d869(0x135)],{'useClass':_0x247817}]]);}};_0x36dde4(_0x21afca,_0x4f62ae(0x129),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x36dde4(_0x21afca,_0x4f62ae(0x14a),_0x276b4d),_0x36dde4(_0x21afca,_0x4f62ae(0x12c),_0x1b34cd),_0x21afca=_0x32e966([(0x0,_0x16580c[_0x4f62ae(0x11a)])(_0x51745d[_0x4f62ae(0x140)]),_0x3c2aaf(0x1,_0x16580c['IConfigService']),_0x3c2aaf(0x2,(0x0,_0x16580c[_0x4f62ae(0x146)])(_0x16580c[_0x4f62ae(0x10d)]))],_0x21afca);let _0x170003=class extends _0x51745d[_0x4f62ae(0xfd)]{constructor(_0x3f5f6d,_0x1dda39,_0x2c845d,_0x363468,_0x4c992e){const _0x3cf7f1=_0x4f62ae;super(_0x3f5f6d,_0x1dda39,_0x2c845d,_0x363468,_0x4c992e);let _0x19e8f5=this['_configService'][_0x3cf7f1(0x112)](_0x51745d[_0x3cf7f1(0x10f)]);this[_0x3cf7f1(0x137)][_0x3cf7f1(0x12f)]({'interceptor':(_0x4430da,_0x2eb7c9)=>{const _0x27abf9=_0x3cf7f1;let _0x3b0ca6=_0x4430da[_0x27abf9(0x10e)];if(_0x19e8f5!=null&&_0x19e8f5[_0x27abf9(0x126)]){for(let _0x545a94 in _0x19e8f5[_0x27abf9(0x126)])_0x3b0ca6[_0x27abf9(0x13c)](_0x545a94,_0x19e8f5['customHeaders'][_0x545a94]);}return _0x2eb7c9(_0x4430da);}});}async['createSocket'](_0x3f8c5d){const _0x4cdb3e=_0x4f62ae;return this[_0x4cdb3e(0xfb)](_0x3f8c5d);}};_0x170003=_0x32e966([_0x3c2aaf(0x0,(0x0,_0x16580c[_0x4f62ae(0x146)])(_0x16580c[_0x4f62ae(0x10d)])),_0x3c2aaf(0x1,(0x0,_0x16580c[_0x4f62ae(0x146)])(_0x3fd025[_0x4f62ae(0x11f)])),_0x3c2aaf(0x2,_0x16580c['IConfigService']),_0x3c2aaf(0x3,_0x16580c[_0x4f62ae(0x11e)]),_0x3c2aaf(0x4,_0x405472[_0x4f62ae(0x141)])],_0x170003),_0x132b7b[_0x4f62ae(0xfa)]=_0x5545bd,Object[_0x4f62ae(0x133)](_0x132b7b,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x170003;}}),Object[_0x4f62ae(0x133)](_0x132b7b,_0x4f62ae(0x102),{'enumerable':!0x0,'get':function(){return _0x21afca;}});}));function _0x1030(_0x53f4b4,_0x2f5238){_0x53f4b4=_0x53f4b4-0xf9;const _0x5c4add=_0x5c4a();let _0x10304f=_0x5c4add[_0x53f4b4];return _0x10304f;}function _0x5c4a(){const _0x27d3c1=['UniverProCollaborationClient','65082upTyYy','getConfig','WebSocket','rxjs','share','object','251244PINptM','length','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','DependentOn','toDisposable','createSocket','Disposable','ILogService','HTTPService','@univerjs/core','open','pipe','dispose','removeEventListener','UniverProCollaboration','customHeaders','getOwnPropertyDescriptor','101330GhrHRj','pluginName','call','Observable','version','10493241MffPop','148379ggYcXC','registerHTTPInterceptor','message','close','_configService','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ISocketService','10mvwWdk','_httpService','decorate','onStarting','4424688AoaSFB','amd','set','@univerjs-pro/collaboration','toStringTag','60jxMnMf','UniverCollaborationClientPlugin','ISnapshotServerService','UniverNetwork','38cgGLhg','send','string','Inject','add','IConfigService','collaboration-client-node.config','packageName','next','symbol','@univerjs-pro/collaboration-client','COLLABORATION_CLIENT_NODE_CONFIG_KEY','_doCreateSocket','Module','CollaborationSocketService','389711Ndkuxg','error','exports','iterator','UniverCollaborationClientNodePlugin','248NypHLL','@univerjs-pro/collaboration-client-node','toPrimitive','UniverCore','constructor','addEventListener','_injector','function','Plugin','_registerDependencies','Injector','headers','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'];_0x5c4a=function(){return _0x27d3c1;};return _0x5c4a();}
|
|
1
|
+
function _0x5712(_0x52166b,_0x9df7f8){_0x52166b=_0x52166b-0x12d;const _0x3cf876=_0x3cf8();let _0x571262=_0x3cf876[_0x52166b];return _0x571262;}function _0x3cf8(){const _0x184778=['default','Plugin','9839730uiKnYb','@univerjs-pro/collaboration','794135KfyWTd','getOwnPropertyDescriptor','_httpService','removeEventListener','Inject','length','iterator','toDisposable','WebSocket','createSocket','open','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Injector','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onStarting','send','getConfig','symbol','customHeaders','7gnKdWc','67878qDPXYa','36YOoNva','call','HTTPService','_configService','add','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','Module','@univerjs-pro/collaboration-client','message','defineProperty','close','CollaborationSocketService','setConfig','UniverCollaborationClientPlugin','2318222BGlefU','object','collaboration-client-node.config','error','next','Disposable','_registerDependencies','rxjs','DependentOn','packageName','3GYZmMm','constructor','pluginName','string','_injector','2352414fNrQNE','share','registerHTTPInterceptor','set','39235368mCpyli','UniverProCollaborationClient','pipe','addEventListener','toStringTag','Observable','decorate','@univerjs/network','exports','@univerjs/core','11pYALPe','amd','9mIurqI','UniverCollaborationClientNodePlugin','IConfigService','DisposableCollection','ISocketService','UniverProCollaboration','NodeCollaborationSocketService','version','UniverProCollaborationClientNode','function','ISnapshotServerService','UniverCore','12686096qZBlnZ'];_0x3cf8=function(){return _0x184778;};return _0x3cf8();}(function(_0x55973b,_0x4a8e0e){const _0x521b90=_0x5712,_0x53fb71=_0x55973b();while(!![]){try{const _0xe943c4=-parseInt(_0x521b90(0x152))/0x1+parseInt(_0x521b90(0x161))/0x2*(-parseInt(_0x521b90(0x16b))/0x3)+-parseInt(_0x521b90(0x153))/0x4*(parseInt(_0x521b90(0x13e))/0x5)+parseInt(_0x521b90(0x170))/0x6*(-parseInt(_0x521b90(0x151))/0x7)+parseInt(_0x521b90(0x139))/0x8*(parseInt(_0x521b90(0x12d))/0x9)+parseInt(_0x521b90(0x13c))/0xa*(-parseInt(_0x521b90(0x17e))/0xb)+parseInt(_0x521b90(0x174))/0xc;if(_0xe943c4===_0x4a8e0e)break;else _0x53fb71['push'](_0x53fb71['shift']());}catch(_0x26c246){_0x53fb71['push'](_0x53fb71['shift']());}}}(_0x3cf8,0xc8e76),function(_0x4583fd,_0x1af782){const _0x13edab=_0x5712;typeof exports==_0x13edab(0x162)&&typeof module<'u'?_0x1af782(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x13edab(0x136)&&define[_0x13edab(0x17f)]?define([_0x13edab(0x17c),_0x13edab(0x15a),_0x13edab(0x17d),_0x13edab(0x17b),_0x13edab(0x168),_0x13edab(0x13d)],_0x1af782):(_0x4583fd=typeof globalThis<'u'?globalThis:_0x4583fd||self,_0x1af782(_0x4583fd[_0x13edab(0x135)]={},_0x4583fd[_0x13edab(0x175)],_0x4583fd[_0x13edab(0x138)],_0x4583fd['UniverNetwork'],_0x4583fd[_0x13edab(0x168)],_0x4583fd[_0x13edab(0x132)]));}(this,function(_0x39ad5a,_0xd82abd,_0x192ab7,_0x7384c0,_0x1a6143,_0x3c6862){const _0xe6fd7d=_0x5712;Object[_0xe6fd7d(0x15c)](_0x39ad5a,Symbol[_0xe6fd7d(0x178)],{'value':_0xe6fd7d(0x159)});var _0x5e60dc=(_0x3c18c8,_0x1466c3)=>()=>(_0x1466c3||(_0x3c18c8((_0x1466c3={'exports':{}})['exports'],_0x1466c3),_0x3c18c8=null),_0x1466c3['exports']);let _0x2fe141=_0xe6fd7d(0x163);Symbol(_0x2fe141);let _0x568a84={};var _0x41c083='@univerjs-pro/collaboration-client-node',_0x1426ec='0.23.0',_0x2fee4a=_0x5e60dc((_0x30408c,_0xc81ac7)=>{const _0xb21556=_0xe6fd7d;_0xc81ac7[_0xb21556(0x17c)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x493570(_0x521357,_0xfc0134){return function(_0x1affb5,_0x23b944){_0xfc0134(_0x1affb5,_0x23b944,_0x521357);};}function _0x239ea5(_0x4dfdf8,_0x313ab0,_0x5afe52,_0x327f3a){const _0x40f5de=_0xe6fd7d;var _0x2ef42d=arguments[_0x40f5de(0x143)],_0x18b914=_0x2ef42d<0x3?_0x313ab0:_0x327f3a===null?_0x327f3a=Object[_0x40f5de(0x13f)](_0x313ab0,_0x5afe52):_0x327f3a,_0x3ca1a0;if(typeof Reflect=='object'&&typeof Reflect[_0x40f5de(0x17a)]==_0x40f5de(0x136))_0x18b914=Reflect['decorate'](_0x4dfdf8,_0x313ab0,_0x5afe52,_0x327f3a);else{for(var _0x3f2fab=_0x4dfdf8[_0x40f5de(0x143)]-0x1;_0x3f2fab>=0x0;_0x3f2fab--)(_0x3ca1a0=_0x4dfdf8[_0x3f2fab])&&(_0x18b914=(_0x2ef42d<0x3?_0x3ca1a0(_0x18b914):_0x2ef42d>0x3?_0x3ca1a0(_0x313ab0,_0x5afe52,_0x18b914):_0x3ca1a0(_0x313ab0,_0x5afe52))||_0x18b914);}return _0x2ef42d>0x3&&_0x18b914&&Object[_0x40f5de(0x15c)](_0x313ab0,_0x5afe52,_0x18b914),_0x18b914;}let _0x174db6=class extends _0x192ab7[_0xe6fd7d(0x166)]{constructor(_0x4ca89f){const _0x25af82=_0xe6fd7d;super(),this[_0x25af82(0x156)]=_0x4ca89f;}[_0xe6fd7d(0x147)](_0x2996a2){const _0x4dc0f0=_0xe6fd7d;var _0x5152c8;let _0x214b55=((_0x5152c8=this[_0x4dc0f0(0x156)]['getConfig'](_0xd82abd['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5152c8[_0x4dc0f0(0x150)])||{};try{let _0x5c7204=new _0x2fee4a[(_0x4dc0f0(0x146))](_0x2996a2,{'headers':{..._0x214b55}}),_0xe0a3fd=new _0x192ab7[(_0x4dc0f0(0x130))]();return{'URL':_0x2996a2,'close':(_0x465c36,_0x5ad54b)=>{_0x5c7204['close'](_0x465c36,_0x5ad54b),_0xe0a3fd['dispose']();},'send':_0x31aa57=>{const _0x46a8af=_0x4dc0f0;_0x5c7204[_0x46a8af(0x14d)](_0x31aa57);},'open$':new _0x1a6143['Observable'](_0x257027=>{const _0x4f8d8c=_0x4dc0f0;let _0x5a66d1=_0x153517=>_0x257027['next'](_0x153517);_0x5c7204[_0x4f8d8c(0x177)](_0x4f8d8c(0x148),_0x5a66d1),_0xe0a3fd[_0x4f8d8c(0x157)]((0x0,_0x192ab7[_0x4f8d8c(0x145)])(()=>_0x5c7204['removeEventListener'](_0x4f8d8c(0x148),_0x5a66d1)));})['pipe']((0x0,_0x1a6143[_0x4dc0f0(0x171)])()),'close$':new _0x1a6143[(_0x4dc0f0(0x179))](_0x48b6ee=>{const _0x55bd72=_0x4dc0f0;let _0x7edcbc=_0x25b037=>_0x48b6ee['next'](_0x25b037);_0x5c7204[_0x55bd72(0x177)](_0x55bd72(0x15d),_0x7edcbc),_0xe0a3fd[_0x55bd72(0x157)]((0x0,_0x192ab7['toDisposable'])(()=>_0x5c7204[_0x55bd72(0x141)](_0x55bd72(0x15d),_0x7edcbc)));})[_0x4dc0f0(0x176)]((0x0,_0x1a6143[_0x4dc0f0(0x171)])()),'error$':new _0x1a6143[(_0x4dc0f0(0x179))](_0x5b42d7=>{const _0x1b1d6b=_0x4dc0f0;let _0x3f7a4f=_0xdb1209=>_0x5b42d7[_0x1b1d6b(0x165)](_0xdb1209);_0x5c7204['addEventListener']('error',_0x3f7a4f),_0xe0a3fd[_0x1b1d6b(0x157)]((0x0,_0x192ab7[_0x1b1d6b(0x145)])(()=>_0x5c7204['removeEventListener'](_0x1b1d6b(0x164),_0x3f7a4f)));})['pipe']((0x0,_0x1a6143[_0x4dc0f0(0x171)])()),'message$':new _0x1a6143[(_0x4dc0f0(0x179))](_0x3d0e77=>{const _0x3ee731=_0x4dc0f0;let _0x9a20d=_0x3a85a7=>_0x3d0e77[_0x3ee731(0x165)](_0x3a85a7);_0x5c7204[_0x3ee731(0x177)](_0x3ee731(0x15b),_0x9a20d),_0xe0a3fd['add']((0x0,_0x192ab7[_0x3ee731(0x145)])(()=>_0x5c7204[_0x3ee731(0x141)](_0x3ee731(0x15b),_0x9a20d)));})[_0x4dc0f0(0x176)]((0x0,_0x1a6143['share'])())};}catch(_0x46b420){return console[_0x4dc0f0(0x164)](_0x46b420),null;}}};_0x174db6=_0x239ea5([_0x493570(0x0,_0x192ab7[_0xe6fd7d(0x12f)])],_0x174db6);function _0x301859(_0x1e3f8b){'@babel/helpers - typeof';const _0xef63cc=_0xe6fd7d;return _0x301859=typeof Symbol==_0xef63cc(0x136)&&typeof Symbol[_0xef63cc(0x144)]=='symbol'?function(_0x2d0e21){return typeof _0x2d0e21;}:function(_0x1cd4a8){const _0x48d948=_0xef63cc;return _0x1cd4a8&&typeof Symbol==_0x48d948(0x136)&&_0x1cd4a8[_0x48d948(0x16c)]===Symbol&&_0x1cd4a8!==Symbol['prototype']?_0x48d948(0x14f):typeof _0x1cd4a8;},_0x301859(_0x1e3f8b);}function _0xf2d463(_0x53b44e,_0x970aac){const _0x54079d=_0xe6fd7d;if(_0x301859(_0x53b44e)!=_0x54079d(0x162)||!_0x53b44e)return _0x53b44e;var _0x198fe1=_0x53b44e[Symbol['toPrimitive']];if(_0x198fe1!==void 0x0){var _0x29f1fd=_0x198fe1[_0x54079d(0x154)](_0x53b44e,_0x970aac||_0x54079d(0x13a));if(_0x301859(_0x29f1fd)!=_0x54079d(0x162))return _0x29f1fd;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x970aac===_0x54079d(0x16e)?String:Number)(_0x53b44e);}function _0x3e8a70(_0x159564){const _0x5e4345=_0xe6fd7d;var _0x2284f4=_0xf2d463(_0x159564,'string');return _0x301859(_0x2284f4)==_0x5e4345(0x14f)?_0x2284f4:_0x2284f4+'';}function _0x26a631(_0x315460,_0x4becc4,_0x83c006){const _0x22cb70=_0xe6fd7d;return(_0x4becc4=_0x3e8a70(_0x4becc4))in _0x315460?Object[_0x22cb70(0x15c)](_0x315460,_0x4becc4,{'value':_0x83c006,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x315460[_0x4becc4]=_0x83c006,_0x315460;}let _0x3a65ec=class extends _0x192ab7[_0xe6fd7d(0x13b)]{constructor(_0x2bdb75=_0x568a84,_0x1f1a75,_0x114fc8){const _0x55ea47=_0xe6fd7d;super(),this['_configService']=_0x1f1a75,this[_0x55ea47(0x16f)]=_0x114fc8,this[_0x55ea47(0x156)][_0x55ea47(0x15f)](_0x2fe141,_0x2bdb75);}[_0xe6fd7d(0x14c)](){const _0x2c2593=_0xe6fd7d;this[_0x2c2593(0x167)]();}[_0xe6fd7d(0x167)](){const _0x55bc31=_0xe6fd7d;(0x0,_0x192ab7['registerDependencies'])(this['_injector'],[[_0x7384c0[_0x55bc31(0x131)],{'useClass':_0x174db6}]]);}};_0x26a631(_0x3a65ec,_0xe6fd7d(0x16d),_0xe6fd7d(0x158)),_0x26a631(_0x3a65ec,_0xe6fd7d(0x16a),_0x41c083),_0x26a631(_0x3a65ec,_0xe6fd7d(0x134),_0x1426ec),_0x3a65ec=_0x239ea5([(0x0,_0x192ab7[_0xe6fd7d(0x169)])(_0xd82abd[_0xe6fd7d(0x160)]),_0x493570(0x1,_0x192ab7[_0xe6fd7d(0x12f)]),_0x493570(0x2,(0x0,_0x192ab7[_0xe6fd7d(0x142)])(_0x192ab7[_0xe6fd7d(0x14a)]))],_0x3a65ec);let _0x4a7ed6=class extends _0xd82abd[_0xe6fd7d(0x15e)]{constructor(_0x21a72b,_0x17f9a8,_0x52f31b,_0x5bede8,_0x56000b){const _0x90e0f3=_0xe6fd7d;super(_0x21a72b,_0x17f9a8,_0x52f31b,_0x5bede8,_0x56000b);let _0xa3855c=this[_0x90e0f3(0x156)][_0x90e0f3(0x14e)](_0xd82abd[_0x90e0f3(0x14b)]);this[_0x90e0f3(0x140)][_0x90e0f3(0x172)]({'interceptor':(_0x1afec5,_0x2bd7bf)=>{const _0x37d8dc=_0x90e0f3;let _0x229370=_0x1afec5['headers'];if(_0xa3855c!=null&&_0xa3855c[_0x37d8dc(0x150)]){for(let _0x3f3d1b in _0xa3855c[_0x37d8dc(0x150)])_0x229370[_0x37d8dc(0x173)](_0x3f3d1b,_0xa3855c['customHeaders'][_0x3f3d1b]);}return _0x2bd7bf(_0x1afec5);}});}async[_0xe6fd7d(0x147)](_0x1966c4){return this['_doCreateSocket'](_0x1966c4);}};_0x4a7ed6=_0x239ea5([_0x493570(0x0,(0x0,_0x192ab7[_0xe6fd7d(0x142)])(_0x192ab7[_0xe6fd7d(0x14a)])),_0x493570(0x1,(0x0,_0x192ab7[_0xe6fd7d(0x142)])(_0x7384c0[_0xe6fd7d(0x155)])),_0x493570(0x2,_0x192ab7[_0xe6fd7d(0x12f)]),_0x493570(0x3,_0x192ab7['ILogService']),_0x493570(0x4,_0x3c6862[_0xe6fd7d(0x137)])],_0x4a7ed6),_0x39ad5a[_0xe6fd7d(0x149)]=_0x2fe141,Object[_0xe6fd7d(0x15c)](_0x39ad5a,_0xe6fd7d(0x133),{'enumerable':!0x0,'get':function(){return _0x4a7ed6;}}),Object[_0xe6fd7d(0x15c)](_0x39ad5a,_0xe6fd7d(0x12e),{'enumerable':!0x0,'get':function(){return _0x3a65ec;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Node.js collaboration client plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"ws": "8.20.0",
|
|
55
|
-
"@univerjs-pro/collaboration": "0.
|
|
56
|
-
"@univerjs-pro/collaboration-client": "0.
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
55
|
+
"@univerjs-pro/collaboration": "0.23.0",
|
|
56
|
+
"@univerjs-pro/collaboration-client": "0.23.0",
|
|
57
|
+
"@univerjs/network": "0.23.0",
|
|
58
|
+
"@univerjs/core": "0.23.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/ws": "8.18.1",
|
|
62
62
|
"rxjs": "7.8.2",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
64
|
"vitest": "^4.1.4",
|
|
65
|
-
"@univerjs-infra/shared": "0.
|
|
65
|
+
"@univerjs-infra/shared": "0.23.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"test": "vitest run",
|