@univerjs-pro/collaboration-client-node 1.0.0-alpha.6 → 1.0.0-alpha.8

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 CHANGED
@@ -1 +1 @@
1
- const _0x3fab54=_0x3001;(function(_0x5e184d,_0x37fbc1){const _0x215444=_0x3001,_0x25012a=_0x5e184d();while(!![]){try{const _0x1142f7=-parseInt(_0x215444(0x101))/0x1+parseInt(_0x215444(0xda))/0x2+-parseInt(_0x215444(0x11b))/0x3*(-parseInt(_0x215444(0xe2))/0x4)+parseInt(_0x215444(0x10e))/0x5*(-parseInt(_0x215444(0x11d))/0x6)+parseInt(_0x215444(0xe9))/0x7+parseInt(_0x215444(0xf9))/0x8+parseInt(_0x215444(0x102))/0x9;if(_0x1142f7===_0x37fbc1)break;else _0x25012a['push'](_0x25012a['shift']());}catch(_0x50814d){_0x25012a['push'](_0x25012a['shift']());}}}(_0x9cbb,0xf1cf1),Object[_0x3fab54(0x107)](exports,Symbol[_0x3fab54(0xe1)],{'value':_0x3fab54(0xea)}));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');function _0x9cbb(){const _0x41673d=['1.0.0-alpha.6','Plugin','defineProperty','call','onStarting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','string','_configService','2883765ZexYEw','add','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pluginName','_injector','symbol','IConfigService','prototype','share','registerHTTPInterceptor','iterator','next','addEventListener','1048728snASXy','DependentOn','18TKWEyS','UniverCollaborationClientPlugin','open','default','Observable','createSocket','setConfig','1087902yGbnUm','object','version','pipe','ISocketService','constructor','toDisposable','toStringTag','16ZUUkHI','message','set','length','customHeaders','DisposableCollection','toPrimitive','9719290GUSOlM','Module','close','dispose','packageName','_config','UniverCollaborationClientNodePlugin','NodeCollaborationSocketService','function','ILogService','WebSocket','CollaborationSocketService','Injector','merge','removeEventListener','send','5329896cAJJzL','Inject','error','_doCreateSocket','_registerDependencies','@univerjs-pro/collaboration-client-node','ISnapshotServerService','_httpService','1382052JPAcgt','952182rlSADK','headers','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'];_0x9cbb=function(){return _0x41673d;};return _0x9cbb();}var o=_0x3fab54(0xfe),s=_0x3fab54(0x105);const c={};function l(_0x311e86,_0x2de717){return function(_0x445833,_0x39a34c){_0x2de717(_0x445833,_0x39a34c,_0x311e86);};}function u(_0x51fbcc,_0x5af7d2,_0x3a3750,_0x14f0dd){const _0xdfeb62=_0x3fab54;var _0x3f7bac=arguments[_0xdfeb62(0xe5)],_0x2c936f=_0x3f7bac<0x3?_0x5af7d2:_0x14f0dd===null?_0x14f0dd=Object['getOwnPropertyDescriptor'](_0x5af7d2,_0x3a3750):_0x14f0dd,_0x3a6423;if(typeof Reflect==_0xdfeb62(0xdb)&&typeof Reflect['decorate']==_0xdfeb62(0xf1))_0x2c936f=Reflect['decorate'](_0x51fbcc,_0x5af7d2,_0x3a3750,_0x14f0dd);else{for(var _0x47232c=_0x51fbcc['length']-0x1;_0x47232c>=0x0;_0x47232c--)(_0x3a6423=_0x51fbcc[_0x47232c])&&(_0x2c936f=(_0x3f7bac<0x3?_0x3a6423(_0x2c936f):_0x3f7bac>0x3?_0x3a6423(_0x5af7d2,_0x3a3750,_0x2c936f):_0x3a6423(_0x5af7d2,_0x3a3750))||_0x2c936f);}return _0x3f7bac>0x3&&_0x2c936f&&Object['defineProperty'](_0x5af7d2,_0x3a3750,_0x2c936f),_0x2c936f;}let d=class extends t['Disposable']{constructor(_0x3994b5){const _0xd6e8dd=_0x3fab54;super(),this[_0xd6e8dd(0x10d)]=_0x3994b5;}[_0x3fab54(0xd8)](_0x227f76){const _0x52073a=_0x3fab54;var _0x28c0cc;let _0x23c94d=((_0x28c0cc=this[_0x52073a(0x10d)][_0x52073a(0x10b)](e[_0x52073a(0x110)]))==null?void 0x0:_0x28c0cc[_0x52073a(0xe6)])||{};try{let _0x443fdb=new i[(_0x52073a(0xf3))](_0x227f76,{'headers':{..._0x23c94d}}),_0x2b32d2=new t[(_0x52073a(0xe7))]();return{'URL':_0x227f76,'close':(_0x3ce369,_0x29f7c6)=>{const _0x5a9969=_0x52073a;_0x443fdb[_0x5a9969(0xeb)](_0x3ce369,_0x29f7c6),_0x2b32d2[_0x5a9969(0xec)]();},'send':_0x54cdb6=>{const _0x36a362=_0x52073a;_0x443fdb[_0x36a362(0xf8)](_0x54cdb6);},'open$':new r[(_0x52073a(0x121))](_0x2a7490=>{const _0x18edad=_0x52073a;let _0x2af158=_0x1919dc=>_0x2a7490[_0x18edad(0x119)](_0x1919dc);_0x443fdb[_0x18edad(0x11a)](_0x18edad(0x11f),_0x2af158),_0x2b32d2[_0x18edad(0x10f)]((0x0,t[_0x18edad(0xe0)])(()=>_0x443fdb[_0x18edad(0xf7)](_0x18edad(0x11f),_0x2af158)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])()),'close$':new r[(_0x52073a(0x121))](_0x2c4078=>{const _0x2369de=_0x52073a;let _0x34b152=_0x404fad=>_0x2c4078['next'](_0x404fad);_0x443fdb['addEventListener'](_0x2369de(0xeb),_0x34b152),_0x2b32d2[_0x2369de(0x10f)]((0x0,t[_0x2369de(0xe0)])(()=>_0x443fdb[_0x2369de(0xf7)](_0x2369de(0xeb),_0x34b152)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])()),'error$':new r[(_0x52073a(0x121))](_0x27f835=>{const _0x20348c=_0x52073a;let _0x24c144=_0x1aca97=>_0x27f835[_0x20348c(0x119)](_0x1aca97);_0x443fdb[_0x20348c(0x11a)](_0x20348c(0xfb),_0x24c144),_0x2b32d2[_0x20348c(0x10f)]((0x0,t[_0x20348c(0xe0)])(()=>_0x443fdb[_0x20348c(0xf7)](_0x20348c(0xfb),_0x24c144)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])()),'message$':new r[(_0x52073a(0x121))](_0x4e3da2=>{const _0x4c02ca=_0x52073a;let _0x4e92b7=_0x16012f=>_0x4e3da2[_0x4c02ca(0x119)](_0x16012f);_0x443fdb['addEventListener'](_0x4c02ca(0xe3),_0x4e92b7),_0x2b32d2[_0x4c02ca(0x10f)]((0x0,t[_0x4c02ca(0xe0)])(()=>_0x443fdb[_0x4c02ca(0xf7)](_0x4c02ca(0xe3),_0x4e92b7)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])())};}catch(_0x4eeabc){return console[_0x52073a(0xfb)](_0x4eeabc),null;}}};function _0x3001(_0x30c9f4,_0x1287cc){_0x30c9f4=_0x30c9f4-0xd8;const _0x9cbba5=_0x9cbb();let _0x30012d=_0x9cbba5[_0x30c9f4];return _0x30012d;}d=u([l(0x0,t[_0x3fab54(0x114)])],d);function f(_0x34dd7b){'@babel/helpers - typeof';const _0x35de1b=_0x3fab54;return f=typeof Symbol==_0x35de1b(0xf1)&&typeof Symbol[_0x35de1b(0x118)]==_0x35de1b(0x113)?function(_0x12d4e8){return typeof _0x12d4e8;}:function(_0x2ee036){const _0x5166af=_0x35de1b;return _0x2ee036&&typeof Symbol=='function'&&_0x2ee036[_0x5166af(0xdf)]===Symbol&&_0x2ee036!==Symbol[_0x5166af(0x115)]?_0x5166af(0x113):typeof _0x2ee036;},f(_0x34dd7b);}function p(_0x3defa1,_0x67a226){const _0x42111e=_0x3fab54;if(f(_0x3defa1)!=_0x42111e(0xdb)||!_0x3defa1)return _0x3defa1;var _0x1baa60=_0x3defa1[Symbol[_0x42111e(0xe8)]];if(_0x1baa60!==void 0x0){var _0x18bfab=_0x1baa60[_0x42111e(0x108)](_0x3defa1,_0x67a226||_0x42111e(0x120));if(f(_0x18bfab)!='object')return _0x18bfab;throw TypeError(_0x42111e(0x10a));}return(_0x67a226==='string'?String:Number)(_0x3defa1);}function m(_0x19bc77){const _0x1aa17f=_0x3fab54;var _0x356b02=p(_0x19bc77,_0x1aa17f(0x10c));return f(_0x356b02)=='symbol'?_0x356b02:_0x356b02+'';}function h(_0x39ddd1,_0x17280b,_0x2efa2d){const _0x219ce8=_0x3fab54;return(_0x17280b=m(_0x17280b))in _0x39ddd1?Object[_0x219ce8(0x107)](_0x39ddd1,_0x17280b,{'value':_0x2efa2d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39ddd1[_0x17280b]=_0x2efa2d,_0x39ddd1;}let g=class extends t[_0x3fab54(0x106)]{constructor(_0x1c7ad3=c,_0x129efa,_0x266f9a){const _0x3b4120=_0x3fab54;super(),this[_0x3b4120(0xee)]=_0x1c7ad3,this[_0x3b4120(0x10d)]=_0x129efa,this[_0x3b4120(0x112)]=_0x266f9a;let {..._0x35a744}=(0x0,t[_0x3b4120(0xf6)])({},c,this['_config']);this[_0x3b4120(0x10d)][_0x3b4120(0xd9)]('collaboration-client-node.config',_0x35a744);}[_0x3fab54(0x109)](){const _0x268c86=_0x3fab54;this[_0x268c86(0xfd)]();}['_registerDependencies'](){const _0x8e347b=_0x3fab54;(0x0,t['registerDependencies'])(this[_0x8e347b(0x112)],[[n[_0x8e347b(0xde)],{'useClass':d}]]);}};h(g,_0x3fab54(0x111),_0x3fab54(0x104)),h(g,_0x3fab54(0xed),o),h(g,_0x3fab54(0xdc),s),g=u([(0x0,t[_0x3fab54(0x11c)])(e[_0x3fab54(0x11e)]),l(0x1,t[_0x3fab54(0x114)]),l(0x2,(0x0,t[_0x3fab54(0xfa)])(t[_0x3fab54(0xf5)]))],g);let _=class extends e[_0x3fab54(0xf4)]{constructor(_0x2d243c,_0x238b82,_0x184531,_0x323ebe,_0x1f5b69){const _0x508164=_0x3fab54;super(_0x2d243c,_0x238b82,_0x184531,_0x323ebe,_0x1f5b69);let _0x419cd9=this[_0x508164(0x10d)][_0x508164(0x10b)](e[_0x508164(0x110)]);this[_0x508164(0x100)][_0x508164(0x117)]({'interceptor':(_0x44970b,_0xbfaa24)=>{const _0xeef867=_0x508164;let _0x4ad2f3=_0x44970b[_0xeef867(0x103)];if(_0x419cd9!=null&&_0x419cd9[_0xeef867(0xe6)]){for(let _0x870892 in _0x419cd9[_0xeef867(0xe6)])_0x4ad2f3[_0xeef867(0xe4)](_0x870892,_0x419cd9['customHeaders'][_0x870892]);}return _0xbfaa24(_0x44970b);}});}async[_0x3fab54(0xd8)](_0x2e1a35){const _0x3ae5b6=_0x3fab54;return this[_0x3ae5b6(0xfc)](_0x2e1a35);}};_=u([l(0x0,(0x0,t['Inject'])(t['Injector'])),l(0x1,(0x0,t[_0x3fab54(0xfa)])(n['HTTPService'])),l(0x2,t[_0x3fab54(0x114)]),l(0x3,t[_0x3fab54(0xf2)]),l(0x4,a[_0x3fab54(0xff)])],_),Object[_0x3fab54(0x107)](exports,_0x3fab54(0xf0),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x3fab54(0x107)](exports,_0x3fab54(0xef),{'enumerable':!0x0,'get':function(){return g;}});
1
+ const _0x103fa9=_0x5abb;(function(_0x100b5d,_0x50e0fb){const _0x14290b=_0x5abb,_0x5d6831=_0x100b5d();while(!![]){try{const _0x614618=-parseInt(_0x14290b(0x1c5))/0x1*(-parseInt(_0x14290b(0x197))/0x2)+-parseInt(_0x14290b(0x1a5))/0x3*(-parseInt(_0x14290b(0x1a7))/0x4)+parseInt(_0x14290b(0x1b3))/0x5+-parseInt(_0x14290b(0x1d0))/0x6*(parseInt(_0x14290b(0x198))/0x7)+parseInt(_0x14290b(0x1c8))/0x8+-parseInt(_0x14290b(0x1c6))/0x9+-parseInt(_0x14290b(0x19d))/0xa*(parseInt(_0x14290b(0x18e))/0xb);if(_0x614618===_0x50e0fb)break;else _0x5d6831['push'](_0x5d6831['shift']());}catch(_0x265b63){_0x5d6831['push'](_0x5d6831['shift']());}}}(_0x5d05,0x64dda),Object[_0x103fa9(0x1bd)](exports,Symbol[_0x103fa9(0x1c2)],{'value':_0x103fa9(0x1af)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x103fa9(0x1a9),c=_0x103fa9(0x18d);const l={};function u(_0x5ce610,_0x1395cb){return function(_0x94e9ae,_0x5d85e3){_0x1395cb(_0x94e9ae,_0x5d85e3,_0x5ce610);};}function d(_0x2dee9e,_0x1bb869,_0x12904e,_0xf6c7c2){const _0x5ee903=_0x103fa9;var _0x368102=arguments[_0x5ee903(0x1c7)],_0x5e1d3b=_0x368102<0x3?_0x1bb869:_0xf6c7c2===null?_0xf6c7c2=Object[_0x5ee903(0x1cf)](_0x1bb869,_0x12904e):_0xf6c7c2,_0x4f7311;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x5e1d3b=Reflect[_0x5ee903(0x1b4)](_0x2dee9e,_0x1bb869,_0x12904e,_0xf6c7c2);else{for(var _0x32ab52=_0x2dee9e['length']-0x1;_0x32ab52>=0x0;_0x32ab52--)(_0x4f7311=_0x2dee9e[_0x32ab52])&&(_0x5e1d3b=(_0x368102<0x3?_0x4f7311(_0x5e1d3b):_0x368102>0x3?_0x4f7311(_0x1bb869,_0x12904e,_0x5e1d3b):_0x4f7311(_0x1bb869,_0x12904e))||_0x5e1d3b);}return _0x368102>0x3&&_0x5e1d3b&&Object[_0x5ee903(0x1bd)](_0x1bb869,_0x12904e,_0x5e1d3b),_0x5e1d3b;}let f=class extends r[_0x103fa9(0x1b7)]{constructor(_0x2ee0d7){const _0x243f66=_0x103fa9;super(),this[_0x243f66(0x190)]=_0x2ee0d7;}[_0x103fa9(0x1cc)](_0x4592c2){const _0x4602e9=_0x103fa9;var _0x3608af;let _0x48dfb7=((_0x3608af=this['_configService'][_0x4602e9(0x1a3)](t[_0x4602e9(0x1ab)]))==null?void 0x0:_0x3608af[_0x4602e9(0x1ac)])||{};try{let _0x5a1bbc=new o[(_0x4602e9(0x1cd))](_0x4592c2,{'headers':{..._0x48dfb7}}),_0x2af491=new r[(_0x4602e9(0x1b5))]();return{'URL':_0x4592c2,'close':(_0x377911,_0x130f06)=>{const _0x3938e4=_0x4602e9;_0x5a1bbc['close'](_0x377911,_0x130f06),_0x2af491[_0x3938e4(0x1ba)]();},'send':_0x45c5bb=>{const _0x2c142b=_0x4602e9;_0x5a1bbc[_0x2c142b(0x1d1)](_0x45c5bb);},'open$':new a[(_0x4602e9(0x1ca))](_0x2c3e6e=>{const _0x185e38=_0x4602e9;let _0xbe64df=_0x54836d=>_0x2c3e6e['next'](_0x54836d);_0x5a1bbc[_0x185e38(0x1b8)]('open',_0xbe64df),_0x2af491['add']((0x0,r[_0x185e38(0x1bb)])(()=>_0x5a1bbc[_0x185e38(0x1a8)](_0x185e38(0x1b2),_0xbe64df)));})['pipe']((0x0,a[_0x4602e9(0x1a1)])()),'close$':new a['Observable'](_0x1362b8=>{const _0x27d587=_0x4602e9;let _0x2fadc8=_0x4ebab2=>_0x1362b8[_0x27d587(0x193)](_0x4ebab2);_0x5a1bbc[_0x27d587(0x1b8)](_0x27d587(0x1c3),_0x2fadc8),_0x2af491[_0x27d587(0x1c0)]((0x0,r[_0x27d587(0x1bb)])(()=>_0x5a1bbc[_0x27d587(0x1a8)](_0x27d587(0x1c3),_0x2fadc8)));})['pipe']((0x0,a['share'])()),'error$':new a['Observable'](_0x419d78=>{const _0x552349=_0x4602e9;let _0x1b0a1c=_0x40cfc2=>_0x419d78[_0x552349(0x193)](_0x40cfc2);_0x5a1bbc[_0x552349(0x1b8)]('error',_0x1b0a1c),_0x2af491[_0x552349(0x1c0)]((0x0,r[_0x552349(0x1bb)])(()=>_0x5a1bbc['removeEventListener'](_0x552349(0x1a0),_0x1b0a1c)));})[_0x4602e9(0x19c)]((0x0,a[_0x4602e9(0x1a1)])()),'message$':new a['Observable'](_0x2219c4=>{const _0x33f212=_0x4602e9;let _0x3af405=_0x4289b8=>_0x2219c4['next'](_0x4289b8);_0x5a1bbc[_0x33f212(0x1b8)](_0x33f212(0x1aa),_0x3af405),_0x2af491[_0x33f212(0x1c0)]((0x0,r[_0x33f212(0x1bb)])(()=>_0x5a1bbc[_0x33f212(0x1a8)]('message',_0x3af405)));})[_0x4602e9(0x19c)]((0x0,a['share'])())};}catch(_0x28ced3){return console[_0x4602e9(0x1a0)](_0x28ced3),null;}}};f=d([u(0x0,r[_0x103fa9(0x1d3)])],f);function p(_0x1df724){'@babel/helpers - typeof';const _0x3a297a=_0x103fa9;return p=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3a297a(0x1bf)?function(_0x3c5304){return typeof _0x3c5304;}:function(_0x45ddb5){const _0x828694=_0x3a297a;return _0x45ddb5&&typeof Symbol=='function'&&_0x45ddb5['constructor']===Symbol&&_0x45ddb5!==Symbol['prototype']?_0x828694(0x1bf):typeof _0x45ddb5;},p(_0x1df724);}function _0x5abb(_0x48f0f5,_0x5c2723){_0x48f0f5=_0x48f0f5-0x18c;const _0x5d0590=_0x5d05();let _0x5abbc2=_0x5d0590[_0x48f0f5];return _0x5abbc2;}function m(_0x2350d6,_0x3f6445){const _0x5d9630=_0x103fa9;if(p(_0x2350d6)!='object'||!_0x2350d6)return _0x2350d6;var _0x1a2ca2=_0x2350d6[Symbol[_0x5d9630(0x19a)]];if(_0x1a2ca2!==void 0x0){var _0x4fa3ad=_0x1a2ca2[_0x5d9630(0x1a6)](_0x2350d6,_0x3f6445||_0x5d9630(0x196));if(p(_0x4fa3ad)!='object')return _0x4fa3ad;throw TypeError(_0x5d9630(0x19b));}return(_0x3f6445==='string'?String:Number)(_0x2350d6);}function h(_0x1655d0){const _0x36ef03=_0x103fa9;var _0x4c0cdd=m(_0x1655d0,_0x36ef03(0x1b0));return p(_0x4c0cdd)=='symbol'?_0x4c0cdd:_0x4c0cdd+'';}function g(_0x5de0da,_0x49013f,_0x1800a9){const _0x57bd1=_0x103fa9;return(_0x49013f=h(_0x49013f))in _0x5de0da?Object[_0x57bd1(0x1bd)](_0x5de0da,_0x49013f,{'value':_0x1800a9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5de0da[_0x49013f]=_0x1800a9,_0x5de0da;}let _=class extends r[_0x103fa9(0x192)]{constructor(_0x38ec6e=l,_0x16d6cc,_0x46b776){const _0x2f4c15=_0x103fa9;super(),this[_0x2f4c15(0x18f)]=_0x38ec6e,this['_configService']=_0x16d6cc,this[_0x2f4c15(0x1ae)]=_0x46b776;let {..._0x18bfa2}=(0x0,r[_0x2f4c15(0x195)])({},l,this['_config']);this[_0x2f4c15(0x190)]['setConfig'](_0x2f4c15(0x194),_0x18bfa2);}[_0x103fa9(0x1d4)](){this['_registerDependencies']();}[_0x103fa9(0x1d5)](){const _0xd61042=_0x103fa9;(0x0,r['registerDependencies'])(this[_0xd61042(0x1ae)],[[i[_0xd61042(0x1c1)],{'useClass':f}]]);}};g(_,_0x103fa9(0x1b1),_0x103fa9(0x19e)),g(_,'packageName',s),g(_,'version',c),_=d([(0x0,r[_0x103fa9(0x1b9)])(n[_0x103fa9(0x1a2)],i['UniverNetworkPlugin'],e[_0x103fa9(0x1c4)],t[_0x103fa9(0x1bc)]),u(0x1,r[_0x103fa9(0x1d3)]),u(0x2,(0x0,r[_0x103fa9(0x191)])(r[_0x103fa9(0x199)]))],_);let v=class extends t[_0x103fa9(0x1be)]{constructor(_0x448a09,_0x41d4dc,_0x1b8b1e,_0x4f0dec,_0x297da6){const _0x4d55a5=_0x103fa9;super(_0x448a09,_0x41d4dc,_0x1b8b1e,_0x4f0dec,_0x297da6);let _0x559744=this['_configService'][_0x4d55a5(0x1a3)](t[_0x4d55a5(0x1ab)]);this[_0x4d55a5(0x1ce)][_0x4d55a5(0x1d2)]({'interceptor':(_0x1f9a19,_0x47ce2b)=>{const _0x5a4b2c=_0x4d55a5;let _0x42a305=_0x1f9a19[_0x5a4b2c(0x1b6)];if(_0x559744!=null&&_0x559744[_0x5a4b2c(0x1ac)]){for(let _0x52aeba in _0x559744['customHeaders'])_0x42a305[_0x5a4b2c(0x1ad)](_0x52aeba,_0x559744[_0x5a4b2c(0x1ac)][_0x52aeba]);}return _0x47ce2b(_0x1f9a19);}});}async[_0x103fa9(0x1cc)](_0x37821c){const _0x4a763f=_0x103fa9;return this[_0x4a763f(0x18c)](_0x37821c);}};function _0x5d05(){const _0x3c6ba1=['send','registerHTTPInterceptor','IConfigService','onStarting','_registerDependencies','_doCreateSocket','1.0.0-alpha.8','13739957XTjDSd','_config','_configService','Inject','Plugin','next','collaboration-client-node.config','merge','default','34DNSZtx','7hrWzjQ','Injector','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','10AqiRJC','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','ILogService','error','share','UniverLicensePlugin','getConfig','ISnapshotServerService','15lZYOQC','call','639304AQHHSw','removeEventListener','@univerjs-pro/collaboration-client-node','message','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','set','_injector','Module','string','pluginName','open','3424260JCedwZ','decorate','DisposableCollection','headers','Disposable','addEventListener','DependentOn','dispose','toDisposable','UniverCollaborationClientPlugin','defineProperty','CollaborationSocketService','symbol','add','ISocketService','toStringTag','close','UniverCollaborationPlugin','32747CMizeU','2384334Tbpxjd','length','314856AljsLI','NodeCollaborationSocketService','Observable','HTTPService','createSocket','WebSocket','_httpService','getOwnPropertyDescriptor','917274LjLtqQ'];_0x5d05=function(){return _0x3c6ba1;};return _0x5d05();}v=d([u(0x0,(0x0,r[_0x103fa9(0x191)])(r[_0x103fa9(0x199)])),u(0x1,(0x0,r[_0x103fa9(0x191)])(i[_0x103fa9(0x1cb)])),u(0x2,r['IConfigService']),u(0x3,r[_0x103fa9(0x19f)]),u(0x4,e[_0x103fa9(0x1a4)])],v),Object[_0x103fa9(0x1bd)](exports,_0x103fa9(0x1c9),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x103fa9(0x1bd)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18a193=_0x3a31;(function(_0x54c57a,_0x48f3a0){const _0x21d533=_0x3a31,_0x3fb73c=_0x54c57a();while(!![]){try{const _0x18ed2c=parseInt(_0x21d533(0x17c))/0x1*(-parseInt(_0x21d533(0x196))/0x2)+parseInt(_0x21d533(0x18d))/0x3*(parseInt(_0x21d533(0x191))/0x4)+-parseInt(_0x21d533(0x178))/0x5+parseInt(_0x21d533(0x17f))/0x6+-parseInt(_0x21d533(0x198))/0x7+-parseInt(_0x21d533(0x17d))/0x8*(-parseInt(_0x21d533(0x1a0))/0x9)+-parseInt(_0x21d533(0x182))/0xa;if(_0x18ed2c===_0x48f3a0)break;else _0x3fb73c['push'](_0x3fb73c['shift']());}catch(_0x470b80){_0x3fb73c['push'](_0x3fb73c['shift']());}}}(_0x222d,0xd3dbe));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11dc4c,CollaborationSocketService as _0x168a08,UniverCollaborationClientPlugin as _0x34e41a}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x1c9592,Disposable as _0x4d6cd1,DisposableCollection as _0x29f7f8,IConfigService as _0x1099f0,ILogService as _0x5ab0a2,Inject as _0x3252d4,Injector as _0x456667,Plugin as _0x56da4f,merge as _0x2d8d9e,registerDependencies as _0x55ac2b,toDisposable as _0x30908e}from'@univerjs/core';import{HTTPService as _0x289f7e,ISocketService as _0x116327}from'@univerjs/network';import{Observable as _0x148b11,share as _0x16a162}from'rxjs';import{WebSocket as _0xb5e5ee}from'ws';import{ISnapshotServerService as _0x59507c}from'@univerjs-pro/collaboration';var b=_0x18a193(0x199),x='1.0.0-alpha.6';const S={};function C(_0x202b89,_0x26caf3){return function(_0xeef547,_0x1cb077){_0x26caf3(_0xeef547,_0x1cb077,_0x202b89);};}function w(_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8){const _0x6bf55d=_0x18a193;var _0xaa5def=arguments[_0x6bf55d(0x18b)],_0x5774c9=_0xaa5def<0x3?_0x1c1e54:_0x2bd1a8===null?_0x2bd1a8=Object[_0x6bf55d(0x17a)](_0x1c1e54,_0xbd16b9):_0x2bd1a8,_0x402526;if(typeof Reflect=='object'&&typeof Reflect[_0x6bf55d(0x18a)]==_0x6bf55d(0x194))_0x5774c9=Reflect[_0x6bf55d(0x18a)](_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8);else{for(var _0x1b88d7=_0xaee47[_0x6bf55d(0x18b)]-0x1;_0x1b88d7>=0x0;_0x1b88d7--)(_0x402526=_0xaee47[_0x1b88d7])&&(_0x5774c9=(_0xaa5def<0x3?_0x402526(_0x5774c9):_0xaa5def>0x3?_0x402526(_0x1c1e54,_0xbd16b9,_0x5774c9):_0x402526(_0x1c1e54,_0xbd16b9))||_0x5774c9);}return _0xaa5def>0x3&&_0x5774c9&&Object['defineProperty'](_0x1c1e54,_0xbd16b9,_0x5774c9),_0x5774c9;}let T=class extends _0x4d6cd1{constructor(_0x57b753){const _0x25cf65=_0x18a193;super(),this[_0x25cf65(0x18f)]=_0x57b753;}[_0x18a193(0x184)](_0x331d18){const _0xe71c98=_0x18a193;var _0x3072df;let _0x1c7d1b=((_0x3072df=this['_configService'][_0xe71c98(0x1a4)](_0x11dc4c))==null?void 0x0:_0x3072df[_0xe71c98(0x19a)])||{};try{let _0x180ff7=new _0xb5e5ee(_0x331d18,{'headers':{..._0x1c7d1b}}),_0x1f20d0=new _0x29f7f8();return{'URL':_0x331d18,'close':(_0x2d3120,_0x23db76)=>{const _0x2cd10c=_0xe71c98;_0x180ff7[_0x2cd10c(0x179)](_0x2d3120,_0x23db76),_0x1f20d0[_0x2cd10c(0x189)]();},'send':_0x3d35f2=>{const _0x1c24df=_0xe71c98;_0x180ff7[_0x1c24df(0x17e)](_0x3d35f2);},'open$':new _0x148b11(_0xcb3a12=>{const _0x755b2d=_0xe71c98;let _0x560fba=_0x11c3d=>_0xcb3a12[_0x755b2d(0x185)](_0x11c3d);_0x180ff7[_0x755b2d(0x18c)](_0x755b2d(0x18e),_0x560fba),_0x1f20d0[_0x755b2d(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener']('open',_0x560fba)));})['pipe'](_0x16a162()),'close$':new _0x148b11(_0x41c66d=>{const _0x492426=_0xe71c98;let _0x165797=_0x397d38=>_0x41c66d[_0x492426(0x185)](_0x397d38);_0x180ff7[_0x492426(0x18c)](_0x492426(0x179),_0x165797),_0x1f20d0[_0x492426(0x1a8)](_0x30908e(()=>_0x180ff7[_0x492426(0x180)](_0x492426(0x179),_0x165797)));})[_0xe71c98(0x19b)](_0x16a162()),'error$':new _0x148b11(_0x4c2ab2=>{const _0x3f3531=_0xe71c98;let _0x11df82=_0x122159=>_0x4c2ab2[_0x3f3531(0x185)](_0x122159);_0x180ff7[_0x3f3531(0x18c)](_0x3f3531(0x183),_0x11df82),_0x1f20d0[_0x3f3531(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x3f3531(0x183),_0x11df82)));})[_0xe71c98(0x19b)](_0x16a162()),'message$':new _0x148b11(_0x52a76d=>{const _0x33c798=_0xe71c98;let _0x1041d7=_0x28b87a=>_0x52a76d['next'](_0x28b87a);_0x180ff7[_0x33c798(0x18c)]('message',_0x1041d7),_0x1f20d0[_0x33c798(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x33c798(0x1a7),_0x1041d7)));})['pipe'](_0x16a162())};}catch(_0x7507d8){return console['error'](_0x7507d8),null;}}};T=w([C(0x0,_0x1099f0)],T);function E(_0x576e85){'@babel/helpers - typeof';const _0x26ff59=_0x18a193;return E=typeof Symbol==_0x26ff59(0x194)&&typeof Symbol[_0x26ff59(0x186)]==_0x26ff59(0x190)?function(_0x1358ef){return typeof _0x1358ef;}:function(_0x677cb8){const _0x5d1007=_0x26ff59;return _0x677cb8&&typeof Symbol==_0x5d1007(0x194)&&_0x677cb8['constructor']===Symbol&&_0x677cb8!==Symbol[_0x5d1007(0x19c)]?_0x5d1007(0x190):typeof _0x677cb8;},E(_0x576e85);}function D(_0x2c1dd6,_0x58d409){const _0x34c0ab=_0x18a193;if(E(_0x2c1dd6)!=_0x34c0ab(0x197)||!_0x2c1dd6)return _0x2c1dd6;var _0x2324b6=_0x2c1dd6[Symbol['toPrimitive']];if(_0x2324b6!==void 0x0){var _0x233f9d=_0x2324b6['call'](_0x2c1dd6,_0x58d409||_0x34c0ab(0x19e));if(E(_0x233f9d)!=_0x34c0ab(0x197))return _0x233f9d;throw TypeError(_0x34c0ab(0x192));}return(_0x58d409===_0x34c0ab(0x1a1)?String:Number)(_0x2c1dd6);}function O(_0xfc300e){const _0x3e14ea=_0x18a193;var _0x116765=D(_0xfc300e,'string');return E(_0x116765)==_0x3e14ea(0x190)?_0x116765:_0x116765+'';}function _0x3a31(_0x20636f,_0xac5937){_0x20636f=_0x20636f-0x178;const _0x222d49=_0x222d();let _0x3a3126=_0x222d49[_0x20636f];return _0x3a3126;}function k(_0x34ed5c,_0x5e33a6,_0x532658){return(_0x5e33a6=O(_0x5e33a6))in _0x34ed5c?Object['defineProperty'](_0x34ed5c,_0x5e33a6,{'value':_0x532658,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34ed5c[_0x5e33a6]=_0x532658,_0x34ed5c;}let A=class extends _0x56da4f{constructor(_0x565540=S,_0x2d3795,_0x5233dd){const _0x591cf2=_0x18a193;super(),this['_config']=_0x565540,this[_0x591cf2(0x18f)]=_0x2d3795,this[_0x591cf2(0x187)]=_0x5233dd;let {..._0x5bba24}=_0x2d8d9e({},S,this[_0x591cf2(0x1a2)]);this[_0x591cf2(0x18f)][_0x591cf2(0x181)](_0x591cf2(0x188),_0x5bba24);}['onStarting'](){this['_registerDependencies']();}[_0x18a193(0x1a6)](){_0x55ac2b(this['_injector'],[[_0x116327,{'useClass':T}]]);}};k(A,_0x18a193(0x19f),_0x18a193(0x193)),k(A,_0x18a193(0x1a3),b),k(A,_0x18a193(0x195),x),A=w([_0x1c9592(_0x34e41a),C(0x1,_0x1099f0),C(0x2,_0x3252d4(_0x456667))],A);let j=class extends _0x168a08{constructor(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed){const _0x4a6378=_0x18a193;super(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed);let _0x1de82e=this[_0x4a6378(0x18f)][_0x4a6378(0x1a4)](_0x11dc4c);this[_0x4a6378(0x1a5)][_0x4a6378(0x17b)]({'interceptor':(_0x1d6d45,_0x2aba96)=>{const _0x879b24=_0x4a6378;let _0x24b41d=_0x1d6d45[_0x879b24(0x1a9)];if(_0x1de82e!=null&&_0x1de82e['customHeaders']){for(let _0x39daec in _0x1de82e[_0x879b24(0x19a)])_0x24b41d['set'](_0x39daec,_0x1de82e[_0x879b24(0x19a)][_0x39daec]);}return _0x2aba96(_0x1d6d45);}});}async[_0x18a193(0x184)](_0x1751f0){const _0x44d645=_0x18a193;return this[_0x44d645(0x19d)](_0x1751f0);}};j=w([C(0x0,_0x3252d4(_0x456667)),C(0x1,_0x3252d4(_0x289f7e)),C(0x2,_0x1099f0),C(0x3,_0x5ab0a2),C(0x4,_0x59507c)],j);function _0x222d(){const _0x47b091=['object','6887867ioifRz','@univerjs-pro/collaboration-client-node','customHeaders','pipe','prototype','_doCreateSocket','default','pluginName','14038155hqpexv','string','_config','packageName','getConfig','_httpService','_registerDependencies','message','add','headers','5371885iJMETG','close','getOwnPropertyDescriptor','registerHTTPInterceptor','1799UAyctd','8fvUMnn','send','6367194Jiraie','removeEventListener','setConfig','2917050YtGYcu','error','createSocket','next','iterator','_injector','collaboration-client-node.config','dispose','decorate','length','addEventListener','66uJBRGS','open','_configService','symbol','166412bvTsSx','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','version','354RqyFKy'];_0x222d=function(){return _0x47b091;};return _0x222d();}export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x235d84=_0x12b9;(function(_0x3bcdf7,_0x1af648){const _0xb91e75=_0x12b9,_0x11e334=_0x3bcdf7();while(!![]){try{const _0x252fe2=-parseInt(_0xb91e75(0x170))/0x1*(parseInt(_0xb91e75(0x161))/0x2)+-parseInt(_0xb91e75(0x17d))/0x3+-parseInt(_0xb91e75(0x168))/0x4+-parseInt(_0xb91e75(0x15d))/0x5+parseInt(_0xb91e75(0x171))/0x6+-parseInt(_0xb91e75(0x160))/0x7*(parseInt(_0xb91e75(0x169))/0x8)+parseInt(_0xb91e75(0x187))/0x9;if(_0x252fe2===_0x1af648)break;else _0x11e334['push'](_0x11e334['shift']());}catch(_0x1ff30d){_0x11e334['push'](_0x11e334['shift']());}}}(_0x10e1,0x27b64));function _0x10e1(){const _0x3f961d=['@univerjs-pro/collaboration-client-node','headers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','customHeaders','461344dJbwak','336wuAGUY','constructor','_registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','add','prototype','1021FilZsp','238716KFOKLT','version','default','send','pipe','pluginName','close','object','_injector','decorate','string','addEventListener','444828TZvVZd','onStarting','createSocket','1.0.0-alpha.8','next','symbol','defineProperty','iterator','_configService','set','7352649jFBXiC','error','open','registerHTTPInterceptor','getConfig','_config','dispose','setConfig','collaboration-client-node.config','_doCreateSocket','call','789745XntGWc','packageName','removeEventListener','43379PkEbNM','24pliVNN','getOwnPropertyDescriptor'];_0x10e1=function(){return _0x3f961d;};return _0x10e1();}import{ISnapshotServerService as _0x453804,UniverCollaborationPlugin as _0x3f7578}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x47a581,CollaborationSocketService as _0x491a0a,UniverCollaborationClientPlugin as _0x2357c6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4e9c57}from'@univerjs-pro/license';import{DependentOn as _0x30f537,Disposable as _0x483524,DisposableCollection as _0x1b2f8c,IConfigService as _0x3a2aa7,ILogService as _0x1fd565,Inject as _0x17871c,Injector as _0x40934f,Plugin as _0x431070,merge as _0x1a204f,registerDependencies as _0x2aabdc,toDisposable as _0x4ff571}from'@univerjs/core';import{HTTPService as _0x2f01c1,ISocketService as _0x10e05e,UniverNetworkPlugin as _0x97505d}from'@univerjs/network';import{Observable as _0x5579b8,share as _0x2ccf17}from'rxjs';import{WebSocket as _0x272831}from'ws';var C=_0x235d84(0x163),w=_0x235d84(0x180);const T={};function E(_0x3ecfbd,_0x3804de){return function(_0x123805,_0x4e5fa9){_0x3804de(_0x123805,_0x4e5fa9,_0x3ecfbd);};}function D(_0x21fd4f,_0x471bbc,_0x142cc2,_0x342241){const _0x4f096c=_0x235d84;var _0x3a72a6=arguments[_0x4f096c(0x166)],_0x524c71=_0x3a72a6<0x3?_0x471bbc:_0x342241===null?_0x342241=Object[_0x4f096c(0x162)](_0x471bbc,_0x142cc2):_0x342241,_0x14e87c;if(typeof Reflect==_0x4f096c(0x178)&&typeof Reflect[_0x4f096c(0x17a)]=='function')_0x524c71=Reflect[_0x4f096c(0x17a)](_0x21fd4f,_0x471bbc,_0x142cc2,_0x342241);else{for(var _0x3ecb87=_0x21fd4f['length']-0x1;_0x3ecb87>=0x0;_0x3ecb87--)(_0x14e87c=_0x21fd4f[_0x3ecb87])&&(_0x524c71=(_0x3a72a6<0x3?_0x14e87c(_0x524c71):_0x3a72a6>0x3?_0x14e87c(_0x471bbc,_0x142cc2,_0x524c71):_0x14e87c(_0x471bbc,_0x142cc2))||_0x524c71);}return _0x3a72a6>0x3&&_0x524c71&&Object[_0x4f096c(0x183)](_0x471bbc,_0x142cc2,_0x524c71),_0x524c71;}let O=class extends _0x483524{constructor(_0x2268d2){const _0x3ccbb9=_0x235d84;super(),this[_0x3ccbb9(0x185)]=_0x2268d2;}[_0x235d84(0x17f)](_0x5d7e9e){const _0x35d1b9=_0x235d84;var _0x3d1341;let _0x1d986b=((_0x3d1341=this[_0x35d1b9(0x185)][_0x35d1b9(0x18b)](_0x47a581))==null?void 0x0:_0x3d1341[_0x35d1b9(0x167)])||{};try{let _0x2e6670=new _0x272831(_0x5d7e9e,{'headers':{..._0x1d986b}}),_0xc75773=new _0x1b2f8c();return{'URL':_0x5d7e9e,'close':(_0x32cea3,_0x3e8e3d)=>{const _0x3051a1=_0x35d1b9;_0x2e6670[_0x3051a1(0x177)](_0x32cea3,_0x3e8e3d),_0xc75773[_0x3051a1(0x18d)]();},'send':_0x4ed355=>{const _0x47485f=_0x35d1b9;_0x2e6670[_0x47485f(0x174)](_0x4ed355);},'open$':new _0x5579b8(_0x2924e7=>{const _0x55d9f3=_0x35d1b9;let _0x5014bf=_0x2d8515=>_0x2924e7[_0x55d9f3(0x181)](_0x2d8515);_0x2e6670[_0x55d9f3(0x17c)]('open',_0x5014bf),_0xc75773[_0x55d9f3(0x16e)](_0x4ff571(()=>_0x2e6670['removeEventListener'](_0x55d9f3(0x189),_0x5014bf)));})['pipe'](_0x2ccf17()),'close$':new _0x5579b8(_0x3f10c5=>{const _0x29f4cd=_0x35d1b9;let _0x3018a1=_0x584338=>_0x3f10c5[_0x29f4cd(0x181)](_0x584338);_0x2e6670[_0x29f4cd(0x17c)]('close',_0x3018a1),_0xc75773['add'](_0x4ff571(()=>_0x2e6670[_0x29f4cd(0x15f)](_0x29f4cd(0x177),_0x3018a1)));})['pipe'](_0x2ccf17()),'error$':new _0x5579b8(_0x502928=>{const _0x3cf716=_0x35d1b9;let _0x19ebf1=_0x44d9ed=>_0x502928[_0x3cf716(0x181)](_0x44d9ed);_0x2e6670[_0x3cf716(0x17c)]('error',_0x19ebf1),_0xc75773[_0x3cf716(0x16e)](_0x4ff571(()=>_0x2e6670['removeEventListener'](_0x3cf716(0x188),_0x19ebf1)));})[_0x35d1b9(0x175)](_0x2ccf17()),'message$':new _0x5579b8(_0xba82b5=>{const _0x127d2e=_0x35d1b9;let _0x184243=_0x16a895=>_0xba82b5[_0x127d2e(0x181)](_0x16a895);_0x2e6670['addEventListener']('message',_0x184243),_0xc75773[_0x127d2e(0x16e)](_0x4ff571(()=>_0x2e6670['removeEventListener']('message',_0x184243)));})[_0x35d1b9(0x175)](_0x2ccf17())};}catch(_0x207388){return console[_0x35d1b9(0x188)](_0x207388),null;}}};O=D([E(0x0,_0x3a2aa7)],O);function k(_0x4a3fe9){'@babel/helpers - typeof';const _0x36a734=_0x235d84;return k=typeof Symbol==_0x36a734(0x16d)&&typeof Symbol[_0x36a734(0x184)]==_0x36a734(0x182)?function(_0xda5b50){return typeof _0xda5b50;}:function(_0x1b104c){const _0x25385a=_0x36a734;return _0x1b104c&&typeof Symbol==_0x25385a(0x16d)&&_0x1b104c[_0x25385a(0x16a)]===Symbol&&_0x1b104c!==Symbol[_0x25385a(0x16f)]?_0x25385a(0x182):typeof _0x1b104c;},k(_0x4a3fe9);}function A(_0x2ed4bd,_0xda61a5){const _0x54550c=_0x235d84;if(k(_0x2ed4bd)!='object'||!_0x2ed4bd)return _0x2ed4bd;var _0x8ff93d=_0x2ed4bd[Symbol['toPrimitive']];if(_0x8ff93d!==void 0x0){var _0x4d7bd8=_0x8ff93d[_0x54550c(0x191)](_0x2ed4bd,_0xda61a5||_0x54550c(0x173));if(k(_0x4d7bd8)!=_0x54550c(0x178))return _0x4d7bd8;throw TypeError(_0x54550c(0x165));}return(_0xda61a5===_0x54550c(0x17b)?String:Number)(_0x2ed4bd);}function j(_0x279cec){const _0x364aba=_0x235d84;var _0x11e1dd=A(_0x279cec,_0x364aba(0x17b));return k(_0x11e1dd)==_0x364aba(0x182)?_0x11e1dd:_0x11e1dd+'';}function M(_0x3b0c98,_0x33fb95,_0x2ed841){const _0x36cc0e=_0x235d84;return(_0x33fb95=j(_0x33fb95))in _0x3b0c98?Object[_0x36cc0e(0x183)](_0x3b0c98,_0x33fb95,{'value':_0x2ed841,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b0c98[_0x33fb95]=_0x2ed841,_0x3b0c98;}let N=class extends _0x431070{constructor(_0x25ca0a=T,_0x56a079,_0x6be67a){const _0x169f81=_0x235d84;super(),this['_config']=_0x25ca0a,this[_0x169f81(0x185)]=_0x56a079,this[_0x169f81(0x179)]=_0x6be67a;let {..._0x5e38ae}=_0x1a204f({},T,this[_0x169f81(0x18c)]);this[_0x169f81(0x185)][_0x169f81(0x18e)](_0x169f81(0x18f),_0x5e38ae);}[_0x235d84(0x17e)](){const _0x581537=_0x235d84;this[_0x581537(0x16b)]();}[_0x235d84(0x16b)](){const _0xf8278b=_0x235d84;_0x2aabdc(this[_0xf8278b(0x179)],[[_0x10e05e,{'useClass':O}]]);}};function _0x12b9(_0x4c2413,_0x5275ed){_0x4c2413=_0x4c2413-0x15d;const _0x10e126=_0x10e1();let _0x12b9cb=_0x10e126[_0x4c2413];return _0x12b9cb;}M(N,_0x235d84(0x176),_0x235d84(0x16c)),M(N,_0x235d84(0x15e),C),M(N,_0x235d84(0x172),w),N=D([_0x30f537(_0x4e9c57,_0x97505d,_0x3f7578,_0x2357c6),E(0x1,_0x3a2aa7),E(0x2,_0x17871c(_0x40934f))],N);let P=class extends _0x491a0a{constructor(_0x27a71c,_0x4d6333,_0x7b3634,_0x589ee8,_0x30f2ea){const _0x47f87f=_0x235d84;super(_0x27a71c,_0x4d6333,_0x7b3634,_0x589ee8,_0x30f2ea);let _0x4ba2bb=this[_0x47f87f(0x185)]['getConfig'](_0x47a581);this['_httpService'][_0x47f87f(0x18a)]({'interceptor':(_0x26b026,_0x17e0e3)=>{const _0x4962ea=_0x47f87f;let _0xd71acf=_0x26b026[_0x4962ea(0x164)];if(_0x4ba2bb!=null&&_0x4ba2bb[_0x4962ea(0x167)]){for(let _0xdb5f59 in _0x4ba2bb['customHeaders'])_0xd71acf[_0x4962ea(0x186)](_0xdb5f59,_0x4ba2bb[_0x4962ea(0x167)][_0xdb5f59]);}return _0x17e0e3(_0x26b026);}});}async[_0x235d84(0x17f)](_0x39386d){const _0x16c536=_0x235d84;return this[_0x16c536(0x190)](_0x39386d);}};P=D([E(0x0,_0x17871c(_0x40934f)),E(0x1,_0x17871c(_0x2f01c1)),E(0x2,_0x3a2aa7),E(0x3,_0x1fd565),E(0x4,_0x453804)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18a193=_0x3a31;(function(_0x54c57a,_0x48f3a0){const _0x21d533=_0x3a31,_0x3fb73c=_0x54c57a();while(!![]){try{const _0x18ed2c=parseInt(_0x21d533(0x17c))/0x1*(-parseInt(_0x21d533(0x196))/0x2)+parseInt(_0x21d533(0x18d))/0x3*(parseInt(_0x21d533(0x191))/0x4)+-parseInt(_0x21d533(0x178))/0x5+parseInt(_0x21d533(0x17f))/0x6+-parseInt(_0x21d533(0x198))/0x7+-parseInt(_0x21d533(0x17d))/0x8*(-parseInt(_0x21d533(0x1a0))/0x9)+-parseInt(_0x21d533(0x182))/0xa;if(_0x18ed2c===_0x48f3a0)break;else _0x3fb73c['push'](_0x3fb73c['shift']());}catch(_0x470b80){_0x3fb73c['push'](_0x3fb73c['shift']());}}}(_0x222d,0xd3dbe));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11dc4c,CollaborationSocketService as _0x168a08,UniverCollaborationClientPlugin as _0x34e41a}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x1c9592,Disposable as _0x4d6cd1,DisposableCollection as _0x29f7f8,IConfigService as _0x1099f0,ILogService as _0x5ab0a2,Inject as _0x3252d4,Injector as _0x456667,Plugin as _0x56da4f,merge as _0x2d8d9e,registerDependencies as _0x55ac2b,toDisposable as _0x30908e}from'@univerjs/core';import{HTTPService as _0x289f7e,ISocketService as _0x116327}from'@univerjs/network';import{Observable as _0x148b11,share as _0x16a162}from'rxjs';import{WebSocket as _0xb5e5ee}from'ws';import{ISnapshotServerService as _0x59507c}from'@univerjs-pro/collaboration';var b=_0x18a193(0x199),x='1.0.0-alpha.6';const S={};function C(_0x202b89,_0x26caf3){return function(_0xeef547,_0x1cb077){_0x26caf3(_0xeef547,_0x1cb077,_0x202b89);};}function w(_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8){const _0x6bf55d=_0x18a193;var _0xaa5def=arguments[_0x6bf55d(0x18b)],_0x5774c9=_0xaa5def<0x3?_0x1c1e54:_0x2bd1a8===null?_0x2bd1a8=Object[_0x6bf55d(0x17a)](_0x1c1e54,_0xbd16b9):_0x2bd1a8,_0x402526;if(typeof Reflect=='object'&&typeof Reflect[_0x6bf55d(0x18a)]==_0x6bf55d(0x194))_0x5774c9=Reflect[_0x6bf55d(0x18a)](_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8);else{for(var _0x1b88d7=_0xaee47[_0x6bf55d(0x18b)]-0x1;_0x1b88d7>=0x0;_0x1b88d7--)(_0x402526=_0xaee47[_0x1b88d7])&&(_0x5774c9=(_0xaa5def<0x3?_0x402526(_0x5774c9):_0xaa5def>0x3?_0x402526(_0x1c1e54,_0xbd16b9,_0x5774c9):_0x402526(_0x1c1e54,_0xbd16b9))||_0x5774c9);}return _0xaa5def>0x3&&_0x5774c9&&Object['defineProperty'](_0x1c1e54,_0xbd16b9,_0x5774c9),_0x5774c9;}let T=class extends _0x4d6cd1{constructor(_0x57b753){const _0x25cf65=_0x18a193;super(),this[_0x25cf65(0x18f)]=_0x57b753;}[_0x18a193(0x184)](_0x331d18){const _0xe71c98=_0x18a193;var _0x3072df;let _0x1c7d1b=((_0x3072df=this['_configService'][_0xe71c98(0x1a4)](_0x11dc4c))==null?void 0x0:_0x3072df[_0xe71c98(0x19a)])||{};try{let _0x180ff7=new _0xb5e5ee(_0x331d18,{'headers':{..._0x1c7d1b}}),_0x1f20d0=new _0x29f7f8();return{'URL':_0x331d18,'close':(_0x2d3120,_0x23db76)=>{const _0x2cd10c=_0xe71c98;_0x180ff7[_0x2cd10c(0x179)](_0x2d3120,_0x23db76),_0x1f20d0[_0x2cd10c(0x189)]();},'send':_0x3d35f2=>{const _0x1c24df=_0xe71c98;_0x180ff7[_0x1c24df(0x17e)](_0x3d35f2);},'open$':new _0x148b11(_0xcb3a12=>{const _0x755b2d=_0xe71c98;let _0x560fba=_0x11c3d=>_0xcb3a12[_0x755b2d(0x185)](_0x11c3d);_0x180ff7[_0x755b2d(0x18c)](_0x755b2d(0x18e),_0x560fba),_0x1f20d0[_0x755b2d(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener']('open',_0x560fba)));})['pipe'](_0x16a162()),'close$':new _0x148b11(_0x41c66d=>{const _0x492426=_0xe71c98;let _0x165797=_0x397d38=>_0x41c66d[_0x492426(0x185)](_0x397d38);_0x180ff7[_0x492426(0x18c)](_0x492426(0x179),_0x165797),_0x1f20d0[_0x492426(0x1a8)](_0x30908e(()=>_0x180ff7[_0x492426(0x180)](_0x492426(0x179),_0x165797)));})[_0xe71c98(0x19b)](_0x16a162()),'error$':new _0x148b11(_0x4c2ab2=>{const _0x3f3531=_0xe71c98;let _0x11df82=_0x122159=>_0x4c2ab2[_0x3f3531(0x185)](_0x122159);_0x180ff7[_0x3f3531(0x18c)](_0x3f3531(0x183),_0x11df82),_0x1f20d0[_0x3f3531(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x3f3531(0x183),_0x11df82)));})[_0xe71c98(0x19b)](_0x16a162()),'message$':new _0x148b11(_0x52a76d=>{const _0x33c798=_0xe71c98;let _0x1041d7=_0x28b87a=>_0x52a76d['next'](_0x28b87a);_0x180ff7[_0x33c798(0x18c)]('message',_0x1041d7),_0x1f20d0[_0x33c798(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x33c798(0x1a7),_0x1041d7)));})['pipe'](_0x16a162())};}catch(_0x7507d8){return console['error'](_0x7507d8),null;}}};T=w([C(0x0,_0x1099f0)],T);function E(_0x576e85){'@babel/helpers - typeof';const _0x26ff59=_0x18a193;return E=typeof Symbol==_0x26ff59(0x194)&&typeof Symbol[_0x26ff59(0x186)]==_0x26ff59(0x190)?function(_0x1358ef){return typeof _0x1358ef;}:function(_0x677cb8){const _0x5d1007=_0x26ff59;return _0x677cb8&&typeof Symbol==_0x5d1007(0x194)&&_0x677cb8['constructor']===Symbol&&_0x677cb8!==Symbol[_0x5d1007(0x19c)]?_0x5d1007(0x190):typeof _0x677cb8;},E(_0x576e85);}function D(_0x2c1dd6,_0x58d409){const _0x34c0ab=_0x18a193;if(E(_0x2c1dd6)!=_0x34c0ab(0x197)||!_0x2c1dd6)return _0x2c1dd6;var _0x2324b6=_0x2c1dd6[Symbol['toPrimitive']];if(_0x2324b6!==void 0x0){var _0x233f9d=_0x2324b6['call'](_0x2c1dd6,_0x58d409||_0x34c0ab(0x19e));if(E(_0x233f9d)!=_0x34c0ab(0x197))return _0x233f9d;throw TypeError(_0x34c0ab(0x192));}return(_0x58d409===_0x34c0ab(0x1a1)?String:Number)(_0x2c1dd6);}function O(_0xfc300e){const _0x3e14ea=_0x18a193;var _0x116765=D(_0xfc300e,'string');return E(_0x116765)==_0x3e14ea(0x190)?_0x116765:_0x116765+'';}function _0x3a31(_0x20636f,_0xac5937){_0x20636f=_0x20636f-0x178;const _0x222d49=_0x222d();let _0x3a3126=_0x222d49[_0x20636f];return _0x3a3126;}function k(_0x34ed5c,_0x5e33a6,_0x532658){return(_0x5e33a6=O(_0x5e33a6))in _0x34ed5c?Object['defineProperty'](_0x34ed5c,_0x5e33a6,{'value':_0x532658,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34ed5c[_0x5e33a6]=_0x532658,_0x34ed5c;}let A=class extends _0x56da4f{constructor(_0x565540=S,_0x2d3795,_0x5233dd){const _0x591cf2=_0x18a193;super(),this['_config']=_0x565540,this[_0x591cf2(0x18f)]=_0x2d3795,this[_0x591cf2(0x187)]=_0x5233dd;let {..._0x5bba24}=_0x2d8d9e({},S,this[_0x591cf2(0x1a2)]);this[_0x591cf2(0x18f)][_0x591cf2(0x181)](_0x591cf2(0x188),_0x5bba24);}['onStarting'](){this['_registerDependencies']();}[_0x18a193(0x1a6)](){_0x55ac2b(this['_injector'],[[_0x116327,{'useClass':T}]]);}};k(A,_0x18a193(0x19f),_0x18a193(0x193)),k(A,_0x18a193(0x1a3),b),k(A,_0x18a193(0x195),x),A=w([_0x1c9592(_0x34e41a),C(0x1,_0x1099f0),C(0x2,_0x3252d4(_0x456667))],A);let j=class extends _0x168a08{constructor(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed){const _0x4a6378=_0x18a193;super(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed);let _0x1de82e=this[_0x4a6378(0x18f)][_0x4a6378(0x1a4)](_0x11dc4c);this[_0x4a6378(0x1a5)][_0x4a6378(0x17b)]({'interceptor':(_0x1d6d45,_0x2aba96)=>{const _0x879b24=_0x4a6378;let _0x24b41d=_0x1d6d45[_0x879b24(0x1a9)];if(_0x1de82e!=null&&_0x1de82e['customHeaders']){for(let _0x39daec in _0x1de82e[_0x879b24(0x19a)])_0x24b41d['set'](_0x39daec,_0x1de82e[_0x879b24(0x19a)][_0x39daec]);}return _0x2aba96(_0x1d6d45);}});}async[_0x18a193(0x184)](_0x1751f0){const _0x44d645=_0x18a193;return this[_0x44d645(0x19d)](_0x1751f0);}};j=w([C(0x0,_0x3252d4(_0x456667)),C(0x1,_0x3252d4(_0x289f7e)),C(0x2,_0x1099f0),C(0x3,_0x5ab0a2),C(0x4,_0x59507c)],j);function _0x222d(){const _0x47b091=['object','6887867ioifRz','@univerjs-pro/collaboration-client-node','customHeaders','pipe','prototype','_doCreateSocket','default','pluginName','14038155hqpexv','string','_config','packageName','getConfig','_httpService','_registerDependencies','message','add','headers','5371885iJMETG','close','getOwnPropertyDescriptor','registerHTTPInterceptor','1799UAyctd','8fvUMnn','send','6367194Jiraie','removeEventListener','setConfig','2917050YtGYcu','error','createSocket','next','iterator','_injector','collaboration-client-node.config','dispose','decorate','length','addEventListener','66uJBRGS','open','_configService','symbol','166412bvTsSx','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','version','354RqyFKy'];_0x222d=function(){return _0x47b091;};return _0x222d();}export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x235d84=_0x12b9;(function(_0x3bcdf7,_0x1af648){const _0xb91e75=_0x12b9,_0x11e334=_0x3bcdf7();while(!![]){try{const _0x252fe2=-parseInt(_0xb91e75(0x170))/0x1*(parseInt(_0xb91e75(0x161))/0x2)+-parseInt(_0xb91e75(0x17d))/0x3+-parseInt(_0xb91e75(0x168))/0x4+-parseInt(_0xb91e75(0x15d))/0x5+parseInt(_0xb91e75(0x171))/0x6+-parseInt(_0xb91e75(0x160))/0x7*(parseInt(_0xb91e75(0x169))/0x8)+parseInt(_0xb91e75(0x187))/0x9;if(_0x252fe2===_0x1af648)break;else _0x11e334['push'](_0x11e334['shift']());}catch(_0x1ff30d){_0x11e334['push'](_0x11e334['shift']());}}}(_0x10e1,0x27b64));function _0x10e1(){const _0x3f961d=['@univerjs-pro/collaboration-client-node','headers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','customHeaders','461344dJbwak','336wuAGUY','constructor','_registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','add','prototype','1021FilZsp','238716KFOKLT','version','default','send','pipe','pluginName','close','object','_injector','decorate','string','addEventListener','444828TZvVZd','onStarting','createSocket','1.0.0-alpha.8','next','symbol','defineProperty','iterator','_configService','set','7352649jFBXiC','error','open','registerHTTPInterceptor','getConfig','_config','dispose','setConfig','collaboration-client-node.config','_doCreateSocket','call','789745XntGWc','packageName','removeEventListener','43379PkEbNM','24pliVNN','getOwnPropertyDescriptor'];_0x10e1=function(){return _0x3f961d;};return _0x10e1();}import{ISnapshotServerService as _0x453804,UniverCollaborationPlugin as _0x3f7578}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x47a581,CollaborationSocketService as _0x491a0a,UniverCollaborationClientPlugin as _0x2357c6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4e9c57}from'@univerjs-pro/license';import{DependentOn as _0x30f537,Disposable as _0x483524,DisposableCollection as _0x1b2f8c,IConfigService as _0x3a2aa7,ILogService as _0x1fd565,Inject as _0x17871c,Injector as _0x40934f,Plugin as _0x431070,merge as _0x1a204f,registerDependencies as _0x2aabdc,toDisposable as _0x4ff571}from'@univerjs/core';import{HTTPService as _0x2f01c1,ISocketService as _0x10e05e,UniverNetworkPlugin as _0x97505d}from'@univerjs/network';import{Observable as _0x5579b8,share as _0x2ccf17}from'rxjs';import{WebSocket as _0x272831}from'ws';var C=_0x235d84(0x163),w=_0x235d84(0x180);const T={};function E(_0x3ecfbd,_0x3804de){return function(_0x123805,_0x4e5fa9){_0x3804de(_0x123805,_0x4e5fa9,_0x3ecfbd);};}function D(_0x21fd4f,_0x471bbc,_0x142cc2,_0x342241){const _0x4f096c=_0x235d84;var _0x3a72a6=arguments[_0x4f096c(0x166)],_0x524c71=_0x3a72a6<0x3?_0x471bbc:_0x342241===null?_0x342241=Object[_0x4f096c(0x162)](_0x471bbc,_0x142cc2):_0x342241,_0x14e87c;if(typeof Reflect==_0x4f096c(0x178)&&typeof Reflect[_0x4f096c(0x17a)]=='function')_0x524c71=Reflect[_0x4f096c(0x17a)](_0x21fd4f,_0x471bbc,_0x142cc2,_0x342241);else{for(var _0x3ecb87=_0x21fd4f['length']-0x1;_0x3ecb87>=0x0;_0x3ecb87--)(_0x14e87c=_0x21fd4f[_0x3ecb87])&&(_0x524c71=(_0x3a72a6<0x3?_0x14e87c(_0x524c71):_0x3a72a6>0x3?_0x14e87c(_0x471bbc,_0x142cc2,_0x524c71):_0x14e87c(_0x471bbc,_0x142cc2))||_0x524c71);}return _0x3a72a6>0x3&&_0x524c71&&Object[_0x4f096c(0x183)](_0x471bbc,_0x142cc2,_0x524c71),_0x524c71;}let O=class extends _0x483524{constructor(_0x2268d2){const _0x3ccbb9=_0x235d84;super(),this[_0x3ccbb9(0x185)]=_0x2268d2;}[_0x235d84(0x17f)](_0x5d7e9e){const _0x35d1b9=_0x235d84;var _0x3d1341;let _0x1d986b=((_0x3d1341=this[_0x35d1b9(0x185)][_0x35d1b9(0x18b)](_0x47a581))==null?void 0x0:_0x3d1341[_0x35d1b9(0x167)])||{};try{let _0x2e6670=new _0x272831(_0x5d7e9e,{'headers':{..._0x1d986b}}),_0xc75773=new _0x1b2f8c();return{'URL':_0x5d7e9e,'close':(_0x32cea3,_0x3e8e3d)=>{const _0x3051a1=_0x35d1b9;_0x2e6670[_0x3051a1(0x177)](_0x32cea3,_0x3e8e3d),_0xc75773[_0x3051a1(0x18d)]();},'send':_0x4ed355=>{const _0x47485f=_0x35d1b9;_0x2e6670[_0x47485f(0x174)](_0x4ed355);},'open$':new _0x5579b8(_0x2924e7=>{const _0x55d9f3=_0x35d1b9;let _0x5014bf=_0x2d8515=>_0x2924e7[_0x55d9f3(0x181)](_0x2d8515);_0x2e6670[_0x55d9f3(0x17c)]('open',_0x5014bf),_0xc75773[_0x55d9f3(0x16e)](_0x4ff571(()=>_0x2e6670['removeEventListener'](_0x55d9f3(0x189),_0x5014bf)));})['pipe'](_0x2ccf17()),'close$':new _0x5579b8(_0x3f10c5=>{const _0x29f4cd=_0x35d1b9;let _0x3018a1=_0x584338=>_0x3f10c5[_0x29f4cd(0x181)](_0x584338);_0x2e6670[_0x29f4cd(0x17c)]('close',_0x3018a1),_0xc75773['add'](_0x4ff571(()=>_0x2e6670[_0x29f4cd(0x15f)](_0x29f4cd(0x177),_0x3018a1)));})['pipe'](_0x2ccf17()),'error$':new _0x5579b8(_0x502928=>{const _0x3cf716=_0x35d1b9;let _0x19ebf1=_0x44d9ed=>_0x502928[_0x3cf716(0x181)](_0x44d9ed);_0x2e6670[_0x3cf716(0x17c)]('error',_0x19ebf1),_0xc75773[_0x3cf716(0x16e)](_0x4ff571(()=>_0x2e6670['removeEventListener'](_0x3cf716(0x188),_0x19ebf1)));})[_0x35d1b9(0x175)](_0x2ccf17()),'message$':new _0x5579b8(_0xba82b5=>{const _0x127d2e=_0x35d1b9;let _0x184243=_0x16a895=>_0xba82b5[_0x127d2e(0x181)](_0x16a895);_0x2e6670['addEventListener']('message',_0x184243),_0xc75773[_0x127d2e(0x16e)](_0x4ff571(()=>_0x2e6670['removeEventListener']('message',_0x184243)));})[_0x35d1b9(0x175)](_0x2ccf17())};}catch(_0x207388){return console[_0x35d1b9(0x188)](_0x207388),null;}}};O=D([E(0x0,_0x3a2aa7)],O);function k(_0x4a3fe9){'@babel/helpers - typeof';const _0x36a734=_0x235d84;return k=typeof Symbol==_0x36a734(0x16d)&&typeof Symbol[_0x36a734(0x184)]==_0x36a734(0x182)?function(_0xda5b50){return typeof _0xda5b50;}:function(_0x1b104c){const _0x25385a=_0x36a734;return _0x1b104c&&typeof Symbol==_0x25385a(0x16d)&&_0x1b104c[_0x25385a(0x16a)]===Symbol&&_0x1b104c!==Symbol[_0x25385a(0x16f)]?_0x25385a(0x182):typeof _0x1b104c;},k(_0x4a3fe9);}function A(_0x2ed4bd,_0xda61a5){const _0x54550c=_0x235d84;if(k(_0x2ed4bd)!='object'||!_0x2ed4bd)return _0x2ed4bd;var _0x8ff93d=_0x2ed4bd[Symbol['toPrimitive']];if(_0x8ff93d!==void 0x0){var _0x4d7bd8=_0x8ff93d[_0x54550c(0x191)](_0x2ed4bd,_0xda61a5||_0x54550c(0x173));if(k(_0x4d7bd8)!=_0x54550c(0x178))return _0x4d7bd8;throw TypeError(_0x54550c(0x165));}return(_0xda61a5===_0x54550c(0x17b)?String:Number)(_0x2ed4bd);}function j(_0x279cec){const _0x364aba=_0x235d84;var _0x11e1dd=A(_0x279cec,_0x364aba(0x17b));return k(_0x11e1dd)==_0x364aba(0x182)?_0x11e1dd:_0x11e1dd+'';}function M(_0x3b0c98,_0x33fb95,_0x2ed841){const _0x36cc0e=_0x235d84;return(_0x33fb95=j(_0x33fb95))in _0x3b0c98?Object[_0x36cc0e(0x183)](_0x3b0c98,_0x33fb95,{'value':_0x2ed841,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b0c98[_0x33fb95]=_0x2ed841,_0x3b0c98;}let N=class extends _0x431070{constructor(_0x25ca0a=T,_0x56a079,_0x6be67a){const _0x169f81=_0x235d84;super(),this['_config']=_0x25ca0a,this[_0x169f81(0x185)]=_0x56a079,this[_0x169f81(0x179)]=_0x6be67a;let {..._0x5e38ae}=_0x1a204f({},T,this[_0x169f81(0x18c)]);this[_0x169f81(0x185)][_0x169f81(0x18e)](_0x169f81(0x18f),_0x5e38ae);}[_0x235d84(0x17e)](){const _0x581537=_0x235d84;this[_0x581537(0x16b)]();}[_0x235d84(0x16b)](){const _0xf8278b=_0x235d84;_0x2aabdc(this[_0xf8278b(0x179)],[[_0x10e05e,{'useClass':O}]]);}};function _0x12b9(_0x4c2413,_0x5275ed){_0x4c2413=_0x4c2413-0x15d;const _0x10e126=_0x10e1();let _0x12b9cb=_0x10e126[_0x4c2413];return _0x12b9cb;}M(N,_0x235d84(0x176),_0x235d84(0x16c)),M(N,_0x235d84(0x15e),C),M(N,_0x235d84(0x172),w),N=D([_0x30f537(_0x4e9c57,_0x97505d,_0x3f7578,_0x2357c6),E(0x1,_0x3a2aa7),E(0x2,_0x17871c(_0x40934f))],N);let P=class extends _0x491a0a{constructor(_0x27a71c,_0x4d6333,_0x7b3634,_0x589ee8,_0x30f2ea){const _0x47f87f=_0x235d84;super(_0x27a71c,_0x4d6333,_0x7b3634,_0x589ee8,_0x30f2ea);let _0x4ba2bb=this[_0x47f87f(0x185)]['getConfig'](_0x47a581);this['_httpService'][_0x47f87f(0x18a)]({'interceptor':(_0x26b026,_0x17e0e3)=>{const _0x4962ea=_0x47f87f;let _0xd71acf=_0x26b026[_0x4962ea(0x164)];if(_0x4ba2bb!=null&&_0x4ba2bb[_0x4962ea(0x167)]){for(let _0xdb5f59 in _0x4ba2bb['customHeaders'])_0xd71acf[_0x4962ea(0x186)](_0xdb5f59,_0x4ba2bb[_0x4962ea(0x167)][_0xdb5f59]);}return _0x17e0e3(_0x26b026);}});}async[_0x235d84(0x17f)](_0x39386d){const _0x16c536=_0x235d84;return this[_0x16c536(0x190)](_0x39386d);}};P=D([E(0x0,_0x17871c(_0x40934f)),E(0x1,_0x17871c(_0x2f01c1)),E(0x2,_0x3a2aa7),E(0x3,_0x1fd565),E(0x4,_0x453804)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x32ca89,_0x271e14){const _0x444fca=_0x459f,_0x2c1b3d=_0x32ca89();while(!![]){try{const _0x523b0a=-parseInt(_0x444fca(0x171))/0x1+parseInt(_0x444fca(0x18d))/0x2*(-parseInt(_0x444fca(0x1a2))/0x3)+-parseInt(_0x444fca(0x16a))/0x4+parseInt(_0x444fca(0x194))/0x5+-parseInt(_0x444fca(0x196))/0x6+-parseInt(_0x444fca(0x189))/0x7+-parseInt(_0x444fca(0x199))/0x8*(-parseInt(_0x444fca(0x185))/0x9);if(_0x523b0a===_0x271e14)break;else _0x2c1b3d['push'](_0x2c1b3d['shift']());}catch(_0x5049ff){_0x2c1b3d['push'](_0x2c1b3d['shift']());}}}(_0x4bfb,0x1bda1),function(_0x17bb52,_0x187879){const _0x30aa87=_0x459f;typeof exports==_0x30aa87(0x1aa)&&typeof module<'u'?_0x187879(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x30aa87(0x177)&&define[_0x30aa87(0x1ac)]?define(['exports',_0x30aa87(0x195),_0x30aa87(0x190),'@univerjs/network',_0x30aa87(0x17f),_0x30aa87(0x173)],_0x187879):(_0x17bb52=typeof globalThis<'u'?globalThis:_0x17bb52||self,_0x187879(_0x17bb52['UniverProCollaborationClientNode']={},_0x17bb52[_0x30aa87(0x163)],_0x17bb52[_0x30aa87(0x188)],_0x17bb52[_0x30aa87(0x184)],_0x17bb52[_0x30aa87(0x17f)],_0x17bb52[_0x30aa87(0x1a1)]));}(this,function(_0x2c4f20,_0x1d9abf,_0x1a4686,_0x4d2c0b,_0x275aef,_0x267b7c){const _0x1b76d2=_0x459f;Object[_0x1b76d2(0x19e)](_0x2c4f20,Symbol[_0x1b76d2(0x179)],{'value':_0x1b76d2(0x1a3)});var _0x2ecbee=(_0x1940bf,_0x1e6afc)=>()=>(_0x1e6afc||(_0x1940bf((_0x1e6afc={'exports':{}})[_0x1b76d2(0x17d)],_0x1e6afc),_0x1940bf=null),_0x1e6afc[_0x1b76d2(0x17d)]),_0x914d2b='@univerjs-pro/collaboration-client-node',_0x169a1b=_0x1b76d2(0x19c);let _0x214ff4={};var _0x4389bb=_0x2ecbee((_0x50768b,_0x5c0d99)=>{const _0x54cb2f=_0x1b76d2;_0x5c0d99[_0x54cb2f(0x17d)]=function(){const _0x104bcb=_0x54cb2f;throw Error(_0x104bcb(0x191));};})();function _0x2ffb05(_0xf82c49,_0x995366){return function(_0x219c8d,_0x11c046){_0x995366(_0x219c8d,_0x11c046,_0xf82c49);};}function _0x1bd92d(_0x1ffbc8,_0x5af49b,_0x576305,_0x29a3ae){const _0x5ce533=_0x1b76d2;var _0x280e16=arguments['length'],_0x3aa3e8=_0x280e16<0x3?_0x5af49b:_0x29a3ae===null?_0x29a3ae=Object[_0x5ce533(0x17c)](_0x5af49b,_0x576305):_0x29a3ae,_0x49c96a;if(typeof Reflect==_0x5ce533(0x1aa)&&typeof Reflect['decorate']==_0x5ce533(0x177))_0x3aa3e8=Reflect[_0x5ce533(0x172)](_0x1ffbc8,_0x5af49b,_0x576305,_0x29a3ae);else{for(var _0x2661bb=_0x1ffbc8['length']-0x1;_0x2661bb>=0x0;_0x2661bb--)(_0x49c96a=_0x1ffbc8[_0x2661bb])&&(_0x3aa3e8=(_0x280e16<0x3?_0x49c96a(_0x3aa3e8):_0x280e16>0x3?_0x49c96a(_0x5af49b,_0x576305,_0x3aa3e8):_0x49c96a(_0x5af49b,_0x576305))||_0x3aa3e8);}return _0x280e16>0x3&&_0x3aa3e8&&Object['defineProperty'](_0x5af49b,_0x576305,_0x3aa3e8),_0x3aa3e8;}let _0x2ca224=class extends _0x1a4686['Disposable']{constructor(_0x3d5068){super(),this['_configService']=_0x3d5068;}['createSocket'](_0x28853e){const _0x863591=_0x1b76d2;var _0x4aae9b;let _0x13a2fa=((_0x4aae9b=this['_configService'][_0x863591(0x182)](_0x1d9abf[_0x863591(0x19f)]))==null?void 0x0:_0x4aae9b[_0x863591(0x18a)])||{};try{let _0x43bd9a=new _0x4389bb['WebSocket'](_0x28853e,{'headers':{..._0x13a2fa}}),_0x551175=new _0x1a4686[(_0x863591(0x16f))]();return{'URL':_0x28853e,'close':(_0x1b810a,_0x28b00f)=>{const _0x2c6c1e=_0x863591;_0x43bd9a[_0x2c6c1e(0x1a0)](_0x1b810a,_0x28b00f),_0x551175[_0x2c6c1e(0x15e)]();},'send':_0x573107=>{const _0x1e98ec=_0x863591;_0x43bd9a[_0x1e98ec(0x160)](_0x573107);},'open$':new _0x275aef['Observable'](_0x367d68=>{const _0x45df5e=_0x863591;let _0x58d0e5=_0x4a716f=>_0x367d68[_0x45df5e(0x187)](_0x4a716f);_0x43bd9a[_0x45df5e(0x164)](_0x45df5e(0x18c),_0x58d0e5),_0x551175[_0x45df5e(0x16c)]((0x0,_0x1a4686[_0x45df5e(0x1a8)])(()=>_0x43bd9a[_0x45df5e(0x178)]('open',_0x58d0e5)));})['pipe']((0x0,_0x275aef[_0x863591(0x16e)])()),'close$':new _0x275aef[(_0x863591(0x18b))](_0x280934=>{const _0x5d33ef=_0x863591;let _0x5e144c=_0x171f7e=>_0x280934[_0x5d33ef(0x187)](_0x171f7e);_0x43bd9a[_0x5d33ef(0x164)](_0x5d33ef(0x1a0),_0x5e144c),_0x551175[_0x5d33ef(0x16c)]((0x0,_0x1a4686[_0x5d33ef(0x1a8)])(()=>_0x43bd9a['removeEventListener']('close',_0x5e144c)));})[_0x863591(0x197)]((0x0,_0x275aef['share'])()),'error$':new _0x275aef[(_0x863591(0x18b))](_0xf9bd36=>{const _0x1e2bdb=_0x863591;let _0x5e5554=_0x65af32=>_0xf9bd36['next'](_0x65af32);_0x43bd9a[_0x1e2bdb(0x164)](_0x1e2bdb(0x17e),_0x5e5554),_0x551175[_0x1e2bdb(0x16c)]((0x0,_0x1a4686['toDisposable'])(()=>_0x43bd9a['removeEventListener'](_0x1e2bdb(0x17e),_0x5e5554)));})[_0x863591(0x197)]((0x0,_0x275aef[_0x863591(0x16e)])()),'message$':new _0x275aef[(_0x863591(0x18b))](_0x32920b=>{const _0x131f47=_0x863591;let _0x3624f1=_0x290705=>_0x32920b[_0x131f47(0x187)](_0x290705);_0x43bd9a['addEventListener'](_0x131f47(0x186),_0x3624f1),_0x551175[_0x131f47(0x16c)]((0x0,_0x1a4686[_0x131f47(0x1a8)])(()=>_0x43bd9a[_0x131f47(0x178)](_0x131f47(0x186),_0x3624f1)));})[_0x863591(0x197)]((0x0,_0x275aef[_0x863591(0x16e)])())};}catch(_0x54d550){return console[_0x863591(0x17e)](_0x54d550),null;}}};_0x2ca224=_0x1bd92d([_0x2ffb05(0x0,_0x1a4686[_0x1b76d2(0x19d)])],_0x2ca224);function _0xd19f69(_0x43c103){'@babel/helpers - typeof';const _0x231165=_0x1b76d2;return _0xd19f69=typeof Symbol=='function'&&typeof Symbol[_0x231165(0x17a)]==_0x231165(0x176)?function(_0x4eeb0b){return typeof _0x4eeb0b;}:function(_0x2202c5){const _0x4fedbf=_0x231165;return _0x2202c5&&typeof Symbol==_0x4fedbf(0x177)&&_0x2202c5[_0x4fedbf(0x1a5)]===Symbol&&_0x2202c5!==Symbol[_0x4fedbf(0x1a9)]?_0x4fedbf(0x176):typeof _0x2202c5;},_0xd19f69(_0x43c103);}function _0x520de7(_0x186295,_0x5e1675){const _0x28b526=_0x1b76d2;if(_0xd19f69(_0x186295)!=_0x28b526(0x1aa)||!_0x186295)return _0x186295;var _0x41efcd=_0x186295[Symbol[_0x28b526(0x181)]];if(_0x41efcd!==void 0x0){var _0x33cb26=_0x41efcd['call'](_0x186295,_0x5e1675||_0x28b526(0x198));if(_0xd19f69(_0x33cb26)!='object')return _0x33cb26;throw TypeError(_0x28b526(0x19b));}return(_0x5e1675===_0x28b526(0x193)?String:Number)(_0x186295);}function _0x1aa885(_0x59d374){const _0x31396f=_0x1b76d2;var _0x49c3f5=_0x520de7(_0x59d374,_0x31396f(0x193));return _0xd19f69(_0x49c3f5)==_0x31396f(0x176)?_0x49c3f5:_0x49c3f5+'';}function _0x34cec7(_0x3a8fe9,_0x8bdb01,_0x1aad33){const _0x485587=_0x1b76d2;return(_0x8bdb01=_0x1aa885(_0x8bdb01))in _0x3a8fe9?Object[_0x485587(0x19e)](_0x3a8fe9,_0x8bdb01,{'value':_0x1aad33,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a8fe9[_0x8bdb01]=_0x1aad33,_0x3a8fe9;}let _0x5880ef=class extends _0x1a4686['Plugin']{constructor(_0x5675f3=_0x214ff4,_0x46bc05,_0x344681){const _0x45a9d9=_0x1b76d2;super(),this[_0x45a9d9(0x18f)]=_0x5675f3,this[_0x45a9d9(0x192)]=_0x46bc05,this[_0x45a9d9(0x16d)]=_0x344681;let {..._0x31bec9}=(0x0,_0x1a4686[_0x45a9d9(0x180)])({},_0x214ff4,this['_config']);this[_0x45a9d9(0x192)][_0x45a9d9(0x18e)](_0x45a9d9(0x16b),_0x31bec9);}[_0x1b76d2(0x183)](){const _0x274305=_0x1b76d2;this[_0x274305(0x166)]();}[_0x1b76d2(0x166)](){const _0x471126=_0x1b76d2;(0x0,_0x1a4686['registerDependencies'])(this['_injector'],[[_0x4d2c0b[_0x471126(0x1ad)],{'useClass':_0x2ca224}]]);}};_0x34cec7(_0x5880ef,_0x1b76d2(0x161),_0x1b76d2(0x1a7)),_0x34cec7(_0x5880ef,_0x1b76d2(0x1a4),_0x914d2b),_0x34cec7(_0x5880ef,'version',_0x169a1b),_0x5880ef=_0x1bd92d([(0x0,_0x1a4686[_0x1b76d2(0x17b)])(_0x1d9abf[_0x1b76d2(0x162)]),_0x2ffb05(0x1,_0x1a4686[_0x1b76d2(0x19d)]),_0x2ffb05(0x2,(0x0,_0x1a4686['Inject'])(_0x1a4686[_0x1b76d2(0x19a)]))],_0x5880ef);let _0x45efb1=class extends _0x1d9abf[_0x1b76d2(0x168)]{constructor(_0x8d9bee,_0x55127b,_0x49ab77,_0x1ab4da,_0x5e546f){const _0x535a4e=_0x1b76d2;super(_0x8d9bee,_0x55127b,_0x49ab77,_0x1ab4da,_0x5e546f);let _0x4ef3c6=this['_configService'][_0x535a4e(0x182)](_0x1d9abf[_0x535a4e(0x19f)]);this['_httpService'][_0x535a4e(0x165)]({'interceptor':(_0x42d87a,_0xd75ac5)=>{const _0x35b94d=_0x535a4e;let _0x44ff14=_0x42d87a[_0x35b94d(0x1ab)];if(_0x4ef3c6!=null&&_0x4ef3c6[_0x35b94d(0x18a)]){for(let _0x2eee27 in _0x4ef3c6[_0x35b94d(0x18a)])_0x44ff14[_0x35b94d(0x169)](_0x2eee27,_0x4ef3c6['customHeaders'][_0x2eee27]);}return _0xd75ac5(_0x42d87a);}});}async[_0x1b76d2(0x170)](_0x28c104){const _0x35ccc4=_0x1b76d2;return this[_0x35ccc4(0x1a6)](_0x28c104);}};_0x45efb1=_0x1bd92d([_0x2ffb05(0x0,(0x0,_0x1a4686['Inject'])(_0x1a4686[_0x1b76d2(0x19a)])),_0x2ffb05(0x1,(0x0,_0x1a4686['Inject'])(_0x4d2c0b['HTTPService'])),_0x2ffb05(0x2,_0x1a4686[_0x1b76d2(0x19d)]),_0x2ffb05(0x3,_0x1a4686[_0x1b76d2(0x175)]),_0x2ffb05(0x4,_0x267b7c[_0x1b76d2(0x174)])],_0x45efb1),Object[_0x1b76d2(0x19e)](_0x2c4f20,_0x1b76d2(0x15f),{'enumerable':!0x0,'get':function(){return _0x45efb1;}}),Object[_0x1b76d2(0x19e)](_0x2c4f20,_0x1b76d2(0x167),{'enumerable':!0x0,'get':function(){return _0x5880ef;}});}));function _0x459f(_0x3a8283,_0x2cf229){_0x3a8283=_0x3a8283-0x15e;const _0x4bfb7a=_0x4bfb();let _0x459fb3=_0x4bfb7a[_0x3a8283];return _0x459fb3;}function _0x4bfb(){const _0x2df6d9=['exports','error','rxjs','merge','toPrimitive','getConfig','onStarting','UniverNetwork','93348Ecnctx','message','next','UniverCore','1370502wJoBah','customHeaders','Observable','open','13418IgCUev','setConfig','_config','@univerjs/core','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','_configService','string','773345ypkEsG','@univerjs-pro/collaboration-client','1351074Ucmdxt','pipe','default','568oJIrpr','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1.0.0-alpha.6','IConfigService','defineProperty','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','close','UniverProCollaboration','39FmmzZt','Module','packageName','constructor','_doCreateSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toDisposable','prototype','object','headers','amd','ISocketService','dispose','NodeCollaborationSocketService','send','pluginName','UniverCollaborationClientPlugin','UniverProCollaborationClient','addEventListener','registerHTTPInterceptor','_registerDependencies','UniverCollaborationClientNodePlugin','CollaborationSocketService','set','871912PODJTT','collaboration-client-node.config','add','_injector','share','DisposableCollection','createSocket','50840etwteO','decorate','@univerjs-pro/collaboration','ISnapshotServerService','ILogService','symbol','function','removeEventListener','toStringTag','iterator','DependentOn','getOwnPropertyDescriptor'];_0x4bfb=function(){return _0x2df6d9;};return _0x4bfb();}
1
+ function _0x5343(_0x1f4e5a,_0x29df12){_0x1f4e5a=_0x1f4e5a-0xe8;const _0x1e480d=_0x1e48();let _0x5343cf=_0x1e480d[_0x1f4e5a];return _0x5343cf;}function _0x1e48(){const _0xb3db89=['ILogService','_config','createSocket','toDisposable','pipe','constructor','3069NfTdub','_injector','share','next','add','DisposableCollection','Injector','error','Observable','HTTPService','UniverCore','object','IConfigService','_registerDependencies','15jvgJLq','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','registerHTTPInterceptor','exports','setConfig','1.0.0-alpha.8','57260UnRibU','defineProperty','Disposable','dispose','WebSocket','getConfig','4220304KLZEXp','ISnapshotServerService','set','message','addEventListener','3918928RGVZCP','amd','@univerjs/network','collaboration-client-node.config','ISocketService','1835811DmCfEe','505964ZpqAgb','string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','headers','rxjs','close','UniverProLicense','90ForKwW','call','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','length','Plugin','UniverNetworkPlugin','UniverCollaborationPlugin','@univerjs/core','removeEventListener','UniverNetwork','UniverProCollaborationClient','function','@univerjs-pro/collaboration-client-node','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','6522194OaNiEa','pluginName','_doCreateSocket','merge','customHeaders','28584oAKPnw','getOwnPropertyDescriptor','open','_configService','Inject','decorate','symbol','UniverProCollaborationClientNode','@univerjs-pro/collaboration'];_0x1e48=function(){return _0xb3db89;};return _0x1e48();}(function(_0x167937,_0x10b1b5){const _0x44fe39=_0x5343,_0xa60000=_0x167937();while(!![]){try{const _0xb634a1=-parseInt(_0x44fe39(0x12a))/0x1*(parseInt(_0x44fe39(0x117))/0x2)+-parseInt(_0x44fe39(0x10f))/0x3+parseInt(_0x44fe39(0x110))/0x4*(parseInt(_0x44fe39(0xf9))/0x5)+parseInt(_0x44fe39(0x105))/0x6+-parseInt(_0x44fe39(0x125))/0x7+parseInt(_0x44fe39(0x10a))/0x8+-parseInt(_0x44fe39(0xeb))/0x9*(-parseInt(_0x44fe39(0xff))/0xa);if(_0xb634a1===_0x10b1b5)break;else _0xa60000['push'](_0xa60000['shift']());}catch(_0x117bd4){_0xa60000['push'](_0xa60000['shift']());}}}(_0x1e48,0xa9c22),function(_0x366c28,_0x253f60){const _0x2764e0=_0x5343;typeof exports==_0x2764e0(0xf6)&&typeof module<'u'?_0x253f60(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define=='function'&&define[_0x2764e0(0x10b)]?define(['exports',_0x2764e0(0x132),'@univerjs-pro/collaboration-client','@univerjs-pro/license',_0x2764e0(0x11e),_0x2764e0(0x10c),_0x2764e0(0x114)],_0x253f60):(_0x366c28=typeof globalThis<'u'?globalThis:_0x366c28||self,_0x253f60(_0x366c28[_0x2764e0(0x131)]={},_0x366c28['UniverProCollaboration'],_0x366c28[_0x2764e0(0x121)],_0x366c28[_0x2764e0(0x116)],_0x366c28[_0x2764e0(0xf5)],_0x366c28[_0x2764e0(0x120)],_0x366c28[_0x2764e0(0x114)]));}(this,function(_0x4eb2d7,_0x313316,_0x2f2bab,_0x4425a0,_0x14091b,_0x579e63,_0x54977b){const _0x21f81a=_0x5343;Object[_0x21f81a(0x100)](_0x4eb2d7,Symbol['toStringTag'],{'value':'Module'});var _0x62281b=(_0x96fbd9,_0x326127)=>()=>(_0x326127||(_0x96fbd9((_0x326127={'exports':{}})[_0x21f81a(0xfc)],_0x326127),_0x96fbd9=null),_0x326127[_0x21f81a(0xfc)]),_0x5c05e7=_0x21f81a(0x123),_0x44e493=_0x21f81a(0xfe);let _0x1dd696={};var _0x3823d2=_0x62281b((_0x4c8815,_0x2f23ad)=>{const _0x4a0b00=_0x21f81a;_0x2f23ad[_0x4a0b00(0xfc)]=function(){const _0x42a174=_0x4a0b00;throw Error(_0x42a174(0xfa));};})();function _0x1bfc97(_0x4f303d,_0x3a6665){return function(_0x36dfe0,_0x44dc7f){_0x3a6665(_0x36dfe0,_0x44dc7f,_0x4f303d);};}function _0x2189bf(_0x2a8870,_0x193438,_0x256ddb,_0x283e41){const _0x31cc03=_0x21f81a;var _0x443a30=arguments[_0x31cc03(0x11a)],_0x222795=_0x443a30<0x3?_0x193438:_0x283e41===null?_0x283e41=Object[_0x31cc03(0x12b)](_0x193438,_0x256ddb):_0x283e41,_0x285bf0;if(typeof Reflect==_0x31cc03(0xf6)&&typeof Reflect['decorate']=='function')_0x222795=Reflect[_0x31cc03(0x12f)](_0x2a8870,_0x193438,_0x256ddb,_0x283e41);else{for(var _0x93ab57=_0x2a8870[_0x31cc03(0x11a)]-0x1;_0x93ab57>=0x0;_0x93ab57--)(_0x285bf0=_0x2a8870[_0x93ab57])&&(_0x222795=(_0x443a30<0x3?_0x285bf0(_0x222795):_0x443a30>0x3?_0x285bf0(_0x193438,_0x256ddb,_0x222795):_0x285bf0(_0x193438,_0x256ddb))||_0x222795);}return _0x443a30>0x3&&_0x222795&&Object['defineProperty'](_0x193438,_0x256ddb,_0x222795),_0x222795;}let _0x4c2a0c=class extends _0x14091b[_0x21f81a(0x101)]{constructor(_0x3113a1){const _0x22f2b5=_0x21f81a;super(),this[_0x22f2b5(0x12d)]=_0x3113a1;}[_0x21f81a(0x135)](_0x43b667){const _0xd233b1=_0x21f81a;var _0x49cb97;let _0xb28b85=((_0x49cb97=this['_configService'][_0xd233b1(0x104)](_0x2f2bab[_0xd233b1(0x124)]))==null?void 0x0:_0x49cb97['customHeaders'])||{};try{let _0x432375=new _0x3823d2[(_0xd233b1(0x103))](_0x43b667,{'headers':{..._0xb28b85}}),_0x4aae09=new _0x14091b[(_0xd233b1(0xf0))]();return{'URL':_0x43b667,'close':(_0x500d87,_0x383e72)=>{const _0x425607=_0xd233b1;_0x432375[_0x425607(0x115)](_0x500d87,_0x383e72),_0x4aae09[_0x425607(0x102)]();},'send':_0x46482c=>{_0x432375['send'](_0x46482c);},'open$':new _0x54977b['Observable'](_0x2b9946=>{const _0x139d4f=_0xd233b1;let _0x4a1cd4=_0x309a3a=>_0x2b9946[_0x139d4f(0xee)](_0x309a3a);_0x432375[_0x139d4f(0x109)](_0x139d4f(0x12c),_0x4a1cd4),_0x4aae09[_0x139d4f(0xef)]((0x0,_0x14091b['toDisposable'])(()=>_0x432375[_0x139d4f(0x11f)](_0x139d4f(0x12c),_0x4a1cd4)));})['pipe']((0x0,_0x54977b[_0xd233b1(0xed)])()),'close$':new _0x54977b[(_0xd233b1(0xf3))](_0x3ade60=>{const _0x50cb0c=_0xd233b1;let _0x440e92=_0x1aafd2=>_0x3ade60[_0x50cb0c(0xee)](_0x1aafd2);_0x432375[_0x50cb0c(0x109)](_0x50cb0c(0x115),_0x440e92),_0x4aae09[_0x50cb0c(0xef)]((0x0,_0x14091b[_0x50cb0c(0xe8)])(()=>_0x432375[_0x50cb0c(0x11f)](_0x50cb0c(0x115),_0x440e92)));})[_0xd233b1(0xe9)]((0x0,_0x54977b[_0xd233b1(0xed)])()),'error$':new _0x54977b['Observable'](_0x3b201d=>{const _0x42a517=_0xd233b1;let _0x2d3c5c=_0x2e91f0=>_0x3b201d[_0x42a517(0xee)](_0x2e91f0);_0x432375[_0x42a517(0x109)]('error',_0x2d3c5c),_0x4aae09['add']((0x0,_0x14091b[_0x42a517(0xe8)])(()=>_0x432375[_0x42a517(0x11f)]('error',_0x2d3c5c)));})[_0xd233b1(0xe9)]((0x0,_0x54977b[_0xd233b1(0xed)])()),'message$':new _0x54977b[(_0xd233b1(0xf3))](_0x1b4ccb=>{const _0x37be03=_0xd233b1;let _0x4d9bd3=_0x467f7f=>_0x1b4ccb[_0x37be03(0xee)](_0x467f7f);_0x432375[_0x37be03(0x109)](_0x37be03(0x108),_0x4d9bd3),_0x4aae09['add']((0x0,_0x14091b[_0x37be03(0xe8)])(()=>_0x432375[_0x37be03(0x11f)](_0x37be03(0x108),_0x4d9bd3)));})['pipe']((0x0,_0x54977b[_0xd233b1(0xed)])())};}catch(_0x50bbe6){return console[_0xd233b1(0xf2)](_0x50bbe6),null;}}};_0x4c2a0c=_0x2189bf([_0x1bfc97(0x0,_0x14091b[_0x21f81a(0xf7)])],_0x4c2a0c);function _0x48900e(_0x47cc31){'@babel/helpers - typeof';const _0x4fd0a3=_0x21f81a;return _0x48900e=typeof Symbol==_0x4fd0a3(0x122)&&typeof Symbol['iterator']==_0x4fd0a3(0x130)?function(_0xe2dfd3){return typeof _0xe2dfd3;}:function(_0x528d88){const _0x5cddbb=_0x4fd0a3;return _0x528d88&&typeof Symbol==_0x5cddbb(0x122)&&_0x528d88[_0x5cddbb(0xea)]===Symbol&&_0x528d88!==Symbol['prototype']?_0x5cddbb(0x130):typeof _0x528d88;},_0x48900e(_0x47cc31);}function _0x3c1d45(_0x310d35,_0x2cade1){const _0x2d248a=_0x21f81a;if(_0x48900e(_0x310d35)!=_0x2d248a(0xf6)||!_0x310d35)return _0x310d35;var _0x1a1258=_0x310d35[Symbol['toPrimitive']];if(_0x1a1258!==void 0x0){var _0x1e4ffa=_0x1a1258[_0x2d248a(0x118)](_0x310d35,_0x2cade1||'default');if(_0x48900e(_0x1e4ffa)!=_0x2d248a(0xf6))return _0x1e4ffa;throw TypeError(_0x2d248a(0x112));}return(_0x2cade1===_0x2d248a(0x111)?String:Number)(_0x310d35);}function _0x5390cf(_0x36a79e){const _0x58f1f0=_0x21f81a;var _0x342af2=_0x3c1d45(_0x36a79e,_0x58f1f0(0x111));return _0x48900e(_0x342af2)=='symbol'?_0x342af2:_0x342af2+'';}function _0x14b7e2(_0x581d16,_0xbe501e,_0x59bea9){const _0x300d4a=_0x21f81a;return(_0xbe501e=_0x5390cf(_0xbe501e))in _0x581d16?Object[_0x300d4a(0x100)](_0x581d16,_0xbe501e,{'value':_0x59bea9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x581d16[_0xbe501e]=_0x59bea9,_0x581d16;}let _0x944d09=class extends _0x14091b[_0x21f81a(0x11b)]{constructor(_0x3bdefd=_0x1dd696,_0x1bac7e,_0x55850e){const _0x5acbd1=_0x21f81a;super(),this[_0x5acbd1(0x134)]=_0x3bdefd,this[_0x5acbd1(0x12d)]=_0x1bac7e,this[_0x5acbd1(0xec)]=_0x55850e;let {..._0x3ddb9a}=(0x0,_0x14091b[_0x5acbd1(0x128)])({},_0x1dd696,this[_0x5acbd1(0x134)]);this[_0x5acbd1(0x12d)][_0x5acbd1(0xfd)](_0x5acbd1(0x10d),_0x3ddb9a);}['onStarting'](){const _0x542b6b=_0x21f81a;this[_0x542b6b(0xf8)]();}[_0x21f81a(0xf8)](){const _0x13401c=_0x21f81a;(0x0,_0x14091b['registerDependencies'])(this[_0x13401c(0xec)],[[_0x579e63[_0x13401c(0x10e)],{'useClass':_0x4c2a0c}]]);}};_0x14b7e2(_0x944d09,_0x21f81a(0x126),_0x21f81a(0x119)),_0x14b7e2(_0x944d09,'packageName',_0x5c05e7),_0x14b7e2(_0x944d09,'version',_0x44e493),_0x944d09=_0x2189bf([(0x0,_0x14091b['DependentOn'])(_0x4425a0['UniverLicensePlugin'],_0x579e63[_0x21f81a(0x11c)],_0x313316[_0x21f81a(0x11d)],_0x2f2bab['UniverCollaborationClientPlugin']),_0x1bfc97(0x1,_0x14091b[_0x21f81a(0xf7)]),_0x1bfc97(0x2,(0x0,_0x14091b[_0x21f81a(0x12e)])(_0x14091b[_0x21f81a(0xf1)]))],_0x944d09);let _0x5a824c=class extends _0x2f2bab['CollaborationSocketService']{constructor(_0x19beec,_0x34cc32,_0x2eb34b,_0x2670d4,_0x58d98e){const _0x235d4b=_0x21f81a;super(_0x19beec,_0x34cc32,_0x2eb34b,_0x2670d4,_0x58d98e);let _0x3a7c68=this[_0x235d4b(0x12d)][_0x235d4b(0x104)](_0x2f2bab['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x235d4b(0xfb)]({'interceptor':(_0x4d3b21,_0x4d7fd9)=>{const _0x9e07af=_0x235d4b;let _0x4b0c35=_0x4d3b21[_0x9e07af(0x113)];if(_0x3a7c68!=null&&_0x3a7c68[_0x9e07af(0x129)]){for(let _0x2c1225 in _0x3a7c68[_0x9e07af(0x129)])_0x4b0c35[_0x9e07af(0x107)](_0x2c1225,_0x3a7c68['customHeaders'][_0x2c1225]);}return _0x4d7fd9(_0x4d3b21);}});}async['createSocket'](_0x184be8){const _0x5efe89=_0x21f81a;return this[_0x5efe89(0x127)](_0x184be8);}};_0x5a824c=_0x2189bf([_0x1bfc97(0x0,(0x0,_0x14091b[_0x21f81a(0x12e)])(_0x14091b['Injector'])),_0x1bfc97(0x1,(0x0,_0x14091b[_0x21f81a(0x12e)])(_0x579e63[_0x21f81a(0xf4)])),_0x1bfc97(0x2,_0x14091b[_0x21f81a(0xf7)]),_0x1bfc97(0x3,_0x14091b[_0x21f81a(0x133)]),_0x1bfc97(0x4,_0x313316[_0x21f81a(0x106)])],_0x5a824c),Object[_0x21f81a(0x100)](_0x4eb2d7,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x5a824c;}}),Object[_0x21f81a(0x100)](_0x4eb2d7,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x944d09;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.8",
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,18 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.21.0",
55
- "@univerjs-pro/collaboration": "1.0.0-alpha.6",
56
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.6",
57
- "@univerjs/network": "1.0.0-alpha.6",
58
- "@univerjs/core": "1.0.0-alpha.6"
55
+ "@univerjs-pro/collaboration": "1.0.0-alpha.8",
56
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.8",
57
+ "@univerjs-pro/license": "1.0.0-alpha.8",
58
+ "@univerjs/network": "1.0.0-alpha.8",
59
+ "@univerjs/core": "1.0.0-alpha.8"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@types/ws": "8.18.1",
62
63
  "rxjs": "7.8.2",
63
64
  "typescript": "^6.0.3",
64
65
  "vitest": "^4.1.10",
65
- "@univerjs-infra/shared": "1.0.0-alpha.6"
66
+ "@univerjs-infra/shared": "1.0.0-alpha.8"
66
67
  },
67
68
  "scripts": {
68
69
  "test": "vitest run",