@univerjs-pro/collaboration-client-node 0.25.1 → 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x51a858=_0x3450;(function(_0x3c31ed,_0x1cc84e){const _0x5ea538=_0x3450,_0x463537=_0x3c31ed();while(!![]){try{const _0x3b864f=parseInt(_0x5ea538(0xdf))/0x1+-parseInt(_0x5ea538(0xd4))/0x2+-parseInt(_0x5ea538(0xf0))/0x3*(parseInt(_0x5ea538(0xb2))/0x4)+parseInt(_0x5ea538(0xb6))/0x5*(parseInt(_0x5ea538(0xc0))/0x6)+parseInt(_0x5ea538(0xda))/0x7+-parseInt(_0x5ea538(0xd2))/0x8*(-parseInt(_0x5ea538(0xf5))/0x9)+-parseInt(_0x5ea538(0xdd))/0xa;if(_0x3b864f===_0x1cc84e)break;else _0x463537['push'](_0x463537['shift']());}catch(_0x12a4df){_0x463537['push'](_0x463537['shift']());}}}(_0x7b9a,0x36049),Object[_0x51a858(0xd6)](exports,Symbol[_0x51a858(0xb7)],{'value':_0x51a858(0xcd)}));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='collaboration-client-node.config',s={};var c='@univerjs-pro/collaboration-client-node',l=_0x51a858(0xd3);function u(_0x5b6c72,_0x3aa126){return function(_0x1971d5,_0x16c70d){_0x3aa126(_0x1971d5,_0x16c70d,_0x5b6c72);};}function d(_0x1927e4,_0x18786e,_0x4f64f6,_0x2585b9){const _0x5b484f=_0x51a858;var _0x3ba81c=arguments[_0x5b484f(0xc8)],_0x24b127=_0x3ba81c<0x3?_0x18786e:_0x2585b9===null?_0x2585b9=Object['getOwnPropertyDescriptor'](_0x18786e,_0x4f64f6):_0x2585b9,_0x1d5fa9;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x24b127=Reflect[_0x5b484f(0xe8)](_0x1927e4,_0x18786e,_0x4f64f6,_0x2585b9);else{for(var _0x588a61=_0x1927e4[_0x5b484f(0xc8)]-0x1;_0x588a61>=0x0;_0x588a61--)(_0x1d5fa9=_0x1927e4[_0x588a61])&&(_0x24b127=(_0x3ba81c<0x3?_0x1d5fa9(_0x24b127):_0x3ba81c>0x3?_0x1d5fa9(_0x18786e,_0x4f64f6,_0x24b127):_0x1d5fa9(_0x18786e,_0x4f64f6))||_0x24b127);}return _0x3ba81c>0x3&&_0x24b127&&Object['defineProperty'](_0x18786e,_0x4f64f6,_0x24b127),_0x24b127;}let f=class extends t['Disposable']{constructor(_0x317caf){const _0x3301c3=_0x51a858;super(),this[_0x3301c3(0xb9)]=_0x317caf;}[_0x51a858(0xec)](_0x7ff2f7){const _0x354143=_0x51a858;var _0x4331f5;let _0x49ae28=((_0x4331f5=this['_configService']['getConfig'](e[_0x354143(0xb4)]))==null?void 0x0:_0x4331f5['customHeaders'])||{};try{let _0x6c37b3=new i[(_0x354143(0xcb))](_0x7ff2f7,{'headers':{..._0x49ae28}}),_0x3988a1=new t[(_0x354143(0xbd))]();return{'URL':_0x7ff2f7,'close':(_0x9e4baf,_0x1d9ff4)=>{const _0x2f5939=_0x354143;_0x6c37b3['close'](_0x9e4baf,_0x1d9ff4),_0x3988a1[_0x2f5939(0xcc)]();},'send':_0x144330=>{const _0x213d10=_0x354143;_0x6c37b3[_0x213d10(0xce)](_0x144330);},'open$':new r[(_0x354143(0xe6))](_0x401aaf=>{const _0x28b369=_0x354143;let _0x2456dc=_0xd83ed4=>_0x401aaf[_0x28b369(0xb8)](_0xd83ed4);_0x6c37b3[_0x28b369(0xc1)](_0x28b369(0xe9),_0x2456dc),_0x3988a1[_0x28b369(0xf1)]((0x0,t['toDisposable'])(()=>_0x6c37b3['removeEventListener']('open',_0x2456dc)));})['pipe']((0x0,r[_0x354143(0xbe)])()),'close$':new r[(_0x354143(0xe6))](_0x12c60f=>{const _0x52f250=_0x354143;let _0x422790=_0x37d97b=>_0x12c60f[_0x52f250(0xb8)](_0x37d97b);_0x6c37b3['addEventListener'](_0x52f250(0xba),_0x422790),_0x3988a1[_0x52f250(0xf1)]((0x0,t[_0x52f250(0xf4)])(()=>_0x6c37b3[_0x52f250(0xcf)]('close',_0x422790)));})[_0x354143(0xc9)]((0x0,r[_0x354143(0xbe)])()),'error$':new r[(_0x354143(0xe6))](_0x4d99c2=>{const _0x5629f1=_0x354143;let _0x9380bb=_0x1499f5=>_0x4d99c2[_0x5629f1(0xb8)](_0x1499f5);_0x6c37b3[_0x5629f1(0xc1)](_0x5629f1(0xe7),_0x9380bb),_0x3988a1[_0x5629f1(0xf1)]((0x0,t[_0x5629f1(0xf4)])(()=>_0x6c37b3[_0x5629f1(0xcf)](_0x5629f1(0xe7),_0x9380bb)));})[_0x354143(0xc9)]((0x0,r[_0x354143(0xbe)])()),'message$':new r[(_0x354143(0xe6))](_0x2363c4=>{const _0x712bc2=_0x354143;let _0x44138b=_0x49a05e=>_0x2363c4[_0x712bc2(0xb8)](_0x49a05e);_0x6c37b3[_0x712bc2(0xc1)]('message',_0x44138b),_0x3988a1[_0x712bc2(0xf1)]((0x0,t[_0x712bc2(0xf4)])(()=>_0x6c37b3[_0x712bc2(0xcf)]('message',_0x44138b)));})[_0x354143(0xc9)]((0x0,r['share'])())};}catch(_0x56cd65){return console['error'](_0x56cd65),null;}}};f=d([u(0x0,t[_0x51a858(0xe1)])],f);function _0x3450(_0x180796,_0x25667b){_0x180796=_0x180796-0xb2;const _0x7b9a3c=_0x7b9a();let _0x345089=_0x7b9a3c[_0x180796];return _0x345089;}function p(_0x3da99c){'@babel/helpers - typeof';const _0x40d0b4=_0x51a858;return p=typeof Symbol=='function'&&typeof Symbol[_0x40d0b4(0xd8)]=='symbol'?function(_0x26b012){return typeof _0x26b012;}:function(_0xb190bb){const _0x93c028=_0x40d0b4;return _0xb190bb&&typeof Symbol==_0x93c028(0xd7)&&_0xb190bb[_0x93c028(0xef)]===Symbol&&_0xb190bb!==Symbol[_0x93c028(0xc4)]?_0x93c028(0xbf):typeof _0xb190bb;},p(_0x3da99c);}function m(_0x31b925,_0x300b8c){const _0x682914=_0x51a858;if(p(_0x31b925)!=_0x682914(0xe0)||!_0x31b925)return _0x31b925;var _0x4dbd80=_0x31b925[Symbol[_0x682914(0xb5)]];if(_0x4dbd80!==void 0x0){var _0x14f37d=_0x4dbd80[_0x682914(0xdc)](_0x31b925,_0x300b8c||_0x682914(0xde));if(p(_0x14f37d)!=_0x682914(0xe0))return _0x14f37d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x300b8c===_0x682914(0xc5)?String:Number)(_0x31b925);}function h(_0x918b29){const _0x525aca=_0x51a858;var _0x5257ae=m(_0x918b29,'string');return p(_0x5257ae)==_0x525aca(0xbf)?_0x5257ae:_0x5257ae+'';}function _0x7b9a(){const _0x24147a=['setConfig','createSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','getConfig','constructor','3rwkWCV','add','version','_doCreateSocket','toDisposable','69507BOXKhR','23204EaVmyo','_registerDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toPrimitive','305065rfBMKH','toStringTag','next','_configService','close','set','UniverCollaborationClientPlugin','DisposableCollection','share','symbol','12dYWXED','addEventListener','_httpService','CollaborationSocketService','prototype','string','ISocketService','registerDependencies','length','pipe','headers','WebSocket','dispose','Module','send','removeEventListener','Inject','NodeCollaborationSocketService','40HIvMPd','0.25.1','174210mhdLGh','registerHTTPInterceptor','defineProperty','function','iterator','HTTPService','32935NGNTNg','_injector','call','1826230vVkHHe','default','331440zPSouq','object','IConfigService','packageName','customHeaders','DependentOn','Injector','Observable','error','decorate','open','COLLABORATION_CLIENT_NODE_CONFIG_KEY'];_0x7b9a=function(){return _0x24147a;};return _0x7b9a();}function g(_0x2f2bf7,_0x769362,_0x3622f2){const _0x5008b2=_0x51a858;return(_0x769362=h(_0x769362))in _0x2f2bf7?Object[_0x5008b2(0xd6)](_0x2f2bf7,_0x769362,{'value':_0x3622f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f2bf7[_0x769362]=_0x3622f2,_0x2f2bf7;}let _=class extends t['Plugin']{constructor(_0x404211=s,_0x718ab6,_0x42ad2d){const _0x2001f3=_0x51a858;super(),this[_0x2001f3(0xb9)]=_0x718ab6,this[_0x2001f3(0xdb)]=_0x42ad2d,this[_0x2001f3(0xb9)][_0x2001f3(0xeb)](o,_0x404211);}['onStarting'](){const _0x348934=_0x51a858;this[_0x348934(0xb3)]();}['_registerDependencies'](){const _0x3937e5=_0x51a858;(0x0,t[_0x3937e5(0xc7)])(this[_0x3937e5(0xdb)],[[n[_0x3937e5(0xc6)],{'useClass':f}]]);}};g(_,'pluginName',_0x51a858(0xed)),g(_,_0x51a858(0xe2),c),g(_,_0x51a858(0xf2),l),_=d([(0x0,t[_0x51a858(0xe4)])(e[_0x51a858(0xbc)]),u(0x1,t[_0x51a858(0xe1)]),u(0x2,(0x0,t[_0x51a858(0xd0)])(t[_0x51a858(0xe5)]))],_);let v=class extends e[_0x51a858(0xc3)]{constructor(_0xcfa687,_0x2e1ecb,_0x2c4846,_0x1bdd51,_0x85ed91){const _0x2fed1c=_0x51a858;super(_0xcfa687,_0x2e1ecb,_0x2c4846,_0x1bdd51,_0x85ed91);let _0x2b1c38=this[_0x2fed1c(0xb9)][_0x2fed1c(0xee)](e[_0x2fed1c(0xb4)]);this[_0x2fed1c(0xc2)][_0x2fed1c(0xd5)]({'interceptor':(_0x1f1ae1,_0x548581)=>{const _0x1476c5=_0x2fed1c;let _0x5c756a=_0x1f1ae1[_0x1476c5(0xca)];if(_0x2b1c38!=null&&_0x2b1c38[_0x1476c5(0xe3)]){for(let _0x44b797 in _0x2b1c38[_0x1476c5(0xe3)])_0x5c756a[_0x1476c5(0xbb)](_0x44b797,_0x2b1c38[_0x1476c5(0xe3)][_0x44b797]);}return _0x548581(_0x1f1ae1);}});}async[_0x51a858(0xec)](_0x1dae89){const _0x48e0f9=_0x51a858;return this[_0x48e0f9(0xf3)](_0x1dae89);}};v=d([u(0x0,(0x0,t[_0x51a858(0xd0)])(t[_0x51a858(0xe5)])),u(0x1,(0x0,t['Inject'])(n[_0x51a858(0xd9)])),u(0x2,t[_0x51a858(0xe1)]),u(0x3,t['ILogService']),u(0x4,a['ISnapshotServerService'])],v),exports[_0x51a858(0xea)]=o,Object[_0x51a858(0xd6)](exports,_0x51a858(0xd1),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x51a858(0xd6)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x500098=_0x128e;(function(_0x12b4d4,_0x3ee7f2){const _0x1bfc49=_0x128e,_0x5cc45f=_0x12b4d4();while(!![]){try{const _0x1def23=-parseInt(_0x1bfc49(0x13a))/0x1*(parseInt(_0x1bfc49(0x145))/0x2)+-parseInt(_0x1bfc49(0x137))/0x3*(parseInt(_0x1bfc49(0x164))/0x4)+-parseInt(_0x1bfc49(0x13b))/0x5+-parseInt(_0x1bfc49(0x148))/0x6*(parseInt(_0x1bfc49(0x151))/0x7)+parseInt(_0x1bfc49(0x163))/0x8+-parseInt(_0x1bfc49(0x15d))/0x9*(parseInt(_0x1bfc49(0x14b))/0xa)+parseInt(_0x1bfc49(0x173))/0xb;if(_0x1def23===_0x3ee7f2)break;else _0x5cc45f['push'](_0x5cc45f['shift']());}catch(_0x29e2e9){_0x5cc45f['push'](_0x5cc45f['shift']());}}}(_0x28e0,0xa110c),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x500098(0x157)}));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='collaboration-client-node.config',s={};var c=_0x500098(0x169),l=_0x500098(0x149);function u(_0x4af5cc,_0xcbea84){return function(_0x56216c,_0x3d2e2d){_0xcbea84(_0x56216c,_0x3d2e2d,_0x4af5cc);};}function d(_0x760e2,_0x19aae1,_0x45d979,_0x3e792b){const _0x7f9b4e=_0x500098;var _0x3906b8=arguments[_0x7f9b4e(0x150)],_0x2f1ead=_0x3906b8<0x3?_0x19aae1:_0x3e792b===null?_0x3e792b=Object['getOwnPropertyDescriptor'](_0x19aae1,_0x45d979):_0x3e792b,_0x4816df;if(typeof Reflect==_0x7f9b4e(0x154)&&typeof Reflect[_0x7f9b4e(0x166)]==_0x7f9b4e(0x14a))_0x2f1ead=Reflect[_0x7f9b4e(0x166)](_0x760e2,_0x19aae1,_0x45d979,_0x3e792b);else{for(var _0x1a8ab8=_0x760e2[_0x7f9b4e(0x150)]-0x1;_0x1a8ab8>=0x0;_0x1a8ab8--)(_0x4816df=_0x760e2[_0x1a8ab8])&&(_0x2f1ead=(_0x3906b8<0x3?_0x4816df(_0x2f1ead):_0x3906b8>0x3?_0x4816df(_0x19aae1,_0x45d979,_0x2f1ead):_0x4816df(_0x19aae1,_0x45d979))||_0x2f1ead);}return _0x3906b8>0x3&&_0x2f1ead&&Object[_0x7f9b4e(0x143)](_0x19aae1,_0x45d979,_0x2f1ead),_0x2f1ead;}let f=class extends t[_0x500098(0x15b)]{constructor(_0x1bf418){const _0xf5e4fa=_0x500098;super(),this[_0xf5e4fa(0x16f)]=_0x1bf418;}[_0x500098(0x14e)](_0x5a2672){const _0x13cd5e=_0x500098;var _0x15adeb;let _0x1b1529=((_0x15adeb=this[_0x13cd5e(0x16f)][_0x13cd5e(0x13d)](e[_0x13cd5e(0x158)]))==null?void 0x0:_0x15adeb[_0x13cd5e(0x159)])||{};try{let _0x3d4ae8=new i['WebSocket'](_0x5a2672,{'headers':{..._0x1b1529}}),_0x424116=new t['DisposableCollection']();return{'URL':_0x5a2672,'close':(_0x479144,_0x4d866f)=>{const _0x306c8a=_0x13cd5e;_0x3d4ae8[_0x306c8a(0x177)](_0x479144,_0x4d866f),_0x424116[_0x306c8a(0x171)]();},'send':_0x223b5e=>{const _0x54b5cc=_0x13cd5e;_0x3d4ae8[_0x54b5cc(0x160)](_0x223b5e);},'open$':new r['Observable'](_0x260751=>{const _0x2b6399=_0x13cd5e;let _0x3da87f=_0x358876=>_0x260751['next'](_0x358876);_0x3d4ae8[_0x2b6399(0x138)](_0x2b6399(0x136),_0x3da87f),_0x424116[_0x2b6399(0x135)]((0x0,t[_0x2b6399(0x162)])(()=>_0x3d4ae8[_0x2b6399(0x174)](_0x2b6399(0x136),_0x3da87f)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])()),'close$':new r[(_0x13cd5e(0x140))](_0x329412=>{const _0x53cb21=_0x13cd5e;let _0x385248=_0x156624=>_0x329412[_0x53cb21(0x165)](_0x156624);_0x3d4ae8[_0x53cb21(0x138)]('close',_0x385248),_0x424116[_0x53cb21(0x135)]((0x0,t[_0x53cb21(0x162)])(()=>_0x3d4ae8[_0x53cb21(0x174)]('close',_0x385248)));})[_0x13cd5e(0x16e)]((0x0,r['share'])()),'error$':new r['Observable'](_0x3a22d9=>{const _0x327178=_0x13cd5e;let _0x5988b1=_0xc77a2a=>_0x3a22d9['next'](_0xc77a2a);_0x3d4ae8[_0x327178(0x138)](_0x327178(0x16a),_0x5988b1),_0x424116[_0x327178(0x135)]((0x0,t[_0x327178(0x162)])(()=>_0x3d4ae8[_0x327178(0x174)](_0x327178(0x16a),_0x5988b1)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])()),'message$':new r[(_0x13cd5e(0x140))](_0x3216c3=>{const _0x3f35d0=_0x13cd5e;let _0x32c50d=_0x282430=>_0x3216c3[_0x3f35d0(0x165)](_0x282430);_0x3d4ae8[_0x3f35d0(0x138)](_0x3f35d0(0x16d),_0x32c50d),_0x424116[_0x3f35d0(0x135)]((0x0,t[_0x3f35d0(0x162)])(()=>_0x3d4ae8['removeEventListener']('message',_0x32c50d)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])())};}catch(_0x355c22){return console[_0x13cd5e(0x16a)](_0x355c22),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x32e77d){'@babel/helpers - typeof';const _0x2d6118=_0x500098;return p=typeof Symbol==_0x2d6118(0x14a)&&typeof Symbol[_0x2d6118(0x14d)]==_0x2d6118(0x15a)?function(_0x1fe5cc){return typeof _0x1fe5cc;}:function(_0x89b8b7){const _0x2f43f9=_0x2d6118;return _0x89b8b7&&typeof Symbol=='function'&&_0x89b8b7[_0x2f43f9(0x15c)]===Symbol&&_0x89b8b7!==Symbol[_0x2f43f9(0x16c)]?_0x2f43f9(0x15a):typeof _0x89b8b7;},p(_0x32e77d);}function m(_0x14e86a,_0x2892b0){const _0xfa7d43=_0x500098;if(p(_0x14e86a)!=_0xfa7d43(0x154)||!_0x14e86a)return _0x14e86a;var _0x5661e3=_0x14e86a[Symbol['toPrimitive']];if(_0x5661e3!==void 0x0){var _0x5b69c3=_0x5661e3['call'](_0x14e86a,_0x2892b0||'default');if(p(_0x5b69c3)!=_0xfa7d43(0x154))return _0x5b69c3;throw TypeError(_0xfa7d43(0x142));}return(_0x2892b0===_0xfa7d43(0x13c)?String:Number)(_0x14e86a);}function h(_0x1f1b63){const _0x5701fc=_0x500098;var _0x1701b9=m(_0x1f1b63,_0x5701fc(0x13c));return p(_0x1701b9)==_0x5701fc(0x15a)?_0x1701b9:_0x1701b9+'';}function _0x28e0(){const _0x874bfe=['12835670vzencN','packageName','iterator','createSocket','_injector','length','7IMfLmv','ISnapshotServerService','registerDependencies','object','Injector','setConfig','Module','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','symbol','Disposable','constructor','9AxmsYA','share','headers','send','set','toDisposable','1368960eqrkzE','870388izaqUs','next','decorate','UniverCollaborationClientNodePlugin','onStarting','@univerjs-pro/collaboration-client-node','error','Inject','prototype','message','pipe','_configService','DependentOn','dispose','_httpService','43560814ZIFwcJ','removeEventListener','IConfigService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','close','CollaborationSocketService','add','open','3rUnNrf','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','1703AhRccl','2694120eionhq','string','getConfig','_registerDependencies','pluginName','Observable','NodeCollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','_doCreateSocket','922NcJkwg','ILogService','UniverCollaborationClientPlugin','3878394QpPOCu','1.0.0-alpha.1','function'];_0x28e0=function(){return _0x874bfe;};return _0x28e0();}function g(_0x3ff0dc,_0x33fd4a,_0x1a46e2){return(_0x33fd4a=h(_0x33fd4a))in _0x3ff0dc?Object['defineProperty'](_0x3ff0dc,_0x33fd4a,{'value':_0x1a46e2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ff0dc[_0x33fd4a]=_0x1a46e2,_0x3ff0dc;}let _=class extends t['Plugin']{constructor(_0x442984=s,_0xb7b7ea,_0x16957a){const _0x247081=_0x500098;super(),this[_0x247081(0x16f)]=_0xb7b7ea,this[_0x247081(0x14f)]=_0x16957a,this[_0x247081(0x16f)][_0x247081(0x156)](o,_0x442984);}[_0x500098(0x168)](){const _0x34c062=_0x500098;this[_0x34c062(0x13e)]();}[_0x500098(0x13e)](){const _0x167408=_0x500098;(0x0,t[_0x167408(0x153)])(this['_injector'],[[n['ISocketService'],{'useClass':f}]]);}};g(_,_0x500098(0x13f),_0x500098(0x176)),g(_,_0x500098(0x14c),c),g(_,'version',l),_=d([(0x0,t[_0x500098(0x170)])(e[_0x500098(0x147)]),u(0x1,t[_0x500098(0x175)]),u(0x2,(0x0,t[_0x500098(0x16b)])(t['Injector']))],_);let v=class extends e[_0x500098(0x134)]{constructor(_0x3217f4,_0x358abe,_0x45b254,_0x21bf28,_0x4d6bbe){const _0xa0693f=_0x500098;super(_0x3217f4,_0x358abe,_0x45b254,_0x21bf28,_0x4d6bbe);let _0x5d0175=this[_0xa0693f(0x16f)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0xa0693f(0x172)]['registerHTTPInterceptor']({'interceptor':(_0x1ef938,_0x56dbb8)=>{const _0xd25a7f=_0xa0693f;let _0x3053ae=_0x1ef938[_0xd25a7f(0x15f)];if(_0x5d0175!=null&&_0x5d0175[_0xd25a7f(0x159)]){for(let _0x163be4 in _0x5d0175[_0xd25a7f(0x159)])_0x3053ae[_0xd25a7f(0x161)](_0x163be4,_0x5d0175[_0xd25a7f(0x159)][_0x163be4]);}return _0x56dbb8(_0x1ef938);}});}async[_0x500098(0x14e)](_0x460eb0){const _0x5149c6=_0x500098;return this[_0x5149c6(0x144)](_0x460eb0);}};function _0x128e(_0x4b5edd,_0x4027e8){_0x4b5edd=_0x4b5edd-0x134;const _0x28e05c=_0x28e0();let _0x128e35=_0x28e05c[_0x4b5edd];return _0x128e35;}v=d([u(0x0,(0x0,t['Inject'])(t[_0x500098(0x155)])),u(0x1,(0x0,t['Inject'])(n['HTTPService'])),u(0x2,t[_0x500098(0x175)]),u(0x3,t[_0x500098(0x146)]),u(0x4,a[_0x500098(0x152)])],v),exports[_0x500098(0x139)]=o,Object['defineProperty'](exports,_0x500098(0x141),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x500098(0x167),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2ff42c=_0x3266;(function(_0x4eda03,_0x23a556){const _0x33c773=_0x3266,_0x17305f=_0x4eda03();while(!![]){try{const _0x5dc32e=parseInt(_0x33c773(0x12e))/0x1+-parseInt(_0x33c773(0x127))/0x2*(-parseInt(_0x33c773(0x13d))/0x3)+parseInt(_0x33c773(0x12c))/0x4*(-parseInt(_0x33c773(0x124))/0x5)+-parseInt(_0x33c773(0x145))/0x6*(parseInt(_0x33c773(0x14e))/0x7)+-parseInt(_0x33c773(0x131))/0x8+-parseInt(_0x33c773(0x138))/0x9+parseInt(_0x33c773(0x14f))/0xa;if(_0x5dc32e===_0x23a556)break;else _0x17305f['push'](_0x17305f['shift']());}catch(_0x1a60e8){_0x17305f['push'](_0x17305f['shift']());}}}(_0x368d,0x559a6));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f4bbd,CollaborationSocketService as _0x8a4bf2,UniverCollaborationClientPlugin as _0x4e0740}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x3eeab3,Disposable as _0x2640ba,DisposableCollection as _0x5b1e22,IConfigService as _0x50c13a,ILogService as _0x1b5bba,Inject as _0x4f7324,Injector as _0x175a86,Plugin as _0xc671d8,registerDependencies as _0x29bcdc,toDisposable as _0xf7b8a6}from'@univerjs/core';import{HTTPService as _0x1db5a9,ISocketService as _0x51c7d6}from'@univerjs/network';import{Observable as _0x4197d8,share as _0x49beba}from'rxjs';import{WebSocket as _0x5f4de1}from'ws';import{ISnapshotServerService as _0x5df9f4}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config',b={};var x=_0x2ff42c(0x133),S=_0x2ff42c(0x14c);function _0x368d(){const _0x4f6d22=['length','customHeaders','next','getOwnPropertyDescriptor','registerHTTPInterceptor','622014gjCGdJ','dispose','_configService','packageName','add','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.25.1','message','7iKVGWG','8645460HCEEXa','onStarting','function','string','decorate','344015KYxPjg','prototype','_registerDependencies','8rKozDD','object','defineProperty','iterator','open','36KKfvqB','error','384499XNjyLC','_httpService','pipe','1657784tXGJwq','addEventListener','@univerjs-pro/collaboration-client-node','call','close','version','setConfig','5013900fESHgN','getConfig','_injector','default','toPrimitive','441603OukrkV','symbol','send'];_0x368d=function(){return _0x4f6d22;};return _0x368d();}function C(_0x53ce0e,_0x4ed079){return function(_0x39e76d,_0x1c35c5){_0x4ed079(_0x39e76d,_0x1c35c5,_0x53ce0e);};}function _0x3266(_0x2dcbc1,_0x3577ca){_0x2dcbc1=_0x2dcbc1-0x123;const _0x368d42=_0x368d();let _0x326666=_0x368d42[_0x2dcbc1];return _0x326666;}function w(_0xb4d894,_0x5eab17,_0x13d577,_0x48477d){const _0x549a3f=_0x2ff42c;var _0x2f5f13=arguments[_0x549a3f(0x140)],_0x3e6a58=_0x2f5f13<0x3?_0x5eab17:_0x48477d===null?_0x48477d=Object[_0x549a3f(0x143)](_0x5eab17,_0x13d577):_0x48477d,_0x2284df;if(typeof Reflect=='object'&&typeof Reflect[_0x549a3f(0x123)]==_0x549a3f(0x151))_0x3e6a58=Reflect[_0x549a3f(0x123)](_0xb4d894,_0x5eab17,_0x13d577,_0x48477d);else{for(var _0x21e445=_0xb4d894[_0x549a3f(0x140)]-0x1;_0x21e445>=0x0;_0x21e445--)(_0x2284df=_0xb4d894[_0x21e445])&&(_0x3e6a58=(_0x2f5f13<0x3?_0x2284df(_0x3e6a58):_0x2f5f13>0x3?_0x2284df(_0x5eab17,_0x13d577,_0x3e6a58):_0x2284df(_0x5eab17,_0x13d577))||_0x3e6a58);}return _0x2f5f13>0x3&&_0x3e6a58&&Object[_0x549a3f(0x129)](_0x5eab17,_0x13d577,_0x3e6a58),_0x3e6a58;}let T=class extends _0x2640ba{constructor(_0x4873fe){const _0x58aac5=_0x2ff42c;super(),this[_0x58aac5(0x147)]=_0x4873fe;}['createSocket'](_0x4b6683){const _0x39c799=_0x2ff42c;var _0x2b82f5;let _0x286d83=((_0x2b82f5=this[_0x39c799(0x147)][_0x39c799(0x139)](_0x8f4bbd))==null?void 0x0:_0x2b82f5[_0x39c799(0x141)])||{};try{let _0x64bd70=new _0x5f4de1(_0x4b6683,{'headers':{..._0x286d83}}),_0x82c0be=new _0x5b1e22();return{'URL':_0x4b6683,'close':(_0x34a887,_0x144349)=>{const _0x44cf8a=_0x39c799;_0x64bd70[_0x44cf8a(0x135)](_0x34a887,_0x144349),_0x82c0be[_0x44cf8a(0x146)]();},'send':_0x400fe0=>{const _0x477e26=_0x39c799;_0x64bd70[_0x477e26(0x13f)](_0x400fe0);},'open$':new _0x4197d8(_0x58b816=>{const _0xbac2c0=_0x39c799;let _0x8cb705=_0xacc260=>_0x58b816['next'](_0xacc260);_0x64bd70[_0xbac2c0(0x132)](_0xbac2c0(0x12b),_0x8cb705),_0x82c0be[_0xbac2c0(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener']('open',_0x8cb705)));})[_0x39c799(0x130)](_0x49beba()),'close$':new _0x4197d8(_0x3cb741=>{const _0x1afe75=_0x39c799;let _0x4614f9=_0xd14224=>_0x3cb741['next'](_0xd14224);_0x64bd70[_0x1afe75(0x132)](_0x1afe75(0x135),_0x4614f9),_0x82c0be[_0x1afe75(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener'](_0x1afe75(0x135),_0x4614f9)));})[_0x39c799(0x130)](_0x49beba()),'error$':new _0x4197d8(_0x5ea3b7=>{const _0x76a1c0=_0x39c799;let _0x532bed=_0x184cf3=>_0x5ea3b7[_0x76a1c0(0x142)](_0x184cf3);_0x64bd70[_0x76a1c0(0x132)](_0x76a1c0(0x12d),_0x532bed),_0x82c0be[_0x76a1c0(0x149)](_0xf7b8a6(()=>_0x64bd70[_0x76a1c0(0x14a)]('error',_0x532bed)));})[_0x39c799(0x130)](_0x49beba()),'message$':new _0x4197d8(_0x2b45f5=>{const _0xa8d019=_0x39c799;let _0x584297=_0x3e42d3=>_0x2b45f5[_0xa8d019(0x142)](_0x3e42d3);_0x64bd70['addEventListener'](_0xa8d019(0x14d),_0x584297),_0x82c0be['add'](_0xf7b8a6(()=>_0x64bd70[_0xa8d019(0x14a)](_0xa8d019(0x14d),_0x584297)));})[_0x39c799(0x130)](_0x49beba())};}catch(_0x59147d){return console[_0x39c799(0x12d)](_0x59147d),null;}}};T=w([C(0x0,_0x50c13a)],T);function E(_0x5e176b){'@babel/helpers - typeof';const _0x383a60=_0x2ff42c;return E=typeof Symbol==_0x383a60(0x151)&&typeof Symbol[_0x383a60(0x12a)]==_0x383a60(0x13e)?function(_0x19fa4f){return typeof _0x19fa4f;}:function(_0x5b8dd1){const _0x7dfc80=_0x383a60;return _0x5b8dd1&&typeof Symbol=='function'&&_0x5b8dd1['constructor']===Symbol&&_0x5b8dd1!==Symbol[_0x7dfc80(0x125)]?_0x7dfc80(0x13e):typeof _0x5b8dd1;},E(_0x5e176b);}function D(_0x24dc4a,_0x2da77e){const _0x393ca9=_0x2ff42c;if(E(_0x24dc4a)!='object'||!_0x24dc4a)return _0x24dc4a;var _0x4a049c=_0x24dc4a[Symbol[_0x393ca9(0x13c)]];if(_0x4a049c!==void 0x0){var _0x423195=_0x4a049c[_0x393ca9(0x134)](_0x24dc4a,_0x2da77e||_0x393ca9(0x13b));if(E(_0x423195)!=_0x393ca9(0x128))return _0x423195;throw TypeError(_0x393ca9(0x14b));}return(_0x2da77e===_0x393ca9(0x152)?String:Number)(_0x24dc4a);}function O(_0x176cc4){const _0x304180=_0x2ff42c;var _0x5b7396=D(_0x176cc4,'string');return E(_0x5b7396)==_0x304180(0x13e)?_0x5b7396:_0x5b7396+'';}function k(_0x4becc7,_0x488f9f,_0x393492){const _0x3f4fad=_0x2ff42c;return(_0x488f9f=O(_0x488f9f))in _0x4becc7?Object[_0x3f4fad(0x129)](_0x4becc7,_0x488f9f,{'value':_0x393492,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4becc7[_0x488f9f]=_0x393492,_0x4becc7;}let A=class extends _0xc671d8{constructor(_0x233305=b,_0x26f45d,_0x182f5b){const _0x46bf88=_0x2ff42c;super(),this['_configService']=_0x26f45d,this[_0x46bf88(0x13a)]=_0x182f5b,this['_configService'][_0x46bf88(0x137)](y,_0x233305);}[_0x2ff42c(0x150)](){const _0x4c9aac=_0x2ff42c;this[_0x4c9aac(0x126)]();}[_0x2ff42c(0x126)](){const _0x40c58e=_0x2ff42c;_0x29bcdc(this[_0x40c58e(0x13a)],[[_0x51c7d6,{'useClass':T}]]);}};k(A,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x2ff42c(0x148),x),k(A,_0x2ff42c(0x136),S),A=w([_0x3eeab3(_0x4e0740),C(0x1,_0x50c13a),C(0x2,_0x4f7324(_0x175a86))],A);let j=class extends _0x8a4bf2{constructor(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67){const _0x1707ff=_0x2ff42c;super(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67);let _0x2e1eb9=this[_0x1707ff(0x147)][_0x1707ff(0x139)](_0x8f4bbd);this[_0x1707ff(0x12f)][_0x1707ff(0x144)]({'interceptor':(_0x557bd8,_0x5d95c8)=>{const _0xcbc345=_0x1707ff;let _0x2ae030=_0x557bd8['headers'];if(_0x2e1eb9!=null&&_0x2e1eb9[_0xcbc345(0x141)]){for(let _0x3410b1 in _0x2e1eb9['customHeaders'])_0x2ae030['set'](_0x3410b1,_0x2e1eb9['customHeaders'][_0x3410b1]);}return _0x5d95c8(_0x557bd8);}});}async['createSocket'](_0x14f773){return this['_doCreateSocket'](_0x14f773);}};j=w([C(0x0,_0x4f7324(_0x175a86)),C(0x1,_0x4f7324(_0x1db5a9)),C(0x2,_0x50c13a),C(0x3,_0x1b5bba),C(0x4,_0x5df9f4)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0xac92aa=_0x371d;(function(_0x24f3e4,_0x2015d1){const _0x14d61a=_0x371d,_0x6835e5=_0x24f3e4();while(!![]){try{const _0x5562af=parseInt(_0x14d61a(0x186))/0x1*(-parseInt(_0x14d61a(0x17e))/0x2)+parseInt(_0x14d61a(0x1a6))/0x3*(parseInt(_0x14d61a(0x19d))/0x4)+parseInt(_0x14d61a(0x192))/0x5+parseInt(_0x14d61a(0x188))/0x6*(parseInt(_0x14d61a(0x182))/0x7)+parseInt(_0x14d61a(0x187))/0x8*(parseInt(_0x14d61a(0x178))/0x9)+-parseInt(_0x14d61a(0x194))/0xa+-parseInt(_0x14d61a(0x1a4))/0xb;if(_0x5562af===_0x2015d1)break;else _0x6835e5['push'](_0x6835e5['shift']());}catch(_0x76a757){_0x6835e5['push'](_0x6835e5['shift']());}}}(_0x2854,0x5e1ec));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x94756f,CollaborationSocketService as _0x2b1e9a,UniverCollaborationClientPlugin as _0xa1d3ad}from'@univerjs-pro/collaboration-client';import{DependentOn as _0xf9a28d,Disposable as _0x4407e6,DisposableCollection as _0x41cb13,IConfigService as _0x396948,ILogService as _0x657ce6,Inject as _0x1f5758,Injector as _0x51b714,Plugin as _0x416e72,registerDependencies as _0x539fc9,toDisposable as _0xd65bd7}from'@univerjs/core';import{HTTPService as _0x44134a,ISocketService as _0x56f629}from'@univerjs/network';import{Observable as _0x164acf,share as _0x397967}from'rxjs';import{WebSocket as _0x33c7b0}from'ws';import{ISnapshotServerService as _0x31ed16}from'@univerjs-pro/collaboration';function _0x371d(_0xbb6ef9,_0x3f48f7){_0xbb6ef9=_0xbb6ef9-0x178;const _0x285496=_0x2854();let _0x371d02=_0x285496[_0xbb6ef9];return _0x371d02;}const y=_0xac92aa(0x18e),b={};var x=_0xac92aa(0x189),S='1.0.0-alpha.1';function C(_0x4033c3,_0x406b8c){return function(_0x505a5f,_0x1029d8){_0x406b8c(_0x505a5f,_0x1029d8,_0x4033c3);};}function w(_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062){const _0x755b62=_0xac92aa;var _0x4bbdba=arguments[_0x755b62(0x183)],_0x4fff36=_0x4bbdba<0x3?_0x1763f1:_0x48e062===null?_0x48e062=Object[_0x755b62(0x17b)](_0x1763f1,_0x4782b2):_0x48e062,_0x58a209;if(typeof Reflect==_0x755b62(0x199)&&typeof Reflect[_0x755b62(0x195)]==_0x755b62(0x18c))_0x4fff36=Reflect['decorate'](_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062);else{for(var _0xf7b930=_0x4ff3b5[_0x755b62(0x183)]-0x1;_0xf7b930>=0x0;_0xf7b930--)(_0x58a209=_0x4ff3b5[_0xf7b930])&&(_0x4fff36=(_0x4bbdba<0x3?_0x58a209(_0x4fff36):_0x4bbdba>0x3?_0x58a209(_0x1763f1,_0x4782b2,_0x4fff36):_0x58a209(_0x1763f1,_0x4782b2))||_0x4fff36);}return _0x4bbdba>0x3&&_0x4fff36&&Object[_0x755b62(0x198)](_0x1763f1,_0x4782b2,_0x4fff36),_0x4fff36;}let T=class extends _0x4407e6{constructor(_0x493ac2){super(),this['_configService']=_0x493ac2;}['createSocket'](_0x5ba4bf){const _0x569aac=_0xac92aa;var _0x3175a6;let _0x260957=((_0x3175a6=this['_configService'][_0x569aac(0x17a)](_0x94756f))==null?void 0x0:_0x3175a6[_0x569aac(0x185)])||{};try{let _0x3b6c07=new _0x33c7b0(_0x5ba4bf,{'headers':{..._0x260957}}),_0x18bdee=new _0x41cb13();return{'URL':_0x5ba4bf,'close':(_0x5c25b3,_0x3c828c)=>{const _0x46756c=_0x569aac;_0x3b6c07[_0x46756c(0x190)](_0x5c25b3,_0x3c828c),_0x18bdee[_0x46756c(0x196)]();},'send':_0x2797ba=>{_0x3b6c07['send'](_0x2797ba);},'open$':new _0x164acf(_0x2e55fb=>{const _0x4794eb=_0x569aac;let _0x8d6553=_0x11de0a=>_0x2e55fb['next'](_0x11de0a);_0x3b6c07[_0x4794eb(0x191)](_0x4794eb(0x1aa),_0x8d6553),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x4794eb(0x18b)](_0x4794eb(0x1aa),_0x8d6553)));})[_0x569aac(0x1a8)](_0x397967()),'close$':new _0x164acf(_0x41dcff=>{const _0x490daa=_0x569aac;let _0x48e8d5=_0x4304f2=>_0x41dcff['next'](_0x4304f2);_0x3b6c07[_0x490daa(0x191)](_0x490daa(0x190),_0x48e8d5),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x490daa(0x18b)](_0x490daa(0x190),_0x48e8d5)));})[_0x569aac(0x1a8)](_0x397967()),'error$':new _0x164acf(_0x173311=>{const _0x2f7a07=_0x569aac;let _0xb979fd=_0xfaac5c=>_0x173311[_0x2f7a07(0x1a3)](_0xfaac5c);_0x3b6c07['addEventListener'](_0x2f7a07(0x19f),_0xb979fd),_0x18bdee[_0x2f7a07(0x197)](_0xd65bd7(()=>_0x3b6c07['removeEventListener'](_0x2f7a07(0x19f),_0xb979fd)));})['pipe'](_0x397967()),'message$':new _0x164acf(_0x3577b8=>{const _0x3b873d=_0x569aac;let _0x2e2e2f=_0x2ed7c8=>_0x3577b8['next'](_0x2ed7c8);_0x3b6c07[_0x3b873d(0x191)]('message',_0x2e2e2f),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x3b873d(0x18b)](_0x3b873d(0x17c),_0x2e2e2f)));})['pipe'](_0x397967())};}catch(_0x3d1720){return console[_0x569aac(0x19f)](_0x3d1720),null;}}};T=w([C(0x0,_0x396948)],T);function E(_0x4eba55){'@babel/helpers - typeof';const _0x525b3a=_0xac92aa;return E=typeof Symbol==_0x525b3a(0x18c)&&typeof Symbol[_0x525b3a(0x1a0)]==_0x525b3a(0x1a2)?function(_0x70120b){return typeof _0x70120b;}:function(_0x4b2e0b){const _0x5e66ff=_0x525b3a;return _0x4b2e0b&&typeof Symbol==_0x5e66ff(0x18c)&&_0x4b2e0b[_0x5e66ff(0x18a)]===Symbol&&_0x4b2e0b!==Symbol['prototype']?'symbol':typeof _0x4b2e0b;},E(_0x4eba55);}function D(_0x5b4b4f,_0x4084d6){const _0x3a02c7=_0xac92aa;if(E(_0x5b4b4f)!='object'||!_0x5b4b4f)return _0x5b4b4f;var _0x1792c8=_0x5b4b4f[Symbol[_0x3a02c7(0x19b)]];if(_0x1792c8!==void 0x0){var _0x5c901d=_0x1792c8[_0x3a02c7(0x180)](_0x5b4b4f,_0x4084d6||_0x3a02c7(0x1a9));if(E(_0x5c901d)!=_0x3a02c7(0x199))return _0x5c901d;throw TypeError(_0x3a02c7(0x179));}return(_0x4084d6===_0x3a02c7(0x19e)?String:Number)(_0x5b4b4f);}function O(_0x1b02ae){const _0x24f695=_0xac92aa;var _0x1e3012=D(_0x1b02ae,_0x24f695(0x19e));return E(_0x1e3012)=='symbol'?_0x1e3012:_0x1e3012+'';}function k(_0x205354,_0x466449,_0x4b5a8c){const _0xbae024=_0xac92aa;return(_0x466449=O(_0x466449))in _0x205354?Object[_0xbae024(0x198)](_0x205354,_0x466449,{'value':_0x4b5a8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x205354[_0x466449]=_0x4b5a8c,_0x205354;}let A=class extends _0x416e72{constructor(_0x1da9f6=b,_0x4fdd5f,_0x520db6){const _0x2a9f65=_0xac92aa;super(),this['_configService']=_0x4fdd5f,this[_0x2a9f65(0x18d)]=_0x520db6,this[_0x2a9f65(0x181)][_0x2a9f65(0x1a7)](y,_0x1da9f6);}[_0xac92aa(0x19a)](){const _0x517ea8=_0xac92aa;this[_0x517ea8(0x1a1)]();}[_0xac92aa(0x1a1)](){const _0x11657a=_0xac92aa;_0x539fc9(this[_0x11657a(0x18d)],[[_0x56f629,{'useClass':T}]]);}};k(A,_0xac92aa(0x18f),_0xac92aa(0x1a5)),k(A,'packageName',x),k(A,_0xac92aa(0x193),S),A=w([_0xf9a28d(_0xa1d3ad),C(0x1,_0x396948),C(0x2,_0x1f5758(_0x51b714))],A);let j=class extends _0x2b1e9a{constructor(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867){const _0x32b6c7=_0xac92aa;super(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867);let _0x16b5a5=this[_0x32b6c7(0x181)][_0x32b6c7(0x17a)](_0x94756f);this[_0x32b6c7(0x184)][_0x32b6c7(0x17f)]({'interceptor':(_0x1c0f1c,_0x23ca59)=>{const _0x2ed286=_0x32b6c7;let _0x465ce6=_0x1c0f1c[_0x2ed286(0x19c)];if(_0x16b5a5!=null&&_0x16b5a5[_0x2ed286(0x185)]){for(let _0x56b75c in _0x16b5a5[_0x2ed286(0x185)])_0x465ce6[_0x2ed286(0x17d)](_0x56b75c,_0x16b5a5[_0x2ed286(0x185)][_0x56b75c]);}return _0x23ca59(_0x1c0f1c);}});}async['createSocket'](_0x53cbd7){return this['_doCreateSocket'](_0x53cbd7);}};function _0x2854(){const _0x48ba41=['toPrimitive','headers','104vetNgo','string','error','iterator','_registerDependencies','symbol','next','8802717OFNfGM','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','59526zTxgwH','setConfig','pipe','default','open','2745621QXgVKz','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','getOwnPropertyDescriptor','message','set','2tXeIMO','registerHTTPInterceptor','call','_configService','14GitPhr','length','_httpService','customHeaders','192553YozEGf','8IdBLpw','2245794SNErPt','@univerjs-pro/collaboration-client-node','constructor','removeEventListener','function','_injector','collaboration-client-node.config','pluginName','close','addEventListener','2725580oHoUHr','version','7363590ktgcCz','decorate','dispose','add','defineProperty','object','onStarting'];_0x2854=function(){return _0x48ba41;};return _0x2854();}j=w([C(0x0,_0x1f5758(_0x51b714)),C(0x1,_0x1f5758(_0x44134a)),C(0x2,_0x396948),C(0x3,_0x657ce6),C(0x4,_0x31ed16)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2ff42c=_0x3266;(function(_0x4eda03,_0x23a556){const _0x33c773=_0x3266,_0x17305f=_0x4eda03();while(!![]){try{const _0x5dc32e=parseInt(_0x33c773(0x12e))/0x1+-parseInt(_0x33c773(0x127))/0x2*(-parseInt(_0x33c773(0x13d))/0x3)+parseInt(_0x33c773(0x12c))/0x4*(-parseInt(_0x33c773(0x124))/0x5)+-parseInt(_0x33c773(0x145))/0x6*(parseInt(_0x33c773(0x14e))/0x7)+-parseInt(_0x33c773(0x131))/0x8+-parseInt(_0x33c773(0x138))/0x9+parseInt(_0x33c773(0x14f))/0xa;if(_0x5dc32e===_0x23a556)break;else _0x17305f['push'](_0x17305f['shift']());}catch(_0x1a60e8){_0x17305f['push'](_0x17305f['shift']());}}}(_0x368d,0x559a6));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f4bbd,CollaborationSocketService as _0x8a4bf2,UniverCollaborationClientPlugin as _0x4e0740}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x3eeab3,Disposable as _0x2640ba,DisposableCollection as _0x5b1e22,IConfigService as _0x50c13a,ILogService as _0x1b5bba,Inject as _0x4f7324,Injector as _0x175a86,Plugin as _0xc671d8,registerDependencies as _0x29bcdc,toDisposable as _0xf7b8a6}from'@univerjs/core';import{HTTPService as _0x1db5a9,ISocketService as _0x51c7d6}from'@univerjs/network';import{Observable as _0x4197d8,share as _0x49beba}from'rxjs';import{WebSocket as _0x5f4de1}from'ws';import{ISnapshotServerService as _0x5df9f4}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config',b={};var x=_0x2ff42c(0x133),S=_0x2ff42c(0x14c);function _0x368d(){const _0x4f6d22=['length','customHeaders','next','getOwnPropertyDescriptor','registerHTTPInterceptor','622014gjCGdJ','dispose','_configService','packageName','add','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.25.1','message','7iKVGWG','8645460HCEEXa','onStarting','function','string','decorate','344015KYxPjg','prototype','_registerDependencies','8rKozDD','object','defineProperty','iterator','open','36KKfvqB','error','384499XNjyLC','_httpService','pipe','1657784tXGJwq','addEventListener','@univerjs-pro/collaboration-client-node','call','close','version','setConfig','5013900fESHgN','getConfig','_injector','default','toPrimitive','441603OukrkV','symbol','send'];_0x368d=function(){return _0x4f6d22;};return _0x368d();}function C(_0x53ce0e,_0x4ed079){return function(_0x39e76d,_0x1c35c5){_0x4ed079(_0x39e76d,_0x1c35c5,_0x53ce0e);};}function _0x3266(_0x2dcbc1,_0x3577ca){_0x2dcbc1=_0x2dcbc1-0x123;const _0x368d42=_0x368d();let _0x326666=_0x368d42[_0x2dcbc1];return _0x326666;}function w(_0xb4d894,_0x5eab17,_0x13d577,_0x48477d){const _0x549a3f=_0x2ff42c;var _0x2f5f13=arguments[_0x549a3f(0x140)],_0x3e6a58=_0x2f5f13<0x3?_0x5eab17:_0x48477d===null?_0x48477d=Object[_0x549a3f(0x143)](_0x5eab17,_0x13d577):_0x48477d,_0x2284df;if(typeof Reflect=='object'&&typeof Reflect[_0x549a3f(0x123)]==_0x549a3f(0x151))_0x3e6a58=Reflect[_0x549a3f(0x123)](_0xb4d894,_0x5eab17,_0x13d577,_0x48477d);else{for(var _0x21e445=_0xb4d894[_0x549a3f(0x140)]-0x1;_0x21e445>=0x0;_0x21e445--)(_0x2284df=_0xb4d894[_0x21e445])&&(_0x3e6a58=(_0x2f5f13<0x3?_0x2284df(_0x3e6a58):_0x2f5f13>0x3?_0x2284df(_0x5eab17,_0x13d577,_0x3e6a58):_0x2284df(_0x5eab17,_0x13d577))||_0x3e6a58);}return _0x2f5f13>0x3&&_0x3e6a58&&Object[_0x549a3f(0x129)](_0x5eab17,_0x13d577,_0x3e6a58),_0x3e6a58;}let T=class extends _0x2640ba{constructor(_0x4873fe){const _0x58aac5=_0x2ff42c;super(),this[_0x58aac5(0x147)]=_0x4873fe;}['createSocket'](_0x4b6683){const _0x39c799=_0x2ff42c;var _0x2b82f5;let _0x286d83=((_0x2b82f5=this[_0x39c799(0x147)][_0x39c799(0x139)](_0x8f4bbd))==null?void 0x0:_0x2b82f5[_0x39c799(0x141)])||{};try{let _0x64bd70=new _0x5f4de1(_0x4b6683,{'headers':{..._0x286d83}}),_0x82c0be=new _0x5b1e22();return{'URL':_0x4b6683,'close':(_0x34a887,_0x144349)=>{const _0x44cf8a=_0x39c799;_0x64bd70[_0x44cf8a(0x135)](_0x34a887,_0x144349),_0x82c0be[_0x44cf8a(0x146)]();},'send':_0x400fe0=>{const _0x477e26=_0x39c799;_0x64bd70[_0x477e26(0x13f)](_0x400fe0);},'open$':new _0x4197d8(_0x58b816=>{const _0xbac2c0=_0x39c799;let _0x8cb705=_0xacc260=>_0x58b816['next'](_0xacc260);_0x64bd70[_0xbac2c0(0x132)](_0xbac2c0(0x12b),_0x8cb705),_0x82c0be[_0xbac2c0(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener']('open',_0x8cb705)));})[_0x39c799(0x130)](_0x49beba()),'close$':new _0x4197d8(_0x3cb741=>{const _0x1afe75=_0x39c799;let _0x4614f9=_0xd14224=>_0x3cb741['next'](_0xd14224);_0x64bd70[_0x1afe75(0x132)](_0x1afe75(0x135),_0x4614f9),_0x82c0be[_0x1afe75(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener'](_0x1afe75(0x135),_0x4614f9)));})[_0x39c799(0x130)](_0x49beba()),'error$':new _0x4197d8(_0x5ea3b7=>{const _0x76a1c0=_0x39c799;let _0x532bed=_0x184cf3=>_0x5ea3b7[_0x76a1c0(0x142)](_0x184cf3);_0x64bd70[_0x76a1c0(0x132)](_0x76a1c0(0x12d),_0x532bed),_0x82c0be[_0x76a1c0(0x149)](_0xf7b8a6(()=>_0x64bd70[_0x76a1c0(0x14a)]('error',_0x532bed)));})[_0x39c799(0x130)](_0x49beba()),'message$':new _0x4197d8(_0x2b45f5=>{const _0xa8d019=_0x39c799;let _0x584297=_0x3e42d3=>_0x2b45f5[_0xa8d019(0x142)](_0x3e42d3);_0x64bd70['addEventListener'](_0xa8d019(0x14d),_0x584297),_0x82c0be['add'](_0xf7b8a6(()=>_0x64bd70[_0xa8d019(0x14a)](_0xa8d019(0x14d),_0x584297)));})[_0x39c799(0x130)](_0x49beba())};}catch(_0x59147d){return console[_0x39c799(0x12d)](_0x59147d),null;}}};T=w([C(0x0,_0x50c13a)],T);function E(_0x5e176b){'@babel/helpers - typeof';const _0x383a60=_0x2ff42c;return E=typeof Symbol==_0x383a60(0x151)&&typeof Symbol[_0x383a60(0x12a)]==_0x383a60(0x13e)?function(_0x19fa4f){return typeof _0x19fa4f;}:function(_0x5b8dd1){const _0x7dfc80=_0x383a60;return _0x5b8dd1&&typeof Symbol=='function'&&_0x5b8dd1['constructor']===Symbol&&_0x5b8dd1!==Symbol[_0x7dfc80(0x125)]?_0x7dfc80(0x13e):typeof _0x5b8dd1;},E(_0x5e176b);}function D(_0x24dc4a,_0x2da77e){const _0x393ca9=_0x2ff42c;if(E(_0x24dc4a)!='object'||!_0x24dc4a)return _0x24dc4a;var _0x4a049c=_0x24dc4a[Symbol[_0x393ca9(0x13c)]];if(_0x4a049c!==void 0x0){var _0x423195=_0x4a049c[_0x393ca9(0x134)](_0x24dc4a,_0x2da77e||_0x393ca9(0x13b));if(E(_0x423195)!=_0x393ca9(0x128))return _0x423195;throw TypeError(_0x393ca9(0x14b));}return(_0x2da77e===_0x393ca9(0x152)?String:Number)(_0x24dc4a);}function O(_0x176cc4){const _0x304180=_0x2ff42c;var _0x5b7396=D(_0x176cc4,'string');return E(_0x5b7396)==_0x304180(0x13e)?_0x5b7396:_0x5b7396+'';}function k(_0x4becc7,_0x488f9f,_0x393492){const _0x3f4fad=_0x2ff42c;return(_0x488f9f=O(_0x488f9f))in _0x4becc7?Object[_0x3f4fad(0x129)](_0x4becc7,_0x488f9f,{'value':_0x393492,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4becc7[_0x488f9f]=_0x393492,_0x4becc7;}let A=class extends _0xc671d8{constructor(_0x233305=b,_0x26f45d,_0x182f5b){const _0x46bf88=_0x2ff42c;super(),this['_configService']=_0x26f45d,this[_0x46bf88(0x13a)]=_0x182f5b,this['_configService'][_0x46bf88(0x137)](y,_0x233305);}[_0x2ff42c(0x150)](){const _0x4c9aac=_0x2ff42c;this[_0x4c9aac(0x126)]();}[_0x2ff42c(0x126)](){const _0x40c58e=_0x2ff42c;_0x29bcdc(this[_0x40c58e(0x13a)],[[_0x51c7d6,{'useClass':T}]]);}};k(A,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x2ff42c(0x148),x),k(A,_0x2ff42c(0x136),S),A=w([_0x3eeab3(_0x4e0740),C(0x1,_0x50c13a),C(0x2,_0x4f7324(_0x175a86))],A);let j=class extends _0x8a4bf2{constructor(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67){const _0x1707ff=_0x2ff42c;super(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67);let _0x2e1eb9=this[_0x1707ff(0x147)][_0x1707ff(0x139)](_0x8f4bbd);this[_0x1707ff(0x12f)][_0x1707ff(0x144)]({'interceptor':(_0x557bd8,_0x5d95c8)=>{const _0xcbc345=_0x1707ff;let _0x2ae030=_0x557bd8['headers'];if(_0x2e1eb9!=null&&_0x2e1eb9[_0xcbc345(0x141)]){for(let _0x3410b1 in _0x2e1eb9['customHeaders'])_0x2ae030['set'](_0x3410b1,_0x2e1eb9['customHeaders'][_0x3410b1]);}return _0x5d95c8(_0x557bd8);}});}async['createSocket'](_0x14f773){return this['_doCreateSocket'](_0x14f773);}};j=w([C(0x0,_0x4f7324(_0x175a86)),C(0x1,_0x4f7324(_0x1db5a9)),C(0x2,_0x50c13a),C(0x3,_0x1b5bba),C(0x4,_0x5df9f4)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0xac92aa=_0x371d;(function(_0x24f3e4,_0x2015d1){const _0x14d61a=_0x371d,_0x6835e5=_0x24f3e4();while(!![]){try{const _0x5562af=parseInt(_0x14d61a(0x186))/0x1*(-parseInt(_0x14d61a(0x17e))/0x2)+parseInt(_0x14d61a(0x1a6))/0x3*(parseInt(_0x14d61a(0x19d))/0x4)+parseInt(_0x14d61a(0x192))/0x5+parseInt(_0x14d61a(0x188))/0x6*(parseInt(_0x14d61a(0x182))/0x7)+parseInt(_0x14d61a(0x187))/0x8*(parseInt(_0x14d61a(0x178))/0x9)+-parseInt(_0x14d61a(0x194))/0xa+-parseInt(_0x14d61a(0x1a4))/0xb;if(_0x5562af===_0x2015d1)break;else _0x6835e5['push'](_0x6835e5['shift']());}catch(_0x76a757){_0x6835e5['push'](_0x6835e5['shift']());}}}(_0x2854,0x5e1ec));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x94756f,CollaborationSocketService as _0x2b1e9a,UniverCollaborationClientPlugin as _0xa1d3ad}from'@univerjs-pro/collaboration-client';import{DependentOn as _0xf9a28d,Disposable as _0x4407e6,DisposableCollection as _0x41cb13,IConfigService as _0x396948,ILogService as _0x657ce6,Inject as _0x1f5758,Injector as _0x51b714,Plugin as _0x416e72,registerDependencies as _0x539fc9,toDisposable as _0xd65bd7}from'@univerjs/core';import{HTTPService as _0x44134a,ISocketService as _0x56f629}from'@univerjs/network';import{Observable as _0x164acf,share as _0x397967}from'rxjs';import{WebSocket as _0x33c7b0}from'ws';import{ISnapshotServerService as _0x31ed16}from'@univerjs-pro/collaboration';function _0x371d(_0xbb6ef9,_0x3f48f7){_0xbb6ef9=_0xbb6ef9-0x178;const _0x285496=_0x2854();let _0x371d02=_0x285496[_0xbb6ef9];return _0x371d02;}const y=_0xac92aa(0x18e),b={};var x=_0xac92aa(0x189),S='1.0.0-alpha.1';function C(_0x4033c3,_0x406b8c){return function(_0x505a5f,_0x1029d8){_0x406b8c(_0x505a5f,_0x1029d8,_0x4033c3);};}function w(_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062){const _0x755b62=_0xac92aa;var _0x4bbdba=arguments[_0x755b62(0x183)],_0x4fff36=_0x4bbdba<0x3?_0x1763f1:_0x48e062===null?_0x48e062=Object[_0x755b62(0x17b)](_0x1763f1,_0x4782b2):_0x48e062,_0x58a209;if(typeof Reflect==_0x755b62(0x199)&&typeof Reflect[_0x755b62(0x195)]==_0x755b62(0x18c))_0x4fff36=Reflect['decorate'](_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062);else{for(var _0xf7b930=_0x4ff3b5[_0x755b62(0x183)]-0x1;_0xf7b930>=0x0;_0xf7b930--)(_0x58a209=_0x4ff3b5[_0xf7b930])&&(_0x4fff36=(_0x4bbdba<0x3?_0x58a209(_0x4fff36):_0x4bbdba>0x3?_0x58a209(_0x1763f1,_0x4782b2,_0x4fff36):_0x58a209(_0x1763f1,_0x4782b2))||_0x4fff36);}return _0x4bbdba>0x3&&_0x4fff36&&Object[_0x755b62(0x198)](_0x1763f1,_0x4782b2,_0x4fff36),_0x4fff36;}let T=class extends _0x4407e6{constructor(_0x493ac2){super(),this['_configService']=_0x493ac2;}['createSocket'](_0x5ba4bf){const _0x569aac=_0xac92aa;var _0x3175a6;let _0x260957=((_0x3175a6=this['_configService'][_0x569aac(0x17a)](_0x94756f))==null?void 0x0:_0x3175a6[_0x569aac(0x185)])||{};try{let _0x3b6c07=new _0x33c7b0(_0x5ba4bf,{'headers':{..._0x260957}}),_0x18bdee=new _0x41cb13();return{'URL':_0x5ba4bf,'close':(_0x5c25b3,_0x3c828c)=>{const _0x46756c=_0x569aac;_0x3b6c07[_0x46756c(0x190)](_0x5c25b3,_0x3c828c),_0x18bdee[_0x46756c(0x196)]();},'send':_0x2797ba=>{_0x3b6c07['send'](_0x2797ba);},'open$':new _0x164acf(_0x2e55fb=>{const _0x4794eb=_0x569aac;let _0x8d6553=_0x11de0a=>_0x2e55fb['next'](_0x11de0a);_0x3b6c07[_0x4794eb(0x191)](_0x4794eb(0x1aa),_0x8d6553),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x4794eb(0x18b)](_0x4794eb(0x1aa),_0x8d6553)));})[_0x569aac(0x1a8)](_0x397967()),'close$':new _0x164acf(_0x41dcff=>{const _0x490daa=_0x569aac;let _0x48e8d5=_0x4304f2=>_0x41dcff['next'](_0x4304f2);_0x3b6c07[_0x490daa(0x191)](_0x490daa(0x190),_0x48e8d5),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x490daa(0x18b)](_0x490daa(0x190),_0x48e8d5)));})[_0x569aac(0x1a8)](_0x397967()),'error$':new _0x164acf(_0x173311=>{const _0x2f7a07=_0x569aac;let _0xb979fd=_0xfaac5c=>_0x173311[_0x2f7a07(0x1a3)](_0xfaac5c);_0x3b6c07['addEventListener'](_0x2f7a07(0x19f),_0xb979fd),_0x18bdee[_0x2f7a07(0x197)](_0xd65bd7(()=>_0x3b6c07['removeEventListener'](_0x2f7a07(0x19f),_0xb979fd)));})['pipe'](_0x397967()),'message$':new _0x164acf(_0x3577b8=>{const _0x3b873d=_0x569aac;let _0x2e2e2f=_0x2ed7c8=>_0x3577b8['next'](_0x2ed7c8);_0x3b6c07[_0x3b873d(0x191)]('message',_0x2e2e2f),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x3b873d(0x18b)](_0x3b873d(0x17c),_0x2e2e2f)));})['pipe'](_0x397967())};}catch(_0x3d1720){return console[_0x569aac(0x19f)](_0x3d1720),null;}}};T=w([C(0x0,_0x396948)],T);function E(_0x4eba55){'@babel/helpers - typeof';const _0x525b3a=_0xac92aa;return E=typeof Symbol==_0x525b3a(0x18c)&&typeof Symbol[_0x525b3a(0x1a0)]==_0x525b3a(0x1a2)?function(_0x70120b){return typeof _0x70120b;}:function(_0x4b2e0b){const _0x5e66ff=_0x525b3a;return _0x4b2e0b&&typeof Symbol==_0x5e66ff(0x18c)&&_0x4b2e0b[_0x5e66ff(0x18a)]===Symbol&&_0x4b2e0b!==Symbol['prototype']?'symbol':typeof _0x4b2e0b;},E(_0x4eba55);}function D(_0x5b4b4f,_0x4084d6){const _0x3a02c7=_0xac92aa;if(E(_0x5b4b4f)!='object'||!_0x5b4b4f)return _0x5b4b4f;var _0x1792c8=_0x5b4b4f[Symbol[_0x3a02c7(0x19b)]];if(_0x1792c8!==void 0x0){var _0x5c901d=_0x1792c8[_0x3a02c7(0x180)](_0x5b4b4f,_0x4084d6||_0x3a02c7(0x1a9));if(E(_0x5c901d)!=_0x3a02c7(0x199))return _0x5c901d;throw TypeError(_0x3a02c7(0x179));}return(_0x4084d6===_0x3a02c7(0x19e)?String:Number)(_0x5b4b4f);}function O(_0x1b02ae){const _0x24f695=_0xac92aa;var _0x1e3012=D(_0x1b02ae,_0x24f695(0x19e));return E(_0x1e3012)=='symbol'?_0x1e3012:_0x1e3012+'';}function k(_0x205354,_0x466449,_0x4b5a8c){const _0xbae024=_0xac92aa;return(_0x466449=O(_0x466449))in _0x205354?Object[_0xbae024(0x198)](_0x205354,_0x466449,{'value':_0x4b5a8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x205354[_0x466449]=_0x4b5a8c,_0x205354;}let A=class extends _0x416e72{constructor(_0x1da9f6=b,_0x4fdd5f,_0x520db6){const _0x2a9f65=_0xac92aa;super(),this['_configService']=_0x4fdd5f,this[_0x2a9f65(0x18d)]=_0x520db6,this[_0x2a9f65(0x181)][_0x2a9f65(0x1a7)](y,_0x1da9f6);}[_0xac92aa(0x19a)](){const _0x517ea8=_0xac92aa;this[_0x517ea8(0x1a1)]();}[_0xac92aa(0x1a1)](){const _0x11657a=_0xac92aa;_0x539fc9(this[_0x11657a(0x18d)],[[_0x56f629,{'useClass':T}]]);}};k(A,_0xac92aa(0x18f),_0xac92aa(0x1a5)),k(A,'packageName',x),k(A,_0xac92aa(0x193),S),A=w([_0xf9a28d(_0xa1d3ad),C(0x1,_0x396948),C(0x2,_0x1f5758(_0x51b714))],A);let j=class extends _0x2b1e9a{constructor(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867){const _0x32b6c7=_0xac92aa;super(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867);let _0x16b5a5=this[_0x32b6c7(0x181)][_0x32b6c7(0x17a)](_0x94756f);this[_0x32b6c7(0x184)][_0x32b6c7(0x17f)]({'interceptor':(_0x1c0f1c,_0x23ca59)=>{const _0x2ed286=_0x32b6c7;let _0x465ce6=_0x1c0f1c[_0x2ed286(0x19c)];if(_0x16b5a5!=null&&_0x16b5a5[_0x2ed286(0x185)]){for(let _0x56b75c in _0x16b5a5[_0x2ed286(0x185)])_0x465ce6[_0x2ed286(0x17d)](_0x56b75c,_0x16b5a5[_0x2ed286(0x185)][_0x56b75c]);}return _0x23ca59(_0x1c0f1c);}});}async['createSocket'](_0x53cbd7){return this['_doCreateSocket'](_0x53cbd7);}};function _0x2854(){const _0x48ba41=['toPrimitive','headers','104vetNgo','string','error','iterator','_registerDependencies','symbol','next','8802717OFNfGM','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','59526zTxgwH','setConfig','pipe','default','open','2745621QXgVKz','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','getOwnPropertyDescriptor','message','set','2tXeIMO','registerHTTPInterceptor','call','_configService','14GitPhr','length','_httpService','customHeaders','192553YozEGf','8IdBLpw','2245794SNErPt','@univerjs-pro/collaboration-client-node','constructor','removeEventListener','function','_injector','collaboration-client-node.config','pluginName','close','addEventListener','2725580oHoUHr','version','7363590ktgcCz','decorate','dispose','add','defineProperty','object','onStarting'];_0x2854=function(){return _0x48ba41;};return _0x2854();}j=w([C(0x0,_0x1f5758(_0x51b714)),C(0x1,_0x1f5758(_0x44134a)),C(0x2,_0x396948),C(0x3,_0x657ce6),C(0x4,_0x31ed16)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
@@ -1,4 +1,4 @@
1
- export { COLLABORATION_CLIENT_NODE_CONFIG_KEY } from './config.schema';
2
- export type { IUniverCollaborationClientNodeConfig } from './config.schema';
1
+ export { COLLABORATION_CLIENT_NODE_CONFIG_KEY } from './config/config';
2
+ export type { IUniverCollaborationClientNodeConfig } from './config/config';
3
3
  export { UniverCollaborationClientNodePlugin } from './plugin';
4
4
  export { NodeCollaborationSocketService } from './services/collaboration-socket.service';
@@ -1,4 +1,4 @@
1
- import type { IUniverCollaborationClientNodeConfig } from './config.schema';
1
+ import type { IUniverCollaborationClientNodeConfig } from './config/config';
2
2
  import { IConfigService, Injector, Plugin } from '@univerjs/core';
3
3
  export declare class UniverCollaborationClientNodePlugin extends Plugin {
4
4
  private readonly _configService;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2b8a(){const _0x2808d5=['Observable','_configService','Module','customHeaders','777184ohqwdy','packageName','version','registerDependencies','pipe','1tUdNXh','collaboration-client-node.config','error','DisposableCollection','ISocketService','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2072250AZfkif','prototype','removeEventListener','iterator','close','toDisposable','next','send','onStarting','UniverProCollaborationClient','toPrimitive','_doCreateSocket','Inject','pluginName','defineProperty','91758JSpybE','8954DaSsBu','toStringTag','string','object','IConfigService','Disposable','constructor','getConfig','ILogService','dispose','getOwnPropertyDescriptor','UniverCollaborationClientPlugin','function','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','share','12340940mSfpXL','WebSocket','UniverProCollaborationClientNode','rxjs','add','_httpService','@univerjs/core','exports','setConfig','_registerDependencies','_injector','49EeThRX','78HeCGVy','@univerjs/network','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','@univerjs-pro/collaboration-client','2232358LQPZrX','@univerjs-pro/collaboration-client-node','15576kvPyRY','68twZjjU','UniverCore','DependentOn','95075yhTmga','call','symbol','set','headers','decorate','0.25.1','UniverCollaborationClientNodePlugin','open','createSocket','message'];_0x2b8a=function(){return _0x2808d5;};return _0x2b8a();}function _0x48d1(_0x2409ac,_0x4a809c){_0x2409ac=_0x2409ac-0x175;const _0x2b8a3a=_0x2b8a();let _0x48d15c=_0x2b8a3a[_0x2409ac];return _0x48d15c;}(function(_0x1e840d,_0x33e99d){const _0x16ac59=_0x48d1,_0x53aee1=_0x1e840d();while(!![]){try{const _0x46c327=parseInt(_0x16ac59(0x19f))/0x1*(parseInt(_0x16ac59(0x185))/0x2)+parseInt(_0x16ac59(0x1b5))/0x3*(-parseInt(_0x16ac59(0x188))/0x4)+parseInt(_0x16ac59(0x18b))/0x5*(-parseInt(_0x16ac59(0x180))/0x6)+parseInt(_0x16ac59(0x17f))/0x7*(parseInt(_0x16ac59(0x19a))/0x8)+-parseInt(_0x16ac59(0x1a6))/0x9+-parseInt(_0x16ac59(0x1c5))/0xa+-parseInt(_0x16ac59(0x1b6))/0xb*(-parseInt(_0x16ac59(0x187))/0xc);if(_0x46c327===_0x33e99d)break;else _0x53aee1['push'](_0x53aee1['shift']());}catch(_0x471322){_0x53aee1['push'](_0x53aee1['shift']());}}}(_0x2b8a,0x97ae6),function(_0x467703,_0x3a88ca){const _0x1f10a8=_0x48d1;typeof exports==_0x1f10a8(0x1b9)&&typeof module<'u'?_0x3a88ca(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x1f10a8(0x1c2)&&define['amd']?define([_0x1f10a8(0x17b),_0x1f10a8(0x184),_0x1f10a8(0x17a),_0x1f10a8(0x181),_0x1f10a8(0x177),'@univerjs-pro/collaboration'],_0x3a88ca):(_0x467703=typeof globalThis<'u'?globalThis:_0x467703||self,_0x3a88ca(_0x467703[_0x1f10a8(0x176)]={},_0x467703[_0x1f10a8(0x1af)],_0x467703[_0x1f10a8(0x189)],_0x467703['UniverNetwork'],_0x467703[_0x1f10a8(0x177)],_0x467703['UniverProCollaboration']));}(this,function(_0x15283b,_0x48e5fc,_0x3d655c,_0x22bdc2,_0x12ab82,_0x246997){const _0x22725e=_0x48d1;Object[_0x22725e(0x1b4)](_0x15283b,Symbol[_0x22725e(0x1b7)],{'value':_0x22725e(0x198)});var _0x304f78=(_0x47af92,_0x1e1e90)=>()=>(_0x1e1e90||(_0x47af92((_0x1e1e90={'exports':{}})[_0x22725e(0x17b)],_0x1e1e90),_0x47af92=null),_0x1e1e90[_0x22725e(0x17b)]);let _0x28337d=_0x22725e(0x1a0),_0x377983={};var _0x167d18=_0x22725e(0x186),_0x1bf2e6=_0x22725e(0x191),_0x563f41=_0x304f78((_0x18cd6f,_0x35b448)=>{_0x35b448['exports']=function(){const _0x5cf9e2=_0x48d1;throw Error(_0x5cf9e2(0x1c3));};})();function _0x5148e7(_0x2ddabe,_0x4b39a8){return function(_0x191ca1,_0xa3eb52){_0x4b39a8(_0x191ca1,_0xa3eb52,_0x2ddabe);};}function _0x27b414(_0x586d69,_0x43fc2a,_0x260e36,_0x483a72){const _0x1bf9e2=_0x22725e;var _0x5ee182=arguments[_0x1bf9e2(0x1a4)],_0x5ddf12=_0x5ee182<0x3?_0x43fc2a:_0x483a72===null?_0x483a72=Object[_0x1bf9e2(0x1c0)](_0x43fc2a,_0x260e36):_0x483a72,_0x44241c;if(typeof Reflect==_0x1bf9e2(0x1b9)&&typeof Reflect[_0x1bf9e2(0x190)]==_0x1bf9e2(0x1c2))_0x5ddf12=Reflect['decorate'](_0x586d69,_0x43fc2a,_0x260e36,_0x483a72);else{for(var _0x4aa83a=_0x586d69[_0x1bf9e2(0x1a4)]-0x1;_0x4aa83a>=0x0;_0x4aa83a--)(_0x44241c=_0x586d69[_0x4aa83a])&&(_0x5ddf12=(_0x5ee182<0x3?_0x44241c(_0x5ddf12):_0x5ee182>0x3?_0x44241c(_0x43fc2a,_0x260e36,_0x5ddf12):_0x44241c(_0x43fc2a,_0x260e36))||_0x5ddf12);}return _0x5ee182>0x3&&_0x5ddf12&&Object[_0x1bf9e2(0x1b4)](_0x43fc2a,_0x260e36,_0x5ddf12),_0x5ddf12;}let _0xe371de=class extends _0x3d655c[_0x22725e(0x1bb)]{constructor(_0x535e91){const _0x125f80=_0x22725e;super(),this[_0x125f80(0x197)]=_0x535e91;}[_0x22725e(0x194)](_0x4a9e36){const _0x31d1f0=_0x22725e;var _0x39be3b;let _0x3d688d=((_0x39be3b=this[_0x31d1f0(0x197)]['getConfig'](_0x48e5fc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x39be3b[_0x31d1f0(0x199)])||{};try{let _0x406098=new _0x563f41[(_0x31d1f0(0x175))](_0x4a9e36,{'headers':{..._0x3d688d}}),_0x2b2274=new _0x3d655c[(_0x31d1f0(0x1a2))]();return{'URL':_0x4a9e36,'close':(_0x4c61b9,_0x119371)=>{const _0x4e5e5a=_0x31d1f0;_0x406098[_0x4e5e5a(0x1aa)](_0x4c61b9,_0x119371),_0x2b2274[_0x4e5e5a(0x1bf)]();},'send':_0x1f0a37=>{const _0x2bb640=_0x31d1f0;_0x406098[_0x2bb640(0x1ad)](_0x1f0a37);},'open$':new _0x12ab82[(_0x31d1f0(0x196))](_0x2fde1f=>{const _0x3745c2=_0x31d1f0;let _0x50eba6=_0x38e848=>_0x2fde1f[_0x3745c2(0x1ac)](_0x38e848);_0x406098[_0x3745c2(0x182)](_0x3745c2(0x193),_0x50eba6),_0x2b2274[_0x3745c2(0x178)]((0x0,_0x3d655c[_0x3745c2(0x1ab)])(()=>_0x406098[_0x3745c2(0x1a8)](_0x3745c2(0x193),_0x50eba6)));})['pipe']((0x0,_0x12ab82[_0x31d1f0(0x1c4)])()),'close$':new _0x12ab82[(_0x31d1f0(0x196))](_0xe7ffa=>{const _0x55c304=_0x31d1f0;let _0x34fb96=_0x38ccd5=>_0xe7ffa[_0x55c304(0x1ac)](_0x38ccd5);_0x406098['addEventListener'](_0x55c304(0x1aa),_0x34fb96),_0x2b2274['add']((0x0,_0x3d655c[_0x55c304(0x1ab)])(()=>_0x406098[_0x55c304(0x1a8)](_0x55c304(0x1aa),_0x34fb96)));})['pipe']((0x0,_0x12ab82[_0x31d1f0(0x1c4)])()),'error$':new _0x12ab82[(_0x31d1f0(0x196))](_0x5b9195=>{const _0x48c73e=_0x31d1f0;let _0x42c0a6=_0x202681=>_0x5b9195[_0x48c73e(0x1ac)](_0x202681);_0x406098['addEventListener']('error',_0x42c0a6),_0x2b2274[_0x48c73e(0x178)]((0x0,_0x3d655c[_0x48c73e(0x1ab)])(()=>_0x406098[_0x48c73e(0x1a8)](_0x48c73e(0x1a1),_0x42c0a6)));})[_0x31d1f0(0x19e)]((0x0,_0x12ab82['share'])()),'message$':new _0x12ab82[(_0x31d1f0(0x196))](_0x1dc537=>{const _0x42b7d4=_0x31d1f0;let _0x592d92=_0x5052ba=>_0x1dc537[_0x42b7d4(0x1ac)](_0x5052ba);_0x406098[_0x42b7d4(0x182)](_0x42b7d4(0x195),_0x592d92),_0x2b2274[_0x42b7d4(0x178)]((0x0,_0x3d655c[_0x42b7d4(0x1ab)])(()=>_0x406098[_0x42b7d4(0x1a8)](_0x42b7d4(0x195),_0x592d92)));})[_0x31d1f0(0x19e)]((0x0,_0x12ab82[_0x31d1f0(0x1c4)])())};}catch(_0x267026){return console[_0x31d1f0(0x1a1)](_0x267026),null;}}};_0xe371de=_0x27b414([_0x5148e7(0x0,_0x3d655c[_0x22725e(0x1ba)])],_0xe371de);function _0x58f0c7(_0xaef784){'@babel/helpers - typeof';const _0x23fd38=_0x22725e;return _0x58f0c7=typeof Symbol=='function'&&typeof Symbol[_0x23fd38(0x1a9)]==_0x23fd38(0x18d)?function(_0x3113b5){return typeof _0x3113b5;}:function(_0x7612a8){const _0x8d7b2=_0x23fd38;return _0x7612a8&&typeof Symbol==_0x8d7b2(0x1c2)&&_0x7612a8[_0x8d7b2(0x1bc)]===Symbol&&_0x7612a8!==Symbol[_0x8d7b2(0x1a7)]?'symbol':typeof _0x7612a8;},_0x58f0c7(_0xaef784);}function _0x290c2c(_0x4a53cc,_0x23a520){const _0xa9e7d5=_0x22725e;if(_0x58f0c7(_0x4a53cc)!=_0xa9e7d5(0x1b9)||!_0x4a53cc)return _0x4a53cc;var _0x38214b=_0x4a53cc[Symbol[_0xa9e7d5(0x1b0)]];if(_0x38214b!==void 0x0){var _0x4b0134=_0x38214b[_0xa9e7d5(0x18c)](_0x4a53cc,_0x23a520||'default');if(_0x58f0c7(_0x4b0134)!=_0xa9e7d5(0x1b9))return _0x4b0134;throw TypeError(_0xa9e7d5(0x1a5));}return(_0x23a520===_0xa9e7d5(0x1b8)?String:Number)(_0x4a53cc);}function _0x274753(_0x3d52f3){const _0x230888=_0x22725e;var _0x23954c=_0x290c2c(_0x3d52f3,_0x230888(0x1b8));return _0x58f0c7(_0x23954c)==_0x230888(0x18d)?_0x23954c:_0x23954c+'';}function _0x4d2852(_0x1c714c,_0x12bb87,_0x37cb6c){return(_0x12bb87=_0x274753(_0x12bb87))in _0x1c714c?Object['defineProperty'](_0x1c714c,_0x12bb87,{'value':_0x37cb6c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c714c[_0x12bb87]=_0x37cb6c,_0x1c714c;}let _0x112177=class extends _0x3d655c['Plugin']{constructor(_0x46e35e=_0x377983,_0x554696,_0x2b5fa9){const _0x4ee512=_0x22725e;super(),this[_0x4ee512(0x197)]=_0x554696,this['_injector']=_0x2b5fa9,this['_configService'][_0x4ee512(0x17c)](_0x28337d,_0x46e35e);}[_0x22725e(0x1ae)](){const _0x2047b8=_0x22725e;this[_0x2047b8(0x17d)]();}['_registerDependencies'](){const _0x54984f=_0x22725e;(0x0,_0x3d655c[_0x54984f(0x19d)])(this[_0x54984f(0x17e)],[[_0x22bdc2[_0x54984f(0x1a3)],{'useClass':_0xe371de}]]);}};_0x4d2852(_0x112177,_0x22725e(0x1b3),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x4d2852(_0x112177,_0x22725e(0x19b),_0x167d18),_0x4d2852(_0x112177,_0x22725e(0x19c),_0x1bf2e6),_0x112177=_0x27b414([(0x0,_0x3d655c[_0x22725e(0x18a)])(_0x48e5fc[_0x22725e(0x1c1)]),_0x5148e7(0x1,_0x3d655c[_0x22725e(0x1ba)]),_0x5148e7(0x2,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x3d655c['Injector']))],_0x112177);let _0x3b5f94=class extends _0x48e5fc['CollaborationSocketService']{constructor(_0x4f0042,_0x32cb12,_0x324866,_0x106b05,_0x531cc3){const _0x3ad32b=_0x22725e;super(_0x4f0042,_0x32cb12,_0x324866,_0x106b05,_0x531cc3);let _0x47d723=this[_0x3ad32b(0x197)][_0x3ad32b(0x1bd)](_0x48e5fc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x3ad32b(0x179)]['registerHTTPInterceptor']({'interceptor':(_0x31b8a2,_0x5c3561)=>{const _0x1ecf12=_0x3ad32b;let _0x2fe1c8=_0x31b8a2[_0x1ecf12(0x18f)];if(_0x47d723!=null&&_0x47d723[_0x1ecf12(0x199)]){for(let _0x33d3a1 in _0x47d723['customHeaders'])_0x2fe1c8[_0x1ecf12(0x18e)](_0x33d3a1,_0x47d723[_0x1ecf12(0x199)][_0x33d3a1]);}return _0x5c3561(_0x31b8a2);}});}async[_0x22725e(0x194)](_0x3aa595){const _0x5d0584=_0x22725e;return this[_0x5d0584(0x1b1)](_0x3aa595);}};_0x3b5f94=_0x27b414([_0x5148e7(0x0,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x3d655c['Injector'])),_0x5148e7(0x1,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x22bdc2['HTTPService'])),_0x5148e7(0x2,_0x3d655c[_0x22725e(0x1ba)]),_0x5148e7(0x3,_0x3d655c[_0x22725e(0x1be)]),_0x5148e7(0x4,_0x246997['ISnapshotServerService'])],_0x3b5f94),_0x15283b[_0x22725e(0x183)]=_0x28337d,Object[_0x22725e(0x1b4)](_0x15283b,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x3b5f94;}}),Object[_0x22725e(0x1b4)](_0x15283b,_0x22725e(0x192),{'enumerable':!0x0,'get':function(){return _0x112177;}});}));
1
+ function _0x15e7(_0x3cc28c,_0x1c5168){_0x3cc28c=_0x3cc28c-0x13d;const _0x41ae8b=_0x41ae();let _0x15e7df=_0x41ae8b[_0x3cc28c];return _0x15e7df;}function _0x41ae(){const _0x43303e=['registerDependencies','send','toDisposable','close','call','pluginName','toStringTag','ISocketService','_configService','WebSocket','iterator','collaboration-client-node.config','UniverProCollaborationClientNode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs/network','Plugin','COLLABORATION_CLIENT_NODE_CONFIG_KEY','headers','10377240yNPCzn','onStarting','set','decorate','35UpbuJi','constructor','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','string','UniverProCollaboration','_doCreateSocket','version','685812kEEcZE','default','HTTPService','DependentOn','_httpService','27970ikJDiq','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','customHeaders','1.0.0-alpha.1','amd','prototype','add','959896qLQcDe','object','ILogService','message','setConfig','@univerjs-pro/collaboration-client','getConfig','_injector','removeEventListener','@univerjs/core','IConfigService','next','pipe','exports','@univerjs-pro/collaboration-client-node','symbol','defineProperty','DisposableCollection','getOwnPropertyDescriptor','8049304ctipGc','open','share','Observable','function','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','ISnapshotServerService','290vmXFOg','registerHTTPInterceptor','rxjs','length','_registerDependencies','error','464394ziFWmq','1400463hJobqA','addEventListener','Injector','createSocket','UniverCollaborationClientPlugin','225isgCnF','packageName','@univerjs-pro/collaboration'];_0x41ae=function(){return _0x43303e;};return _0x41ae();}(function(_0x6a458,_0x4caa13){const _0x4a81d1=_0x15e7,_0x33765b=_0x6a458();while(!![]){try{const _0x361e1a=-parseInt(_0x4a81d1(0x164))/0x1+-parseInt(_0x4a81d1(0x15d))/0x2*(parseInt(_0x4a81d1(0x18b))/0x3)+parseInt(_0x4a81d1(0x158))/0x4*(parseInt(_0x4a81d1(0x151))/0x5)+-parseInt(_0x4a81d1(0x14d))/0x6+-parseInt(_0x4a81d1(0x185))/0x7+-parseInt(_0x4a81d1(0x177))/0x8+-parseInt(_0x4a81d1(0x186))/0x9*(-parseInt(_0x4a81d1(0x17f))/0xa);if(_0x361e1a===_0x4caa13)break;else _0x33765b['push'](_0x33765b['shift']());}catch(_0xc2d586){_0x33765b['push'](_0x33765b['shift']());}}}(_0x41ae,0xdc346),function(_0x2e5aea,_0x106c15){const _0x399803=_0x15e7;typeof exports=='object'&&typeof module<'u'?_0x106c15(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x399803(0x17b)&&define[_0x399803(0x161)]?define([_0x399803(0x171),_0x399803(0x169),_0x399803(0x16d),_0x399803(0x149),_0x399803(0x181),_0x399803(0x18d)],_0x106c15):(_0x2e5aea=typeof globalThis<'u'?globalThis:_0x2e5aea||self,_0x106c15(_0x2e5aea[_0x399803(0x147)]={},_0x2e5aea['UniverProCollaborationClient'],_0x2e5aea['UniverCore'],_0x2e5aea['UniverNetwork'],_0x2e5aea[_0x399803(0x181)],_0x2e5aea[_0x399803(0x155)]));}(this,function(_0x3a2596,_0x551afe,_0x25ab72,_0x41dcff,_0x5e5747,_0x16a79e){const _0x490e04=_0x15e7;Object[_0x490e04(0x174)](_0x3a2596,Symbol[_0x490e04(0x141)],{'value':'Module'});var _0x17a4ac=(_0x35b320,_0xaccb39)=>()=>(_0xaccb39||(_0x35b320((_0xaccb39={'exports':{}})[_0x490e04(0x171)],_0xaccb39),_0x35b320=null),_0xaccb39[_0x490e04(0x171)]);let _0x15958f=_0x490e04(0x146),_0xbb9016={};var _0x946850=_0x490e04(0x172),_0x1c1c2a=_0x490e04(0x160),_0x44e35d=_0x17a4ac((_0x54d45c,_0x168991)=>{const _0x6b3a08=_0x490e04;_0x168991[_0x6b3a08(0x171)]=function(){const _0x2b007b=_0x6b3a08;throw Error(_0x2b007b(0x153));};})();function _0x30738e(_0x2c00be,_0x36e986){return function(_0x2e2537,_0x145102){_0x36e986(_0x2e2537,_0x145102,_0x2c00be);};}function _0x1b6218(_0x320c56,_0xc25ebc,_0x453c11,_0x559469){const _0x33732a=_0x490e04;var _0x19cdb0=arguments[_0x33732a(0x182)],_0x4aced6=_0x19cdb0<0x3?_0xc25ebc:_0x559469===null?_0x559469=Object[_0x33732a(0x176)](_0xc25ebc,_0x453c11):_0x559469,_0x283261;if(typeof Reflect==_0x33732a(0x165)&&typeof Reflect[_0x33732a(0x150)]=='function')_0x4aced6=Reflect['decorate'](_0x320c56,_0xc25ebc,_0x453c11,_0x559469);else{for(var _0x5d32ad=_0x320c56[_0x33732a(0x182)]-0x1;_0x5d32ad>=0x0;_0x5d32ad--)(_0x283261=_0x320c56[_0x5d32ad])&&(_0x4aced6=(_0x19cdb0<0x3?_0x283261(_0x4aced6):_0x19cdb0>0x3?_0x283261(_0xc25ebc,_0x453c11,_0x4aced6):_0x283261(_0xc25ebc,_0x453c11))||_0x4aced6);}return _0x19cdb0>0x3&&_0x4aced6&&Object[_0x33732a(0x174)](_0xc25ebc,_0x453c11,_0x4aced6),_0x4aced6;}let _0x3833d0=class extends _0x25ab72['Disposable']{constructor(_0x131d8a){const _0x1e79c3=_0x490e04;super(),this[_0x1e79c3(0x143)]=_0x131d8a;}[_0x490e04(0x189)](_0x22e93b){const _0x1d514e=_0x490e04;var _0x127112;let _0x10418d=((_0x127112=this[_0x1d514e(0x143)][_0x1d514e(0x16a)](_0x551afe[_0x1d514e(0x17c)]))==null?void 0x0:_0x127112[_0x1d514e(0x15f)])||{};try{let _0x58ddd2=new _0x44e35d[(_0x1d514e(0x144))](_0x22e93b,{'headers':{..._0x10418d}}),_0x18a3de=new _0x25ab72[(_0x1d514e(0x175))]();return{'URL':_0x22e93b,'close':(_0x9c5418,_0x1f7624)=>{_0x58ddd2['close'](_0x9c5418,_0x1f7624),_0x18a3de['dispose']();},'send':_0x1f2259=>{const _0x1495c9=_0x1d514e;_0x58ddd2[_0x1495c9(0x18f)](_0x1f2259);},'open$':new _0x5e5747[(_0x1d514e(0x17a))](_0x57d7a2=>{const _0x4ff483=_0x1d514e;let _0x386200=_0x28232f=>_0x57d7a2[_0x4ff483(0x16f)](_0x28232f);_0x58ddd2[_0x4ff483(0x187)](_0x4ff483(0x178),_0x386200),_0x18a3de[_0x4ff483(0x163)]((0x0,_0x25ab72[_0x4ff483(0x13d)])(()=>_0x58ddd2[_0x4ff483(0x16c)]('open',_0x386200)));})[_0x1d514e(0x170)]((0x0,_0x5e5747[_0x1d514e(0x179)])()),'close$':new _0x5e5747['Observable'](_0x5be5c5=>{const _0x33dd52=_0x1d514e;let _0x5f1775=_0x22f081=>_0x5be5c5[_0x33dd52(0x16f)](_0x22f081);_0x58ddd2[_0x33dd52(0x187)](_0x33dd52(0x13e),_0x5f1775),_0x18a3de[_0x33dd52(0x163)]((0x0,_0x25ab72[_0x33dd52(0x13d)])(()=>_0x58ddd2[_0x33dd52(0x16c)](_0x33dd52(0x13e),_0x5f1775)));})['pipe']((0x0,_0x5e5747['share'])()),'error$':new _0x5e5747[(_0x1d514e(0x17a))](_0x1db46c=>{const _0xca2018=_0x1d514e;let _0x55d15e=_0x5673fa=>_0x1db46c['next'](_0x5673fa);_0x58ddd2[_0xca2018(0x187)]('error',_0x55d15e),_0x18a3de[_0xca2018(0x163)]((0x0,_0x25ab72[_0xca2018(0x13d)])(()=>_0x58ddd2[_0xca2018(0x16c)](_0xca2018(0x184),_0x55d15e)));})['pipe']((0x0,_0x5e5747['share'])()),'message$':new _0x5e5747[(_0x1d514e(0x17a))](_0x1752bc=>{const _0x47a9dd=_0x1d514e;let _0x146c34=_0x1a3256=>_0x1752bc[_0x47a9dd(0x16f)](_0x1a3256);_0x58ddd2[_0x47a9dd(0x187)](_0x47a9dd(0x167),_0x146c34),_0x18a3de[_0x47a9dd(0x163)]((0x0,_0x25ab72[_0x47a9dd(0x13d)])(()=>_0x58ddd2['removeEventListener'](_0x47a9dd(0x167),_0x146c34)));})[_0x1d514e(0x170)]((0x0,_0x5e5747['share'])())};}catch(_0x16405d){return console['error'](_0x16405d),null;}}};_0x3833d0=_0x1b6218([_0x30738e(0x0,_0x25ab72[_0x490e04(0x16e)])],_0x3833d0);function _0x251c91(_0x1652b2){'@babel/helpers - typeof';const _0x150583=_0x490e04;return _0x251c91=typeof Symbol==_0x150583(0x17b)&&typeof Symbol[_0x150583(0x145)]==_0x150583(0x173)?function(_0x32f735){return typeof _0x32f735;}:function(_0x573279){const _0x2a5cc9=_0x150583;return _0x573279&&typeof Symbol==_0x2a5cc9(0x17b)&&_0x573279[_0x2a5cc9(0x152)]===Symbol&&_0x573279!==Symbol[_0x2a5cc9(0x162)]?'symbol':typeof _0x573279;},_0x251c91(_0x1652b2);}function _0x5d42ea(_0xfaa4cf,_0x3b1df8){const _0xfa313f=_0x490e04;if(_0x251c91(_0xfaa4cf)!='object'||!_0xfaa4cf)return _0xfaa4cf;var _0x123660=_0xfaa4cf[Symbol['toPrimitive']];if(_0x123660!==void 0x0){var _0x5c1d2b=_0x123660[_0xfa313f(0x13f)](_0xfaa4cf,_0x3b1df8||_0xfa313f(0x159));if(_0x251c91(_0x5c1d2b)!=_0xfa313f(0x165))return _0x5c1d2b;throw TypeError(_0xfa313f(0x148));}return(_0x3b1df8===_0xfa313f(0x154)?String:Number)(_0xfaa4cf);}function _0x5a1bff(_0xf75370){const _0x134cae=_0x490e04;var _0x13d796=_0x5d42ea(_0xf75370,_0x134cae(0x154));return _0x251c91(_0x13d796)==_0x134cae(0x173)?_0x13d796:_0x13d796+'';}function _0x4cc3f2(_0x3661fd,_0x57837e,_0x14f83e){const _0x7985dc=_0x490e04;return(_0x57837e=_0x5a1bff(_0x57837e))in _0x3661fd?Object[_0x7985dc(0x174)](_0x3661fd,_0x57837e,{'value':_0x14f83e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3661fd[_0x57837e]=_0x14f83e,_0x3661fd;}let _0x3dd56b=class extends _0x25ab72[_0x490e04(0x14a)]{constructor(_0x97c411=_0xbb9016,_0x4624c5,_0x2b62aa){const _0x101372=_0x490e04;super(),this[_0x101372(0x143)]=_0x4624c5,this[_0x101372(0x16b)]=_0x2b62aa,this[_0x101372(0x143)][_0x101372(0x168)](_0x15958f,_0x97c411);}[_0x490e04(0x14e)](){const _0x17d502=_0x490e04;this[_0x17d502(0x183)]();}[_0x490e04(0x183)](){const _0x43aa54=_0x490e04;(0x0,_0x25ab72[_0x43aa54(0x18e)])(this[_0x43aa54(0x16b)],[[_0x41dcff[_0x43aa54(0x142)],{'useClass':_0x3833d0}]]);}};_0x4cc3f2(_0x3dd56b,_0x490e04(0x140),_0x490e04(0x15e)),_0x4cc3f2(_0x3dd56b,_0x490e04(0x18c),_0x946850),_0x4cc3f2(_0x3dd56b,_0x490e04(0x157),_0x1c1c2a),_0x3dd56b=_0x1b6218([(0x0,_0x25ab72[_0x490e04(0x15b)])(_0x551afe[_0x490e04(0x18a)]),_0x30738e(0x1,_0x25ab72['IConfigService']),_0x30738e(0x2,(0x0,_0x25ab72[_0x490e04(0x17d)])(_0x25ab72[_0x490e04(0x188)]))],_0x3dd56b);let _0x421366=class extends _0x551afe['CollaborationSocketService']{constructor(_0x31da9c,_0x3ed3fe,_0x30dab3,_0x590927,_0x58ffa0){const _0x37dc7e=_0x490e04;super(_0x31da9c,_0x3ed3fe,_0x30dab3,_0x590927,_0x58ffa0);let _0x1c4f27=this['_configService']['getConfig'](_0x551afe['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x37dc7e(0x15c)][_0x37dc7e(0x180)]({'interceptor':(_0x24dc71,_0x137025)=>{const _0x4fc501=_0x37dc7e;let _0x1610be=_0x24dc71[_0x4fc501(0x14c)];if(_0x1c4f27!=null&&_0x1c4f27[_0x4fc501(0x15f)]){for(let _0x2486a3 in _0x1c4f27[_0x4fc501(0x15f)])_0x1610be[_0x4fc501(0x14f)](_0x2486a3,_0x1c4f27[_0x4fc501(0x15f)][_0x2486a3]);}return _0x137025(_0x24dc71);}});}async[_0x490e04(0x189)](_0x5d9657){const _0xa83f7d=_0x490e04;return this[_0xa83f7d(0x156)](_0x5d9657);}};_0x421366=_0x1b6218([_0x30738e(0x0,(0x0,_0x25ab72['Inject'])(_0x25ab72[_0x490e04(0x188)])),_0x30738e(0x1,(0x0,_0x25ab72['Inject'])(_0x41dcff[_0x490e04(0x15a)])),_0x30738e(0x2,_0x25ab72[_0x490e04(0x16e)]),_0x30738e(0x3,_0x25ab72[_0x490e04(0x166)]),_0x30738e(0x4,_0x16a79e[_0x490e04(0x17e)])],_0x421366),_0x3a2596[_0x490e04(0x14b)]=_0x15958f,Object[_0x490e04(0x174)](_0x3a2596,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x421366;}}),Object[_0x490e04(0x174)](_0x3a2596,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x3dd56b;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.25.1",
3
+ "version": "1.0.0-alpha.1",
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.1",
56
- "@univerjs/core": "0.25.1",
57
- "@univerjs/network": "0.25.1",
58
- "@univerjs-pro/collaboration-client": "0.25.1"
55
+ "@univerjs-pro/collaboration": "1.0.0-alpha.1",
56
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.1",
57
+ "@univerjs/core": "1.0.0-alpha.1",
58
+ "@univerjs/network": "1.0.0-alpha.1"
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
- "vitest": "^4.1.6",
65
- "@univerjs-infra/shared": "0.25.1"
64
+ "vitest": "^4.1.9",
65
+ "@univerjs-infra/shared": "1.0.0-alpha.1"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",