@univerjs-pro/collaboration-client-node 0.25.0 → 0.25.2
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 _0x7ceb2=_0x551d;(function(_0x54cbe1,_0x3d2fb3){const _0x2bc8c1=_0x551d,_0x52cfec=_0x54cbe1();while(!![]){try{const _0xc28007=parseInt(_0x2bc8c1(0x205))/0x1*(parseInt(_0x2bc8c1(0x1e7))/0x2)+parseInt(_0x2bc8c1(0x1ff))/0x3+-parseInt(_0x2bc8c1(0x20c))/0x4+parseInt(_0x2bc8c1(0x1d1))/0x5*(-parseInt(_0x2bc8c1(0x1ee))/0x6)+parseInt(_0x2bc8c1(0x1f1))/0x7*(-parseInt(_0x2bc8c1(0x20a))/0x8)+-parseInt(_0x2bc8c1(0x1f4))/0x9+parseInt(_0x2bc8c1(0x1e8))/0xa;if(_0xc28007===_0x3d2fb3)break;else _0x52cfec['push'](_0x52cfec['shift']());}catch(_0x16cd57){_0x52cfec['push'](_0x52cfec['shift']());}}}(_0x1cf5,0x9a5e6),Object['defineProperty'](exports,Symbol[_0x7ceb2(0x1d7)],{'value':_0x7ceb2(0x1f9)}));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=_0x7ceb2(0x1eb),s={};var c=_0x7ceb2(0x1de),l='0.25.2';function u(_0x1ed438,_0x53b059){return function(_0x41e07c,_0x1b6220){_0x53b059(_0x41e07c,_0x1b6220,_0x1ed438);};}function _0x551d(_0xa9d432,_0x227837){_0xa9d432=_0xa9d432-0x1ce;const _0x1cf5b9=_0x1cf5();let _0x551d92=_0x1cf5b9[_0xa9d432];return _0x551d92;}function d(_0x416dbf,_0x1409ad,_0x12f0ff,_0x104fc3){const _0x5949f9=_0x7ceb2;var _0x1d9398=arguments[_0x5949f9(0x1f6)],_0x46beb7=_0x1d9398<0x3?_0x1409ad:_0x104fc3===null?_0x104fc3=Object[_0x5949f9(0x216)](_0x1409ad,_0x12f0ff):_0x104fc3,_0x128a7f;if(typeof Reflect==_0x5949f9(0x1d2)&&typeof Reflect[_0x5949f9(0x206)]==_0x5949f9(0x1fe))_0x46beb7=Reflect[_0x5949f9(0x206)](_0x416dbf,_0x1409ad,_0x12f0ff,_0x104fc3);else{for(var _0x77f723=_0x416dbf[_0x5949f9(0x1f6)]-0x1;_0x77f723>=0x0;_0x77f723--)(_0x128a7f=_0x416dbf[_0x77f723])&&(_0x46beb7=(_0x1d9398<0x3?_0x128a7f(_0x46beb7):_0x1d9398>0x3?_0x128a7f(_0x1409ad,_0x12f0ff,_0x46beb7):_0x128a7f(_0x1409ad,_0x12f0ff))||_0x46beb7);}return _0x1d9398>0x3&&_0x46beb7&&Object[_0x5949f9(0x1e6)](_0x1409ad,_0x12f0ff,_0x46beb7),_0x46beb7;}let f=class extends t[_0x7ceb2(0x1e9)]{constructor(_0x2f5c83){const _0x2d8c6b=_0x7ceb2;super(),this[_0x2d8c6b(0x1fb)]=_0x2f5c83;}[_0x7ceb2(0x213)](_0x1372df){const _0xf667d5=_0x7ceb2;var _0x3e45bd;let _0x5eeff9=((_0x3e45bd=this[_0xf667d5(0x1fb)][_0xf667d5(0x211)](e[_0xf667d5(0x200)]))==null?void 0x0:_0x3e45bd[_0xf667d5(0x210)])||{};try{let _0x210009=new i[(_0xf667d5(0x1fa))](_0x1372df,{'headers':{..._0x5eeff9}}),_0x133d13=new t['DisposableCollection']();return{'URL':_0x1372df,'close':(_0x5c03e6,_0x4bb0a9)=>{const _0x4ff582=_0xf667d5;_0x210009[_0x4ff582(0x1da)](_0x5c03e6,_0x4bb0a9),_0x133d13['dispose']();},'send':_0x473843=>{const _0x4ab54e=_0xf667d5;_0x210009[_0x4ab54e(0x1ed)](_0x473843);},'open$':new r[(_0xf667d5(0x1d4))](_0xc230d=>{const _0x57f476=_0xf667d5;let _0x4f2585=_0x5e3c43=>_0xc230d[_0x57f476(0x1d0)](_0x5e3c43);_0x210009[_0x57f476(0x1e1)]('open',_0x4f2585),_0x133d13[_0x57f476(0x1df)]((0x0,t[_0x57f476(0x202)])(()=>_0x210009[_0x57f476(0x201)](_0x57f476(0x1d5),_0x4f2585)));})['pipe']((0x0,r[_0xf667d5(0x1db)])()),'close$':new r[(_0xf667d5(0x1d4))](_0x1312b8=>{const _0x1bbdbd=_0xf667d5;let _0x1acfc8=_0x51f7c2=>_0x1312b8[_0x1bbdbd(0x1d0)](_0x51f7c2);_0x210009['addEventListener']('close',_0x1acfc8),_0x133d13['add']((0x0,t[_0x1bbdbd(0x202)])(()=>_0x210009[_0x1bbdbd(0x201)](_0x1bbdbd(0x1da),_0x1acfc8)));})[_0xf667d5(0x203)]((0x0,r[_0xf667d5(0x1db)])()),'error$':new r[(_0xf667d5(0x1d4))](_0x281258=>{const _0x9a03c1=_0xf667d5;let _0x1a5d80=_0x17352f=>_0x281258[_0x9a03c1(0x1d0)](_0x17352f);_0x210009[_0x9a03c1(0x1e1)]('error',_0x1a5d80),_0x133d13[_0x9a03c1(0x1df)]((0x0,t['toDisposable'])(()=>_0x210009[_0x9a03c1(0x201)](_0x9a03c1(0x1ce),_0x1a5d80)));})[_0xf667d5(0x203)]((0x0,r[_0xf667d5(0x1db)])()),'message$':new r[(_0xf667d5(0x1d4))](_0xb6055c=>{const _0x242390=_0xf667d5;let _0x1f7a9e=_0x520174=>_0xb6055c['next'](_0x520174);_0x210009[_0x242390(0x1e1)](_0x242390(0x20d),_0x1f7a9e),_0x133d13['add']((0x0,t[_0x242390(0x202)])(()=>_0x210009['removeEventListener'](_0x242390(0x20d),_0x1f7a9e)));})[_0xf667d5(0x203)]((0x0,r['share'])())};}catch(_0x29fb61){return console[_0xf667d5(0x1ce)](_0x29fb61),null;}}};f=d([u(0x0,t[_0x7ceb2(0x215)])],f);function _0x1cf5(){const _0x10363e=['_httpService','Observable','open','HTTPService','toStringTag','set','COLLABORATION_CLIENT_NODE_CONFIG_KEY','close','share','ISocketService','registerDependencies','@univerjs-pro/collaboration-client-node','add','onStarting','addEventListener','symbol','setConfig','_injector','DependentOn','defineProperty','30620xAxPzq','11746270SOLDFB','Disposable','default','collaboration-client-node.config','headers','send','5655912zrWujl','Injector','packageName','1241107QkxQyP','ISnapshotServerService','version','7218189pJalJQ','_registerDependencies','length','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','registerHTTPInterceptor','Module','WebSocket','_configService','prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','2575110VMyHvV','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','toDisposable','pipe','iterator','69PAvepa','decorate','constructor','Inject','_doCreateSocket','8lzRTwS','string','2140476jzzYHZ','message','Plugin','CollaborationSocketService','customHeaders','getConfig','UniverCollaborationClientNodePlugin','createSocket','pluginName','IConfigService','getOwnPropertyDescriptor','error','call','next','5SbKyLD','object'];_0x1cf5=function(){return _0x10363e;};return _0x1cf5();}function p(_0x32d7f4){'@babel/helpers - typeof';const _0x4c57f0=_0x7ceb2;return p=typeof Symbol=='function'&&typeof Symbol[_0x4c57f0(0x204)]==_0x4c57f0(0x1e2)?function(_0x51d53b){return typeof _0x51d53b;}:function(_0x464fe5){const _0x605b2b=_0x4c57f0;return _0x464fe5&&typeof Symbol==_0x605b2b(0x1fe)&&_0x464fe5[_0x605b2b(0x207)]===Symbol&&_0x464fe5!==Symbol[_0x605b2b(0x1fc)]?_0x605b2b(0x1e2):typeof _0x464fe5;},p(_0x32d7f4);}function m(_0x164411,_0x3350ff){const _0x569181=_0x7ceb2;if(p(_0x164411)!=_0x569181(0x1d2)||!_0x164411)return _0x164411;var _0x11ca8e=_0x164411[Symbol['toPrimitive']];if(_0x11ca8e!==void 0x0){var _0x58bd25=_0x11ca8e[_0x569181(0x1cf)](_0x164411,_0x3350ff||_0x569181(0x1ea));if(p(_0x58bd25)!=_0x569181(0x1d2))return _0x58bd25;throw TypeError(_0x569181(0x1fd));}return(_0x3350ff===_0x569181(0x20b)?String:Number)(_0x164411);}function h(_0x2d04a8){var _0x488244=m(_0x2d04a8,'string');return p(_0x488244)=='symbol'?_0x488244:_0x488244+'';}function g(_0x2704d6,_0xee140f,_0x49f845){const _0x41f851=_0x7ceb2;return(_0xee140f=h(_0xee140f))in _0x2704d6?Object[_0x41f851(0x1e6)](_0x2704d6,_0xee140f,{'value':_0x49f845,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2704d6[_0xee140f]=_0x49f845,_0x2704d6;}let _=class extends t[_0x7ceb2(0x20e)]{constructor(_0x4a2b94=s,_0x2a7a4,_0x4a2ec1){const _0x5b1e97=_0x7ceb2;super(),this[_0x5b1e97(0x1fb)]=_0x2a7a4,this['_injector']=_0x4a2ec1,this[_0x5b1e97(0x1fb)][_0x5b1e97(0x1e3)](o,_0x4a2b94);}[_0x7ceb2(0x1e0)](){const _0x352f27=_0x7ceb2;this[_0x352f27(0x1f5)]();}[_0x7ceb2(0x1f5)](){const _0x9a70e8=_0x7ceb2;(0x0,t[_0x9a70e8(0x1dd)])(this[_0x9a70e8(0x1e4)],[[n[_0x9a70e8(0x1dc)],{'useClass':f}]]);}};g(_,_0x7ceb2(0x214),_0x7ceb2(0x1f7)),g(_,_0x7ceb2(0x1f0),c),g(_,_0x7ceb2(0x1f3),l),_=d([(0x0,t[_0x7ceb2(0x1e5)])(e['UniverCollaborationClientPlugin']),u(0x1,t[_0x7ceb2(0x215)]),u(0x2,(0x0,t[_0x7ceb2(0x208)])(t[_0x7ceb2(0x1ef)]))],_);let v=class extends e[_0x7ceb2(0x20f)]{constructor(_0x3f5104,_0x3be39c,_0x122b88,_0x5a4c40,_0x2a3d0c){const _0x55053e=_0x7ceb2;super(_0x3f5104,_0x3be39c,_0x122b88,_0x5a4c40,_0x2a3d0c);let _0x381078=this[_0x55053e(0x1fb)][_0x55053e(0x211)](e[_0x55053e(0x200)]);this[_0x55053e(0x1d3)][_0x55053e(0x1f8)]({'interceptor':(_0x1af4e6,_0x5bc345)=>{const _0x27d22f=_0x55053e;let _0x53b56f=_0x1af4e6[_0x27d22f(0x1ec)];if(_0x381078!=null&&_0x381078[_0x27d22f(0x210)]){for(let _0xc89daa in _0x381078['customHeaders'])_0x53b56f[_0x27d22f(0x1d8)](_0xc89daa,_0x381078[_0x27d22f(0x210)][_0xc89daa]);}return _0x5bc345(_0x1af4e6);}});}async[_0x7ceb2(0x213)](_0x1411fe){const _0x2e4414=_0x7ceb2;return this[_0x2e4414(0x209)](_0x1411fe);}};v=d([u(0x0,(0x0,t[_0x7ceb2(0x208)])(t[_0x7ceb2(0x1ef)])),u(0x1,(0x0,t[_0x7ceb2(0x208)])(n[_0x7ceb2(0x1d6)])),u(0x2,t[_0x7ceb2(0x215)]),u(0x3,t['ILogService']),u(0x4,a[_0x7ceb2(0x1f2)])],v),exports[_0x7ceb2(0x1d9)]=o,Object[_0x7ceb2(0x1e6)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x7ceb2(0x1e6)](exports,_0x7ceb2(0x212),{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x57fe4b=_0x2134;(function(_0x168b2d,_0x18aa30){const _0xd965bb=_0x2134,_0x5e3570=_0x168b2d();while(!![]){try{const _0x3b060e=parseInt(_0xd965bb(0x1cc))/0x1+parseInt(_0xd965bb(0x1b6))/0x2+-parseInt(_0xd965bb(0x1c0))/0x3+-parseInt(_0xd965bb(0x1a6))/0x4+parseInt(_0xd965bb(0x1c2))/0x5*(-parseInt(_0xd965bb(0x1a7))/0x6)+-parseInt(_0xd965bb(0x1a9))/0x7+-parseInt(_0xd965bb(0x1ad))/0x8*(-parseInt(_0xd965bb(0x1a4))/0x9);if(_0x3b060e===_0x18aa30)break;else _0x5e3570['push'](_0x5e3570['shift']());}catch(_0xd22440){_0x5e3570['push'](_0x5e3570['shift']());}}}(_0x52e4,0x8db60));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e3e91,CollaborationSocketService as _0x1aa866,UniverCollaborationClientPlugin as _0x1450d7}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x18c3de,Disposable as _0x386d87,DisposableCollection as _0xe9d5e5,IConfigService as _0x2a1401,ILogService as _0x139940,Inject as _0x4701b4,Injector as _0x57a3b3,Plugin as _0x4c3ca1,registerDependencies as _0x226470,toDisposable as _0x1acf27}from'@univerjs/core';import{HTTPService as _0x3c9ce1,ISocketService as _0x17fa88}from'@univerjs/network';import{Observable as _0x6b13f1,share as _0x5c5e2e}from'rxjs';function _0x2134(_0x2d77b4,_0x16cef3){_0x2d77b4=_0x2d77b4-0x19e;const _0x52e4dc=_0x52e4();let _0x2134df=_0x52e4dc[_0x2d77b4];return _0x2134df;}import{WebSocket as _0xe89495}from'ws';import{ISnapshotServerService as _0x29057c}from'@univerjs-pro/collaboration';const y=_0x57fe4b(0x1a0),b={};var x=_0x57fe4b(0x1c8),S=_0x57fe4b(0x1c3);function C(_0x18ff53,_0xfbc772){return function(_0x136535,_0x3da90e){_0xfbc772(_0x136535,_0x3da90e,_0x18ff53);};}function w(_0x469254,_0xf6835a,_0x141c92,_0x3c63f6){const _0x3f70eb=_0x57fe4b;var _0x3434dd=arguments[_0x3f70eb(0x1ba)],_0x41610b=_0x3434dd<0x3?_0xf6835a:_0x3c63f6===null?_0x3c63f6=Object[_0x3f70eb(0x1a5)](_0xf6835a,_0x141c92):_0x3c63f6,_0x3f6da8;if(typeof Reflect=='object'&&typeof Reflect[_0x3f70eb(0x1bc)]==_0x3f70eb(0x1cf))_0x41610b=Reflect[_0x3f70eb(0x1bc)](_0x469254,_0xf6835a,_0x141c92,_0x3c63f6);else{for(var _0x503630=_0x469254[_0x3f70eb(0x1ba)]-0x1;_0x503630>=0x0;_0x503630--)(_0x3f6da8=_0x469254[_0x503630])&&(_0x41610b=(_0x3434dd<0x3?_0x3f6da8(_0x41610b):_0x3434dd>0x3?_0x3f6da8(_0xf6835a,_0x141c92,_0x41610b):_0x3f6da8(_0xf6835a,_0x141c92))||_0x41610b);}return _0x3434dd>0x3&&_0x41610b&&Object[_0x3f70eb(0x1c6)](_0xf6835a,_0x141c92,_0x41610b),_0x41610b;}let T=class extends _0x386d87{constructor(_0x1c7e7e){const _0x29d1db=_0x57fe4b;super(),this[_0x29d1db(0x1b8)]=_0x1c7e7e;}[_0x57fe4b(0x1b3)](_0x239ed9){const _0x3a40b0=_0x57fe4b;var _0x201a47;let _0x514a37=((_0x201a47=this[_0x3a40b0(0x1b8)]['getConfig'](_0x4e3e91))==null?void 0x0:_0x201a47[_0x3a40b0(0x1d2)])||{};try{let _0x593ab3=new _0xe89495(_0x239ed9,{'headers':{..._0x514a37}}),_0x484672=new _0xe9d5e5();return{'URL':_0x239ed9,'close':(_0x1b4c10,_0x126825)=>{const _0x510b8e=_0x3a40b0;_0x593ab3[_0x510b8e(0x1b2)](_0x1b4c10,_0x126825),_0x484672[_0x510b8e(0x1b1)]();},'send':_0x712ae3=>{const _0x415a51=_0x3a40b0;_0x593ab3[_0x415a51(0x1bf)](_0x712ae3);},'open$':new _0x6b13f1(_0x109a96=>{const _0x2e2453=_0x3a40b0;let _0x9477be=_0x3b06fd=>_0x109a96['next'](_0x3b06fd);_0x593ab3[_0x2e2453(0x1a8)](_0x2e2453(0x1af),_0x9477be),_0x484672[_0x2e2453(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x2e2453(0x19e)](_0x2e2453(0x1af),_0x9477be)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'close$':new _0x6b13f1(_0x4674d8=>{const _0x254f79=_0x3a40b0;let _0x834bd2=_0x10e396=>_0x4674d8['next'](_0x10e396);_0x593ab3[_0x254f79(0x1a8)](_0x254f79(0x1b2),_0x834bd2),_0x484672[_0x254f79(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x254f79(0x19e)](_0x254f79(0x1b2),_0x834bd2)));})['pipe'](_0x5c5e2e()),'error$':new _0x6b13f1(_0x41516f=>{const _0x45b64a=_0x3a40b0;let _0x5b747c=_0xa08e57=>_0x41516f['next'](_0xa08e57);_0x593ab3[_0x45b64a(0x1a8)](_0x45b64a(0x1c9),_0x5b747c),_0x484672[_0x45b64a(0x1a3)](_0x1acf27(()=>_0x593ab3['removeEventListener'](_0x45b64a(0x1c9),_0x5b747c)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'message$':new _0x6b13f1(_0x179088=>{const _0x58005f=_0x3a40b0;let _0x120ad6=_0x4d32bc=>_0x179088[_0x58005f(0x1a1)](_0x4d32bc);_0x593ab3[_0x58005f(0x1a8)]('message',_0x120ad6),_0x484672[_0x58005f(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x58005f(0x19e)](_0x58005f(0x1cd),_0x120ad6)));})[_0x3a40b0(0x1c5)](_0x5c5e2e())};}catch(_0x4e31cd){return console[_0x3a40b0(0x1c9)](_0x4e31cd),null;}}};T=w([C(0x0,_0x2a1401)],T);function E(_0xfb3498){'@babel/helpers - typeof';const _0x428a50=_0x57fe4b;return E=typeof Symbol=='function'&&typeof Symbol[_0x428a50(0x19f)]==_0x428a50(0x1b7)?function(_0x30acfe){return typeof _0x30acfe;}:function(_0x4c6f7b){const _0x1e73b9=_0x428a50;return _0x4c6f7b&&typeof Symbol==_0x1e73b9(0x1cf)&&_0x4c6f7b[_0x1e73b9(0x1ab)]===Symbol&&_0x4c6f7b!==Symbol[_0x1e73b9(0x1ac)]?_0x1e73b9(0x1b7):typeof _0x4c6f7b;},E(_0xfb3498);}function D(_0x3c37a0,_0x4632ee){const _0x1dfb2f=_0x57fe4b;if(E(_0x3c37a0)!=_0x1dfb2f(0x1bb)||!_0x3c37a0)return _0x3c37a0;var _0x5d7ab5=_0x3c37a0[Symbol['toPrimitive']];if(_0x5d7ab5!==void 0x0){var _0x5a72cd=_0x5d7ab5['call'](_0x3c37a0,_0x4632ee||_0x1dfb2f(0x1b4));if(E(_0x5a72cd)!='object')return _0x5a72cd;throw TypeError(_0x1dfb2f(0x1cb));}return(_0x4632ee===_0x1dfb2f(0x1d0)?String:Number)(_0x3c37a0);}function O(_0x2ef4e2){const _0x44bedc=_0x57fe4b;var _0x970427=D(_0x2ef4e2,_0x44bedc(0x1d0));return E(_0x970427)==_0x44bedc(0x1b7)?_0x970427:_0x970427+'';}function k(_0x1d4ca3,_0x56567e,_0x3a7273){const _0x2e7e8d=_0x57fe4b;return(_0x56567e=O(_0x56567e))in _0x1d4ca3?Object[_0x2e7e8d(0x1c6)](_0x1d4ca3,_0x56567e,{'value':_0x3a7273,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d4ca3[_0x56567e]=_0x3a7273,_0x1d4ca3;}let A=class extends _0x4c3ca1{constructor(_0x433816=b,_0x3d8765,_0x5641ec){const _0x4300a0=_0x57fe4b;super(),this['_configService']=_0x3d8765,this[_0x4300a0(0x1ae)]=_0x5641ec,this['_configService'][_0x4300a0(0x1bd)](y,_0x433816);}[_0x57fe4b(0x1c7)](){const _0x2f5887=_0x57fe4b;this[_0x2f5887(0x1a2)]();}[_0x57fe4b(0x1a2)](){const _0x1ccad0=_0x57fe4b;_0x226470(this[_0x1ccad0(0x1ae)],[[_0x17fa88,{'useClass':T}]]);}};k(A,_0x57fe4b(0x1c1),_0x57fe4b(0x1be)),k(A,_0x57fe4b(0x1d1),x),k(A,_0x57fe4b(0x1b5),S),A=w([_0x18c3de(_0x1450d7),C(0x1,_0x2a1401),C(0x2,_0x4701b4(_0x57a3b3))],A);let j=class extends _0x1aa866{constructor(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6){const _0x228f35=_0x57fe4b;super(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6);let _0x705bc3=this['_configService'][_0x228f35(0x1ca)](_0x4e3e91);this[_0x228f35(0x1ce)][_0x228f35(0x1aa)]({'interceptor':(_0x1d5a11,_0x52a8c8)=>{const _0x54242f=_0x228f35;let _0x481169=_0x1d5a11[_0x54242f(0x1b0)];if(_0x705bc3!=null&&_0x705bc3[_0x54242f(0x1d2)]){for(let _0x244045 in _0x705bc3[_0x54242f(0x1d2)])_0x481169[_0x54242f(0x1c4)](_0x244045,_0x705bc3[_0x54242f(0x1d2)][_0x244045]);}return _0x52a8c8(_0x1d5a11);}});}async[_0x57fe4b(0x1b3)](_0x9849dd){const _0x1b843b=_0x57fe4b;return this[_0x1b843b(0x1b9)](_0x9849dd);}};function _0x52e4(){const _0x160501=['customHeaders','removeEventListener','iterator','collaboration-client-node.config','next','_registerDependencies','add','27ZhNxlt','getOwnPropertyDescriptor','3548932piIjgH','447978cmeakO','addEventListener','2465127oUdRNS','registerHTTPInterceptor','constructor','prototype','4479240SbhWiZ','_injector','open','headers','dispose','close','createSocket','default','version','1008170MwtcVO','symbol','_configService','_doCreateSocket','length','object','decorate','setConfig','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','2407593kgMbUS','pluginName','5cCvQVU','0.25.2','set','pipe','defineProperty','onStarting','@univerjs-pro/collaboration-client-node','error','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','513236cwcMmi','message','_httpService','function','string','packageName'];_0x52e4=function(){return _0x160501;};return _0x52e4();}j=w([C(0x0,_0x4701b4(_0x57a3b3)),C(0x1,_0x4701b4(_0x3c9ce1)),C(0x2,_0x2a1401),C(0x3,_0x139940),C(0x4,_0x29057c)],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 _0x57fe4b=_0x2134;(function(_0x168b2d,_0x18aa30){const _0xd965bb=_0x2134,_0x5e3570=_0x168b2d();while(!![]){try{const _0x3b060e=parseInt(_0xd965bb(0x1cc))/0x1+parseInt(_0xd965bb(0x1b6))/0x2+-parseInt(_0xd965bb(0x1c0))/0x3+-parseInt(_0xd965bb(0x1a6))/0x4+parseInt(_0xd965bb(0x1c2))/0x5*(-parseInt(_0xd965bb(0x1a7))/0x6)+-parseInt(_0xd965bb(0x1a9))/0x7+-parseInt(_0xd965bb(0x1ad))/0x8*(-parseInt(_0xd965bb(0x1a4))/0x9);if(_0x3b060e===_0x18aa30)break;else _0x5e3570['push'](_0x5e3570['shift']());}catch(_0xd22440){_0x5e3570['push'](_0x5e3570['shift']());}}}(_0x52e4,0x8db60));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e3e91,CollaborationSocketService as _0x1aa866,UniverCollaborationClientPlugin as _0x1450d7}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x18c3de,Disposable as _0x386d87,DisposableCollection as _0xe9d5e5,IConfigService as _0x2a1401,ILogService as _0x139940,Inject as _0x4701b4,Injector as _0x57a3b3,Plugin as _0x4c3ca1,registerDependencies as _0x226470,toDisposable as _0x1acf27}from'@univerjs/core';import{HTTPService as _0x3c9ce1,ISocketService as _0x17fa88}from'@univerjs/network';import{Observable as _0x6b13f1,share as _0x5c5e2e}from'rxjs';function _0x2134(_0x2d77b4,_0x16cef3){_0x2d77b4=_0x2d77b4-0x19e;const _0x52e4dc=_0x52e4();let _0x2134df=_0x52e4dc[_0x2d77b4];return _0x2134df;}import{WebSocket as _0xe89495}from'ws';import{ISnapshotServerService as _0x29057c}from'@univerjs-pro/collaboration';const y=_0x57fe4b(0x1a0),b={};var x=_0x57fe4b(0x1c8),S=_0x57fe4b(0x1c3);function C(_0x18ff53,_0xfbc772){return function(_0x136535,_0x3da90e){_0xfbc772(_0x136535,_0x3da90e,_0x18ff53);};}function w(_0x469254,_0xf6835a,_0x141c92,_0x3c63f6){const _0x3f70eb=_0x57fe4b;var _0x3434dd=arguments[_0x3f70eb(0x1ba)],_0x41610b=_0x3434dd<0x3?_0xf6835a:_0x3c63f6===null?_0x3c63f6=Object[_0x3f70eb(0x1a5)](_0xf6835a,_0x141c92):_0x3c63f6,_0x3f6da8;if(typeof Reflect=='object'&&typeof Reflect[_0x3f70eb(0x1bc)]==_0x3f70eb(0x1cf))_0x41610b=Reflect[_0x3f70eb(0x1bc)](_0x469254,_0xf6835a,_0x141c92,_0x3c63f6);else{for(var _0x503630=_0x469254[_0x3f70eb(0x1ba)]-0x1;_0x503630>=0x0;_0x503630--)(_0x3f6da8=_0x469254[_0x503630])&&(_0x41610b=(_0x3434dd<0x3?_0x3f6da8(_0x41610b):_0x3434dd>0x3?_0x3f6da8(_0xf6835a,_0x141c92,_0x41610b):_0x3f6da8(_0xf6835a,_0x141c92))||_0x41610b);}return _0x3434dd>0x3&&_0x41610b&&Object[_0x3f70eb(0x1c6)](_0xf6835a,_0x141c92,_0x41610b),_0x41610b;}let T=class extends _0x386d87{constructor(_0x1c7e7e){const _0x29d1db=_0x57fe4b;super(),this[_0x29d1db(0x1b8)]=_0x1c7e7e;}[_0x57fe4b(0x1b3)](_0x239ed9){const _0x3a40b0=_0x57fe4b;var _0x201a47;let _0x514a37=((_0x201a47=this[_0x3a40b0(0x1b8)]['getConfig'](_0x4e3e91))==null?void 0x0:_0x201a47[_0x3a40b0(0x1d2)])||{};try{let _0x593ab3=new _0xe89495(_0x239ed9,{'headers':{..._0x514a37}}),_0x484672=new _0xe9d5e5();return{'URL':_0x239ed9,'close':(_0x1b4c10,_0x126825)=>{const _0x510b8e=_0x3a40b0;_0x593ab3[_0x510b8e(0x1b2)](_0x1b4c10,_0x126825),_0x484672[_0x510b8e(0x1b1)]();},'send':_0x712ae3=>{const _0x415a51=_0x3a40b0;_0x593ab3[_0x415a51(0x1bf)](_0x712ae3);},'open$':new _0x6b13f1(_0x109a96=>{const _0x2e2453=_0x3a40b0;let _0x9477be=_0x3b06fd=>_0x109a96['next'](_0x3b06fd);_0x593ab3[_0x2e2453(0x1a8)](_0x2e2453(0x1af),_0x9477be),_0x484672[_0x2e2453(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x2e2453(0x19e)](_0x2e2453(0x1af),_0x9477be)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'close$':new _0x6b13f1(_0x4674d8=>{const _0x254f79=_0x3a40b0;let _0x834bd2=_0x10e396=>_0x4674d8['next'](_0x10e396);_0x593ab3[_0x254f79(0x1a8)](_0x254f79(0x1b2),_0x834bd2),_0x484672[_0x254f79(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x254f79(0x19e)](_0x254f79(0x1b2),_0x834bd2)));})['pipe'](_0x5c5e2e()),'error$':new _0x6b13f1(_0x41516f=>{const _0x45b64a=_0x3a40b0;let _0x5b747c=_0xa08e57=>_0x41516f['next'](_0xa08e57);_0x593ab3[_0x45b64a(0x1a8)](_0x45b64a(0x1c9),_0x5b747c),_0x484672[_0x45b64a(0x1a3)](_0x1acf27(()=>_0x593ab3['removeEventListener'](_0x45b64a(0x1c9),_0x5b747c)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'message$':new _0x6b13f1(_0x179088=>{const _0x58005f=_0x3a40b0;let _0x120ad6=_0x4d32bc=>_0x179088[_0x58005f(0x1a1)](_0x4d32bc);_0x593ab3[_0x58005f(0x1a8)]('message',_0x120ad6),_0x484672[_0x58005f(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x58005f(0x19e)](_0x58005f(0x1cd),_0x120ad6)));})[_0x3a40b0(0x1c5)](_0x5c5e2e())};}catch(_0x4e31cd){return console[_0x3a40b0(0x1c9)](_0x4e31cd),null;}}};T=w([C(0x0,_0x2a1401)],T);function E(_0xfb3498){'@babel/helpers - typeof';const _0x428a50=_0x57fe4b;return E=typeof Symbol=='function'&&typeof Symbol[_0x428a50(0x19f)]==_0x428a50(0x1b7)?function(_0x30acfe){return typeof _0x30acfe;}:function(_0x4c6f7b){const _0x1e73b9=_0x428a50;return _0x4c6f7b&&typeof Symbol==_0x1e73b9(0x1cf)&&_0x4c6f7b[_0x1e73b9(0x1ab)]===Symbol&&_0x4c6f7b!==Symbol[_0x1e73b9(0x1ac)]?_0x1e73b9(0x1b7):typeof _0x4c6f7b;},E(_0xfb3498);}function D(_0x3c37a0,_0x4632ee){const _0x1dfb2f=_0x57fe4b;if(E(_0x3c37a0)!=_0x1dfb2f(0x1bb)||!_0x3c37a0)return _0x3c37a0;var _0x5d7ab5=_0x3c37a0[Symbol['toPrimitive']];if(_0x5d7ab5!==void 0x0){var _0x5a72cd=_0x5d7ab5['call'](_0x3c37a0,_0x4632ee||_0x1dfb2f(0x1b4));if(E(_0x5a72cd)!='object')return _0x5a72cd;throw TypeError(_0x1dfb2f(0x1cb));}return(_0x4632ee===_0x1dfb2f(0x1d0)?String:Number)(_0x3c37a0);}function O(_0x2ef4e2){const _0x44bedc=_0x57fe4b;var _0x970427=D(_0x2ef4e2,_0x44bedc(0x1d0));return E(_0x970427)==_0x44bedc(0x1b7)?_0x970427:_0x970427+'';}function k(_0x1d4ca3,_0x56567e,_0x3a7273){const _0x2e7e8d=_0x57fe4b;return(_0x56567e=O(_0x56567e))in _0x1d4ca3?Object[_0x2e7e8d(0x1c6)](_0x1d4ca3,_0x56567e,{'value':_0x3a7273,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d4ca3[_0x56567e]=_0x3a7273,_0x1d4ca3;}let A=class extends _0x4c3ca1{constructor(_0x433816=b,_0x3d8765,_0x5641ec){const _0x4300a0=_0x57fe4b;super(),this['_configService']=_0x3d8765,this[_0x4300a0(0x1ae)]=_0x5641ec,this['_configService'][_0x4300a0(0x1bd)](y,_0x433816);}[_0x57fe4b(0x1c7)](){const _0x2f5887=_0x57fe4b;this[_0x2f5887(0x1a2)]();}[_0x57fe4b(0x1a2)](){const _0x1ccad0=_0x57fe4b;_0x226470(this[_0x1ccad0(0x1ae)],[[_0x17fa88,{'useClass':T}]]);}};k(A,_0x57fe4b(0x1c1),_0x57fe4b(0x1be)),k(A,_0x57fe4b(0x1d1),x),k(A,_0x57fe4b(0x1b5),S),A=w([_0x18c3de(_0x1450d7),C(0x1,_0x2a1401),C(0x2,_0x4701b4(_0x57a3b3))],A);let j=class extends _0x1aa866{constructor(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6){const _0x228f35=_0x57fe4b;super(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6);let _0x705bc3=this['_configService'][_0x228f35(0x1ca)](_0x4e3e91);this[_0x228f35(0x1ce)][_0x228f35(0x1aa)]({'interceptor':(_0x1d5a11,_0x52a8c8)=>{const _0x54242f=_0x228f35;let _0x481169=_0x1d5a11[_0x54242f(0x1b0)];if(_0x705bc3!=null&&_0x705bc3[_0x54242f(0x1d2)]){for(let _0x244045 in _0x705bc3[_0x54242f(0x1d2)])_0x481169[_0x54242f(0x1c4)](_0x244045,_0x705bc3[_0x54242f(0x1d2)][_0x244045]);}return _0x52a8c8(_0x1d5a11);}});}async[_0x57fe4b(0x1b3)](_0x9849dd){const _0x1b843b=_0x57fe4b;return this[_0x1b843b(0x1b9)](_0x9849dd);}};function _0x52e4(){const _0x160501=['customHeaders','removeEventListener','iterator','collaboration-client-node.config','next','_registerDependencies','add','27ZhNxlt','getOwnPropertyDescriptor','3548932piIjgH','447978cmeakO','addEventListener','2465127oUdRNS','registerHTTPInterceptor','constructor','prototype','4479240SbhWiZ','_injector','open','headers','dispose','close','createSocket','default','version','1008170MwtcVO','symbol','_configService','_doCreateSocket','length','object','decorate','setConfig','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','2407593kgMbUS','pluginName','5cCvQVU','0.25.2','set','pipe','defineProperty','onStarting','@univerjs-pro/collaboration-client-node','error','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','513236cwcMmi','message','_httpService','function','string','packageName'];_0x52e4=function(){return _0x160501;};return _0x52e4();}j=w([C(0x0,_0x4701b4(_0x57a3b3)),C(0x1,_0x4701b4(_0x3c9ce1)),C(0x2,_0x2a1401),C(0x3,_0x139940),C(0x4,_0x29057c)],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 _0x29a2(_0x2aaa73,_0x56a39d){_0x2aaa73=_0x2aaa73-0xaf;const _0x29785e=_0x2978();let _0x29a28f=_0x29785e[_0x2aaa73];return _0x29a28f;}(function(_0x2218df,_0x124c92){const _0x8fccca=_0x29a2,_0x4d2659=_0x2218df();while(!![]){try{const _0x4b4c7a=parseInt(_0x8fccca(0xf9))/0x1*(-parseInt(_0x8fccca(0xfa))/0x2)+parseInt(_0x8fccca(0xc4))/0x3+-parseInt(_0x8fccca(0xf6))/0x4*(parseInt(_0x8fccca(0xdc))/0x5)+parseInt(_0x8fccca(0xfb))/0x6+-parseInt(_0x8fccca(0xb2))/0x7+-parseInt(_0x8fccca(0xbe))/0x8*(-parseInt(_0x8fccca(0xeb))/0x9)+parseInt(_0x8fccca(0xea))/0xa*(parseInt(_0x8fccca(0xbb))/0xb);if(_0x4b4c7a===_0x124c92)break;else _0x4d2659['push'](_0x4d2659['shift']());}catch(_0x7bfe7d){_0x4d2659['push'](_0x4d2659['shift']());}}}(_0x2978,0xd52f8),function(_0x7dbb74,_0x3485a6){const _0x11b1f7=_0x29a2;typeof exports==_0x11b1f7(0xf8)&&typeof module<'u'?_0x3485a6(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define['amd']?define([_0x11b1f7(0xcd),_0x11b1f7(0xd2),_0x11b1f7(0xc1),'@univerjs/network','rxjs','@univerjs-pro/collaboration'],_0x3485a6):(_0x7dbb74=typeof globalThis<'u'?globalThis:_0x7dbb74||self,_0x3485a6(_0x7dbb74[_0x11b1f7(0xf5)]={},_0x7dbb74[_0x11b1f7(0xe0)],_0x7dbb74[_0x11b1f7(0xaf)],_0x7dbb74[_0x11b1f7(0xca)],_0x7dbb74[_0x11b1f7(0xed)],_0x7dbb74['UniverProCollaboration']));}(this,function(_0x496b35,_0x2f698f,_0x5d39fe,_0x5d1c0a,_0xec7f7d,_0xe51902){const _0x410398=_0x29a2;Object[_0x410398(0xd7)](_0x496b35,Symbol[_0x410398(0xe9)],{'value':'Module'});var _0x23ba35=(_0x61bf04,_0x531f4f)=>()=>(_0x531f4f||(_0x61bf04((_0x531f4f={'exports':{}})[_0x410398(0xcd)],_0x531f4f),_0x61bf04=null),_0x531f4f[_0x410398(0xcd)]);let _0x2009ba='collaboration-client-node.config',_0x5b55de={};var _0x55c6f5=_0x410398(0xe1),_0x342a8e='0.25.0',_0x54662e=_0x23ba35((_0x27ad80,_0x55a3ae)=>{const _0x3522b0=_0x410398;_0x55a3ae[_0x3522b0(0xcd)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x2fc846(_0x983f74,_0x5c96fb){return function(_0x5c2ad2,_0x39c507){_0x5c96fb(_0x5c2ad2,_0x39c507,_0x983f74);};}function _0x2d46ed(_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca){const _0x38f6a8=_0x410398;var _0x273574=arguments['length'],_0x44dbc5=_0x273574<0x3?_0x324bcd:_0x14bcca===null?_0x14bcca=Object['getOwnPropertyDescriptor'](_0x324bcd,_0x2e91af):_0x14bcca,_0x7355ba;if(typeof Reflect==_0x38f6a8(0xf8)&&typeof Reflect[_0x38f6a8(0xf1)]=='function')_0x44dbc5=Reflect[_0x38f6a8(0xf1)](_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca);else{for(var _0x14e61e=_0x563c0a[_0x38f6a8(0xb4)]-0x1;_0x14e61e>=0x0;_0x14e61e--)(_0x7355ba=_0x563c0a[_0x14e61e])&&(_0x44dbc5=(_0x273574<0x3?_0x7355ba(_0x44dbc5):_0x273574>0x3?_0x7355ba(_0x324bcd,_0x2e91af,_0x44dbc5):_0x7355ba(_0x324bcd,_0x2e91af))||_0x44dbc5);}return _0x273574>0x3&&_0x44dbc5&&Object[_0x38f6a8(0xd7)](_0x324bcd,_0x2e91af,_0x44dbc5),_0x44dbc5;}let _0x38e9e6=class extends _0x5d39fe[_0x410398(0xee)]{constructor(_0x36c694){super(),this['_configService']=_0x36c694;}[_0x410398(0xb0)](_0x503e6c){const _0x9f98e=_0x410398;var _0x451dcb;let _0x2985e8=((_0x451dcb=this[_0x9f98e(0xce)][_0x9f98e(0xe6)](_0x2f698f[_0x9f98e(0xc8)]))==null?void 0x0:_0x451dcb[_0x9f98e(0xe3)])||{};try{let _0x2de4d7=new _0x54662e[(_0x9f98e(0xc6))](_0x503e6c,{'headers':{..._0x2985e8}}),_0x194d0e=new _0x5d39fe[(_0x9f98e(0xec))]();return{'URL':_0x503e6c,'close':(_0x2e89f9,_0x48190c)=>{const _0x283e14=_0x9f98e;_0x2de4d7[_0x283e14(0xe4)](_0x2e89f9,_0x48190c),_0x194d0e[_0x283e14(0xd9)]();},'send':_0x341d37=>{const _0x29bb87=_0x9f98e;_0x2de4d7[_0x29bb87(0xd5)](_0x341d37);},'open$':new _0xec7f7d['Observable'](_0x18a2bc=>{const _0x14c476=_0x9f98e;let _0x25bd4d=_0x347451=>_0x18a2bc[_0x14c476(0xd3)](_0x347451);_0x2de4d7[_0x14c476(0xda)](_0x14c476(0xde),_0x25bd4d),_0x194d0e['add']((0x0,_0x5d39fe[_0x14c476(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x14c476(0xde),_0x25bd4d)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d['share'])()),'close$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x449d21=>{const _0x569205=_0x9f98e;let _0x3a3136=_0x90c0ba=>_0x449d21[_0x569205(0xd3)](_0x90c0ba);_0x2de4d7[_0x569205(0xda)](_0x569205(0xe4),_0x3a3136),_0x194d0e[_0x569205(0xc0)]((0x0,_0x5d39fe[_0x569205(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x569205(0xe4),_0x3a3136)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d[_0x9f98e(0xb5)])()),'error$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x3de42b=>{const _0x5b627a=_0x9f98e;let _0x13d683=_0x3fb504=>_0x3de42b[_0x5b627a(0xd3)](_0x3fb504);_0x2de4d7[_0x5b627a(0xda)]('error',_0x13d683),_0x194d0e[_0x5b627a(0xc0)]((0x0,_0x5d39fe[_0x5b627a(0xb9)])(()=>_0x2de4d7[_0x5b627a(0xf0)]('error',_0x13d683)));})['pipe']((0x0,_0xec7f7d['share'])()),'message$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x236bcb=>{const _0x6134ac=_0x9f98e;let _0x53c5b6=_0x4ca64d=>_0x236bcb['next'](_0x4ca64d);_0x2de4d7[_0x6134ac(0xda)]('message',_0x53c5b6),_0x194d0e[_0x6134ac(0xc0)]((0x0,_0x5d39fe[_0x6134ac(0xb9)])(()=>_0x2de4d7[_0x6134ac(0xf0)](_0x6134ac(0xd4),_0x53c5b6)));})['pipe']((0x0,_0xec7f7d['share'])())};}catch(_0x2a71ef){return console['error'](_0x2a71ef),null;}}};_0x38e9e6=_0x2d46ed([_0x2fc846(0x0,_0x5d39fe['IConfigService'])],_0x38e9e6);function _0x26233e(_0x1bb8a7){'@babel/helpers - typeof';const _0x360573=_0x410398;return _0x26233e=typeof Symbol==_0x360573(0xe8)&&typeof Symbol[_0x360573(0xef)]==_0x360573(0xe5)?function(_0x50320a){return typeof _0x50320a;}:function(_0x4a24a6){const _0x34fa65=_0x360573;return _0x4a24a6&&typeof Symbol==_0x34fa65(0xe8)&&_0x4a24a6[_0x34fa65(0xc3)]===Symbol&&_0x4a24a6!==Symbol['prototype']?_0x34fa65(0xe5):typeof _0x4a24a6;},_0x26233e(_0x1bb8a7);}function _0x3ad854(_0x5b7c25,_0x1b1b5e){const _0xad2b5e=_0x410398;if(_0x26233e(_0x5b7c25)!=_0xad2b5e(0xf8)||!_0x5b7c25)return _0x5b7c25;var _0x2d23db=_0x5b7c25[Symbol[_0xad2b5e(0xfd)]];if(_0x2d23db!==void 0x0){var _0x53dee5=_0x2d23db['call'](_0x5b7c25,_0x1b1b5e||_0xad2b5e(0xc9));if(_0x26233e(_0x53dee5)!=_0xad2b5e(0xf8))return _0x53dee5;throw TypeError(_0xad2b5e(0xf2));}return(_0x1b1b5e===_0xad2b5e(0xdf)?String:Number)(_0x5b7c25);}function _0x2c88c1(_0x325b58){const _0x5994f0=_0x410398;var _0x44c561=_0x3ad854(_0x325b58,_0x5994f0(0xdf));return _0x26233e(_0x44c561)==_0x5994f0(0xe5)?_0x44c561:_0x44c561+'';}function _0x297232(_0x343b5b,_0x2bbbbb,_0x29d86d){return(_0x2bbbbb=_0x2c88c1(_0x2bbbbb))in _0x343b5b?Object['defineProperty'](_0x343b5b,_0x2bbbbb,{'value':_0x29d86d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x343b5b[_0x2bbbbb]=_0x29d86d,_0x343b5b;}let _0x1b5fae=class extends _0x5d39fe[_0x410398(0xf3)]{constructor(_0x1da237=_0x5b55de,_0x142269,_0x3345cd){const _0x4ffca8=_0x410398;super(),this[_0x4ffca8(0xce)]=_0x142269,this[_0x4ffca8(0xdd)]=_0x3345cd,this[_0x4ffca8(0xce)]['setConfig'](_0x2009ba,_0x1da237);}[_0x410398(0xb7)](){const _0x1585fd=_0x410398;this[_0x1585fd(0xb6)]();}[_0x410398(0xb6)](){const _0x2f9de1=_0x410398;(0x0,_0x5d39fe[_0x2f9de1(0xcf)])(this[_0x2f9de1(0xdd)],[[_0x5d1c0a[_0x2f9de1(0xe7)],{'useClass':_0x38e9e6}]]);}};_0x297232(_0x1b5fae,'pluginName',_0x410398(0xd0)),_0x297232(_0x1b5fae,_0x410398(0xf7),_0x55c6f5),_0x297232(_0x1b5fae,_0x410398(0xd8),_0x342a8e),_0x1b5fae=_0x2d46ed([(0x0,_0x5d39fe[_0x410398(0xc7)])(_0x2f698f[_0x410398(0xc5)]),_0x2fc846(0x1,_0x5d39fe['IConfigService']),_0x2fc846(0x2,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d39fe[_0x410398(0xbd)]))],_0x1b5fae);let _0x287f44=class extends _0x2f698f[_0x410398(0xd1)]{constructor(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8){const _0x173862=_0x410398;super(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8);let _0x27ac48=this[_0x173862(0xce)][_0x173862(0xe6)](_0x2f698f[_0x173862(0xc8)]);this[_0x173862(0xb8)][_0x173862(0xcc)]({'interceptor':(_0xcad9ac,_0x41c82a)=>{const _0x34c9f8=_0x173862;let _0x25af92=_0xcad9ac[_0x34c9f8(0xe2)];if(_0x27ac48!=null&&_0x27ac48['customHeaders']){for(let _0x872fdb in _0x27ac48[_0x34c9f8(0xe3)])_0x25af92[_0x34c9f8(0xdb)](_0x872fdb,_0x27ac48[_0x34c9f8(0xe3)][_0x872fdb]);}return _0x41c82a(_0xcad9ac);}});}async[_0x410398(0xb0)](_0x102a76){return this['_doCreateSocket'](_0x102a76);}};_0x287f44=_0x2d46ed([_0x2fc846(0x0,(0x0,_0x5d39fe['Inject'])(_0x5d39fe[_0x410398(0xbd)])),_0x2fc846(0x1,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d1c0a[_0x410398(0xfc)])),_0x2fc846(0x2,_0x5d39fe[_0x410398(0xf4)]),_0x2fc846(0x3,_0x5d39fe[_0x410398(0xcb)]),_0x2fc846(0x4,_0xe51902[_0x410398(0xb1)])],_0x287f44),_0x496b35[_0x410398(0xb3)]=_0x2009ba,Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xba),{'enumerable':!0x0,'get':function(){return _0x287f44;}}),Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xc2),{'enumerable':!0x0,'get':function(){return _0x1b5fae;}});}));function _0x2978(){const _0x216380=['registerHTTPInterceptor','exports','_configService','registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','@univerjs-pro/collaboration-client','next','message','send','pipe','defineProperty','version','dispose','addEventListener','set','760705riCMLy','_injector','open','string','UniverProCollaborationClient','@univerjs-pro/collaboration-client-node','headers','customHeaders','close','symbol','getConfig','ISocketService','function','toStringTag','127270Vhuzbu','10481994ksEOkF','DisposableCollection','rxjs','Disposable','iterator','removeEventListener','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Plugin','IConfigService','UniverProCollaborationClientNode','20lUkbTp','packageName','object','206zCbFFE','16094wgiDFr','1264830HUUpvQ','HTTPService','toPrimitive','UniverCore','createSocket','ISnapshotServerService','8590736gWDEcp','COLLABORATION_CLIENT_NODE_CONFIG_KEY','length','share','_registerDependencies','onStarting','_httpService','toDisposable','NodeCollaborationSocketService','2013piqGGt','Inject','Injector','8kysAyf','Observable','add','@univerjs/core','UniverCollaborationClientNodePlugin','constructor','2442993LJEHPi','UniverCollaborationClientPlugin','WebSocket','DependentOn','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','default','UniverNetwork','ILogService'];_0x2978=function(){return _0x216380;};return _0x2978();}
|
|
1
|
+
function _0x5ab0(){const _0x56b04f=['version','default','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverCollaborationClientPlugin','next','UniverProCollaboration','toDisposable','ISocketService','message','Inject','prototype','DependentOn','982035xnCczx','3874087SJvXnY','Module','exports','DisposableCollection','share','UniverCollaborationClientNodePlugin','IConfigService','toPrimitive','error','@univerjs-pro/collaboration','decorate','set','pluginName','createSocket','add','_httpService','length','1646643uMbSws','@univerjs-pro/collaboration-client-node','registerDependencies','UniverNetwork','constructor','onStarting','Plugin','227632mNpqLb','string','iterator','24477327BrmjYT','registerHTTPInterceptor','customHeaders','@univerjs-pro/collaboration-client','getConfig','UniverProCollaborationClientNode','_doCreateSocket','@univerjs/core','collaboration-client-node.config','send','defineProperty','headers','getOwnPropertyDescriptor','8jbsmMw','7693902TGqsAi','rxjs','symbol','_configService','removeEventListener','_injector','open','6226670rTXlVi','Disposable','object','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CollaborationSocketService','pipe','addEventListener','function','Injector','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','dispose','Observable','NodeCollaborationSocketService','2VcjEGd','setConfig'];_0x5ab0=function(){return _0x56b04f;};return _0x5ab0();}function _0x28e8(_0x5dc0f4,_0xf87f30){_0x5dc0f4=_0x5dc0f4-0xa5;const _0x5ab0d4=_0x5ab0();let _0x28e8a2=_0x5ab0d4[_0x5dc0f4];return _0x28e8a2;}(function(_0x372815,_0x2db31c){const _0x23750b=_0x28e8,_0x1b0099=_0x372815();while(!![]){try{const _0x8b94ed=parseInt(_0x23750b(0xd7))/0x1+parseInt(_0x23750b(0xc9))/0x2*(parseInt(_0x23750b(0xe9))/0x3)+parseInt(_0x23750b(0xf0))/0x4+parseInt(_0x23750b(0xbb))/0x5+parseInt(_0x23750b(0xb4))/0x6+-parseInt(_0x23750b(0xd8))/0x7*(parseInt(_0x23750b(0xb3))/0x8)+-parseInt(_0x23750b(0xa6))/0x9;if(_0x8b94ed===_0x2db31c)break;else _0x1b0099['push'](_0x1b0099['shift']());}catch(_0x335fcd){_0x1b0099['push'](_0x1b0099['shift']());}}}(_0x5ab0,0xcda5b),function(_0x40f034,_0x24a772){const _0x4a01e9=_0x28e8;typeof exports==_0x4a01e9(0xbd)&&typeof module<'u'?_0x24a772(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define['amd']?define([_0x4a01e9(0xda),_0x4a01e9(0xa9),_0x4a01e9(0xad),'@univerjs/network',_0x4a01e9(0xb5),_0x4a01e9(0xe1)],_0x24a772):(_0x40f034=typeof globalThis<'u'?globalThis:_0x40f034||self,_0x24a772(_0x40f034[_0x4a01e9(0xab)]={},_0x40f034['UniverProCollaborationClient'],_0x40f034['UniverCore'],_0x40f034[_0x4a01e9(0xec)],_0x40f034[_0x4a01e9(0xb5)],_0x40f034[_0x4a01e9(0xd0)]));}(this,function(_0x491f13,_0x529a9e,_0xfc82ff,_0x3dc215,_0x218c2a,_0x123c11){const _0x40f35c=_0x28e8;Object['defineProperty'](_0x491f13,Symbol['toStringTag'],{'value':_0x40f35c(0xd9)});var _0x206dd1=(_0x72ca4e,_0x176915)=>()=>(_0x176915||(_0x72ca4e((_0x176915={'exports':{}})[_0x40f35c(0xda)],_0x176915),_0x72ca4e=null),_0x176915[_0x40f35c(0xda)]);let _0x37a994=_0x40f35c(0xae),_0x2c26bc={};var _0x31b022=_0x40f35c(0xea),_0x2cb8b6='0.25.2',_0x25acb6=_0x206dd1((_0x200255,_0x39098d)=>{const _0x2bb61d=_0x40f35c;_0x39098d[_0x2bb61d(0xda)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x232674(_0x4ca300,_0x3a070b){return function(_0x4ab50a,_0x35edb5){_0x3a070b(_0x4ab50a,_0x35edb5,_0x4ca300);};}function _0x5eae7a(_0x193bdb,_0x58274c,_0x25b5b9,_0x34670c){const _0x2bb6c5=_0x40f35c;var _0x4cf03a=arguments[_0x2bb6c5(0xe8)],_0x4860e2=_0x4cf03a<0x3?_0x58274c:_0x34670c===null?_0x34670c=Object[_0x2bb6c5(0xb2)](_0x58274c,_0x25b5b9):_0x34670c,_0xd839ea;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x4860e2=Reflect[_0x2bb6c5(0xe2)](_0x193bdb,_0x58274c,_0x25b5b9,_0x34670c);else{for(var _0x476229=_0x193bdb['length']-0x1;_0x476229>=0x0;_0x476229--)(_0xd839ea=_0x193bdb[_0x476229])&&(_0x4860e2=(_0x4cf03a<0x3?_0xd839ea(_0x4860e2):_0x4cf03a>0x3?_0xd839ea(_0x58274c,_0x25b5b9,_0x4860e2):_0xd839ea(_0x58274c,_0x25b5b9))||_0x4860e2);}return _0x4cf03a>0x3&&_0x4860e2&&Object['defineProperty'](_0x58274c,_0x25b5b9,_0x4860e2),_0x4860e2;}let _0x549954=class extends _0xfc82ff[_0x40f35c(0xbc)]{constructor(_0x1fa0f7){const _0x549e18=_0x40f35c;super(),this[_0x549e18(0xb7)]=_0x1fa0f7;}[_0x40f35c(0xe5)](_0x303bb0){const _0x30f83a=_0x40f35c;var _0x245d28;let _0x307a65=((_0x245d28=this[_0x30f83a(0xb7)][_0x30f83a(0xaa)](_0x529a9e[_0x30f83a(0xc5)]))==null?void 0x0:_0x245d28[_0x30f83a(0xa8)])||{};try{let _0x4893f2=new _0x25acb6['WebSocket'](_0x303bb0,{'headers':{..._0x307a65}}),_0x366864=new _0xfc82ff[(_0x30f83a(0xdb))]();return{'URL':_0x303bb0,'close':(_0x57f865,_0x4478ba)=>{const _0x477200=_0x30f83a;_0x4893f2['close'](_0x57f865,_0x4478ba),_0x366864[_0x477200(0xc6)]();},'send':_0x44a33c=>{const _0x85cc32=_0x30f83a;_0x4893f2[_0x85cc32(0xaf)](_0x44a33c);},'open$':new _0x218c2a[(_0x30f83a(0xc7))](_0x4bfd59=>{const _0x4976f5=_0x30f83a;let _0x5442c1=_0x47225a=>_0x4bfd59['next'](_0x47225a);_0x4893f2['addEventListener'](_0x4976f5(0xba),_0x5442c1),_0x366864[_0x4976f5(0xe6)]((0x0,_0xfc82ff[_0x4976f5(0xd1)])(()=>_0x4893f2[_0x4976f5(0xb8)]('open',_0x5442c1)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])()),'close$':new _0x218c2a['Observable'](_0xdce80d=>{const _0x59ac93=_0x30f83a;let _0x4750ac=_0xdc95ca=>_0xdce80d[_0x59ac93(0xcf)](_0xdc95ca);_0x4893f2[_0x59ac93(0xc2)](_0x59ac93(0xbe),_0x4750ac),_0x366864[_0x59ac93(0xe6)]((0x0,_0xfc82ff[_0x59ac93(0xd1)])(()=>_0x4893f2[_0x59ac93(0xb8)](_0x59ac93(0xbe),_0x4750ac)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])()),'error$':new _0x218c2a['Observable'](_0x5662b7=>{const _0x110f25=_0x30f83a;let _0x588f17=_0x3cd4a8=>_0x5662b7[_0x110f25(0xcf)](_0x3cd4a8);_0x4893f2['addEventListener']('error',_0x588f17),_0x366864[_0x110f25(0xe6)]((0x0,_0xfc82ff['toDisposable'])(()=>_0x4893f2[_0x110f25(0xb8)](_0x110f25(0xe0),_0x588f17)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])()),'message$':new _0x218c2a[(_0x30f83a(0xc7))](_0x3c4380=>{const _0x30188b=_0x30f83a;let _0x10283d=_0x24c192=>_0x3c4380[_0x30188b(0xcf)](_0x24c192);_0x4893f2[_0x30188b(0xc2)](_0x30188b(0xd3),_0x10283d),_0x366864[_0x30188b(0xe6)]((0x0,_0xfc82ff[_0x30188b(0xd1)])(()=>_0x4893f2[_0x30188b(0xb8)](_0x30188b(0xd3),_0x10283d)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])())};}catch(_0x104752){return console[_0x30f83a(0xe0)](_0x104752),null;}}};_0x549954=_0x5eae7a([_0x232674(0x0,_0xfc82ff[_0x40f35c(0xde)])],_0x549954);function _0x2e8450(_0x226dbe){'@babel/helpers - typeof';const _0xfd79b1=_0x40f35c;return _0x2e8450=typeof Symbol==_0xfd79b1(0xc3)&&typeof Symbol[_0xfd79b1(0xa5)]=='symbol'?function(_0x231ea6){return typeof _0x231ea6;}:function(_0xab1cd2){const _0x4c9da9=_0xfd79b1;return _0xab1cd2&&typeof Symbol==_0x4c9da9(0xc3)&&_0xab1cd2[_0x4c9da9(0xed)]===Symbol&&_0xab1cd2!==Symbol[_0x4c9da9(0xd5)]?_0x4c9da9(0xb6):typeof _0xab1cd2;},_0x2e8450(_0x226dbe);}function _0x429aab(_0x196bd2,_0x145056){const _0x2de6b1=_0x40f35c;if(_0x2e8450(_0x196bd2)!=_0x2de6b1(0xbd)||!_0x196bd2)return _0x196bd2;var _0x52524a=_0x196bd2[Symbol[_0x2de6b1(0xdf)]];if(_0x52524a!==void 0x0){var _0x5921b2=_0x52524a['call'](_0x196bd2,_0x145056||_0x2de6b1(0xcc));if(_0x2e8450(_0x5921b2)!=_0x2de6b1(0xbd))return _0x5921b2;throw TypeError(_0x2de6b1(0xbf));}return(_0x145056===_0x2de6b1(0xf1)?String:Number)(_0x196bd2);}function _0xbb9779(_0x5a3fc8){const _0x34ddc4=_0x40f35c;var _0x110c74=_0x429aab(_0x5a3fc8,'string');return _0x2e8450(_0x110c74)==_0x34ddc4(0xb6)?_0x110c74:_0x110c74+'';}function _0xf01d28(_0x44a06f,_0x19e8b6,_0x9545cf){const _0x3c827c=_0x40f35c;return(_0x19e8b6=_0xbb9779(_0x19e8b6))in _0x44a06f?Object[_0x3c827c(0xb0)](_0x44a06f,_0x19e8b6,{'value':_0x9545cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44a06f[_0x19e8b6]=_0x9545cf,_0x44a06f;}let _0x95e813=class extends _0xfc82ff[_0x40f35c(0xef)]{constructor(_0x2f0c4b=_0x2c26bc,_0x1a686d,_0x2af000){const _0x184dd4=_0x40f35c;super(),this[_0x184dd4(0xb7)]=_0x1a686d,this[_0x184dd4(0xb9)]=_0x2af000,this[_0x184dd4(0xb7)][_0x184dd4(0xca)](_0x37a994,_0x2f0c4b);}[_0x40f35c(0xee)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x3838cc=_0x40f35c;(0x0,_0xfc82ff[_0x3838cc(0xeb)])(this['_injector'],[[_0x3dc215[_0x3838cc(0xd2)],{'useClass':_0x549954}]]);}};_0xf01d28(_0x95e813,_0x40f35c(0xe4),_0x40f35c(0xcd)),_0xf01d28(_0x95e813,'packageName',_0x31b022),_0xf01d28(_0x95e813,_0x40f35c(0xcb),_0x2cb8b6),_0x95e813=_0x5eae7a([(0x0,_0xfc82ff[_0x40f35c(0xd6)])(_0x529a9e[_0x40f35c(0xce)]),_0x232674(0x1,_0xfc82ff[_0x40f35c(0xde)]),_0x232674(0x2,(0x0,_0xfc82ff[_0x40f35c(0xd4)])(_0xfc82ff[_0x40f35c(0xc4)]))],_0x95e813);let _0x5c1658=class extends _0x529a9e[_0x40f35c(0xc0)]{constructor(_0x750e0f,_0xc7f546,_0x5313c3,_0x150fbd,_0x3ee83c){const _0x5e4773=_0x40f35c;super(_0x750e0f,_0xc7f546,_0x5313c3,_0x150fbd,_0x3ee83c);let _0xc88099=this['_configService'][_0x5e4773(0xaa)](_0x529a9e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x5e4773(0xe7)][_0x5e4773(0xa7)]({'interceptor':(_0x34b2e3,_0x4fb906)=>{const _0x106305=_0x5e4773;let _0x5783e5=_0x34b2e3[_0x106305(0xb1)];if(_0xc88099!=null&&_0xc88099[_0x106305(0xa8)]){for(let _0x174037 in _0xc88099[_0x106305(0xa8)])_0x5783e5[_0x106305(0xe3)](_0x174037,_0xc88099[_0x106305(0xa8)][_0x174037]);}return _0x4fb906(_0x34b2e3);}});}async[_0x40f35c(0xe5)](_0x4d94c3){const _0x5e508b=_0x40f35c;return this[_0x5e508b(0xac)](_0x4d94c3);}};_0x5c1658=_0x5eae7a([_0x232674(0x0,(0x0,_0xfc82ff[_0x40f35c(0xd4)])(_0xfc82ff[_0x40f35c(0xc4)])),_0x232674(0x1,(0x0,_0xfc82ff[_0x40f35c(0xd4)])(_0x3dc215['HTTPService'])),_0x232674(0x2,_0xfc82ff['IConfigService']),_0x232674(0x3,_0xfc82ff['ILogService']),_0x232674(0x4,_0x123c11['ISnapshotServerService'])],_0x5c1658),_0x491f13['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x37a994,Object[_0x40f35c(0xb0)](_0x491f13,_0x40f35c(0xc8),{'enumerable':!0x0,'get':function(){return _0x5c1658;}}),Object[_0x40f35c(0xb0)](_0x491f13,_0x40f35c(0xdd),{'enumerable':!0x0,'get':function(){return _0x95e813;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
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.1",
|
|
55
|
-
"@univerjs-pro/collaboration": "0.25.
|
|
56
|
-
"@univerjs
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/network": "0.25.
|
|
55
|
+
"@univerjs-pro/collaboration": "0.25.2",
|
|
56
|
+
"@univerjs/core": "0.25.2",
|
|
57
|
+
"@univerjs-pro/collaboration-client": "0.25.2",
|
|
58
|
+
"@univerjs/network": "0.25.2"
|
|
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.6",
|
|
65
|
-
"@univerjs-infra/shared": "0.25.
|
|
65
|
+
"@univerjs-infra/shared": "0.25.2"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"test": "vitest run",
|