@univerjs-pro/collaboration-client-node 0.24.0 → 0.25.0-insiders.20260604-29ebbff
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x142806=_0x54b0;(function(_0x24cc29,_0x30e2c7){const _0x14114a=_0x54b0,_0x1b6447=_0x24cc29();while(!![]){try{const _0x24e13f=parseInt(_0x14114a(0x128))/0x1*(-parseInt(_0x14114a(0x139))/0x2)+-parseInt(_0x14114a(0x120))/0x3+-parseInt(_0x14114a(0x11d))/0x4*(parseInt(_0x14114a(0x123))/0x5)+parseInt(_0x14114a(0x12d))/0x6+parseInt(_0x14114a(0x145))/0x7*(-parseInt(_0x14114a(0x111))/0x8)+parseInt(_0x14114a(0x12a))/0x9+parseInt(_0x14114a(0x12c))/0xa*(parseInt(_0x14114a(0x14d))/0xb);if(_0x24e13f===_0x30e2c7)break;else _0x1b6447['push'](_0x1b6447['shift']());}catch(_0x3d93c1){_0x1b6447['push'](_0x1b6447['shift']());}}}(_0x1640,0x5a8ba),Object[_0x142806(0x13e)](exports,Symbol[_0x142806(0x11f)],{'value':_0x142806(0x13a)}));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=_0x142806(0x114),s={};var c=_0x142806(0x133),l='0.25.0-insiders.20260604-29ebbff';function _0x1640(){const _0x2cd5df=['Observable','toDisposable','_configService','next','call','createSocket','removeEventListener','DisposableCollection','421864sWSVpL','add','toStringTag','869220TIfcfC','send','getOwnPropertyDescriptor','5lpmtqw','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DependentOn','_httpService','length','19GFgDvv','onStarting','5320944OtrotV','ILogService','130xsegFQ','3028098nDhyAl','object','open','decorate','error','headers','@univerjs-pro/collaboration-client-node','NodeCollaborationSocketService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Plugin','UniverCollaborationClientPlugin','symbol','44830LJumBP','Module','iterator','_doCreateSocket','registerDependencies','defineProperty','addEventListener','pluginName','getConfig','message','IConfigService','packageName','34237JFLMin','Inject','customHeaders','close','registerHTTPInterceptor','Injector','HTTPService','share','606881iMgWqm','ISnapshotServerService','string','_injector','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','prototype','1016yWujDU','toPrimitive','function','collaboration-client-node.config'];_0x1640=function(){return _0x2cd5df;};return _0x1640();}function u(_0x357e07,_0x274955){return function(_0x158088,_0x120bfe){_0x274955(_0x158088,_0x120bfe,_0x357e07);};}function d(_0x438058,_0x24dade,_0x41afa0,_0x142d6a){const _0x1be5ec=_0x142806;var _0x59abdb=arguments['length'],_0x4d8dd4=_0x59abdb<0x3?_0x24dade:_0x142d6a===null?_0x142d6a=Object[_0x1be5ec(0x122)](_0x24dade,_0x41afa0):_0x142d6a,_0x31b69a;if(typeof Reflect==_0x1be5ec(0x12e)&&typeof Reflect[_0x1be5ec(0x130)]==_0x1be5ec(0x113))_0x4d8dd4=Reflect[_0x1be5ec(0x130)](_0x438058,_0x24dade,_0x41afa0,_0x142d6a);else{for(var _0x2d0566=_0x438058[_0x1be5ec(0x127)]-0x1;_0x2d0566>=0x0;_0x2d0566--)(_0x31b69a=_0x438058[_0x2d0566])&&(_0x4d8dd4=(_0x59abdb<0x3?_0x31b69a(_0x4d8dd4):_0x59abdb>0x3?_0x31b69a(_0x24dade,_0x41afa0,_0x4d8dd4):_0x31b69a(_0x24dade,_0x41afa0))||_0x4d8dd4);}return _0x59abdb>0x3&&_0x4d8dd4&&Object['defineProperty'](_0x24dade,_0x41afa0,_0x4d8dd4),_0x4d8dd4;}let f=class extends t['Disposable']{constructor(_0x20954a){const _0x19b0b0=_0x142806;super(),this[_0x19b0b0(0x117)]=_0x20954a;}[_0x142806(0x11a)](_0x2adf15){const _0x509c52=_0x142806;var _0x3e9aab;let _0x1a89aa=((_0x3e9aab=this[_0x509c52(0x117)][_0x509c52(0x141)](e[_0x509c52(0x135)]))==null?void 0x0:_0x3e9aab['customHeaders'])||{};try{let _0x1ff310=new i['WebSocket'](_0x2adf15,{'headers':{..._0x1a89aa}}),_0x133c1c=new t[(_0x509c52(0x11c))]();return{'URL':_0x2adf15,'close':(_0x54bb3c,_0x4ff131)=>{_0x1ff310['close'](_0x54bb3c,_0x4ff131),_0x133c1c['dispose']();},'send':_0x2154a3=>{const _0x27eb4a=_0x509c52;_0x1ff310[_0x27eb4a(0x121)](_0x2154a3);},'open$':new r[(_0x509c52(0x115))](_0x1e549c=>{const _0x38538b=_0x509c52;let _0x5bf40b=_0x5d5645=>_0x1e549c[_0x38538b(0x118)](_0x5d5645);_0x1ff310['addEventListener']('open',_0x5bf40b),_0x133c1c[_0x38538b(0x11e)]((0x0,t[_0x38538b(0x116)])(()=>_0x1ff310[_0x38538b(0x11b)](_0x38538b(0x12f),_0x5bf40b)));})[_0x509c52(0x151)]((0x0,r['share'])()),'close$':new r[(_0x509c52(0x115))](_0x5613a0=>{const _0x2c091b=_0x509c52;let _0x913c=_0x41b60e=>_0x5613a0[_0x2c091b(0x118)](_0x41b60e);_0x1ff310[_0x2c091b(0x13f)](_0x2c091b(0x148),_0x913c),_0x133c1c['add']((0x0,t[_0x2c091b(0x116)])(()=>_0x1ff310['removeEventListener'](_0x2c091b(0x148),_0x913c)));})[_0x509c52(0x151)]((0x0,r[_0x509c52(0x14c)])()),'error$':new r[(_0x509c52(0x115))](_0x4b6c54=>{const _0x55576c=_0x509c52;let _0x515dee=_0xb53174=>_0x4b6c54[_0x55576c(0x118)](_0xb53174);_0x1ff310[_0x55576c(0x13f)](_0x55576c(0x131),_0x515dee),_0x133c1c[_0x55576c(0x11e)]((0x0,t[_0x55576c(0x116)])(()=>_0x1ff310[_0x55576c(0x11b)](_0x55576c(0x131),_0x515dee)));})[_0x509c52(0x151)]((0x0,r[_0x509c52(0x14c)])()),'message$':new r['Observable'](_0x4d8708=>{const _0x50304d=_0x509c52;let _0x501c95=_0x14eb2e=>_0x4d8708[_0x50304d(0x118)](_0x14eb2e);_0x1ff310[_0x50304d(0x13f)]('message',_0x501c95),_0x133c1c[_0x50304d(0x11e)]((0x0,t[_0x50304d(0x116)])(()=>_0x1ff310[_0x50304d(0x11b)](_0x50304d(0x142),_0x501c95)));})[_0x509c52(0x151)]((0x0,r[_0x509c52(0x14c)])())};}catch(_0x35a059){return console[_0x509c52(0x131)](_0x35a059),null;}}};f=d([u(0x0,t[_0x142806(0x143)])],f);function _0x54b0(_0x17cde1,_0x5afaaa){_0x17cde1=_0x17cde1-0x110;const _0x1640b8=_0x1640();let _0x54b027=_0x1640b8[_0x17cde1];return _0x54b027;}function p(_0x24fed3){'@babel/helpers - typeof';const _0x4e0333=_0x142806;return p=typeof Symbol==_0x4e0333(0x113)&&typeof Symbol[_0x4e0333(0x13b)]==_0x4e0333(0x138)?function(_0x5b9bcf){return typeof _0x5b9bcf;}:function(_0x36f5a0){const _0xf08bc3=_0x4e0333;return _0x36f5a0&&typeof Symbol==_0xf08bc3(0x113)&&_0x36f5a0['constructor']===Symbol&&_0x36f5a0!==Symbol[_0xf08bc3(0x110)]?_0xf08bc3(0x138):typeof _0x36f5a0;},p(_0x24fed3);}function m(_0x3616e9,_0x3c1c8b){const _0x1c9971=_0x142806;if(p(_0x3616e9)!='object'||!_0x3616e9)return _0x3616e9;var _0x1c32a5=_0x3616e9[Symbol[_0x1c9971(0x112)]];if(_0x1c32a5!==void 0x0){var _0x3db988=_0x1c32a5[_0x1c9971(0x119)](_0x3616e9,_0x3c1c8b||'default');if(p(_0x3db988)!='object')return _0x3db988;throw TypeError(_0x1c9971(0x124));}return(_0x3c1c8b==='string'?String:Number)(_0x3616e9);}function h(_0x5349d7){const _0x39410a=_0x142806;var _0x92b16c=m(_0x5349d7,_0x39410a(0x14f));return p(_0x92b16c)==_0x39410a(0x138)?_0x92b16c:_0x92b16c+'';}function g(_0x11a4f7,_0x58dc93,_0x40165a){const _0x433712=_0x142806;return(_0x58dc93=h(_0x58dc93))in _0x11a4f7?Object[_0x433712(0x13e)](_0x11a4f7,_0x58dc93,{'value':_0x40165a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11a4f7[_0x58dc93]=_0x40165a,_0x11a4f7;}let _=class extends t[_0x142806(0x136)]{constructor(_0x40ef80=s,_0x45d3c5,_0xf4438d){const _0x5d2936=_0x142806;super(),this[_0x5d2936(0x117)]=_0x45d3c5,this[_0x5d2936(0x150)]=_0xf4438d,this['_configService']['setConfig'](o,_0x40ef80);}[_0x142806(0x129)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x3c9cb7=_0x142806;(0x0,t[_0x3c9cb7(0x13d)])(this[_0x3c9cb7(0x150)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,_0x142806(0x140),_0x142806(0x152)),g(_,_0x142806(0x144),c),g(_,'version',l),_=d([(0x0,t[_0x142806(0x125)])(e[_0x142806(0x137)]),u(0x1,t[_0x142806(0x143)]),u(0x2,(0x0,t[_0x142806(0x146)])(t[_0x142806(0x14a)]))],_);let v=class extends e['CollaborationSocketService']{constructor(_0xcc40cb,_0x2d1aa3,_0x2dc500,_0x315b4a,_0x1fdd80){const _0x56b78d=_0x142806;super(_0xcc40cb,_0x2d1aa3,_0x2dc500,_0x315b4a,_0x1fdd80);let _0x37c7d7=this['_configService'][_0x56b78d(0x141)](e[_0x56b78d(0x135)]);this[_0x56b78d(0x126)][_0x56b78d(0x149)]({'interceptor':(_0x36761f,_0x2d494b)=>{const _0x24edfc=_0x56b78d;let _0x166167=_0x36761f[_0x24edfc(0x132)];if(_0x37c7d7!=null&&_0x37c7d7[_0x24edfc(0x147)]){for(let _0x237565 in _0x37c7d7[_0x24edfc(0x147)])_0x166167['set'](_0x237565,_0x37c7d7[_0x24edfc(0x147)][_0x237565]);}return _0x2d494b(_0x36761f);}});}async[_0x142806(0x11a)](_0x2c1f21){const _0x1f8cf7=_0x142806;return this[_0x1f8cf7(0x13c)](_0x2c1f21);}};v=d([u(0x0,(0x0,t[_0x142806(0x146)])(t[_0x142806(0x14a)])),u(0x1,(0x0,t[_0x142806(0x146)])(n[_0x142806(0x14b)])),u(0x2,t[_0x142806(0x143)]),u(0x3,t[_0x142806(0x12b)]),u(0x4,a[_0x142806(0x14e)])],v),exports['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=o,Object[_0x142806(0x13e)](exports,_0x142806(0x134),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5732f2=_0x482b;(function(_0x431d3c,_0x324a36){const _0x171458=_0x482b,_0x2b84a2=_0x431d3c();while(!![]){try{const _0x192096=parseInt(_0x171458(0x14e))/0x1+parseInt(_0x171458(0x149))/0x2*(-parseInt(_0x171458(0x159))/0x3)+parseInt(_0x171458(0x141))/0x4*(parseInt(_0x171458(0x13f))/0x5)+parseInt(_0x171458(0x155))/0x6*(-parseInt(_0x171458(0x12a))/0x7)+parseInt(_0x171458(0x151))/0x8*(parseInt(_0x171458(0x12b))/0x9)+-parseInt(_0x171458(0x13c))/0xa*(parseInt(_0x171458(0x14c))/0xb)+parseInt(_0x171458(0x130))/0xc;if(_0x192096===_0x324a36)break;else _0x2b84a2['push'](_0x2b84a2['shift']());}catch(_0x56932c){_0x2b84a2['push'](_0x2b84a2['shift']());}}}(_0x379a,0xd1d01));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1daecc,CollaborationSocketService as _0x1d76e1,UniverCollaborationClientPlugin as _0x324c1c}from'@univerjs-pro/collaboration-client';function _0x379a(){const _0xd5a32d=['decorate','onStarting','33faFdRS','createSocket','1096006hbeWju','constructor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','8UJYkOM','getOwnPropertyDescriptor','addEventListener','_doCreateSocket','9965238ibXgcH','call','collaboration-client-node.config','_configService','3BnUUYC','message','iterator','function','close','0.25.0-insiders.20260604-29ebbff','7jLYfWT','1525536ZSkEzf','_registerDependencies','customHeaders','prototype','packageName','29220876ukfdnN','registerHTTPInterceptor','set','_httpService','next','add','send','default','defineProperty','headers','object','open','4802070bmoisT','_injector','length','2955RaDmBK','removeEventListener','2324xULVYu','getConfig','string','symbol','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','error','pluginName','166134hfqOsQ'];_0x379a=function(){return _0xd5a32d;};return _0x379a();}function _0x482b(_0x48b97b,_0x28d708){_0x48b97b=_0x48b97b-0x128;const _0x379a03=_0x379a();let _0x482bfd=_0x379a03[_0x48b97b];return _0x482bfd;}import{DependentOn as _0x14cd86,Disposable as _0xe422ad,DisposableCollection as _0x415585,IConfigService as _0x37ea79,ILogService as _0x4ee881,Inject as _0x1a27d1,Injector as _0x2e49b5,Plugin as _0x433548,registerDependencies as _0x4bb2db,toDisposable as _0x38b674}from'@univerjs/core';import{HTTPService as _0x21908b,ISocketService as _0x23db3e}from'@univerjs/network';import{Observable as _0x1668b8,share as _0x5c8bcc}from'rxjs';import{WebSocket as _0x33dae4}from'ws';import{ISnapshotServerService as _0x2dd7cc}from'@univerjs-pro/collaboration';const y=_0x5732f2(0x157),b={};var x='@univerjs-pro/collaboration-client-node',S=_0x5732f2(0x129);function C(_0x18accc,_0x8b06db){return function(_0x1b7e83,_0x2e0ad7){_0x8b06db(_0x1b7e83,_0x2e0ad7,_0x18accc);};}function w(_0x466517,_0x43ef88,_0x315f12,_0x815887){const _0x2b7cae=_0x5732f2;var _0x13b9b7=arguments['length'],_0x9455a7=_0x13b9b7<0x3?_0x43ef88:_0x815887===null?_0x815887=Object[_0x2b7cae(0x152)](_0x43ef88,_0x315f12):_0x815887,_0x17d712;if(typeof Reflect==_0x2b7cae(0x13a)&&typeof Reflect[_0x2b7cae(0x14a)]==_0x2b7cae(0x15c))_0x9455a7=Reflect['decorate'](_0x466517,_0x43ef88,_0x315f12,_0x815887);else{for(var _0x120603=_0x466517[_0x2b7cae(0x13e)]-0x1;_0x120603>=0x0;_0x120603--)(_0x17d712=_0x466517[_0x120603])&&(_0x9455a7=(_0x13b9b7<0x3?_0x17d712(_0x9455a7):_0x13b9b7>0x3?_0x17d712(_0x43ef88,_0x315f12,_0x9455a7):_0x17d712(_0x43ef88,_0x315f12))||_0x9455a7);}return _0x13b9b7>0x3&&_0x9455a7&&Object['defineProperty'](_0x43ef88,_0x315f12,_0x9455a7),_0x9455a7;}let T=class extends _0xe422ad{constructor(_0x34ed5b){const _0x40b28c=_0x5732f2;super(),this[_0x40b28c(0x158)]=_0x34ed5b;}[_0x5732f2(0x14d)](_0x12e336){const _0x3693fc=_0x5732f2;var _0xd4edca;let _0x2fdc2f=((_0xd4edca=this['_configService'][_0x3693fc(0x142)](_0x1daecc))==null?void 0x0:_0xd4edca[_0x3693fc(0x12d)])||{};try{let _0x278db0=new _0x33dae4(_0x12e336,{'headers':{..._0x2fdc2f}}),_0x4c78fc=new _0x415585();return{'URL':_0x12e336,'close':(_0x3d5e31,_0xa144eb)=>{_0x278db0['close'](_0x3d5e31,_0xa144eb),_0x4c78fc['dispose']();},'send':_0x13fe1b=>{const _0x32c65e=_0x3693fc;_0x278db0[_0x32c65e(0x136)](_0x13fe1b);},'open$':new _0x1668b8(_0x2297a1=>{const _0x409cce=_0x3693fc;let _0x51cff3=_0x51984c=>_0x2297a1['next'](_0x51984c);_0x278db0['addEventListener'](_0x409cce(0x13b),_0x51cff3),_0x4c78fc['add'](_0x38b674(()=>_0x278db0[_0x409cce(0x140)](_0x409cce(0x13b),_0x51cff3)));})['pipe'](_0x5c8bcc()),'close$':new _0x1668b8(_0x11fed8=>{const _0x299daf=_0x3693fc;let _0x46431c=_0x5db21a=>_0x11fed8[_0x299daf(0x134)](_0x5db21a);_0x278db0[_0x299daf(0x153)]('close',_0x46431c),_0x4c78fc[_0x299daf(0x135)](_0x38b674(()=>_0x278db0[_0x299daf(0x140)](_0x299daf(0x128),_0x46431c)));})[_0x3693fc(0x145)](_0x5c8bcc()),'error$':new _0x1668b8(_0x4a700c=>{const _0x2ca23b=_0x3693fc;let _0x4b8575=_0xfed4fd=>_0x4a700c[_0x2ca23b(0x134)](_0xfed4fd);_0x278db0[_0x2ca23b(0x153)](_0x2ca23b(0x147),_0x4b8575),_0x4c78fc[_0x2ca23b(0x135)](_0x38b674(()=>_0x278db0[_0x2ca23b(0x140)]('error',_0x4b8575)));})[_0x3693fc(0x145)](_0x5c8bcc()),'message$':new _0x1668b8(_0x23eaec=>{const _0x1afc14=_0x3693fc;let _0x473786=_0x3ff2ed=>_0x23eaec[_0x1afc14(0x134)](_0x3ff2ed);_0x278db0[_0x1afc14(0x153)](_0x1afc14(0x15a),_0x473786),_0x4c78fc[_0x1afc14(0x135)](_0x38b674(()=>_0x278db0[_0x1afc14(0x140)](_0x1afc14(0x15a),_0x473786)));})['pipe'](_0x5c8bcc())};}catch(_0x5e3c9c){return console[_0x3693fc(0x147)](_0x5e3c9c),null;}}};T=w([C(0x0,_0x37ea79)],T);function E(_0x59f81a){'@babel/helpers - typeof';const _0x322209=_0x5732f2;return E=typeof Symbol=='function'&&typeof Symbol[_0x322209(0x15b)]==_0x322209(0x144)?function(_0x4f635e){return typeof _0x4f635e;}:function(_0x3a5696){const _0x4c2537=_0x322209;return _0x3a5696&&typeof Symbol==_0x4c2537(0x15c)&&_0x3a5696[_0x4c2537(0x14f)]===Symbol&&_0x3a5696!==Symbol[_0x4c2537(0x12e)]?'symbol':typeof _0x3a5696;},E(_0x59f81a);}function D(_0x49a7b8,_0x6a19d3){const _0x198fab=_0x5732f2;if(E(_0x49a7b8)!=_0x198fab(0x13a)||!_0x49a7b8)return _0x49a7b8;var _0x7d8dcc=_0x49a7b8[Symbol['toPrimitive']];if(_0x7d8dcc!==void 0x0){var _0x3b5dc1=_0x7d8dcc[_0x198fab(0x156)](_0x49a7b8,_0x6a19d3||_0x198fab(0x137));if(E(_0x3b5dc1)!=_0x198fab(0x13a))return _0x3b5dc1;throw TypeError(_0x198fab(0x150));}return(_0x6a19d3===_0x198fab(0x143)?String:Number)(_0x49a7b8);}function O(_0x227050){const _0x3bc4c0=_0x5732f2;var _0x1ccaad=D(_0x227050,_0x3bc4c0(0x143));return E(_0x1ccaad)=='symbol'?_0x1ccaad:_0x1ccaad+'';}function k(_0x5400be,_0x20711e,_0x22e1d2){const _0xbe6c38=_0x5732f2;return(_0x20711e=O(_0x20711e))in _0x5400be?Object[_0xbe6c38(0x138)](_0x5400be,_0x20711e,{'value':_0x22e1d2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5400be[_0x20711e]=_0x22e1d2,_0x5400be;}let A=class extends _0x433548{constructor(_0x1f0679=b,_0x10bacf,_0x42203a){const _0x1a5b23=_0x5732f2;super(),this['_configService']=_0x10bacf,this['_injector']=_0x42203a,this[_0x1a5b23(0x158)]['setConfig'](y,_0x1f0679);}[_0x5732f2(0x14b)](){const _0x4f66fe=_0x5732f2;this[_0x4f66fe(0x12c)]();}[_0x5732f2(0x12c)](){const _0x39d1b0=_0x5732f2;_0x4bb2db(this[_0x39d1b0(0x13d)],[[_0x23db3e,{'useClass':T}]]);}};k(A,_0x5732f2(0x148),_0x5732f2(0x146)),k(A,_0x5732f2(0x12f),x),k(A,'version',S),A=w([_0x14cd86(_0x324c1c),C(0x1,_0x37ea79),C(0x2,_0x1a27d1(_0x2e49b5))],A);let j=class extends _0x1d76e1{constructor(_0x561c79,_0x60c379,_0x5ba051,_0x535a78,_0x1180d0){const _0x509353=_0x5732f2;super(_0x561c79,_0x60c379,_0x5ba051,_0x535a78,_0x1180d0);let _0x2e5015=this[_0x509353(0x158)]['getConfig'](_0x1daecc);this[_0x509353(0x133)][_0x509353(0x131)]({'interceptor':(_0x1247eb,_0x5af350)=>{const _0xb0030=_0x509353;let _0x33a9d4=_0x1247eb[_0xb0030(0x139)];if(_0x2e5015!=null&&_0x2e5015[_0xb0030(0x12d)]){for(let _0x5e0ab6 in _0x2e5015[_0xb0030(0x12d)])_0x33a9d4[_0xb0030(0x132)](_0x5e0ab6,_0x2e5015[_0xb0030(0x12d)][_0x5e0ab6]);}return _0x5af350(_0x1247eb);}});}async[_0x5732f2(0x14d)](_0x54b711){const _0x58ac7e=_0x5732f2;return this[_0x58ac7e(0x154)](_0x54b711);}};j=w([C(0x0,_0x1a27d1(_0x2e49b5)),C(0x1,_0x1a27d1(_0x21908b)),C(0x2,_0x37ea79),C(0x3,_0x4ee881),C(0x4,_0x2dd7cc)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5732f2=_0x482b;(function(_0x431d3c,_0x324a36){const _0x171458=_0x482b,_0x2b84a2=_0x431d3c();while(!![]){try{const _0x192096=parseInt(_0x171458(0x14e))/0x1+parseInt(_0x171458(0x149))/0x2*(-parseInt(_0x171458(0x159))/0x3)+parseInt(_0x171458(0x141))/0x4*(parseInt(_0x171458(0x13f))/0x5)+parseInt(_0x171458(0x155))/0x6*(-parseInt(_0x171458(0x12a))/0x7)+parseInt(_0x171458(0x151))/0x8*(parseInt(_0x171458(0x12b))/0x9)+-parseInt(_0x171458(0x13c))/0xa*(parseInt(_0x171458(0x14c))/0xb)+parseInt(_0x171458(0x130))/0xc;if(_0x192096===_0x324a36)break;else _0x2b84a2['push'](_0x2b84a2['shift']());}catch(_0x56932c){_0x2b84a2['push'](_0x2b84a2['shift']());}}}(_0x379a,0xd1d01));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1daecc,CollaborationSocketService as _0x1d76e1,UniverCollaborationClientPlugin as _0x324c1c}from'@univerjs-pro/collaboration-client';function _0x379a(){const _0xd5a32d=['decorate','onStarting','33faFdRS','createSocket','1096006hbeWju','constructor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','8UJYkOM','getOwnPropertyDescriptor','addEventListener','_doCreateSocket','9965238ibXgcH','call','collaboration-client-node.config','_configService','3BnUUYC','message','iterator','function','close','0.25.0-insiders.20260604-29ebbff','7jLYfWT','1525536ZSkEzf','_registerDependencies','customHeaders','prototype','packageName','29220876ukfdnN','registerHTTPInterceptor','set','_httpService','next','add','send','default','defineProperty','headers','object','open','4802070bmoisT','_injector','length','2955RaDmBK','removeEventListener','2324xULVYu','getConfig','string','symbol','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','error','pluginName','166134hfqOsQ'];_0x379a=function(){return _0xd5a32d;};return _0x379a();}function _0x482b(_0x48b97b,_0x28d708){_0x48b97b=_0x48b97b-0x128;const _0x379a03=_0x379a();let _0x482bfd=_0x379a03[_0x48b97b];return _0x482bfd;}import{DependentOn as _0x14cd86,Disposable as _0xe422ad,DisposableCollection as _0x415585,IConfigService as _0x37ea79,ILogService as _0x4ee881,Inject as _0x1a27d1,Injector as _0x2e49b5,Plugin as _0x433548,registerDependencies as _0x4bb2db,toDisposable as _0x38b674}from'@univerjs/core';import{HTTPService as _0x21908b,ISocketService as _0x23db3e}from'@univerjs/network';import{Observable as _0x1668b8,share as _0x5c8bcc}from'rxjs';import{WebSocket as _0x33dae4}from'ws';import{ISnapshotServerService as _0x2dd7cc}from'@univerjs-pro/collaboration';const y=_0x5732f2(0x157),b={};var x='@univerjs-pro/collaboration-client-node',S=_0x5732f2(0x129);function C(_0x18accc,_0x8b06db){return function(_0x1b7e83,_0x2e0ad7){_0x8b06db(_0x1b7e83,_0x2e0ad7,_0x18accc);};}function w(_0x466517,_0x43ef88,_0x315f12,_0x815887){const _0x2b7cae=_0x5732f2;var _0x13b9b7=arguments['length'],_0x9455a7=_0x13b9b7<0x3?_0x43ef88:_0x815887===null?_0x815887=Object[_0x2b7cae(0x152)](_0x43ef88,_0x315f12):_0x815887,_0x17d712;if(typeof Reflect==_0x2b7cae(0x13a)&&typeof Reflect[_0x2b7cae(0x14a)]==_0x2b7cae(0x15c))_0x9455a7=Reflect['decorate'](_0x466517,_0x43ef88,_0x315f12,_0x815887);else{for(var _0x120603=_0x466517[_0x2b7cae(0x13e)]-0x1;_0x120603>=0x0;_0x120603--)(_0x17d712=_0x466517[_0x120603])&&(_0x9455a7=(_0x13b9b7<0x3?_0x17d712(_0x9455a7):_0x13b9b7>0x3?_0x17d712(_0x43ef88,_0x315f12,_0x9455a7):_0x17d712(_0x43ef88,_0x315f12))||_0x9455a7);}return _0x13b9b7>0x3&&_0x9455a7&&Object['defineProperty'](_0x43ef88,_0x315f12,_0x9455a7),_0x9455a7;}let T=class extends _0xe422ad{constructor(_0x34ed5b){const _0x40b28c=_0x5732f2;super(),this[_0x40b28c(0x158)]=_0x34ed5b;}[_0x5732f2(0x14d)](_0x12e336){const _0x3693fc=_0x5732f2;var _0xd4edca;let _0x2fdc2f=((_0xd4edca=this['_configService'][_0x3693fc(0x142)](_0x1daecc))==null?void 0x0:_0xd4edca[_0x3693fc(0x12d)])||{};try{let _0x278db0=new _0x33dae4(_0x12e336,{'headers':{..._0x2fdc2f}}),_0x4c78fc=new _0x415585();return{'URL':_0x12e336,'close':(_0x3d5e31,_0xa144eb)=>{_0x278db0['close'](_0x3d5e31,_0xa144eb),_0x4c78fc['dispose']();},'send':_0x13fe1b=>{const _0x32c65e=_0x3693fc;_0x278db0[_0x32c65e(0x136)](_0x13fe1b);},'open$':new _0x1668b8(_0x2297a1=>{const _0x409cce=_0x3693fc;let _0x51cff3=_0x51984c=>_0x2297a1['next'](_0x51984c);_0x278db0['addEventListener'](_0x409cce(0x13b),_0x51cff3),_0x4c78fc['add'](_0x38b674(()=>_0x278db0[_0x409cce(0x140)](_0x409cce(0x13b),_0x51cff3)));})['pipe'](_0x5c8bcc()),'close$':new _0x1668b8(_0x11fed8=>{const _0x299daf=_0x3693fc;let _0x46431c=_0x5db21a=>_0x11fed8[_0x299daf(0x134)](_0x5db21a);_0x278db0[_0x299daf(0x153)]('close',_0x46431c),_0x4c78fc[_0x299daf(0x135)](_0x38b674(()=>_0x278db0[_0x299daf(0x140)](_0x299daf(0x128),_0x46431c)));})[_0x3693fc(0x145)](_0x5c8bcc()),'error$':new _0x1668b8(_0x4a700c=>{const _0x2ca23b=_0x3693fc;let _0x4b8575=_0xfed4fd=>_0x4a700c[_0x2ca23b(0x134)](_0xfed4fd);_0x278db0[_0x2ca23b(0x153)](_0x2ca23b(0x147),_0x4b8575),_0x4c78fc[_0x2ca23b(0x135)](_0x38b674(()=>_0x278db0[_0x2ca23b(0x140)]('error',_0x4b8575)));})[_0x3693fc(0x145)](_0x5c8bcc()),'message$':new _0x1668b8(_0x23eaec=>{const _0x1afc14=_0x3693fc;let _0x473786=_0x3ff2ed=>_0x23eaec[_0x1afc14(0x134)](_0x3ff2ed);_0x278db0[_0x1afc14(0x153)](_0x1afc14(0x15a),_0x473786),_0x4c78fc[_0x1afc14(0x135)](_0x38b674(()=>_0x278db0[_0x1afc14(0x140)](_0x1afc14(0x15a),_0x473786)));})['pipe'](_0x5c8bcc())};}catch(_0x5e3c9c){return console[_0x3693fc(0x147)](_0x5e3c9c),null;}}};T=w([C(0x0,_0x37ea79)],T);function E(_0x59f81a){'@babel/helpers - typeof';const _0x322209=_0x5732f2;return E=typeof Symbol=='function'&&typeof Symbol[_0x322209(0x15b)]==_0x322209(0x144)?function(_0x4f635e){return typeof _0x4f635e;}:function(_0x3a5696){const _0x4c2537=_0x322209;return _0x3a5696&&typeof Symbol==_0x4c2537(0x15c)&&_0x3a5696[_0x4c2537(0x14f)]===Symbol&&_0x3a5696!==Symbol[_0x4c2537(0x12e)]?'symbol':typeof _0x3a5696;},E(_0x59f81a);}function D(_0x49a7b8,_0x6a19d3){const _0x198fab=_0x5732f2;if(E(_0x49a7b8)!=_0x198fab(0x13a)||!_0x49a7b8)return _0x49a7b8;var _0x7d8dcc=_0x49a7b8[Symbol['toPrimitive']];if(_0x7d8dcc!==void 0x0){var _0x3b5dc1=_0x7d8dcc[_0x198fab(0x156)](_0x49a7b8,_0x6a19d3||_0x198fab(0x137));if(E(_0x3b5dc1)!=_0x198fab(0x13a))return _0x3b5dc1;throw TypeError(_0x198fab(0x150));}return(_0x6a19d3===_0x198fab(0x143)?String:Number)(_0x49a7b8);}function O(_0x227050){const _0x3bc4c0=_0x5732f2;var _0x1ccaad=D(_0x227050,_0x3bc4c0(0x143));return E(_0x1ccaad)=='symbol'?_0x1ccaad:_0x1ccaad+'';}function k(_0x5400be,_0x20711e,_0x22e1d2){const _0xbe6c38=_0x5732f2;return(_0x20711e=O(_0x20711e))in _0x5400be?Object[_0xbe6c38(0x138)](_0x5400be,_0x20711e,{'value':_0x22e1d2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5400be[_0x20711e]=_0x22e1d2,_0x5400be;}let A=class extends _0x433548{constructor(_0x1f0679=b,_0x10bacf,_0x42203a){const _0x1a5b23=_0x5732f2;super(),this['_configService']=_0x10bacf,this['_injector']=_0x42203a,this[_0x1a5b23(0x158)]['setConfig'](y,_0x1f0679);}[_0x5732f2(0x14b)](){const _0x4f66fe=_0x5732f2;this[_0x4f66fe(0x12c)]();}[_0x5732f2(0x12c)](){const _0x39d1b0=_0x5732f2;_0x4bb2db(this[_0x39d1b0(0x13d)],[[_0x23db3e,{'useClass':T}]]);}};k(A,_0x5732f2(0x148),_0x5732f2(0x146)),k(A,_0x5732f2(0x12f),x),k(A,'version',S),A=w([_0x14cd86(_0x324c1c),C(0x1,_0x37ea79),C(0x2,_0x1a27d1(_0x2e49b5))],A);let j=class extends _0x1d76e1{constructor(_0x561c79,_0x60c379,_0x5ba051,_0x535a78,_0x1180d0){const _0x509353=_0x5732f2;super(_0x561c79,_0x60c379,_0x5ba051,_0x535a78,_0x1180d0);let _0x2e5015=this[_0x509353(0x158)]['getConfig'](_0x1daecc);this[_0x509353(0x133)][_0x509353(0x131)]({'interceptor':(_0x1247eb,_0x5af350)=>{const _0xb0030=_0x509353;let _0x33a9d4=_0x1247eb[_0xb0030(0x139)];if(_0x2e5015!=null&&_0x2e5015[_0xb0030(0x12d)]){for(let _0x5e0ab6 in _0x2e5015[_0xb0030(0x12d)])_0x33a9d4[_0xb0030(0x132)](_0x5e0ab6,_0x2e5015[_0xb0030(0x12d)][_0x5e0ab6]);}return _0x5af350(_0x1247eb);}});}async[_0x5732f2(0x14d)](_0x54b711){const _0x58ac7e=_0x5732f2;return this[_0x58ac7e(0x154)](_0x54b711);}};j=w([C(0x0,_0x1a27d1(_0x2e49b5)),C(0x1,_0x1a27d1(_0x21908b)),C(0x2,_0x37ea79),C(0x3,_0x4ee881),C(0x4,_0x2dd7cc)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xe5fb(_0xcd01c7,_0x1d0f8f){_0xcd01c7=_0xcd01c7-0x1b1;const _0x1f095e=_0x1f09();let _0xe5fb06=_0x1f095e[_0xcd01c7];return _0xe5fb06;}function _0x1f09(){const _0x15ebf0=['share','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','1843930LQHzFq','90kZXBRf','toStringTag','close','UniverProCollaborationClient','getConfig','customHeaders','iterator','0.24.0','Module','registerHTTPInterceptor','packageName','@univerjs/network','default','12lwqMWX','3054951dpYJmU','_httpService','toPrimitive','setConfig','ILogService','Injector','COLLABORATION_CLIENT_NODE_CONFIG_KEY','rxjs','prototype','UniverCollaborationClientPlugin','onStarting','amd','function','NodeCollaborationSocketService','Observable','UniverCore','Inject','UniverNetwork','exports','addEventListener','headers','3324jtGdRP','UniverCollaborationClientNodePlugin','UniverProCollaboration','message','ISnapshotServerService','decorate','UniverProCollaborationClientNode','48632TghrPk','WebSocket','length','_registerDependencies','open','Disposable','removeEventListener','object','255Idmltz','symbol','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Plugin','462630YQXRdq','version','error','constructor','_configService','createSocket','add','next','@univerjs/core','defineProperty','IConfigService','send','5610FiDDUo','@univerjs-pro/collaboration-client','53748WEmrvs','call','dispose','10481280ChjsJC','_injector'];_0x1f09=function(){return _0x15ebf0;};return _0x1f09();}(function(_0x18c1e7,_0x207104){const _0x58ebf8=_0xe5fb,_0x15a1b7=_0x18c1e7();while(!![]){try{const _0x18bc54=parseInt(_0x58ebf8(0x1da))/0x1*(-parseInt(_0x58ebf8(0x1f1))/0x2)+parseInt(_0x58ebf8(0x1c8))/0x3*(parseInt(_0x58ebf8(0x1c0))/0x4)+-parseInt(_0x58ebf8(0x1d8))/0x5*(-parseInt(_0x58ebf8(0x1b9))/0x6)+-parseInt(_0x58ebf8(0x1cc))/0x7+parseInt(_0x58ebf8(0x1dd))/0x8+-parseInt(_0x58ebf8(0x1f2))/0x9+-parseInt(_0x58ebf8(0x1e4))/0xa*(parseInt(_0x58ebf8(0x1e3))/0xb);if(_0x18bc54===_0x207104)break;else _0x15a1b7['push'](_0x15a1b7['shift']());}catch(_0x50412e){_0x15a1b7['push'](_0x15a1b7['shift']());}}}(_0x1f09,0xb1dab),function(_0x16a0ac,_0x5a300f){const _0x314d6d=_0xe5fb;typeof exports=='object'&&typeof module<'u'?_0x5a300f(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x314d6d(0x1fe)&&define[_0x314d6d(0x1fd)]?define(['exports',_0x314d6d(0x1d9),_0x314d6d(0x1d4),_0x314d6d(0x1ef),_0x314d6d(0x1f9),'@univerjs-pro/collaboration'],_0x5a300f):(_0x16a0ac=typeof globalThis<'u'?globalThis:_0x16a0ac||self,_0x5a300f(_0x16a0ac[_0x314d6d(0x1bf)]={},_0x16a0ac[_0x314d6d(0x1e7)],_0x16a0ac[_0x314d6d(0x1b3)],_0x16a0ac[_0x314d6d(0x1b5)],_0x16a0ac[_0x314d6d(0x1f9)],_0x16a0ac[_0x314d6d(0x1bb)]));}(this,function(_0x3a9b6b,_0x21dcba,_0x4e8485,_0x55b040,_0x1246b3,_0xb38d98){const _0x46f1b9=_0xe5fb;Object['defineProperty'](_0x3a9b6b,Symbol[_0x46f1b9(0x1e5)],{'value':_0x46f1b9(0x1ec)});var _0x103798=(_0x1c2b08,_0x3efe37)=>()=>(_0x3efe37||(_0x1c2b08((_0x3efe37={'exports':{}})['exports'],_0x3efe37),_0x1c2b08=null),_0x3efe37['exports']);let _0x8504a4='collaboration-client-node.config';Symbol(_0x8504a4);let _0x268a3d={};var _0x152b1b='@univerjs-pro/collaboration-client-node',_0x3bc90f=_0x46f1b9(0x1eb),_0x2a9918=_0x103798((_0x1ad94e,_0x290b3c)=>{const _0x1bd5a3=_0x46f1b9;_0x290b3c[_0x1bd5a3(0x1b6)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0xdf5223(_0x5380f4,_0x1b86a4){return function(_0x1014ed,_0x176603){_0x1b86a4(_0x1014ed,_0x176603,_0x5380f4);};}function _0x2e6f6a(_0x5306c0,_0x3e4e53,_0x3630a5,_0x264c5d){const _0x2ecfe2=_0x46f1b9;var _0x563e8f=arguments['length'],_0x194ff9=_0x563e8f<0x3?_0x3e4e53:_0x264c5d===null?_0x264c5d=Object['getOwnPropertyDescriptor'](_0x3e4e53,_0x3630a5):_0x264c5d,_0x300947;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2ecfe2(0x1fe))_0x194ff9=Reflect[_0x2ecfe2(0x1be)](_0x5306c0,_0x3e4e53,_0x3630a5,_0x264c5d);else{for(var _0x3cc6f9=_0x5306c0[_0x2ecfe2(0x1c2)]-0x1;_0x3cc6f9>=0x0;_0x3cc6f9--)(_0x300947=_0x5306c0[_0x3cc6f9])&&(_0x194ff9=(_0x563e8f<0x3?_0x300947(_0x194ff9):_0x563e8f>0x3?_0x300947(_0x3e4e53,_0x3630a5,_0x194ff9):_0x300947(_0x3e4e53,_0x3630a5))||_0x194ff9);}return _0x563e8f>0x3&&_0x194ff9&&Object[_0x2ecfe2(0x1d5)](_0x3e4e53,_0x3630a5,_0x194ff9),_0x194ff9;}let _0x296d97=class extends _0x4e8485[_0x46f1b9(0x1c5)]{constructor(_0xb0ef2b){const _0x56f9a8=_0x46f1b9;super(),this[_0x56f9a8(0x1d0)]=_0xb0ef2b;}[_0x46f1b9(0x1d1)](_0x3f7490){const _0x5d9377=_0x46f1b9;var _0x3a4cf4;let _0xa8654=((_0x3a4cf4=this[_0x5d9377(0x1d0)][_0x5d9377(0x1e8)](_0x21dcba['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3a4cf4[_0x5d9377(0x1e9)])||{};try{let _0x5d3a5b=new _0x2a9918[(_0x5d9377(0x1c1))](_0x3f7490,{'headers':{..._0xa8654}}),_0x228f4d=new _0x4e8485['DisposableCollection']();return{'URL':_0x3f7490,'close':(_0x547e5d,_0xcf6486)=>{const _0x3a1749=_0x5d9377;_0x5d3a5b[_0x3a1749(0x1e6)](_0x547e5d,_0xcf6486),_0x228f4d[_0x3a1749(0x1dc)]();},'send':_0x2c1be9=>{const _0x3df201=_0x5d9377;_0x5d3a5b[_0x3df201(0x1d7)](_0x2c1be9);},'open$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x566dc5=>{const _0x2df113=_0x5d9377;let _0x5a6d7f=_0xc6c2bc=>_0x566dc5[_0x2df113(0x1d3)](_0xc6c2bc);_0x5d3a5b[_0x2df113(0x1b7)](_0x2df113(0x1c4),_0x5a6d7f),_0x228f4d['add']((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b['removeEventListener'](_0x2df113(0x1c4),_0x5a6d7f)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3[_0x5d9377(0x1df)])()),'close$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x5c4a2e=>{const _0x515aed=_0x5d9377;let _0x5d79be=_0x392e4f=>_0x5c4a2e[_0x515aed(0x1d3)](_0x392e4f);_0x5d3a5b[_0x515aed(0x1b7)]('close',_0x5d79be),_0x228f4d[_0x515aed(0x1d2)]((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b[_0x515aed(0x1c6)]('close',_0x5d79be)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3['share'])()),'error$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x5c02ba=>{const _0x3942cd=_0x5d9377;let _0x186222=_0x126296=>_0x5c02ba[_0x3942cd(0x1d3)](_0x126296);_0x5d3a5b['addEventListener'](_0x3942cd(0x1ce),_0x186222),_0x228f4d['add']((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b[_0x3942cd(0x1c6)](_0x3942cd(0x1ce),_0x186222)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3[_0x5d9377(0x1df)])()),'message$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x422978=>{const _0x596514=_0x5d9377;let _0x13919c=_0x353a3e=>_0x422978[_0x596514(0x1d3)](_0x353a3e);_0x5d3a5b[_0x596514(0x1b7)](_0x596514(0x1bc),_0x13919c),_0x228f4d[_0x596514(0x1d2)]((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b[_0x596514(0x1c6)]('message',_0x13919c)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3['share'])())};}catch(_0x2d9ec5){return console[_0x5d9377(0x1ce)](_0x2d9ec5),null;}}};_0x296d97=_0x2e6f6a([_0xdf5223(0x0,_0x4e8485[_0x46f1b9(0x1d6)])],_0x296d97);function _0x2accf9(_0x4804fe){'@babel/helpers - typeof';const _0x4bb580=_0x46f1b9;return _0x2accf9=typeof Symbol==_0x4bb580(0x1fe)&&typeof Symbol[_0x4bb580(0x1ea)]==_0x4bb580(0x1c9)?function(_0x28da51){return typeof _0x28da51;}:function(_0x593a2c){const _0x30ce33=_0x4bb580;return _0x593a2c&&typeof Symbol==_0x30ce33(0x1fe)&&_0x593a2c[_0x30ce33(0x1cf)]===Symbol&&_0x593a2c!==Symbol[_0x30ce33(0x1fa)]?_0x30ce33(0x1c9):typeof _0x593a2c;},_0x2accf9(_0x4804fe);}function _0x4e5505(_0x129680,_0x643cf2){const _0x222026=_0x46f1b9;if(_0x2accf9(_0x129680)!=_0x222026(0x1c7)||!_0x129680)return _0x129680;var _0x2d1ca7=_0x129680[Symbol[_0x222026(0x1f4)]];if(_0x2d1ca7!==void 0x0){var _0x46c935=_0x2d1ca7[_0x222026(0x1db)](_0x129680,_0x643cf2||_0x222026(0x1f0));if(_0x2accf9(_0x46c935)!=_0x222026(0x1c7))return _0x46c935;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x643cf2==='string'?String:Number)(_0x129680);}function _0x42eba6(_0x280951){const _0x322696=_0x46f1b9;var _0x4f0c0e=_0x4e5505(_0x280951,'string');return _0x2accf9(_0x4f0c0e)==_0x322696(0x1c9)?_0x4f0c0e:_0x4f0c0e+'';}function _0x30d685(_0x9cc2e1,_0xebc51b,_0x44ab76){return(_0xebc51b=_0x42eba6(_0xebc51b))in _0x9cc2e1?Object['defineProperty'](_0x9cc2e1,_0xebc51b,{'value':_0x44ab76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x9cc2e1[_0xebc51b]=_0x44ab76,_0x9cc2e1;}let _0x43978a=class extends _0x4e8485[_0x46f1b9(0x1cb)]{constructor(_0x440f52=_0x268a3d,_0x5ce0ec,_0x4683d1){const _0xfed05b=_0x46f1b9;super(),this['_configService']=_0x5ce0ec,this[_0xfed05b(0x1de)]=_0x4683d1,this[_0xfed05b(0x1d0)][_0xfed05b(0x1f5)](_0x8504a4,_0x440f52);}[_0x46f1b9(0x1fc)](){const _0x5e5769=_0x46f1b9;this[_0x5e5769(0x1c3)]();}[_0x46f1b9(0x1c3)](){const _0x8dfc73=_0x46f1b9;(0x0,_0x4e8485['registerDependencies'])(this[_0x8dfc73(0x1de)],[[_0x55b040['ISocketService'],{'useClass':_0x296d97}]]);}};_0x30d685(_0x43978a,'pluginName',_0x46f1b9(0x1e1)),_0x30d685(_0x43978a,_0x46f1b9(0x1ee),_0x152b1b),_0x30d685(_0x43978a,_0x46f1b9(0x1cd),_0x3bc90f),_0x43978a=_0x2e6f6a([(0x0,_0x4e8485['DependentOn'])(_0x21dcba[_0x46f1b9(0x1fb)]),_0xdf5223(0x1,_0x4e8485[_0x46f1b9(0x1d6)]),_0xdf5223(0x2,(0x0,_0x4e8485[_0x46f1b9(0x1b4)])(_0x4e8485[_0x46f1b9(0x1f7)]))],_0x43978a);let _0x755934=class extends _0x21dcba[_0x46f1b9(0x1e2)]{constructor(_0x1e9b97,_0x1d0293,_0x3566f7,_0xddf7e1,_0x487403){const _0x19bd44=_0x46f1b9;super(_0x1e9b97,_0x1d0293,_0x3566f7,_0xddf7e1,_0x487403);let _0x42b9d7=this[_0x19bd44(0x1d0)]['getConfig'](_0x21dcba[_0x19bd44(0x1ca)]);this[_0x19bd44(0x1f3)][_0x19bd44(0x1ed)]({'interceptor':(_0xe3bb76,_0x30246f)=>{const _0x25a6b5=_0x19bd44;let _0x466fc0=_0xe3bb76[_0x25a6b5(0x1b8)];if(_0x42b9d7!=null&&_0x42b9d7[_0x25a6b5(0x1e9)]){for(let _0x3802a4 in _0x42b9d7[_0x25a6b5(0x1e9)])_0x466fc0['set'](_0x3802a4,_0x42b9d7[_0x25a6b5(0x1e9)][_0x3802a4]);}return _0x30246f(_0xe3bb76);}});}async[_0x46f1b9(0x1d1)](_0x3f6ce3){return this['_doCreateSocket'](_0x3f6ce3);}};_0x755934=_0x2e6f6a([_0xdf5223(0x0,(0x0,_0x4e8485[_0x46f1b9(0x1b4)])(_0x4e8485[_0x46f1b9(0x1f7)])),_0xdf5223(0x1,(0x0,_0x4e8485[_0x46f1b9(0x1b4)])(_0x55b040['HTTPService'])),_0xdf5223(0x2,_0x4e8485[_0x46f1b9(0x1d6)]),_0xdf5223(0x3,_0x4e8485[_0x46f1b9(0x1f6)]),_0xdf5223(0x4,_0xb38d98[_0x46f1b9(0x1bd)])],_0x755934),_0x3a9b6b[_0x46f1b9(0x1f8)]=_0x8504a4,Object[_0x46f1b9(0x1d5)](_0x3a9b6b,_0x46f1b9(0x1b1),{'enumerable':!0x0,'get':function(){return _0x755934;}}),Object[_0x46f1b9(0x1d5)](_0x3a9b6b,_0x46f1b9(0x1ba),{'enumerable':!0x0,'get':function(){return _0x43978a;}});}));
|
|
1
|
+
function _0xa969(_0x10f927,_0x2833c9){_0x10f927=_0x10f927-0x1c6;const _0x403f17=_0x403f();let _0xa96931=_0x403f17[_0x10f927];return _0xa96931;}(function(_0x5015c4,_0x5ce155){const _0x324192=_0xa969,_0x46d160=_0x5015c4();while(!![]){try{const _0x2ccd8f=-parseInt(_0x324192(0x1d3))/0x1*(parseInt(_0x324192(0x1cc))/0x2)+-parseInt(_0x324192(0x1ed))/0x3*(-parseInt(_0x324192(0x1f9))/0x4)+-parseInt(_0x324192(0x1d9))/0x5*(parseInt(_0x324192(0x1f5))/0x6)+-parseInt(_0x324192(0x1e5))/0x7+-parseInt(_0x324192(0x1eb))/0x8+-parseInt(_0x324192(0x1f8))/0x9*(parseInt(_0x324192(0x20e))/0xa)+parseInt(_0x324192(0x209))/0xb;if(_0x2ccd8f===_0x5ce155)break;else _0x46d160['push'](_0x46d160['shift']());}catch(_0xa1f975){_0x46d160['push'](_0x46d160['shift']());}}}(_0x403f,0xe5b39),function(_0x3d7aaf,_0x550d7a){const _0x47d807=_0xa969;typeof exports=='object'&&typeof module<'u'?_0x550d7a(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x47d807(0x1e3)&&define[_0x47d807(0x1dd)]?define([_0x47d807(0x1fe),'@univerjs-pro/collaboration-client',_0x47d807(0x1e8),_0x47d807(0x1d2),_0x47d807(0x1f4),'@univerjs-pro/collaboration'],_0x550d7a):(_0x3d7aaf=typeof globalThis<'u'?globalThis:_0x3d7aaf||self,_0x550d7a(_0x3d7aaf['UniverProCollaborationClientNode']={},_0x3d7aaf[_0x47d807(0x1cb)],_0x3d7aaf[_0x47d807(0x1ee)],_0x3d7aaf['UniverNetwork'],_0x3d7aaf[_0x47d807(0x1f4)],_0x3d7aaf[_0x47d807(0x1dc)]));}(this,function(_0x5d5dea,_0x5a1548,_0x5d93cd,_0x37c952,_0x177a7c,_0x4b04de){const _0x271df9=_0xa969;Object['defineProperty'](_0x5d5dea,Symbol[_0x271df9(0x211)],{'value':_0x271df9(0x1ef)});var _0x6e4081=(_0x58c13c,_0x420007)=>()=>(_0x420007||(_0x58c13c((_0x420007={'exports':{}})[_0x271df9(0x1fe)],_0x420007),_0x58c13c=null),_0x420007[_0x271df9(0x1fe)]);let _0x260324=_0x271df9(0x212),_0x3ddbc8={};var _0x356dd9=_0x271df9(0x204),_0x4f3950=_0x271df9(0x20f),_0x54a0c7=_0x6e4081((_0x3b1666,_0xc1cb13)=>{const _0x5d3b84=_0x271df9;_0xc1cb13[_0x5d3b84(0x1fe)]=function(){const _0x53c620=_0x5d3b84;throw Error(_0x53c620(0x1e0));};})();function _0x58b46f(_0x25b860,_0x126589){return function(_0x53ddf0,_0x17e1b5){_0x126589(_0x53ddf0,_0x17e1b5,_0x25b860);};}function _0x4decd0(_0x400f3b,_0x41c1d4,_0x843347,_0x414032){const _0x533d3c=_0x271df9;var _0x557ca2=arguments[_0x533d3c(0x203)],_0x25b938=_0x557ca2<0x3?_0x41c1d4:_0x414032===null?_0x414032=Object[_0x533d3c(0x1db)](_0x41c1d4,_0x843347):_0x414032,_0x2b6225;if(typeof Reflect==_0x533d3c(0x1ca)&&typeof Reflect[_0x533d3c(0x1e1)]=='function')_0x25b938=Reflect[_0x533d3c(0x1e1)](_0x400f3b,_0x41c1d4,_0x843347,_0x414032);else{for(var _0x385a19=_0x400f3b['length']-0x1;_0x385a19>=0x0;_0x385a19--)(_0x2b6225=_0x400f3b[_0x385a19])&&(_0x25b938=(_0x557ca2<0x3?_0x2b6225(_0x25b938):_0x557ca2>0x3?_0x2b6225(_0x41c1d4,_0x843347,_0x25b938):_0x2b6225(_0x41c1d4,_0x843347))||_0x25b938);}return _0x557ca2>0x3&&_0x25b938&&Object[_0x533d3c(0x1da)](_0x41c1d4,_0x843347,_0x25b938),_0x25b938;}let _0x40897a=class extends _0x5d93cd[_0x271df9(0x1fc)]{constructor(_0x235dce){const _0x32bfc3=_0x271df9;super(),this[_0x32bfc3(0x20a)]=_0x235dce;}['createSocket'](_0x529b8a){const _0x2a823b=_0x271df9;var _0xe33e5c;let _0x592853=((_0xe33e5c=this[_0x2a823b(0x20a)][_0x2a823b(0x1cd)](_0x5a1548['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0xe33e5c['customHeaders'])||{};try{let _0x4d67a2=new _0x54a0c7[(_0x2a823b(0x1ea))](_0x529b8a,{'headers':{..._0x592853}}),_0x35241f=new _0x5d93cd[(_0x2a823b(0x207))]();return{'URL':_0x529b8a,'close':(_0x186f6f,_0x5bc3d6)=>{const _0x5a24d6=_0x2a823b;_0x4d67a2[_0x5a24d6(0x1c6)](_0x186f6f,_0x5bc3d6),_0x35241f[_0x5a24d6(0x202)]();},'send':_0x58e61d=>{const _0x676218=_0x2a823b;_0x4d67a2[_0x676218(0x1f2)](_0x58e61d);},'open$':new _0x177a7c[(_0x2a823b(0x1e4))](_0x5a71ca=>{const _0x1252d5=_0x2a823b;let _0x3cebb6=_0x21231e=>_0x5a71ca['next'](_0x21231e);_0x4d67a2[_0x1252d5(0x1d8)](_0x1252d5(0x1d6),_0x3cebb6),_0x35241f[_0x1252d5(0x1d5)]((0x0,_0x5d93cd[_0x1252d5(0x201)])(()=>_0x4d67a2[_0x1252d5(0x210)](_0x1252d5(0x1d6),_0x3cebb6)));})[_0x2a823b(0x1ec)]((0x0,_0x177a7c[_0x2a823b(0x1ff)])()),'close$':new _0x177a7c['Observable'](_0x7d4de4=>{const _0x201b4e=_0x2a823b;let _0x1eca37=_0x1bf04b=>_0x7d4de4[_0x201b4e(0x20c)](_0x1bf04b);_0x4d67a2[_0x201b4e(0x1d8)](_0x201b4e(0x1c6),_0x1eca37),_0x35241f['add']((0x0,_0x5d93cd['toDisposable'])(()=>_0x4d67a2[_0x201b4e(0x210)](_0x201b4e(0x1c6),_0x1eca37)));})[_0x2a823b(0x1ec)]((0x0,_0x177a7c[_0x2a823b(0x1ff)])()),'error$':new _0x177a7c['Observable'](_0x444297=>{const _0x2ffba4=_0x2a823b;let _0xf61c70=_0x298f6d=>_0x444297[_0x2ffba4(0x20c)](_0x298f6d);_0x4d67a2[_0x2ffba4(0x1d8)](_0x2ffba4(0x1f3),_0xf61c70),_0x35241f['add']((0x0,_0x5d93cd[_0x2ffba4(0x201)])(()=>_0x4d67a2['removeEventListener']('error',_0xf61c70)));})[_0x2a823b(0x1ec)]((0x0,_0x177a7c[_0x2a823b(0x1ff)])()),'message$':new _0x177a7c[(_0x2a823b(0x1e4))](_0x33cf8c=>{const _0x5d7894=_0x2a823b;let _0x4806de=_0x40dccd=>_0x33cf8c['next'](_0x40dccd);_0x4d67a2['addEventListener'](_0x5d7894(0x1f7),_0x4806de),_0x35241f[_0x5d7894(0x1d5)]((0x0,_0x5d93cd[_0x5d7894(0x201)])(()=>_0x4d67a2['removeEventListener'](_0x5d7894(0x1f7),_0x4806de)));})[_0x2a823b(0x1ec)]((0x0,_0x177a7c[_0x2a823b(0x1ff)])())};}catch(_0xc33b27){return console[_0x2a823b(0x1f3)](_0xc33b27),null;}}};_0x40897a=_0x4decd0([_0x58b46f(0x0,_0x5d93cd['IConfigService'])],_0x40897a);function _0x193487(_0x428984){'@babel/helpers - typeof';const _0x36a2ad=_0x271df9;return _0x193487=typeof Symbol==_0x36a2ad(0x1e3)&&typeof Symbol['iterator']==_0x36a2ad(0x1fb)?function(_0x44b539){return typeof _0x44b539;}:function(_0x4705fb){const _0x2164f4=_0x36a2ad;return _0x4705fb&&typeof Symbol=='function'&&_0x4705fb[_0x2164f4(0x1e2)]===Symbol&&_0x4705fb!==Symbol[_0x2164f4(0x1e6)]?_0x2164f4(0x1fb):typeof _0x4705fb;},_0x193487(_0x428984);}function _0x8e2b51(_0x1b3efc,_0x29f01f){const _0xe0c916=_0x271df9;if(_0x193487(_0x1b3efc)!=_0xe0c916(0x1ca)||!_0x1b3efc)return _0x1b3efc;var _0x2ce343=_0x1b3efc[Symbol[_0xe0c916(0x1d7)]];if(_0x2ce343!==void 0x0){var _0x5a7020=_0x2ce343[_0xe0c916(0x208)](_0x1b3efc,_0x29f01f||'default');if(_0x193487(_0x5a7020)!=_0xe0c916(0x1ca))return _0x5a7020;throw TypeError(_0xe0c916(0x1cf));}return(_0x29f01f===_0xe0c916(0x1d4)?String:Number)(_0x1b3efc);}function _0x2ac5ed(_0x55b526){const _0x341cf8=_0x271df9;var _0x3a6ec3=_0x8e2b51(_0x55b526,_0x341cf8(0x1d4));return _0x193487(_0x3a6ec3)==_0x341cf8(0x1fb)?_0x3a6ec3:_0x3a6ec3+'';}function _0x35479e(_0x367356,_0x1b2c9a,_0x5859ba){return(_0x1b2c9a=_0x2ac5ed(_0x1b2c9a))in _0x367356?Object['defineProperty'](_0x367356,_0x1b2c9a,{'value':_0x5859ba,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x367356[_0x1b2c9a]=_0x5859ba,_0x367356;}let _0xead971=class extends _0x5d93cd['Plugin']{constructor(_0x48f890=_0x3ddbc8,_0x4b8a92,_0x2dcdad){const _0x429310=_0x271df9;super(),this[_0x429310(0x20a)]=_0x4b8a92,this[_0x429310(0x213)]=_0x2dcdad,this['_configService'][_0x429310(0x1d1)](_0x260324,_0x48f890);}[_0x271df9(0x1fa)](){const _0x2adbb5=_0x271df9;this[_0x2adbb5(0x1f1)]();}[_0x271df9(0x1f1)](){const _0x513c4f=_0x271df9;(0x0,_0x5d93cd['registerDependencies'])(this['_injector'],[[_0x37c952[_0x513c4f(0x1de)],{'useClass':_0x40897a}]]);}};_0x35479e(_0xead971,_0x271df9(0x1c9),_0x271df9(0x1c7)),_0x35479e(_0xead971,_0x271df9(0x1df),_0x356dd9),_0x35479e(_0xead971,'version',_0x4f3950),_0xead971=_0x4decd0([(0x0,_0x5d93cd['DependentOn'])(_0x5a1548[_0x271df9(0x1f6)]),_0x58b46f(0x1,_0x5d93cd[_0x271df9(0x214)]),_0x58b46f(0x2,(0x0,_0x5d93cd[_0x271df9(0x1ce)])(_0x5d93cd[_0x271df9(0x1c8)]))],_0xead971);let _0x3f198d=class extends _0x5a1548['CollaborationSocketService']{constructor(_0x542dec,_0x528230,_0x18857e,_0x1e0305,_0x381523){const _0x51e772=_0x271df9;super(_0x542dec,_0x528230,_0x18857e,_0x1e0305,_0x381523);let _0x67b9ef=this[_0x51e772(0x20a)][_0x51e772(0x1cd)](_0x5a1548['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x51e772(0x1d0)][_0x51e772(0x1fd)]({'interceptor':(_0x5ca8e9,_0x3dd276)=>{const _0x5b6c7b=_0x51e772;let _0x50f8ec=_0x5ca8e9[_0x5b6c7b(0x20b)];if(_0x67b9ef!=null&&_0x67b9ef['customHeaders']){for(let _0x36dbbe in _0x67b9ef['customHeaders'])_0x50f8ec[_0x5b6c7b(0x200)](_0x36dbbe,_0x67b9ef['customHeaders'][_0x36dbbe]);}return _0x3dd276(_0x5ca8e9);}});}async[_0x271df9(0x1e7)](_0x3699a8){return this['_doCreateSocket'](_0x3699a8);}};_0x3f198d=_0x4decd0([_0x58b46f(0x0,(0x0,_0x5d93cd['Inject'])(_0x5d93cd[_0x271df9(0x1c8)])),_0x58b46f(0x1,(0x0,_0x5d93cd[_0x271df9(0x1ce)])(_0x37c952[_0x271df9(0x1f0)])),_0x58b46f(0x2,_0x5d93cd[_0x271df9(0x214)]),_0x58b46f(0x3,_0x5d93cd[_0x271df9(0x205)]),_0x58b46f(0x4,_0x4b04de[_0x271df9(0x1e9)])],_0x3f198d),_0x5d5dea[_0x271df9(0x206)]=_0x260324,Object[_0x271df9(0x1da)](_0x5d5dea,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x3f198d;}}),Object[_0x271df9(0x1da)](_0x5d5dea,_0x271df9(0x20d),{'enumerable':!0x0,'get':function(){return _0xead971;}});}));function _0x403f(){const _0x1050b2=['_registerDependencies','send','error','rxjs','29298DrlEBq','UniverCollaborationClientPlugin','message','5392809RsWawm','1052908rMmnBJ','onStarting','symbol','Disposable','registerHTTPInterceptor','exports','share','set','toDisposable','dispose','length','@univerjs-pro/collaboration-client-node','ILogService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','DisposableCollection','call','54816377rPoNax','_configService','headers','next','UniverCollaborationClientNodePlugin','10tKrlXt','0.25.0-insiders.20260604-29ebbff','removeEventListener','toStringTag','collaboration-client-node.config','_injector','IConfigService','close','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','Injector','pluginName','object','UniverProCollaborationClient','2aKRXpf','getConfig','Inject','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_httpService','setConfig','@univerjs/network','1656311hzmNgK','string','add','open','toPrimitive','addEventListener','1465CnwFTU','defineProperty','getOwnPropertyDescriptor','UniverProCollaboration','amd','ISocketService','packageName','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','decorate','constructor','function','Observable','6709955nugvXK','prototype','createSocket','@univerjs/core','ISnapshotServerService','WebSocket','1498680wOoZoI','pipe','9LWfvqj','UniverCore','Module','HTTPService'];_0x403f=function(){return _0x1050b2;};return _0x403f();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0-insiders.20260604-29ebbff",
|
|
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
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/core": "0.
|
|
58
|
-
"@univerjs
|
|
55
|
+
"@univerjs-pro/collaboration": "0.25.0-insiders.20260604-29ebbff",
|
|
56
|
+
"@univerjs-pro/collaboration-client": "0.25.0-insiders.20260604-29ebbff",
|
|
57
|
+
"@univerjs/core": "0.25.0-insiders.20260604-29ebbff",
|
|
58
|
+
"@univerjs/network": "0.25.0-insiders.20260604-29ebbff"
|
|
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.
|
|
65
|
-
"@univerjs-infra/shared": "0.
|
|
64
|
+
"vitest": "^4.1.7",
|
|
65
|
+
"@univerjs-infra/shared": "0.25.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"test": "vitest run",
|