@univerjs-pro/collaboration-client-node 1.0.2 → 1.0.3

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 _0x21f943=_0x3baf;(function(_0x5be20f,_0x5c71fb){const _0x4a6136=_0x3baf,_0x3254e9=_0x5be20f();while(!![]){try{const _0x1e206f=parseInt(_0x4a6136(0x169))/0x1*(-parseInt(_0x4a6136(0x170))/0x2)+-parseInt(_0x4a6136(0x160))/0x3+parseInt(_0x4a6136(0x14c))/0x4+-parseInt(_0x4a6136(0x131))/0x5*(parseInt(_0x4a6136(0x145))/0x6)+-parseInt(_0x4a6136(0x12e))/0x7+-parseInt(_0x4a6136(0x158))/0x8*(parseInt(_0x4a6136(0x136))/0x9)+parseInt(_0x4a6136(0x14f))/0xa;if(_0x1e206f===_0x5c71fb)break;else _0x3254e9['push'](_0x3254e9['shift']());}catch(_0x3763e2){_0x3254e9['push'](_0x3254e9['shift']());}}}(_0x2233,0xa714f),Object[_0x21f943(0x133)](exports,Symbol[_0x21f943(0x15e)],{'value':_0x21f943(0x14e)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x21f943(0x14a),c='1.0.2';const l={};function u(_0x24a1c6,_0x51d1a9){return function(_0xa25440,_0x3ff4f0){_0x51d1a9(_0xa25440,_0x3ff4f0,_0x24a1c6);};}function d(_0xb49f7d,_0x45e2ad,_0xc87078,_0x4e548c){const _0x168be5=_0x21f943;var _0x2bfc91=arguments['length'],_0x5e4e5f=_0x2bfc91<0x3?_0x45e2ad:_0x4e548c===null?_0x4e548c=Object['getOwnPropertyDescriptor'](_0x45e2ad,_0xc87078):_0x4e548c,_0x5627f2;if(typeof Reflect==_0x168be5(0x155)&&typeof Reflect[_0x168be5(0x13b)]==_0x168be5(0x156))_0x5e4e5f=Reflect['decorate'](_0xb49f7d,_0x45e2ad,_0xc87078,_0x4e548c);else{for(var _0x1c8f7b=_0xb49f7d[_0x168be5(0x148)]-0x1;_0x1c8f7b>=0x0;_0x1c8f7b--)(_0x5627f2=_0xb49f7d[_0x1c8f7b])&&(_0x5e4e5f=(_0x2bfc91<0x3?_0x5627f2(_0x5e4e5f):_0x2bfc91>0x3?_0x5627f2(_0x45e2ad,_0xc87078,_0x5e4e5f):_0x5627f2(_0x45e2ad,_0xc87078))||_0x5e4e5f);}return _0x2bfc91>0x3&&_0x5e4e5f&&Object[_0x168be5(0x133)](_0x45e2ad,_0xc87078,_0x5e4e5f),_0x5e4e5f;}let f=class extends r[_0x21f943(0x134)]{constructor(_0x47da69){const _0x23a412=_0x21f943;super(),this[_0x23a412(0x165)]=_0x47da69;}[_0x21f943(0x137)](_0x4d4a3c){const _0x15c54a=_0x21f943;var _0x5e51c8;let _0x12bce5=((_0x5e51c8=this['_configService']['getConfig'](t[_0x15c54a(0x139)]))==null?void 0x0:_0x5e51c8[_0x15c54a(0x130)])||{};try{let _0x35ca00=new o[(_0x15c54a(0x149))](_0x4d4a3c,{'headers':{..._0x12bce5}}),_0x4a946f=new r[(_0x15c54a(0x140))]();return{'URL':_0x4d4a3c,'close':(_0x589e7f,_0x549c0e)=>{const _0x2c39f6=_0x15c54a;_0x35ca00[_0x2c39f6(0x12f)](_0x589e7f,_0x549c0e),_0x4a946f[_0x2c39f6(0x135)]();},'send':_0x4c31dd=>{_0x35ca00['send'](_0x4c31dd);},'open$':new a['Observable'](_0x12953f=>{const _0x1776da=_0x15c54a;let _0x1b44de=_0x45399f=>_0x12953f['next'](_0x45399f);_0x35ca00[_0x1776da(0x166)]('open',_0x1b44de),_0x4a946f[_0x1776da(0x151)]((0x0,r['toDisposable'])(()=>_0x35ca00[_0x1776da(0x16a)](_0x1776da(0x14b),_0x1b44de)));})['pipe']((0x0,a[_0x15c54a(0x142)])()),'close$':new a['Observable'](_0x516204=>{const _0x414177=_0x15c54a;let _0x102f9a=_0xd67fb8=>_0x516204[_0x414177(0x16e)](_0xd67fb8);_0x35ca00[_0x414177(0x166)](_0x414177(0x12f),_0x102f9a),_0x4a946f[_0x414177(0x151)]((0x0,r[_0x414177(0x152)])(()=>_0x35ca00[_0x414177(0x16a)]('close',_0x102f9a)));})[_0x15c54a(0x13f)]((0x0,a['share'])()),'error$':new a[(_0x15c54a(0x167))](_0x4bd8ac=>{const _0x495edb=_0x15c54a;let _0x3b08ae=_0x1a426d=>_0x4bd8ac['next'](_0x1a426d);_0x35ca00[_0x495edb(0x166)](_0x495edb(0x13e),_0x3b08ae),_0x4a946f[_0x495edb(0x151)]((0x0,r[_0x495edb(0x152)])(()=>_0x35ca00['removeEventListener']('error',_0x3b08ae)));})[_0x15c54a(0x13f)]((0x0,a[_0x15c54a(0x142)])()),'message$':new a[(_0x15c54a(0x167))](_0x2f44cb=>{const _0x57b623=_0x15c54a;let _0x1623f0=_0x7389e7=>_0x2f44cb[_0x57b623(0x16e)](_0x7389e7);_0x35ca00[_0x57b623(0x166)]('message',_0x1623f0),_0x4a946f[_0x57b623(0x151)]((0x0,r[_0x57b623(0x152)])(()=>_0x35ca00[_0x57b623(0x16a)](_0x57b623(0x164),_0x1623f0)));})['pipe']((0x0,a['share'])())};}catch(_0x4f6a25){return console[_0x15c54a(0x13e)](_0x4f6a25),null;}}};f=d([u(0x0,r[_0x21f943(0x14d)])],f);function p(_0x51767c){'@babel/helpers - typeof';const _0x477e79=_0x21f943;return p=typeof Symbol==_0x477e79(0x156)&&typeof Symbol[_0x477e79(0x168)]=='symbol'?function(_0x2fd087){return typeof _0x2fd087;}:function(_0xfbc9cd){const _0x43447e=_0x477e79;return _0xfbc9cd&&typeof Symbol==_0x43447e(0x156)&&_0xfbc9cd[_0x43447e(0x16b)]===Symbol&&_0xfbc9cd!==Symbol[_0x43447e(0x157)]?_0x43447e(0x153):typeof _0xfbc9cd;},p(_0x51767c);}function m(_0x12e141,_0x59e1ec){const _0x4897cf=_0x21f943;if(p(_0x12e141)!='object'||!_0x12e141)return _0x12e141;var _0x1674d7=_0x12e141[Symbol[_0x4897cf(0x15f)]];if(_0x1674d7!==void 0x0){var _0x4da1e6=_0x1674d7['call'](_0x12e141,_0x59e1ec||_0x4897cf(0x13c));if(p(_0x4da1e6)!=_0x4897cf(0x155))return _0x4da1e6;throw TypeError(_0x4897cf(0x16f));}return(_0x59e1ec==='string'?String:Number)(_0x12e141);}function h(_0x20a210){const _0x4f8dae=_0x21f943;var _0xbe9afa=m(_0x20a210,_0x4f8dae(0x147));return p(_0xbe9afa)==_0x4f8dae(0x153)?_0xbe9afa:_0xbe9afa+'';}function g(_0x1d15fc,_0x47d364,_0x4845c0){return(_0x47d364=h(_0x47d364))in _0x1d15fc?Object['defineProperty'](_0x1d15fc,_0x47d364,{'value':_0x4845c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d15fc[_0x47d364]=_0x4845c0,_0x1d15fc;}function _0x2233(){const _0x26647f=['version','message','_configService','addEventListener','Observable','iterator','1JKARKe','removeEventListener','constructor','Plugin','headers','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1068478hfWWyk','merge','packageName','Inject','72982gINJUE','close','customHeaders','60MBuceK','pluginName','defineProperty','Disposable','dispose','5090427HzTPuL','createSocket','_registerDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','decorate','default','UniverNetworkPlugin','error','pipe','DisposableCollection','NodeCollaborationSocketService','share','UniverCollaborationClientNodePlugin','getConfig','324426OMyEKf','HTTPService','string','length','WebSocket','@univerjs-pro/collaboration-client-node','open','3246312qTjojs','IConfigService','Module','24924180BSTcih','_config','add','toDisposable','symbol','UniverCollaborationClientPlugin','object','function','prototype','8WifKLs','set','_injector','ISnapshotServerService','setConfig','onStarting','toStringTag','toPrimitive','2581527ucLglB','_doCreateSocket','ILogService'];_0x2233=function(){return _0x26647f;};return _0x2233();}let _=class extends r[_0x21f943(0x16c)]{constructor(_0x54172c=l,_0x49f54b,_0x12eef2){const _0x1878a1=_0x21f943;super(),this[_0x1878a1(0x150)]=_0x54172c,this[_0x1878a1(0x165)]=_0x49f54b,this[_0x1878a1(0x15a)]=_0x12eef2;let {..._0x12a961}=(0x0,r[_0x1878a1(0x171)])({},l,this[_0x1878a1(0x150)]);this[_0x1878a1(0x165)][_0x1878a1(0x15c)]('collaboration-client-node.config',_0x12a961);}[_0x21f943(0x15d)](){const _0x1a0dba=_0x21f943;this[_0x1a0dba(0x138)]();}['_registerDependencies'](){(0x0,r['registerDependencies'])(this['_injector'],[[i['ISocketService'],{'useClass':f}]]);}};function _0x3baf(_0x35e73d,_0x5e8bb4){_0x35e73d=_0x35e73d-0x12e;const _0x223392=_0x2233();let _0x3bafe8=_0x223392[_0x35e73d];return _0x3bafe8;}g(_,_0x21f943(0x132),_0x21f943(0x13a)),g(_,_0x21f943(0x172),s),g(_,_0x21f943(0x163),c),_=d([(0x0,r['DependentOn'])(n['UniverLicensePlugin'],i[_0x21f943(0x13d)],e['UniverCollaborationPlugin'],t[_0x21f943(0x154)]),u(0x1,r[_0x21f943(0x14d)]),u(0x2,(0x0,r[_0x21f943(0x173)])(r['Injector']))],_);let v=class extends t['CollaborationSocketService']{constructor(_0x271ecf,_0x571974,_0x9ce44,_0x318197,_0x137198){const _0x8a04ce=_0x21f943;super(_0x271ecf,_0x571974,_0x9ce44,_0x318197,_0x137198);let _0x6664e5=this['_configService'][_0x8a04ce(0x144)](t[_0x8a04ce(0x139)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xc19426,_0xfaf713)=>{const _0x54c299=_0x8a04ce;let _0x318be8=_0xc19426[_0x54c299(0x16d)];if(_0x6664e5!=null&&_0x6664e5[_0x54c299(0x130)]){for(let _0x23a96d in _0x6664e5[_0x54c299(0x130)])_0x318be8[_0x54c299(0x159)](_0x23a96d,_0x6664e5['customHeaders'][_0x23a96d]);}return _0xfaf713(_0xc19426);}});}async['createSocket'](_0x1f13bd){const _0x607c43=_0x21f943;return this[_0x607c43(0x161)](_0x1f13bd);}};v=d([u(0x0,(0x0,r[_0x21f943(0x173)])(r['Injector'])),u(0x1,(0x0,r[_0x21f943(0x173)])(i[_0x21f943(0x146)])),u(0x2,r['IConfigService']),u(0x3,r[_0x21f943(0x162)]),u(0x4,e[_0x21f943(0x15b)])],v),Object['defineProperty'](exports,_0x21f943(0x141),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x21f943(0x133)](exports,_0x21f943(0x143),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x32668f=_0x3c9f;function _0x3c9f(_0x1f395b,_0x444109){_0x1f395b=_0x1f395b-0xe1;const _0x307bd4=_0x307b();let _0x3c9f8b=_0x307bd4[_0x1f395b];return _0x3c9f8b;}(function(_0x21dcd6,_0x4c3f68){const _0x20de0b=_0x3c9f,_0x49d5aa=_0x21dcd6();while(!![]){try{const _0x1e432a=-parseInt(_0x20de0b(0xe9))/0x1+-parseInt(_0x20de0b(0xf8))/0x2+parseInt(_0x20de0b(0x11e))/0x3*(parseInt(_0x20de0b(0xe7))/0x4)+parseInt(_0x20de0b(0x114))/0x5+-parseInt(_0x20de0b(0x10e))/0x6*(parseInt(_0x20de0b(0xe5))/0x7)+parseInt(_0x20de0b(0x115))/0x8+parseInt(_0x20de0b(0x103))/0x9*(parseInt(_0x20de0b(0xfb))/0xa);if(_0x1e432a===_0x4c3f68)break;else _0x49d5aa['push'](_0x49d5aa['shift']());}catch(_0xa54d27){_0x49d5aa['push'](_0x49d5aa['shift']());}}}(_0x307b,0xc4f76),Object[_0x32668f(0x11b)](exports,Symbol['toStringTag'],{'value':_0x32668f(0x122)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x32668f(0xf6),c=_0x32668f(0x11f);const l={};function u(_0x541128,_0x5034dc){return function(_0x5e6f55,_0x25474c){_0x5034dc(_0x5e6f55,_0x25474c,_0x541128);};}function _0x307b(){const _0x49625f=['collaboration-client-node.config','Injector','@univerjs-pro/collaboration-client-node','UniverCollaborationPlugin','1867964pTSAds','constructor','getConfig','10TDSCnd','merge','addEventListener','customHeaders','_httpService','open','HTTPService','ISnapshotServerService','7725069jyjSkw','share','message','_injector','IConfigService','registerHTTPInterceptor','pluginName','_configService','UniverCollaborationClientPlugin','Inject','object','34494EDCEGm','_config','close','WebSocket','setConfig','UniverNetworkPlugin','2143985cObdmD','4749336zDVRii','removeEventListener','pipe','next','string','add','defineProperty','ISocketService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','330agbHCe','1.0.3','packageName','_doCreateSocket','Module','iterator','getOwnPropertyDescriptor','version','function','DisposableCollection','_registerDependencies','CollaborationSocketService','error','toPrimitive','dispose','headers','1351fNDqbx','createSocket','53716ZlyPBE','Plugin','507682GQdUPu','onStarting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Observable','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toDisposable','symbol','set','NodeCollaborationSocketService','DependentOn','decorate'];_0x307b=function(){return _0x49625f;};return _0x307b();}function d(_0x3f973f,_0x209d67,_0x53d8a3,_0x344e02){const _0x2fb8eb=_0x32668f;var _0x510e07=arguments['length'],_0x3df5fa=_0x510e07<0x3?_0x209d67:_0x344e02===null?_0x344e02=Object[_0x2fb8eb(0x124)](_0x209d67,_0x53d8a3):_0x344e02,_0x20733d;if(typeof Reflect=='object'&&typeof Reflect[_0x2fb8eb(0xf3)]==_0x2fb8eb(0x126))_0x3df5fa=Reflect[_0x2fb8eb(0xf3)](_0x3f973f,_0x209d67,_0x53d8a3,_0x344e02);else{for(var _0x2e6af6=_0x3f973f['length']-0x1;_0x2e6af6>=0x0;_0x2e6af6--)(_0x20733d=_0x3f973f[_0x2e6af6])&&(_0x3df5fa=(_0x510e07<0x3?_0x20733d(_0x3df5fa):_0x510e07>0x3?_0x20733d(_0x209d67,_0x53d8a3,_0x3df5fa):_0x20733d(_0x209d67,_0x53d8a3))||_0x3df5fa);}return _0x510e07>0x3&&_0x3df5fa&&Object['defineProperty'](_0x209d67,_0x53d8a3,_0x3df5fa),_0x3df5fa;}let f=class extends r['Disposable']{constructor(_0x291916){super(),this['_configService']=_0x291916;}[_0x32668f(0xe6)](_0x5e9bf6){const _0x1711e7=_0x32668f;var _0x1dcaeb;let _0x50a0b2=((_0x1dcaeb=this[_0x1711e7(0x10a)][_0x1711e7(0xfa)](t[_0x1711e7(0x11d)]))==null?void 0x0:_0x1dcaeb[_0x1711e7(0xfe)])||{};try{let _0x32ec52=new o[(_0x1711e7(0x111))](_0x5e9bf6,{'headers':{..._0x50a0b2}}),_0x4e38a5=new r[(_0x1711e7(0x127))]();return{'URL':_0x5e9bf6,'close':(_0x778192,_0x116293)=>{const _0x5652b4=_0x1711e7;_0x32ec52['close'](_0x778192,_0x116293),_0x4e38a5[_0x5652b4(0xe3)]();},'send':_0x362458=>{_0x32ec52['send'](_0x362458);},'open$':new a[(_0x1711e7(0xec))](_0x5e1add=>{const _0x3e8919=_0x1711e7;let _0x927610=_0x10d899=>_0x5e1add[_0x3e8919(0x118)](_0x10d899);_0x32ec52[_0x3e8919(0xfd)]('open',_0x927610),_0x4e38a5[_0x3e8919(0x11a)]((0x0,r['toDisposable'])(()=>_0x32ec52['removeEventListener'](_0x3e8919(0x100),_0x927610)));})[_0x1711e7(0x117)]((0x0,a[_0x1711e7(0x104)])()),'close$':new a[(_0x1711e7(0xec))](_0x22bdd5=>{const _0x13e98d=_0x1711e7;let _0x26f279=_0x399cb8=>_0x22bdd5['next'](_0x399cb8);_0x32ec52[_0x13e98d(0xfd)](_0x13e98d(0x110),_0x26f279),_0x4e38a5[_0x13e98d(0x11a)]((0x0,r['toDisposable'])(()=>_0x32ec52['removeEventListener']('close',_0x26f279)));})[_0x1711e7(0x117)]((0x0,a[_0x1711e7(0x104)])()),'error$':new a[(_0x1711e7(0xec))](_0x27c2c2=>{const _0x2bbd28=_0x1711e7;let _0x177a3f=_0x5c7a8d=>_0x27c2c2['next'](_0x5c7a8d);_0x32ec52[_0x2bbd28(0xfd)](_0x2bbd28(0xe1),_0x177a3f),_0x4e38a5['add']((0x0,r[_0x2bbd28(0xee)])(()=>_0x32ec52[_0x2bbd28(0x116)](_0x2bbd28(0xe1),_0x177a3f)));})[_0x1711e7(0x117)]((0x0,a['share'])()),'message$':new a[(_0x1711e7(0xec))](_0x364b9c=>{const _0x57a246=_0x1711e7;let _0x23356b=_0x214c32=>_0x364b9c[_0x57a246(0x118)](_0x214c32);_0x32ec52[_0x57a246(0xfd)](_0x57a246(0x105),_0x23356b),_0x4e38a5[_0x57a246(0x11a)]((0x0,r[_0x57a246(0xee)])(()=>_0x32ec52['removeEventListener'](_0x57a246(0x105),_0x23356b)));})[_0x1711e7(0x117)]((0x0,a['share'])())};}catch(_0x4f2afd){return console[_0x1711e7(0xe1)](_0x4f2afd),null;}}};f=d([u(0x0,r[_0x32668f(0x107)])],f);function p(_0xacd324){'@babel/helpers - typeof';const _0x1b6966=_0x32668f;return p=typeof Symbol=='function'&&typeof Symbol[_0x1b6966(0x123)]==_0x1b6966(0xef)?function(_0x1990ed){return typeof _0x1990ed;}:function(_0x50c556){const _0x4e4d05=_0x1b6966;return _0x50c556&&typeof Symbol=='function'&&_0x50c556[_0x4e4d05(0xf9)]===Symbol&&_0x50c556!==Symbol['prototype']?_0x4e4d05(0xef):typeof _0x50c556;},p(_0xacd324);}function m(_0x296916,_0x2b2968){const _0x283437=_0x32668f;if(p(_0x296916)!=_0x283437(0x10d)||!_0x296916)return _0x296916;var _0x431adc=_0x296916[Symbol[_0x283437(0xe2)]];if(_0x431adc!==void 0x0){var _0x7dacf9=_0x431adc['call'](_0x296916,_0x2b2968||'default');if(p(_0x7dacf9)!=_0x283437(0x10d))return _0x7dacf9;throw TypeError(_0x283437(0xeb));}return(_0x2b2968===_0x283437(0x119)?String:Number)(_0x296916);}function h(_0x3c4d48){const _0x397838=_0x32668f;var _0x14bd61=m(_0x3c4d48,_0x397838(0x119));return p(_0x14bd61)=='symbol'?_0x14bd61:_0x14bd61+'';}function g(_0x55e3f7,_0x44b382,_0x4cc518){const _0x2dc0ce=_0x32668f;return(_0x44b382=h(_0x44b382))in _0x55e3f7?Object[_0x2dc0ce(0x11b)](_0x55e3f7,_0x44b382,{'value':_0x4cc518,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55e3f7[_0x44b382]=_0x4cc518,_0x55e3f7;}let _=class extends r[_0x32668f(0xe8)]{constructor(_0xfad946=l,_0x38f61e,_0x5abaad){const _0x4a6808=_0x32668f;super(),this[_0x4a6808(0x10f)]=_0xfad946,this['_configService']=_0x38f61e,this[_0x4a6808(0x106)]=_0x5abaad;let {..._0x4f7379}=(0x0,r[_0x4a6808(0xfc)])({},l,this[_0x4a6808(0x10f)]);this['_configService'][_0x4a6808(0x112)](_0x4a6808(0xf4),_0x4f7379);}[_0x32668f(0xea)](){const _0x318cb8=_0x32668f;this[_0x318cb8(0x128)]();}[_0x32668f(0x128)](){const _0x41a9ac=_0x32668f;(0x0,r['registerDependencies'])(this[_0x41a9ac(0x106)],[[i[_0x41a9ac(0x11c)],{'useClass':f}]]);}};g(_,_0x32668f(0x109),_0x32668f(0xed)),g(_,_0x32668f(0x120),s),g(_,_0x32668f(0x125),c),_=d([(0x0,r[_0x32668f(0xf2)])(n['UniverLicensePlugin'],i[_0x32668f(0x113)],e[_0x32668f(0xf7)],t[_0x32668f(0x10b)]),u(0x1,r[_0x32668f(0x107)]),u(0x2,(0x0,r[_0x32668f(0x10c)])(r['Injector']))],_);let v=class extends t[_0x32668f(0x129)]{constructor(_0x5bfc95,_0x200561,_0x548454,_0x3374ba,_0x3ff81d){const _0x323105=_0x32668f;super(_0x5bfc95,_0x200561,_0x548454,_0x3374ba,_0x3ff81d);let _0x526595=this[_0x323105(0x10a)][_0x323105(0xfa)](t[_0x323105(0x11d)]);this[_0x323105(0xff)][_0x323105(0x108)]({'interceptor':(_0x2a3632,_0x437eb7)=>{const _0x494835=_0x323105;let _0x69d75c=_0x2a3632[_0x494835(0xe4)];if(_0x526595!=null&&_0x526595[_0x494835(0xfe)]){for(let _0x3236d3 in _0x526595['customHeaders'])_0x69d75c[_0x494835(0xf0)](_0x3236d3,_0x526595[_0x494835(0xfe)][_0x3236d3]);}return _0x437eb7(_0x2a3632);}});}async[_0x32668f(0xe6)](_0x54e413){const _0xeb2e1c=_0x32668f;return this[_0xeb2e1c(0x121)](_0x54e413);}};v=d([u(0x0,(0x0,r[_0x32668f(0x10c)])(r[_0x32668f(0xf5)])),u(0x1,(0x0,r['Inject'])(i[_0x32668f(0x101)])),u(0x2,r[_0x32668f(0x107)]),u(0x3,r['ILogService']),u(0x4,e[_0x32668f(0x102)])],v),Object[_0x32668f(0x11b)](exports,_0x32668f(0xf1),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x32668f(0x11b)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfad198=_0xd045;(function(_0x34a991,_0x46d0d0){const _0x304f2f=_0xd045,_0x36c11e=_0x34a991();while(!![]){try{const _0x5c9406=parseInt(_0x304f2f(0x16a))/0x1+parseInt(_0x304f2f(0x14c))/0x2+parseInt(_0x304f2f(0x15d))/0x3+parseInt(_0x304f2f(0x167))/0x4+-parseInt(_0x304f2f(0x15e))/0x5*(-parseInt(_0x304f2f(0x14d))/0x6)+parseInt(_0x304f2f(0x150))/0x7+parseInt(_0x304f2f(0x151))/0x8*(-parseInt(_0x304f2f(0x164))/0x9);if(_0x5c9406===_0x46d0d0)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x42e37a){_0x36c11e['push'](_0x36c11e['shift']());}}}(_0x1634,0x59829));import{ISnapshotServerService as _0x2baad9,UniverCollaborationPlugin as _0x24cf9f}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x482dfd,CollaborationSocketService as _0x219388,UniverCollaborationClientPlugin as _0x411ea4}from'@univerjs-pro/collaboration-client';function _0x1634(){const _0x4147d6=['close','pipe','removeEventListener','length','customHeaders','open','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','getOwnPropertyDescriptor','_injector','1919943wvGkMS','2170VfkgGp','createSocket','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','_configService','10732833zFoqev','constructor','object','2616312NpjiSB','_doCreateSocket','packageName','512275viFyxH','_registerDependencies','dispose','iterator','toPrimitive','_config','symbol','defineProperty','message','addEventListener','decorate','1121940ZcxwOJ','2970OWOTCf','error','string','1187011qKxWrV','16Thqoqw'];_0x1634=function(){return _0x4147d6;};return _0x1634();}import{UniverLicensePlugin as _0x4bd8eb}from'@univerjs-pro/license';import{DependentOn as _0x216067,Disposable as _0x128357,DisposableCollection as _0x5175d2,IConfigService as _0x306740,ILogService as _0x9cd830,Inject as _0x2506a5,Injector as _0x18b828,Plugin as _0xd6760d,merge as _0x517c45,registerDependencies as _0x550118,toDisposable as _0x1f6998}from'@univerjs/core';import{HTTPService as _0x10e6d2,ISocketService as _0x546886,UniverNetworkPlugin as _0xb71c24}from'@univerjs/network';import{Observable as _0x424874,share as _0xfb593d}from'rxjs';import{WebSocket as _0x4b4fc7}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.2';const T={};function _0xd045(_0x159435,_0x413c6e){_0x159435=_0x159435-0x149;const _0x163481=_0x1634();let _0xd045c6=_0x163481[_0x159435];return _0xd045c6;}function E(_0x2bb152,_0x485ff5){return function(_0x15b5ef,_0x590302){_0x485ff5(_0x15b5ef,_0x590302,_0x2bb152);};}function D(_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d){const _0x132b70=_0xd045;var _0x4034f1=arguments[_0x132b70(0x155)],_0x18b934=_0x4034f1<0x3?_0x1fc6f2:_0x4bcd9d===null?_0x4bcd9d=Object[_0x132b70(0x15b)](_0x1fc6f2,_0x440e2f):_0x4bcd9d,_0x52903e;if(typeof Reflect==_0x132b70(0x166)&&typeof Reflect['decorate']==_0x132b70(0x158))_0x18b934=Reflect[_0x132b70(0x14b)](_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d);else{for(var _0x5b94a0=_0x538ed2['length']-0x1;_0x5b94a0>=0x0;_0x5b94a0--)(_0x52903e=_0x538ed2[_0x5b94a0])&&(_0x18b934=(_0x4034f1<0x3?_0x52903e(_0x18b934):_0x4034f1>0x3?_0x52903e(_0x1fc6f2,_0x440e2f,_0x18b934):_0x52903e(_0x1fc6f2,_0x440e2f))||_0x18b934);}return _0x4034f1>0x3&&_0x18b934&&Object[_0x132b70(0x171)](_0x1fc6f2,_0x440e2f,_0x18b934),_0x18b934;}let O=class extends _0x128357{constructor(_0x4c4942){const _0x240b84=_0xd045;super(),this[_0x240b84(0x163)]=_0x4c4942;}[_0xfad198(0x15f)](_0x32284e){const _0xda97ba=_0xfad198;var _0x4d4117;let _0x3a60ba=((_0x4d4117=this['_configService']['getConfig'](_0x482dfd))==null?void 0x0:_0x4d4117[_0xda97ba(0x156)])||{};try{let _0x5ac80c=new _0x4b4fc7(_0x32284e,{'headers':{..._0x3a60ba}}),_0x3c7d31=new _0x5175d2();return{'URL':_0x32284e,'close':(_0x403458,_0x47b97d)=>{const _0x7a7de1=_0xda97ba;_0x5ac80c[_0x7a7de1(0x152)](_0x403458,_0x47b97d),_0x3c7d31[_0x7a7de1(0x16c)]();},'send':_0x38b4c4=>{_0x5ac80c['send'](_0x38b4c4);},'open$':new _0x424874(_0x41e4cd=>{const _0x5ecea3=_0xda97ba;let _0x4d3864=_0x30858f=>_0x41e4cd['next'](_0x30858f);_0x5ac80c[_0x5ecea3(0x14a)](_0x5ecea3(0x157),_0x4d3864),_0x3c7d31[_0x5ecea3(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5ecea3(0x154)](_0x5ecea3(0x157),_0x4d3864)));})[_0xda97ba(0x153)](_0xfb593d()),'close$':new _0x424874(_0x2c3684=>{const _0x1306ea=_0xda97ba;let _0xf0ee44=_0x4ffd38=>_0x2c3684[_0x1306ea(0x160)](_0x4ffd38);_0x5ac80c[_0x1306ea(0x14a)](_0x1306ea(0x152),_0xf0ee44),_0x3c7d31[_0x1306ea(0x15a)](_0x1f6998(()=>_0x5ac80c['removeEventListener'](_0x1306ea(0x152),_0xf0ee44)));})[_0xda97ba(0x153)](_0xfb593d()),'error$':new _0x424874(_0x41622f=>{const _0x53fc12=_0xda97ba;let _0x153aaf=_0x179b74=>_0x41622f[_0x53fc12(0x160)](_0x179b74);_0x5ac80c['addEventListener'](_0x53fc12(0x14e),_0x153aaf),_0x3c7d31[_0x53fc12(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x53fc12(0x154)]('error',_0x153aaf)));})[_0xda97ba(0x153)](_0xfb593d()),'message$':new _0x424874(_0x14e405=>{const _0x5e717a=_0xda97ba;let _0x4e9eaf=_0x41e3bf=>_0x14e405[_0x5e717a(0x160)](_0x41e3bf);_0x5ac80c[_0x5e717a(0x14a)](_0x5e717a(0x149),_0x4e9eaf),_0x3c7d31[_0x5e717a(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5e717a(0x154)](_0x5e717a(0x149),_0x4e9eaf)));})[_0xda97ba(0x153)](_0xfb593d())};}catch(_0x3ddf67){return console[_0xda97ba(0x14e)](_0x3ddf67),null;}}};O=D([E(0x0,_0x306740)],O);function k(_0x5b526d){'@babel/helpers - typeof';const _0x174283=_0xfad198;return k=typeof Symbol==_0x174283(0x158)&&typeof Symbol[_0x174283(0x16d)]==_0x174283(0x170)?function(_0x2067f5){return typeof _0x2067f5;}:function(_0x231b23){const _0x2241b6=_0x174283;return _0x231b23&&typeof Symbol==_0x2241b6(0x158)&&_0x231b23[_0x2241b6(0x165)]===Symbol&&_0x231b23!==Symbol['prototype']?_0x2241b6(0x170):typeof _0x231b23;},k(_0x5b526d);}function A(_0x420680,_0x4c3706){const _0x1e2eff=_0xfad198;if(k(_0x420680)!=_0x1e2eff(0x166)||!_0x420680)return _0x420680;var _0x5ef63a=_0x420680[Symbol[_0x1e2eff(0x16e)]];if(_0x5ef63a!==void 0x0){var _0x3aea78=_0x5ef63a['call'](_0x420680,_0x4c3706||'default');if(k(_0x3aea78)!=_0x1e2eff(0x166))return _0x3aea78;throw TypeError(_0x1e2eff(0x161));}return(_0x4c3706===_0x1e2eff(0x14f)?String:Number)(_0x420680);}function j(_0x14d832){const _0x32d49a=_0xfad198;var _0x209345=A(_0x14d832,'string');return k(_0x209345)==_0x32d49a(0x170)?_0x209345:_0x209345+'';}function M(_0x593076,_0x2f9a3d,_0x366b7a){const _0x2e8ab1=_0xfad198;return(_0x2f9a3d=j(_0x2f9a3d))in _0x593076?Object[_0x2e8ab1(0x171)](_0x593076,_0x2f9a3d,{'value':_0x366b7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x593076[_0x2f9a3d]=_0x366b7a,_0x593076;}let N=class extends _0xd6760d{constructor(_0x12e74d=T,_0x335765,_0xeccbae){const _0x1907fb=_0xfad198;super(),this['_config']=_0x12e74d,this[_0x1907fb(0x163)]=_0x335765,this[_0x1907fb(0x15c)]=_0xeccbae;let {..._0x52e976}=_0x517c45({},T,this[_0x1907fb(0x16f)]);this[_0x1907fb(0x163)]['setConfig']('collaboration-client-node.config',_0x52e976);}['onStarting'](){const _0x4e05f1=_0xfad198;this[_0x4e05f1(0x16b)]();}[_0xfad198(0x16b)](){const _0x445ac1=_0xfad198;_0x550118(this[_0x445ac1(0x15c)],[[_0x546886,{'useClass':O}]]);}};M(N,_0xfad198(0x162),_0xfad198(0x159)),M(N,_0xfad198(0x169),C),M(N,'version',w),N=D([_0x216067(_0x4bd8eb,_0xb71c24,_0x24cf9f,_0x411ea4),E(0x1,_0x306740),E(0x2,_0x2506a5(_0x18b828))],N);let P=class extends _0x219388{constructor(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8){const _0x6dbaf1=_0xfad198;super(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8);let _0x1db92c=this[_0x6dbaf1(0x163)]['getConfig'](_0x482dfd);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1eb59d,_0x4ed5bd)=>{const _0x3160f2=_0x6dbaf1;let _0x276679=_0x1eb59d['headers'];if(_0x1db92c!=null&&_0x1db92c[_0x3160f2(0x156)]){for(let _0x2f066e in _0x1db92c[_0x3160f2(0x156)])_0x276679['set'](_0x2f066e,_0x1db92c[_0x3160f2(0x156)][_0x2f066e]);}return _0x4ed5bd(_0x1eb59d);}});}async[_0xfad198(0x15f)](_0x6fc791){const _0x4f6c51=_0xfad198;return this[_0x4f6c51(0x168)](_0x6fc791);}};P=D([E(0x0,_0x2506a5(_0x18b828)),E(0x1,_0x2506a5(_0x10e6d2)),E(0x2,_0x306740),E(0x3,_0x9cd830),E(0x4,_0x2baad9)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x2b1e1b=_0x3b12;(function(_0x3ea45a,_0x3910ee){const _0xcee7a8=_0x3b12,_0x170518=_0x3ea45a();while(!![]){try{const _0x204e27=parseInt(_0xcee7a8(0x15c))/0x1*(parseInt(_0xcee7a8(0x15b))/0x2)+parseInt(_0xcee7a8(0x14f))/0x3*(-parseInt(_0xcee7a8(0x14e))/0x4)+parseInt(_0xcee7a8(0x162))/0x5+-parseInt(_0xcee7a8(0x179))/0x6+-parseInt(_0xcee7a8(0x176))/0x7*(-parseInt(_0xcee7a8(0x175))/0x8)+parseInt(_0xcee7a8(0x17c))/0x9+-parseInt(_0xcee7a8(0x152))/0xa*(parseInt(_0xcee7a8(0x150))/0xb);if(_0x204e27===_0x3910ee)break;else _0x170518['push'](_0x170518['shift']());}catch(_0x26c178){_0x170518['push'](_0x170518['shift']());}}}(_0x2a31,0xdee4d));import{ISnapshotServerService as _0x2febfb,UniverCollaborationPlugin as _0x1ad642}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1fcdd8,CollaborationSocketService as _0x4e8da8,UniverCollaborationClientPlugin as _0x935fb0}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1018f4}from'@univerjs-pro/license';import{DependentOn as _0x4f38f4,Disposable as _0x67090e,DisposableCollection as _0xdb8371,IConfigService as _0xf5581,ILogService as _0x2f780d,Inject as _0x5361be,Injector as _0x4c5ed7,Plugin as _0x4b51eb,merge as _0xff489b,registerDependencies as _0x17fc10,toDisposable as _0x364422}from'@univerjs/core';import{HTTPService as _0x26c6cf,ISocketService as _0x18bff4,UniverNetworkPlugin as _0x5531fb}from'@univerjs/network';import{Observable as _0x21cbcb,share as _0x1b7183}from'rxjs';import{WebSocket as _0x578461}from'ws';var C=_0x2b1e1b(0x147),w=_0x2b1e1b(0x166);const T={};function E(_0x118cde,_0x18c669){return function(_0x32d02e,_0x2ca518){_0x18c669(_0x32d02e,_0x2ca518,_0x118cde);};}function _0x3b12(_0x1c602a,_0x4ad564){_0x1c602a=_0x1c602a-0x147;const _0x2a3157=_0x2a31();let _0x3b12db=_0x2a3157[_0x1c602a];return _0x3b12db;}function D(_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e){const _0x376b2c=_0x2b1e1b;var _0x2e1ecf=arguments[_0x376b2c(0x174)],_0x56dca9=_0x2e1ecf<0x3?_0x4dcdf8:_0x30596e===null?_0x30596e=Object[_0x376b2c(0x17a)](_0x4dcdf8,_0x53a909):_0x30596e,_0x2bb3ef;if(typeof Reflect=='object'&&typeof Reflect[_0x376b2c(0x17d)]==_0x376b2c(0x169))_0x56dca9=Reflect[_0x376b2c(0x17d)](_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e);else{for(var _0x378449=_0xcc9e[_0x376b2c(0x174)]-0x1;_0x378449>=0x0;_0x378449--)(_0x2bb3ef=_0xcc9e[_0x378449])&&(_0x56dca9=(_0x2e1ecf<0x3?_0x2bb3ef(_0x56dca9):_0x2e1ecf>0x3?_0x2bb3ef(_0x4dcdf8,_0x53a909,_0x56dca9):_0x2bb3ef(_0x4dcdf8,_0x53a909))||_0x56dca9);}return _0x2e1ecf>0x3&&_0x56dca9&&Object[_0x376b2c(0x15a)](_0x4dcdf8,_0x53a909,_0x56dca9),_0x56dca9;}let O=class extends _0x67090e{constructor(_0x2a9ab4){const _0x167bf0=_0x2b1e1b;super(),this[_0x167bf0(0x156)]=_0x2a9ab4;}[_0x2b1e1b(0x167)](_0x215d8e){const _0x254f2b=_0x2b1e1b;var _0x12fabc;let _0x582c49=((_0x12fabc=this['_configService'][_0x254f2b(0x151)](_0x1fcdd8))==null?void 0x0:_0x12fabc[_0x254f2b(0x17b)])||{};try{let _0x9b1eba=new _0x578461(_0x215d8e,{'headers':{..._0x582c49}}),_0x470425=new _0xdb8371();return{'URL':_0x215d8e,'close':(_0x21649a,_0x64b954)=>{const _0x4763b2=_0x254f2b;_0x9b1eba[_0x4763b2(0x14d)](_0x21649a,_0x64b954),_0x470425[_0x4763b2(0x14c)]();},'send':_0x30d909=>{const _0x439ca8=_0x254f2b;_0x9b1eba[_0x439ca8(0x16b)](_0x30d909);},'open$':new _0x21cbcb(_0x372159=>{const _0x112b35=_0x254f2b;let _0x60557=_0x2ea334=>_0x372159[_0x112b35(0x178)](_0x2ea334);_0x9b1eba['addEventListener'](_0x112b35(0x160),_0x60557),_0x470425['add'](_0x364422(()=>_0x9b1eba['removeEventListener'](_0x112b35(0x160),_0x60557)));})[_0x254f2b(0x170)](_0x1b7183()),'close$':new _0x21cbcb(_0x12df76=>{const _0x2ebd80=_0x254f2b;let _0x28cb9b=_0x15ee08=>_0x12df76[_0x2ebd80(0x178)](_0x15ee08);_0x9b1eba[_0x2ebd80(0x154)](_0x2ebd80(0x14d),_0x28cb9b),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x2ebd80(0x171)]('close',_0x28cb9b)));})[_0x254f2b(0x170)](_0x1b7183()),'error$':new _0x21cbcb(_0x1b3b4f=>{const _0x5e2b4a=_0x254f2b;let _0x33b423=_0x1b7dea=>_0x1b3b4f[_0x5e2b4a(0x178)](_0x1b7dea);_0x9b1eba[_0x5e2b4a(0x154)](_0x5e2b4a(0x15f),_0x33b423),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x5e2b4a(0x171)](_0x5e2b4a(0x15f),_0x33b423)));})[_0x254f2b(0x170)](_0x1b7183()),'message$':new _0x21cbcb(_0x577e7a=>{const _0x31e1c3=_0x254f2b;let _0x3a8b4e=_0x22439c=>_0x577e7a[_0x31e1c3(0x178)](_0x22439c);_0x9b1eba['addEventListener'](_0x31e1c3(0x16f),_0x3a8b4e),_0x470425[_0x31e1c3(0x158)](_0x364422(()=>_0x9b1eba[_0x31e1c3(0x171)](_0x31e1c3(0x16f),_0x3a8b4e)));})['pipe'](_0x1b7183())};}catch(_0x56074d){return console[_0x254f2b(0x15f)](_0x56074d),null;}}};O=D([E(0x0,_0xf5581)],O);function k(_0x23d31c){'@babel/helpers - typeof';const _0x42906b=_0x2b1e1b;return k=typeof Symbol==_0x42906b(0x169)&&typeof Symbol[_0x42906b(0x163)]==_0x42906b(0x168)?function(_0x22c25b){return typeof _0x22c25b;}:function(_0x12f955){const _0xe63ef8=_0x42906b;return _0x12f955&&typeof Symbol==_0xe63ef8(0x169)&&_0x12f955[_0xe63ef8(0x173)]===Symbol&&_0x12f955!==Symbol[_0xe63ef8(0x177)]?_0xe63ef8(0x168):typeof _0x12f955;},k(_0x23d31c);}function A(_0x4ad5ed,_0x27a0be){const _0x288f53=_0x2b1e1b;if(k(_0x4ad5ed)!=_0x288f53(0x149)||!_0x4ad5ed)return _0x4ad5ed;var _0x3d7a65=_0x4ad5ed[Symbol[_0x288f53(0x157)]];if(_0x3d7a65!==void 0x0){var _0x20449d=_0x3d7a65[_0x288f53(0x14a)](_0x4ad5ed,_0x27a0be||_0x288f53(0x14b));if(k(_0x20449d)!='object')return _0x20449d;throw TypeError(_0x288f53(0x16a));}return(_0x27a0be==='string'?String:Number)(_0x4ad5ed);}function j(_0x3e328e){const _0x5d8606=_0x2b1e1b;var _0x1c6241=A(_0x3e328e,'string');return k(_0x1c6241)==_0x5d8606(0x168)?_0x1c6241:_0x1c6241+'';}function M(_0x40bbed,_0x345a74,_0x3a4aa2){const _0x234df3=_0x2b1e1b;return(_0x345a74=j(_0x345a74))in _0x40bbed?Object[_0x234df3(0x15a)](_0x40bbed,_0x345a74,{'value':_0x3a4aa2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40bbed[_0x345a74]=_0x3a4aa2,_0x40bbed;}let N=class extends _0x4b51eb{constructor(_0x15a818=T,_0x1614cd,_0x4776a7){const _0xf2db97=_0x2b1e1b;super(),this[_0xf2db97(0x165)]=_0x15a818,this[_0xf2db97(0x156)]=_0x1614cd,this[_0xf2db97(0x15d)]=_0x4776a7;let {..._0x195eef}=_0xff489b({},T,this['_config']);this['_configService'][_0xf2db97(0x153)](_0xf2db97(0x159),_0x195eef);}['onStarting'](){const _0x5c53a8=_0x2b1e1b;this[_0x5c53a8(0x161)]();}[_0x2b1e1b(0x161)](){const _0x279adc=_0x2b1e1b;_0x17fc10(this[_0x279adc(0x15d)],[[_0x18bff4,{'useClass':O}]]);}};function _0x2a31(){const _0x4791ab=['1755666EERVnh','1KWoNWK','_injector','_doCreateSocket','error','open','_registerDependencies','6186785SIfVJM','iterator','pluginName','_config','1.0.3','createSocket','symbol','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','send','_httpService','headers','set','message','pipe','removeEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','length','20152HZmkxf','3031eDYLrf','prototype','next','4555386EyQtqm','getOwnPropertyDescriptor','customHeaders','8726778kQkifI','decorate','@univerjs-pro/collaboration-client-node','version','object','call','default','dispose','close','4Fpojku','4858329ffRvuP','31064ABEBuM','getConfig','3130UzOcTq','setConfig','addEventListener','registerHTTPInterceptor','_configService','toPrimitive','add','collaboration-client-node.config','defineProperty'];_0x2a31=function(){return _0x4791ab;};return _0x2a31();}M(N,_0x2b1e1b(0x164),_0x2b1e1b(0x172)),M(N,'packageName',C),M(N,_0x2b1e1b(0x148),w),N=D([_0x4f38f4(_0x1018f4,_0x5531fb,_0x1ad642,_0x935fb0),E(0x1,_0xf5581),E(0x2,_0x5361be(_0x4c5ed7))],N);let P=class extends _0x4e8da8{constructor(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74){const _0x1c0046=_0x2b1e1b;super(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74);let _0x4823db=this['_configService'][_0x1c0046(0x151)](_0x1fcdd8);this[_0x1c0046(0x16c)][_0x1c0046(0x155)]({'interceptor':(_0x9ddda1,_0xf7f30e)=>{const _0x1178ef=_0x1c0046;let _0x47f313=_0x9ddda1[_0x1178ef(0x16d)];if(_0x4823db!=null&&_0x4823db[_0x1178ef(0x17b)]){for(let _0x4ecca4 in _0x4823db[_0x1178ef(0x17b)])_0x47f313[_0x1178ef(0x16e)](_0x4ecca4,_0x4823db[_0x1178ef(0x17b)][_0x4ecca4]);}return _0xf7f30e(_0x9ddda1);}});}async[_0x2b1e1b(0x167)](_0x5cac5a){const _0x32eb16=_0x2b1e1b;return this[_0x32eb16(0x15e)](_0x5cac5a);}};P=D([E(0x0,_0x5361be(_0x4c5ed7)),E(0x1,_0x5361be(_0x26c6cf)),E(0x2,_0xf5581),E(0x3,_0x2f780d),E(0x4,_0x2febfb)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfad198=_0xd045;(function(_0x34a991,_0x46d0d0){const _0x304f2f=_0xd045,_0x36c11e=_0x34a991();while(!![]){try{const _0x5c9406=parseInt(_0x304f2f(0x16a))/0x1+parseInt(_0x304f2f(0x14c))/0x2+parseInt(_0x304f2f(0x15d))/0x3+parseInt(_0x304f2f(0x167))/0x4+-parseInt(_0x304f2f(0x15e))/0x5*(-parseInt(_0x304f2f(0x14d))/0x6)+parseInt(_0x304f2f(0x150))/0x7+parseInt(_0x304f2f(0x151))/0x8*(-parseInt(_0x304f2f(0x164))/0x9);if(_0x5c9406===_0x46d0d0)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x42e37a){_0x36c11e['push'](_0x36c11e['shift']());}}}(_0x1634,0x59829));import{ISnapshotServerService as _0x2baad9,UniverCollaborationPlugin as _0x24cf9f}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x482dfd,CollaborationSocketService as _0x219388,UniverCollaborationClientPlugin as _0x411ea4}from'@univerjs-pro/collaboration-client';function _0x1634(){const _0x4147d6=['close','pipe','removeEventListener','length','customHeaders','open','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','getOwnPropertyDescriptor','_injector','1919943wvGkMS','2170VfkgGp','createSocket','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','_configService','10732833zFoqev','constructor','object','2616312NpjiSB','_doCreateSocket','packageName','512275viFyxH','_registerDependencies','dispose','iterator','toPrimitive','_config','symbol','defineProperty','message','addEventListener','decorate','1121940ZcxwOJ','2970OWOTCf','error','string','1187011qKxWrV','16Thqoqw'];_0x1634=function(){return _0x4147d6;};return _0x1634();}import{UniverLicensePlugin as _0x4bd8eb}from'@univerjs-pro/license';import{DependentOn as _0x216067,Disposable as _0x128357,DisposableCollection as _0x5175d2,IConfigService as _0x306740,ILogService as _0x9cd830,Inject as _0x2506a5,Injector as _0x18b828,Plugin as _0xd6760d,merge as _0x517c45,registerDependencies as _0x550118,toDisposable as _0x1f6998}from'@univerjs/core';import{HTTPService as _0x10e6d2,ISocketService as _0x546886,UniverNetworkPlugin as _0xb71c24}from'@univerjs/network';import{Observable as _0x424874,share as _0xfb593d}from'rxjs';import{WebSocket as _0x4b4fc7}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.2';const T={};function _0xd045(_0x159435,_0x413c6e){_0x159435=_0x159435-0x149;const _0x163481=_0x1634();let _0xd045c6=_0x163481[_0x159435];return _0xd045c6;}function E(_0x2bb152,_0x485ff5){return function(_0x15b5ef,_0x590302){_0x485ff5(_0x15b5ef,_0x590302,_0x2bb152);};}function D(_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d){const _0x132b70=_0xd045;var _0x4034f1=arguments[_0x132b70(0x155)],_0x18b934=_0x4034f1<0x3?_0x1fc6f2:_0x4bcd9d===null?_0x4bcd9d=Object[_0x132b70(0x15b)](_0x1fc6f2,_0x440e2f):_0x4bcd9d,_0x52903e;if(typeof Reflect==_0x132b70(0x166)&&typeof Reflect['decorate']==_0x132b70(0x158))_0x18b934=Reflect[_0x132b70(0x14b)](_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d);else{for(var _0x5b94a0=_0x538ed2['length']-0x1;_0x5b94a0>=0x0;_0x5b94a0--)(_0x52903e=_0x538ed2[_0x5b94a0])&&(_0x18b934=(_0x4034f1<0x3?_0x52903e(_0x18b934):_0x4034f1>0x3?_0x52903e(_0x1fc6f2,_0x440e2f,_0x18b934):_0x52903e(_0x1fc6f2,_0x440e2f))||_0x18b934);}return _0x4034f1>0x3&&_0x18b934&&Object[_0x132b70(0x171)](_0x1fc6f2,_0x440e2f,_0x18b934),_0x18b934;}let O=class extends _0x128357{constructor(_0x4c4942){const _0x240b84=_0xd045;super(),this[_0x240b84(0x163)]=_0x4c4942;}[_0xfad198(0x15f)](_0x32284e){const _0xda97ba=_0xfad198;var _0x4d4117;let _0x3a60ba=((_0x4d4117=this['_configService']['getConfig'](_0x482dfd))==null?void 0x0:_0x4d4117[_0xda97ba(0x156)])||{};try{let _0x5ac80c=new _0x4b4fc7(_0x32284e,{'headers':{..._0x3a60ba}}),_0x3c7d31=new _0x5175d2();return{'URL':_0x32284e,'close':(_0x403458,_0x47b97d)=>{const _0x7a7de1=_0xda97ba;_0x5ac80c[_0x7a7de1(0x152)](_0x403458,_0x47b97d),_0x3c7d31[_0x7a7de1(0x16c)]();},'send':_0x38b4c4=>{_0x5ac80c['send'](_0x38b4c4);},'open$':new _0x424874(_0x41e4cd=>{const _0x5ecea3=_0xda97ba;let _0x4d3864=_0x30858f=>_0x41e4cd['next'](_0x30858f);_0x5ac80c[_0x5ecea3(0x14a)](_0x5ecea3(0x157),_0x4d3864),_0x3c7d31[_0x5ecea3(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5ecea3(0x154)](_0x5ecea3(0x157),_0x4d3864)));})[_0xda97ba(0x153)](_0xfb593d()),'close$':new _0x424874(_0x2c3684=>{const _0x1306ea=_0xda97ba;let _0xf0ee44=_0x4ffd38=>_0x2c3684[_0x1306ea(0x160)](_0x4ffd38);_0x5ac80c[_0x1306ea(0x14a)](_0x1306ea(0x152),_0xf0ee44),_0x3c7d31[_0x1306ea(0x15a)](_0x1f6998(()=>_0x5ac80c['removeEventListener'](_0x1306ea(0x152),_0xf0ee44)));})[_0xda97ba(0x153)](_0xfb593d()),'error$':new _0x424874(_0x41622f=>{const _0x53fc12=_0xda97ba;let _0x153aaf=_0x179b74=>_0x41622f[_0x53fc12(0x160)](_0x179b74);_0x5ac80c['addEventListener'](_0x53fc12(0x14e),_0x153aaf),_0x3c7d31[_0x53fc12(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x53fc12(0x154)]('error',_0x153aaf)));})[_0xda97ba(0x153)](_0xfb593d()),'message$':new _0x424874(_0x14e405=>{const _0x5e717a=_0xda97ba;let _0x4e9eaf=_0x41e3bf=>_0x14e405[_0x5e717a(0x160)](_0x41e3bf);_0x5ac80c[_0x5e717a(0x14a)](_0x5e717a(0x149),_0x4e9eaf),_0x3c7d31[_0x5e717a(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5e717a(0x154)](_0x5e717a(0x149),_0x4e9eaf)));})[_0xda97ba(0x153)](_0xfb593d())};}catch(_0x3ddf67){return console[_0xda97ba(0x14e)](_0x3ddf67),null;}}};O=D([E(0x0,_0x306740)],O);function k(_0x5b526d){'@babel/helpers - typeof';const _0x174283=_0xfad198;return k=typeof Symbol==_0x174283(0x158)&&typeof Symbol[_0x174283(0x16d)]==_0x174283(0x170)?function(_0x2067f5){return typeof _0x2067f5;}:function(_0x231b23){const _0x2241b6=_0x174283;return _0x231b23&&typeof Symbol==_0x2241b6(0x158)&&_0x231b23[_0x2241b6(0x165)]===Symbol&&_0x231b23!==Symbol['prototype']?_0x2241b6(0x170):typeof _0x231b23;},k(_0x5b526d);}function A(_0x420680,_0x4c3706){const _0x1e2eff=_0xfad198;if(k(_0x420680)!=_0x1e2eff(0x166)||!_0x420680)return _0x420680;var _0x5ef63a=_0x420680[Symbol[_0x1e2eff(0x16e)]];if(_0x5ef63a!==void 0x0){var _0x3aea78=_0x5ef63a['call'](_0x420680,_0x4c3706||'default');if(k(_0x3aea78)!=_0x1e2eff(0x166))return _0x3aea78;throw TypeError(_0x1e2eff(0x161));}return(_0x4c3706===_0x1e2eff(0x14f)?String:Number)(_0x420680);}function j(_0x14d832){const _0x32d49a=_0xfad198;var _0x209345=A(_0x14d832,'string');return k(_0x209345)==_0x32d49a(0x170)?_0x209345:_0x209345+'';}function M(_0x593076,_0x2f9a3d,_0x366b7a){const _0x2e8ab1=_0xfad198;return(_0x2f9a3d=j(_0x2f9a3d))in _0x593076?Object[_0x2e8ab1(0x171)](_0x593076,_0x2f9a3d,{'value':_0x366b7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x593076[_0x2f9a3d]=_0x366b7a,_0x593076;}let N=class extends _0xd6760d{constructor(_0x12e74d=T,_0x335765,_0xeccbae){const _0x1907fb=_0xfad198;super(),this['_config']=_0x12e74d,this[_0x1907fb(0x163)]=_0x335765,this[_0x1907fb(0x15c)]=_0xeccbae;let {..._0x52e976}=_0x517c45({},T,this[_0x1907fb(0x16f)]);this[_0x1907fb(0x163)]['setConfig']('collaboration-client-node.config',_0x52e976);}['onStarting'](){const _0x4e05f1=_0xfad198;this[_0x4e05f1(0x16b)]();}[_0xfad198(0x16b)](){const _0x445ac1=_0xfad198;_0x550118(this[_0x445ac1(0x15c)],[[_0x546886,{'useClass':O}]]);}};M(N,_0xfad198(0x162),_0xfad198(0x159)),M(N,_0xfad198(0x169),C),M(N,'version',w),N=D([_0x216067(_0x4bd8eb,_0xb71c24,_0x24cf9f,_0x411ea4),E(0x1,_0x306740),E(0x2,_0x2506a5(_0x18b828))],N);let P=class extends _0x219388{constructor(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8){const _0x6dbaf1=_0xfad198;super(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8);let _0x1db92c=this[_0x6dbaf1(0x163)]['getConfig'](_0x482dfd);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1eb59d,_0x4ed5bd)=>{const _0x3160f2=_0x6dbaf1;let _0x276679=_0x1eb59d['headers'];if(_0x1db92c!=null&&_0x1db92c[_0x3160f2(0x156)]){for(let _0x2f066e in _0x1db92c[_0x3160f2(0x156)])_0x276679['set'](_0x2f066e,_0x1db92c[_0x3160f2(0x156)][_0x2f066e]);}return _0x4ed5bd(_0x1eb59d);}});}async[_0xfad198(0x15f)](_0x6fc791){const _0x4f6c51=_0xfad198;return this[_0x4f6c51(0x168)](_0x6fc791);}};P=D([E(0x0,_0x2506a5(_0x18b828)),E(0x1,_0x2506a5(_0x10e6d2)),E(0x2,_0x306740),E(0x3,_0x9cd830),E(0x4,_0x2baad9)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x2b1e1b=_0x3b12;(function(_0x3ea45a,_0x3910ee){const _0xcee7a8=_0x3b12,_0x170518=_0x3ea45a();while(!![]){try{const _0x204e27=parseInt(_0xcee7a8(0x15c))/0x1*(parseInt(_0xcee7a8(0x15b))/0x2)+parseInt(_0xcee7a8(0x14f))/0x3*(-parseInt(_0xcee7a8(0x14e))/0x4)+parseInt(_0xcee7a8(0x162))/0x5+-parseInt(_0xcee7a8(0x179))/0x6+-parseInt(_0xcee7a8(0x176))/0x7*(-parseInt(_0xcee7a8(0x175))/0x8)+parseInt(_0xcee7a8(0x17c))/0x9+-parseInt(_0xcee7a8(0x152))/0xa*(parseInt(_0xcee7a8(0x150))/0xb);if(_0x204e27===_0x3910ee)break;else _0x170518['push'](_0x170518['shift']());}catch(_0x26c178){_0x170518['push'](_0x170518['shift']());}}}(_0x2a31,0xdee4d));import{ISnapshotServerService as _0x2febfb,UniverCollaborationPlugin as _0x1ad642}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1fcdd8,CollaborationSocketService as _0x4e8da8,UniverCollaborationClientPlugin as _0x935fb0}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1018f4}from'@univerjs-pro/license';import{DependentOn as _0x4f38f4,Disposable as _0x67090e,DisposableCollection as _0xdb8371,IConfigService as _0xf5581,ILogService as _0x2f780d,Inject as _0x5361be,Injector as _0x4c5ed7,Plugin as _0x4b51eb,merge as _0xff489b,registerDependencies as _0x17fc10,toDisposable as _0x364422}from'@univerjs/core';import{HTTPService as _0x26c6cf,ISocketService as _0x18bff4,UniverNetworkPlugin as _0x5531fb}from'@univerjs/network';import{Observable as _0x21cbcb,share as _0x1b7183}from'rxjs';import{WebSocket as _0x578461}from'ws';var C=_0x2b1e1b(0x147),w=_0x2b1e1b(0x166);const T={};function E(_0x118cde,_0x18c669){return function(_0x32d02e,_0x2ca518){_0x18c669(_0x32d02e,_0x2ca518,_0x118cde);};}function _0x3b12(_0x1c602a,_0x4ad564){_0x1c602a=_0x1c602a-0x147;const _0x2a3157=_0x2a31();let _0x3b12db=_0x2a3157[_0x1c602a];return _0x3b12db;}function D(_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e){const _0x376b2c=_0x2b1e1b;var _0x2e1ecf=arguments[_0x376b2c(0x174)],_0x56dca9=_0x2e1ecf<0x3?_0x4dcdf8:_0x30596e===null?_0x30596e=Object[_0x376b2c(0x17a)](_0x4dcdf8,_0x53a909):_0x30596e,_0x2bb3ef;if(typeof Reflect=='object'&&typeof Reflect[_0x376b2c(0x17d)]==_0x376b2c(0x169))_0x56dca9=Reflect[_0x376b2c(0x17d)](_0xcc9e,_0x4dcdf8,_0x53a909,_0x30596e);else{for(var _0x378449=_0xcc9e[_0x376b2c(0x174)]-0x1;_0x378449>=0x0;_0x378449--)(_0x2bb3ef=_0xcc9e[_0x378449])&&(_0x56dca9=(_0x2e1ecf<0x3?_0x2bb3ef(_0x56dca9):_0x2e1ecf>0x3?_0x2bb3ef(_0x4dcdf8,_0x53a909,_0x56dca9):_0x2bb3ef(_0x4dcdf8,_0x53a909))||_0x56dca9);}return _0x2e1ecf>0x3&&_0x56dca9&&Object[_0x376b2c(0x15a)](_0x4dcdf8,_0x53a909,_0x56dca9),_0x56dca9;}let O=class extends _0x67090e{constructor(_0x2a9ab4){const _0x167bf0=_0x2b1e1b;super(),this[_0x167bf0(0x156)]=_0x2a9ab4;}[_0x2b1e1b(0x167)](_0x215d8e){const _0x254f2b=_0x2b1e1b;var _0x12fabc;let _0x582c49=((_0x12fabc=this['_configService'][_0x254f2b(0x151)](_0x1fcdd8))==null?void 0x0:_0x12fabc[_0x254f2b(0x17b)])||{};try{let _0x9b1eba=new _0x578461(_0x215d8e,{'headers':{..._0x582c49}}),_0x470425=new _0xdb8371();return{'URL':_0x215d8e,'close':(_0x21649a,_0x64b954)=>{const _0x4763b2=_0x254f2b;_0x9b1eba[_0x4763b2(0x14d)](_0x21649a,_0x64b954),_0x470425[_0x4763b2(0x14c)]();},'send':_0x30d909=>{const _0x439ca8=_0x254f2b;_0x9b1eba[_0x439ca8(0x16b)](_0x30d909);},'open$':new _0x21cbcb(_0x372159=>{const _0x112b35=_0x254f2b;let _0x60557=_0x2ea334=>_0x372159[_0x112b35(0x178)](_0x2ea334);_0x9b1eba['addEventListener'](_0x112b35(0x160),_0x60557),_0x470425['add'](_0x364422(()=>_0x9b1eba['removeEventListener'](_0x112b35(0x160),_0x60557)));})[_0x254f2b(0x170)](_0x1b7183()),'close$':new _0x21cbcb(_0x12df76=>{const _0x2ebd80=_0x254f2b;let _0x28cb9b=_0x15ee08=>_0x12df76[_0x2ebd80(0x178)](_0x15ee08);_0x9b1eba[_0x2ebd80(0x154)](_0x2ebd80(0x14d),_0x28cb9b),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x2ebd80(0x171)]('close',_0x28cb9b)));})[_0x254f2b(0x170)](_0x1b7183()),'error$':new _0x21cbcb(_0x1b3b4f=>{const _0x5e2b4a=_0x254f2b;let _0x33b423=_0x1b7dea=>_0x1b3b4f[_0x5e2b4a(0x178)](_0x1b7dea);_0x9b1eba[_0x5e2b4a(0x154)](_0x5e2b4a(0x15f),_0x33b423),_0x470425['add'](_0x364422(()=>_0x9b1eba[_0x5e2b4a(0x171)](_0x5e2b4a(0x15f),_0x33b423)));})[_0x254f2b(0x170)](_0x1b7183()),'message$':new _0x21cbcb(_0x577e7a=>{const _0x31e1c3=_0x254f2b;let _0x3a8b4e=_0x22439c=>_0x577e7a[_0x31e1c3(0x178)](_0x22439c);_0x9b1eba['addEventListener'](_0x31e1c3(0x16f),_0x3a8b4e),_0x470425[_0x31e1c3(0x158)](_0x364422(()=>_0x9b1eba[_0x31e1c3(0x171)](_0x31e1c3(0x16f),_0x3a8b4e)));})['pipe'](_0x1b7183())};}catch(_0x56074d){return console[_0x254f2b(0x15f)](_0x56074d),null;}}};O=D([E(0x0,_0xf5581)],O);function k(_0x23d31c){'@babel/helpers - typeof';const _0x42906b=_0x2b1e1b;return k=typeof Symbol==_0x42906b(0x169)&&typeof Symbol[_0x42906b(0x163)]==_0x42906b(0x168)?function(_0x22c25b){return typeof _0x22c25b;}:function(_0x12f955){const _0xe63ef8=_0x42906b;return _0x12f955&&typeof Symbol==_0xe63ef8(0x169)&&_0x12f955[_0xe63ef8(0x173)]===Symbol&&_0x12f955!==Symbol[_0xe63ef8(0x177)]?_0xe63ef8(0x168):typeof _0x12f955;},k(_0x23d31c);}function A(_0x4ad5ed,_0x27a0be){const _0x288f53=_0x2b1e1b;if(k(_0x4ad5ed)!=_0x288f53(0x149)||!_0x4ad5ed)return _0x4ad5ed;var _0x3d7a65=_0x4ad5ed[Symbol[_0x288f53(0x157)]];if(_0x3d7a65!==void 0x0){var _0x20449d=_0x3d7a65[_0x288f53(0x14a)](_0x4ad5ed,_0x27a0be||_0x288f53(0x14b));if(k(_0x20449d)!='object')return _0x20449d;throw TypeError(_0x288f53(0x16a));}return(_0x27a0be==='string'?String:Number)(_0x4ad5ed);}function j(_0x3e328e){const _0x5d8606=_0x2b1e1b;var _0x1c6241=A(_0x3e328e,'string');return k(_0x1c6241)==_0x5d8606(0x168)?_0x1c6241:_0x1c6241+'';}function M(_0x40bbed,_0x345a74,_0x3a4aa2){const _0x234df3=_0x2b1e1b;return(_0x345a74=j(_0x345a74))in _0x40bbed?Object[_0x234df3(0x15a)](_0x40bbed,_0x345a74,{'value':_0x3a4aa2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40bbed[_0x345a74]=_0x3a4aa2,_0x40bbed;}let N=class extends _0x4b51eb{constructor(_0x15a818=T,_0x1614cd,_0x4776a7){const _0xf2db97=_0x2b1e1b;super(),this[_0xf2db97(0x165)]=_0x15a818,this[_0xf2db97(0x156)]=_0x1614cd,this[_0xf2db97(0x15d)]=_0x4776a7;let {..._0x195eef}=_0xff489b({},T,this['_config']);this['_configService'][_0xf2db97(0x153)](_0xf2db97(0x159),_0x195eef);}['onStarting'](){const _0x5c53a8=_0x2b1e1b;this[_0x5c53a8(0x161)]();}[_0x2b1e1b(0x161)](){const _0x279adc=_0x2b1e1b;_0x17fc10(this[_0x279adc(0x15d)],[[_0x18bff4,{'useClass':O}]]);}};function _0x2a31(){const _0x4791ab=['1755666EERVnh','1KWoNWK','_injector','_doCreateSocket','error','open','_registerDependencies','6186785SIfVJM','iterator','pluginName','_config','1.0.3','createSocket','symbol','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','send','_httpService','headers','set','message','pipe','removeEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','length','20152HZmkxf','3031eDYLrf','prototype','next','4555386EyQtqm','getOwnPropertyDescriptor','customHeaders','8726778kQkifI','decorate','@univerjs-pro/collaboration-client-node','version','object','call','default','dispose','close','4Fpojku','4858329ffRvuP','31064ABEBuM','getConfig','3130UzOcTq','setConfig','addEventListener','registerHTTPInterceptor','_configService','toPrimitive','add','collaboration-client-node.config','defineProperty'];_0x2a31=function(){return _0x4791ab;};return _0x2a31();}M(N,_0x2b1e1b(0x164),_0x2b1e1b(0x172)),M(N,'packageName',C),M(N,_0x2b1e1b(0x148),w),N=D([_0x4f38f4(_0x1018f4,_0x5531fb,_0x1ad642,_0x935fb0),E(0x1,_0xf5581),E(0x2,_0x5361be(_0x4c5ed7))],N);let P=class extends _0x4e8da8{constructor(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74){const _0x1c0046=_0x2b1e1b;super(_0x549310,_0x3b9b9e,_0x2233bb,_0x2437e2,_0x34cb74);let _0x4823db=this['_configService'][_0x1c0046(0x151)](_0x1fcdd8);this[_0x1c0046(0x16c)][_0x1c0046(0x155)]({'interceptor':(_0x9ddda1,_0xf7f30e)=>{const _0x1178ef=_0x1c0046;let _0x47f313=_0x9ddda1[_0x1178ef(0x16d)];if(_0x4823db!=null&&_0x4823db[_0x1178ef(0x17b)]){for(let _0x4ecca4 in _0x4823db[_0x1178ef(0x17b)])_0x47f313[_0x1178ef(0x16e)](_0x4ecca4,_0x4823db[_0x1178ef(0x17b)][_0x4ecca4]);}return _0xf7f30e(_0x9ddda1);}});}async[_0x2b1e1b(0x167)](_0x5cac5a){const _0x32eb16=_0x2b1e1b;return this[_0x32eb16(0x15e)](_0x5cac5a);}};P=D([E(0x0,_0x5361be(_0x4c5ed7)),E(0x1,_0x5361be(_0x26c6cf)),E(0x2,_0xf5581),E(0x3,_0x2f780d),E(0x4,_0x2febfb)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x6e6680,_0x197f2a){const _0x4be454=_0x320e,_0x3a06ff=_0x6e6680();while(!![]){try{const _0x32d896=-parseInt(_0x4be454(0xee))/0x1+-parseInt(_0x4be454(0xeb))/0x2*(parseInt(_0x4be454(0xf0))/0x3)+parseInt(_0x4be454(0xcb))/0x4*(-parseInt(_0x4be454(0x107))/0x5)+-parseInt(_0x4be454(0xde))/0x6*(parseInt(_0x4be454(0xef))/0x7)+parseInt(_0x4be454(0x104))/0x8+parseInt(_0x4be454(0x11a))/0x9+parseInt(_0x4be454(0xd6))/0xa;if(_0x32d896===_0x197f2a)break;else _0x3a06ff['push'](_0x3a06ff['shift']());}catch(_0x4e47d1){_0x3a06ff['push'](_0x3a06ff['shift']());}}}(_0x4f0f,0x282e0),function(_0x1389ac,_0x2319a4){const _0x3ba199=_0x320e;typeof exports==_0x3ba199(0xcc)&&typeof module<'u'?_0x2319a4(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x3ba199(0x109)&&define[_0x3ba199(0xd4)]?define([_0x3ba199(0x11b),_0x3ba199(0x108),_0x3ba199(0x115),_0x3ba199(0xf4),'@univerjs/core',_0x3ba199(0xe7),_0x3ba199(0xea)],_0x2319a4):(_0x1389ac=typeof globalThis<'u'?globalThis:_0x1389ac||self,_0x2319a4(_0x1389ac[_0x3ba199(0xe8)]={},_0x1389ac[_0x3ba199(0xd7)],_0x1389ac['UniverProCollaborationClient'],_0x1389ac[_0x3ba199(0xd3)],_0x1389ac['UniverCore'],_0x1389ac[_0x3ba199(0xf1)],_0x1389ac[_0x3ba199(0xea)]));}(this,function(_0x246147,_0x4779d5,_0x36e02d,_0x3ebb5e,_0x283cc9,_0x3ba9c9,_0x5c87e7){const _0x1ee019=_0x320e;Object[_0x1ee019(0x102)](_0x246147,Symbol[_0x1ee019(0xfb)],{'value':_0x1ee019(0xfd)});var _0x48c5fc=(_0x493240,_0x4e1307)=>()=>(_0x4e1307||(_0x493240((_0x4e1307={'exports':{}})[_0x1ee019(0x11b)],_0x4e1307),_0x493240=null),_0x4e1307[_0x1ee019(0x11b)]),_0x535d99=_0x1ee019(0xd5),_0x218412=_0x1ee019(0xcd);let _0x46d112={};var _0x2a4704=_0x48c5fc((_0x353b17,_0x48eff2)=>{_0x48eff2['exports']=function(){const _0x2a3a90=_0x320e;throw Error(_0x2a3a90(0x106));};})();function _0x54e5b1(_0xa120a5,_0x2d6a2c){return function(_0x38a9fe,_0x3d7bf6){_0x2d6a2c(_0x38a9fe,_0x3d7bf6,_0xa120a5);};}function _0x32e2c0(_0x439741,_0x4f336a,_0x435298,_0x1a1945){const _0x4a9784=_0x1ee019;var _0x79dd65=arguments[_0x4a9784(0x114)],_0x59c4c0=_0x79dd65<0x3?_0x4f336a:_0x1a1945===null?_0x1a1945=Object['getOwnPropertyDescriptor'](_0x4f336a,_0x435298):_0x1a1945,_0x54b747;if(typeof Reflect==_0x4a9784(0xcc)&&typeof Reflect[_0x4a9784(0x120)]==_0x4a9784(0x109))_0x59c4c0=Reflect['decorate'](_0x439741,_0x4f336a,_0x435298,_0x1a1945);else{for(var _0x1397a6=_0x439741['length']-0x1;_0x1397a6>=0x0;_0x1397a6--)(_0x54b747=_0x439741[_0x1397a6])&&(_0x59c4c0=(_0x79dd65<0x3?_0x54b747(_0x59c4c0):_0x79dd65>0x3?_0x54b747(_0x4f336a,_0x435298,_0x59c4c0):_0x54b747(_0x4f336a,_0x435298))||_0x59c4c0);}return _0x79dd65>0x3&&_0x59c4c0&&Object[_0x4a9784(0x102)](_0x4f336a,_0x435298,_0x59c4c0),_0x59c4c0;}let _0x30aa20=class extends _0x283cc9[_0x1ee019(0x118)]{constructor(_0x3f8378){const _0x31ba40=_0x1ee019;super(),this[_0x31ba40(0xd1)]=_0x3f8378;}[_0x1ee019(0x10b)](_0x53fa1f){const _0x3219ab=_0x1ee019;var _0x460512;let _0x5ed631=((_0x460512=this[_0x3219ab(0xd1)]['getConfig'](_0x36e02d[_0x3219ab(0x10c)]))==null?void 0x0:_0x460512['customHeaders'])||{};try{let _0x45fc1e=new _0x2a4704[(_0x3219ab(0x11c))](_0x53fa1f,{'headers':{..._0x5ed631}}),_0x5c5714=new _0x283cc9[(_0x3219ab(0xcf))]();return{'URL':_0x53fa1f,'close':(_0x4c110b,_0xe7109c)=>{const _0x117154=_0x3219ab;_0x45fc1e[_0x117154(0x11d)](_0x4c110b,_0xe7109c),_0x5c5714[_0x117154(0xe6)]();},'send':_0x514839=>{_0x45fc1e['send'](_0x514839);},'open$':new _0x5c87e7['Observable'](_0x373da9=>{const _0x4ddd4d=_0x3219ab;let _0x1539c2=_0x3a8211=>_0x373da9[_0x4ddd4d(0xf6)](_0x3a8211);_0x45fc1e['addEventListener'](_0x4ddd4d(0x105),_0x1539c2),_0x5c5714[_0x4ddd4d(0xfe)]((0x0,_0x283cc9[_0x4ddd4d(0x10f)])(()=>_0x45fc1e[_0x4ddd4d(0x10d)]('open',_0x1539c2)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'close$':new _0x5c87e7[(_0x3219ab(0x100))](_0x59bd03=>{const _0x7a69f0=_0x3219ab;let _0x1efa8e=_0x27faf3=>_0x59bd03[_0x7a69f0(0xf6)](_0x27faf3);_0x45fc1e['addEventListener'](_0x7a69f0(0x11d),_0x1efa8e),_0x5c5714[_0x7a69f0(0xfe)]((0x0,_0x283cc9[_0x7a69f0(0x10f)])(()=>_0x45fc1e['removeEventListener']('close',_0x1efa8e)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'error$':new _0x5c87e7[(_0x3219ab(0x100))](_0x1c4f89=>{const _0xf779e0=_0x3219ab;let _0x3f42f8=_0x5ab67c=>_0x1c4f89['next'](_0x5ab67c);_0x45fc1e[_0xf779e0(0xf9)](_0xf779e0(0x101),_0x3f42f8),_0x5c5714[_0xf779e0(0xfe)]((0x0,_0x283cc9[_0xf779e0(0x10f)])(()=>_0x45fc1e[_0xf779e0(0x10d)]('error',_0x3f42f8)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'message$':new _0x5c87e7['Observable'](_0x200c7b=>{const _0x5cdcff=_0x3219ab;let _0x3b9f16=_0x4e2982=>_0x200c7b[_0x5cdcff(0xf6)](_0x4e2982);_0x45fc1e[_0x5cdcff(0xf9)]('message',_0x3b9f16),_0x5c5714['add']((0x0,_0x283cc9['toDisposable'])(()=>_0x45fc1e[_0x5cdcff(0x10d)](_0x5cdcff(0xdc),_0x3b9f16)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])())};}catch(_0x2d5cd7){return console[_0x3219ab(0x101)](_0x2d5cd7),null;}}};_0x30aa20=_0x32e2c0([_0x54e5b1(0x0,_0x283cc9['IConfigService'])],_0x30aa20);function _0x52d483(_0x4222cd){'@babel/helpers - typeof';const _0xbb683a=_0x1ee019;return _0x52d483=typeof Symbol==_0xbb683a(0x109)&&typeof Symbol[_0xbb683a(0xfc)]==_0xbb683a(0x117)?function(_0x26c141){return typeof _0x26c141;}:function(_0x3f7d7f){const _0xf8f671=_0xbb683a;return _0x3f7d7f&&typeof Symbol==_0xf8f671(0x109)&&_0x3f7d7f[_0xf8f671(0xf7)]===Symbol&&_0x3f7d7f!==Symbol['prototype']?'symbol':typeof _0x3f7d7f;},_0x52d483(_0x4222cd);}function _0x4baf65(_0x54a08b,_0x20cfe3){const _0x2d1160=_0x1ee019;if(_0x52d483(_0x54a08b)!='object'||!_0x54a08b)return _0x54a08b;var _0x2bc59f=_0x54a08b[Symbol[_0x2d1160(0x10e)]];if(_0x2bc59f!==void 0x0){var _0x436295=_0x2bc59f['call'](_0x54a08b,_0x20cfe3||_0x2d1160(0xe0));if(_0x52d483(_0x436295)!=_0x2d1160(0xcc))return _0x436295;throw TypeError(_0x2d1160(0x11f));}return(_0x20cfe3==='string'?String:Number)(_0x54a08b);}function _0x328873(_0x43278e){const _0x330817=_0x1ee019;var _0x462b96=_0x4baf65(_0x43278e,_0x330817(0xdd));return _0x52d483(_0x462b96)==_0x330817(0x117)?_0x462b96:_0x462b96+'';}function _0x1f2da9(_0x54803c,_0x359c78,_0x409d13){const _0x18db15=_0x1ee019;return(_0x359c78=_0x328873(_0x359c78))in _0x54803c?Object[_0x18db15(0x102)](_0x54803c,_0x359c78,{'value':_0x409d13,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54803c[_0x359c78]=_0x409d13,_0x54803c;}let _0x44b582=class extends _0x283cc9[_0x1ee019(0xd0)]{constructor(_0x5242c8=_0x46d112,_0x389127,_0x4e3597){const _0x44aec6=_0x1ee019;super(),this[_0x44aec6(0xec)]=_0x5242c8,this['_configService']=_0x389127,this[_0x44aec6(0xd8)]=_0x4e3597;let {..._0x434fdd}=(0x0,_0x283cc9[_0x44aec6(0xd9)])({},_0x46d112,this[_0x44aec6(0xec)]);this['_configService'][_0x44aec6(0xe4)]('collaboration-client-node.config',_0x434fdd);}[_0x1ee019(0xce)](){const _0x546c0a=_0x1ee019;this[_0x546c0a(0x111)]();}[_0x1ee019(0x111)](){const _0x4a0bc1=_0x1ee019;(0x0,_0x283cc9[_0x4a0bc1(0x112)])(this[_0x4a0bc1(0xd8)],[[_0x3ba9c9[_0x4a0bc1(0x10a)],{'useClass':_0x30aa20}]]);}};_0x1f2da9(_0x44b582,_0x1ee019(0xda),_0x1ee019(0xe1)),_0x1f2da9(_0x44b582,_0x1ee019(0xfa),_0x535d99),_0x1f2da9(_0x44b582,_0x1ee019(0xf3),_0x218412),_0x44b582=_0x32e2c0([(0x0,_0x283cc9[_0x1ee019(0xf8)])(_0x3ebb5e[_0x1ee019(0xf5)],_0x3ba9c9[_0x1ee019(0xca)],_0x4779d5[_0x1ee019(0x113)],_0x36e02d[_0x1ee019(0x103)]),_0x54e5b1(0x1,_0x283cc9[_0x1ee019(0xe5)]),_0x54e5b1(0x2,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x283cc9[_0x1ee019(0xed)]))],_0x44b582);let _0x43a785=class extends _0x36e02d[_0x1ee019(0xdb)]{constructor(_0x54a2bd,_0x172a2b,_0x33d960,_0x24afad,_0x43c95b){const _0x98c81a=_0x1ee019;super(_0x54a2bd,_0x172a2b,_0x33d960,_0x24afad,_0x43c95b);let _0x30d1b5=this['_configService'][_0x98c81a(0x116)](_0x36e02d[_0x98c81a(0x10c)]);this[_0x98c81a(0x110)]['registerHTTPInterceptor']({'interceptor':(_0x157b09,_0x5bd56f)=>{const _0x13f5fc=_0x98c81a;let _0x3c11a6=_0x157b09[_0x13f5fc(0x121)];if(_0x30d1b5!=null&&_0x30d1b5['customHeaders']){for(let _0x5eb971 in _0x30d1b5['customHeaders'])_0x3c11a6[_0x13f5fc(0xe3)](_0x5eb971,_0x30d1b5[_0x13f5fc(0xdf)][_0x5eb971]);}return _0x5bd56f(_0x157b09);}});}async[_0x1ee019(0x10b)](_0x465d36){return this['_doCreateSocket'](_0x465d36);}};_0x43a785=_0x32e2c0([_0x54e5b1(0x0,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x283cc9[_0x1ee019(0xed)])),_0x54e5b1(0x1,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x3ba9c9[_0x1ee019(0xf2)])),_0x54e5b1(0x2,_0x283cc9[_0x1ee019(0xe5)]),_0x54e5b1(0x3,_0x283cc9[_0x1ee019(0xe9)]),_0x54e5b1(0x4,_0x4779d5[_0x1ee019(0xff)])],_0x43a785),Object[_0x1ee019(0x102)](_0x246147,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x43a785;}}),Object['defineProperty'](_0x246147,_0x1ee019(0xd2),{'enumerable':!0x0,'get':function(){return _0x44b582;}});}));function _0x320e(_0x47163d,_0x2bf40a){_0x47163d=_0x47163d-0xca;const _0x4f0f6b=_0x4f0f();let _0x320ee4=_0x4f0f6b[_0x47163d];return _0x320ee4;}function _0x4f0f(){const _0x44c1d=['@univerjs-pro/license','UniverLicensePlugin','next','constructor','DependentOn','addEventListener','packageName','toStringTag','iterator','Module','add','ISnapshotServerService','Observable','error','defineProperty','UniverCollaborationClientPlugin','1680064hZBpNC','open','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','1129035SPVsnk','@univerjs-pro/collaboration','function','ISocketService','createSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','toPrimitive','toDisposable','_httpService','_registerDependencies','registerDependencies','UniverCollaborationPlugin','length','@univerjs-pro/collaboration-client','getConfig','symbol','Disposable','Inject','1879920FLaAlc','exports','WebSocket','close','pipe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','headers','UniverNetworkPlugin','4hIHaze','object','1.0.2','onStarting','DisposableCollection','Plugin','_configService','UniverCollaborationClientNodePlugin','UniverProLicense','amd','@univerjs-pro/collaboration-client-node','5645060Tnqcxx','UniverProCollaboration','_injector','merge','pluginName','CollaborationSocketService','message','string','6WyViJp','customHeaders','default','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','share','set','setConfig','IConfigService','dispose','@univerjs/network','UniverProCollaborationClientNode','ILogService','rxjs','497894pRBQmw','_config','Injector','324766QsZndP','135086vvOvJD','3gxmzxW','UniverNetwork','HTTPService','version'];_0x4f0f=function(){return _0x44c1d;};return _0x4f0f();}
1
+ (function(_0x4c2087,_0x25b712){const _0x1affb2=_0x5baa,_0x4af1da=_0x4c2087();while(!![]){try{const _0xc6939b=-parseInt(_0x1affb2(0xc9))/0x1+parseInt(_0x1affb2(0x9d))/0x2+-parseInt(_0x1affb2(0x9a))/0x3*(parseInt(_0x1affb2(0xa1))/0x4)+-parseInt(_0x1affb2(0xb0))/0x5+parseInt(_0x1affb2(0x92))/0x6*(-parseInt(_0x1affb2(0x97))/0x7)+-parseInt(_0x1affb2(0x9b))/0x8*(-parseInt(_0x1affb2(0xb1))/0x9)+parseInt(_0x1affb2(0xe5))/0xa;if(_0xc6939b===_0x25b712)break;else _0x4af1da['push'](_0x4af1da['shift']());}catch(_0x1f12b9){_0x4af1da['push'](_0x4af1da['shift']());}}}(_0x36b7,0x32370),function(_0x228ad5,_0x562912){const _0x35663a=_0x5baa;typeof exports==_0x35663a(0x9c)&&typeof module<'u'?_0x562912(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x35663a(0xb8)&&define[_0x35663a(0xdf)]?define(['exports',_0x35663a(0xae),_0x35663a(0xbe),'@univerjs-pro/license',_0x35663a(0x98),'@univerjs/network',_0x35663a(0xb5)],_0x562912):(_0x228ad5=typeof globalThis<'u'?globalThis:_0x228ad5||self,_0x562912(_0x228ad5[_0x35663a(0xe6)]={},_0x228ad5['UniverProCollaboration'],_0x228ad5[_0x35663a(0xd4)],_0x228ad5[_0x35663a(0xc5)],_0x228ad5['UniverCore'],_0x228ad5[_0x35663a(0xd0)],_0x228ad5['rxjs']));}(this,function(_0x2d1b6d,_0x3705b0,_0x463fa0,_0x9d15d8,_0x2a3f98,_0x243f6a,_0x45d24c){const _0x53c39d=_0x5baa;Object[_0x53c39d(0xc4)](_0x2d1b6d,Symbol[_0x53c39d(0xb3)],{'value':_0x53c39d(0xe3)});var _0x29dbe8=(_0x18b30f,_0x200054)=>()=>(_0x200054||(_0x18b30f((_0x200054={'exports':{}})['exports'],_0x200054),_0x18b30f=null),_0x200054[_0x53c39d(0xa5)]),_0x2b55b7=_0x53c39d(0xbb),_0xbf2b35='1.0.3';let _0x2a5739={};var _0x1265e1=_0x29dbe8((_0x56991b,_0x4670a4)=>{const _0xd97de=_0x53c39d;_0x4670a4[_0xd97de(0xa5)]=function(){const _0x301f40=_0xd97de;throw Error(_0x301f40(0xa9));};})();function _0x4b1703(_0x4977ca,_0x1cb036){return function(_0x22f842,_0x56bb51){_0x1cb036(_0x22f842,_0x56bb51,_0x4977ca);};}function _0x3b37c4(_0x4f654e,_0x58ab57,_0x1992da,_0x4fb27e){const _0x589bc1=_0x53c39d;var _0x4d2c1b=arguments[_0x589bc1(0xa2)],_0x17a296=_0x4d2c1b<0x3?_0x58ab57:_0x4fb27e===null?_0x4fb27e=Object['getOwnPropertyDescriptor'](_0x58ab57,_0x1992da):_0x4fb27e,_0x4a73c1;if(typeof Reflect==_0x589bc1(0x9c)&&typeof Reflect[_0x589bc1(0xc8)]=='function')_0x17a296=Reflect['decorate'](_0x4f654e,_0x58ab57,_0x1992da,_0x4fb27e);else{for(var _0x3f16e3=_0x4f654e[_0x589bc1(0xa2)]-0x1;_0x3f16e3>=0x0;_0x3f16e3--)(_0x4a73c1=_0x4f654e[_0x3f16e3])&&(_0x17a296=(_0x4d2c1b<0x3?_0x4a73c1(_0x17a296):_0x4d2c1b>0x3?_0x4a73c1(_0x58ab57,_0x1992da,_0x17a296):_0x4a73c1(_0x58ab57,_0x1992da))||_0x17a296);}return _0x4d2c1b>0x3&&_0x17a296&&Object[_0x589bc1(0xc4)](_0x58ab57,_0x1992da,_0x17a296),_0x17a296;}let _0x26f004=class extends _0x2a3f98[_0x53c39d(0xda)]{constructor(_0x12fcd7){const _0x281371=_0x53c39d;super(),this[_0x281371(0xa4)]=_0x12fcd7;}[_0x53c39d(0xde)](_0x4a108a){const _0x5130d4=_0x53c39d;var _0x594666;let _0x4f9ed5=((_0x594666=this[_0x5130d4(0xa4)][_0x5130d4(0xd2)](_0x463fa0[_0x5130d4(0xb6)]))==null?void 0x0:_0x594666[_0x5130d4(0xab)])||{};try{let _0x115df4=new _0x1265e1[(_0x5130d4(0x93))](_0x4a108a,{'headers':{..._0x4f9ed5}}),_0x3d8243=new _0x2a3f98[(_0x5130d4(0xaa))]();return{'URL':_0x4a108a,'close':(_0x9746da,_0x226153)=>{const _0x3a6ab7=_0x5130d4;_0x115df4['close'](_0x9746da,_0x226153),_0x3d8243[_0x3a6ab7(0xd9)]();},'send':_0x5eedac=>{const _0x35b5b5=_0x5130d4;_0x115df4[_0x35b5b5(0xd7)](_0x5eedac);},'open$':new _0x45d24c[(_0x5130d4(0xcb))](_0x1a4e2c=>{const _0x304e91=_0x5130d4;let _0x5f0d45=_0x49305a=>_0x1a4e2c[_0x304e91(0xb9)](_0x49305a);_0x115df4[_0x304e91(0x96)](_0x304e91(0xbf),_0x5f0d45),_0x3d8243[_0x304e91(0xa3)]((0x0,_0x2a3f98[_0x304e91(0xa0)])(()=>_0x115df4[_0x304e91(0xb7)](_0x304e91(0xbf),_0x5f0d45)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c[_0x5130d4(0x9e)])()),'close$':new _0x45d24c[(_0x5130d4(0xcb))](_0x40e402=>{const _0xc45c47=_0x5130d4;let _0xff9997=_0x4bc28e=>_0x40e402['next'](_0x4bc28e);_0x115df4['addEventListener'](_0xc45c47(0xd8),_0xff9997),_0x3d8243[_0xc45c47(0xa3)]((0x0,_0x2a3f98[_0xc45c47(0xa0)])(()=>_0x115df4[_0xc45c47(0xb7)](_0xc45c47(0xd8),_0xff9997)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c[_0x5130d4(0x9e)])()),'error$':new _0x45d24c[(_0x5130d4(0xcb))](_0x542fc8=>{const _0x4481df=_0x5130d4;let _0x3bc6d1=_0x48eb12=>_0x542fc8[_0x4481df(0xb9)](_0x48eb12);_0x115df4['addEventListener'](_0x4481df(0xe7),_0x3bc6d1),_0x3d8243[_0x4481df(0xa3)]((0x0,_0x2a3f98['toDisposable'])(()=>_0x115df4[_0x4481df(0xb7)](_0x4481df(0xe7),_0x3bc6d1)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c['share'])()),'message$':new _0x45d24c[(_0x5130d4(0xcb))](_0x33bb54=>{const _0x56f5b4=_0x5130d4;let _0x43e265=_0x49a0ec=>_0x33bb54[_0x56f5b4(0xb9)](_0x49a0ec);_0x115df4[_0x56f5b4(0x96)](_0x56f5b4(0xc7),_0x43e265),_0x3d8243['add']((0x0,_0x2a3f98[_0x56f5b4(0xa0)])(()=>_0x115df4[_0x56f5b4(0xb7)](_0x56f5b4(0xc7),_0x43e265)));})[_0x5130d4(0xc0)]((0x0,_0x45d24c['share'])())};}catch(_0xe535d5){return console[_0x5130d4(0xe7)](_0xe535d5),null;}}};_0x26f004=_0x3b37c4([_0x4b1703(0x0,_0x2a3f98[_0x53c39d(0xac)])],_0x26f004);function _0x57e82f(_0x2f420b){'@babel/helpers - typeof';const _0x134eb0=_0x53c39d;return _0x57e82f=typeof Symbol==_0x134eb0(0xb8)&&typeof Symbol['iterator']==_0x134eb0(0xbc)?function(_0x37654f){return typeof _0x37654f;}:function(_0x1b9943){const _0x242a28=_0x134eb0;return _0x1b9943&&typeof Symbol=='function'&&_0x1b9943[_0x242a28(0xd3)]===Symbol&&_0x1b9943!==Symbol[_0x242a28(0xc1)]?_0x242a28(0xbc):typeof _0x1b9943;},_0x57e82f(_0x2f420b);}function _0x252c01(_0x191cfe,_0x4a766c){const _0x24eea2=_0x53c39d;if(_0x57e82f(_0x191cfe)!=_0x24eea2(0x9c)||!_0x191cfe)return _0x191cfe;var _0x324537=_0x191cfe[Symbol[_0x24eea2(0xe1)]];if(_0x324537!==void 0x0){var _0x15b79b=_0x324537[_0x24eea2(0xdb)](_0x191cfe,_0x4a766c||_0x24eea2(0x91));if(_0x57e82f(_0x15b79b)!='object')return _0x15b79b;throw TypeError(_0x24eea2(0xe2));}return(_0x4a766c===_0x24eea2(0xa6)?String:Number)(_0x191cfe);}function _0x247e79(_0x2b858a){const _0x501b38=_0x53c39d;var _0x42c726=_0x252c01(_0x2b858a,_0x501b38(0xa6));return _0x57e82f(_0x42c726)==_0x501b38(0xbc)?_0x42c726:_0x42c726+'';}function _0x4e3c0d(_0x59d2be,_0x22e27f,_0x3271d8){return(_0x22e27f=_0x247e79(_0x22e27f))in _0x59d2be?Object['defineProperty'](_0x59d2be,_0x22e27f,{'value':_0x3271d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59d2be[_0x22e27f]=_0x3271d8,_0x59d2be;}let _0x1e062f=class extends _0x2a3f98[_0x53c39d(0x95)]{constructor(_0x59e70f=_0x2a5739,_0x34f03e,_0x1a9419){const _0x266c97=_0x53c39d;super(),this[_0x266c97(0xd1)]=_0x59e70f,this[_0x266c97(0xa4)]=_0x34f03e,this[_0x266c97(0xd6)]=_0x1a9419;let {..._0x283fd7}=(0x0,_0x2a3f98[_0x266c97(0xca)])({},_0x2a5739,this[_0x266c97(0xd1)]);this['_configService'][_0x266c97(0xad)](_0x266c97(0xb4),_0x283fd7);}[_0x53c39d(0x9f)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x3ade44=_0x53c39d;(0x0,_0x2a3f98[_0x3ade44(0xd5)])(this[_0x3ade44(0xd6)],[[_0x243f6a[_0x3ade44(0xaf)],{'useClass':_0x26f004}]]);}};_0x4e3c0d(_0x1e062f,_0x53c39d(0xba),_0x53c39d(0xce)),_0x4e3c0d(_0x1e062f,_0x53c39d(0xcc),_0x2b55b7),_0x4e3c0d(_0x1e062f,_0x53c39d(0xe0),_0xbf2b35),_0x1e062f=_0x3b37c4([(0x0,_0x2a3f98[_0x53c39d(0xb2)])(_0x9d15d8[_0x53c39d(0x94)],_0x243f6a['UniverNetworkPlugin'],_0x3705b0[_0x53c39d(0xe4)],_0x463fa0[_0x53c39d(0xdd)]),_0x4b1703(0x1,_0x2a3f98[_0x53c39d(0xac)]),_0x4b1703(0x2,(0x0,_0x2a3f98[_0x53c39d(0xcd)])(_0x2a3f98['Injector']))],_0x1e062f);let _0xb82ac=class extends _0x463fa0['CollaborationSocketService']{constructor(_0x5b2d0e,_0x13d3b2,_0x53b580,_0x1dd71c,_0x4815c2){const _0x3cbebc=_0x53c39d;super(_0x5b2d0e,_0x13d3b2,_0x53b580,_0x1dd71c,_0x4815c2);let _0x48b0d1=this['_configService'][_0x3cbebc(0xd2)](_0x463fa0['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x3cbebc(0xdc)][_0x3cbebc(0xc2)]({'interceptor':(_0x3019c7,_0x28ada5)=>{const _0x3bae61=_0x3cbebc;let _0x4b2d99=_0x3019c7[_0x3bae61(0xcf)];if(_0x48b0d1!=null&&_0x48b0d1[_0x3bae61(0xab)]){for(let _0x4c1616 in _0x48b0d1['customHeaders'])_0x4b2d99['set'](_0x4c1616,_0x48b0d1[_0x3bae61(0xab)][_0x4c1616]);}return _0x28ada5(_0x3019c7);}});}async['createSocket'](_0x483d9b){return this['_doCreateSocket'](_0x483d9b);}};_0xb82ac=_0x3b37c4([_0x4b1703(0x0,(0x0,_0x2a3f98[_0x53c39d(0xcd)])(_0x2a3f98[_0x53c39d(0xc3)])),_0x4b1703(0x1,(0x0,_0x2a3f98['Inject'])(_0x243f6a[_0x53c39d(0xc6)])),_0x4b1703(0x2,_0x2a3f98[_0x53c39d(0xac)]),_0x4b1703(0x3,_0x2a3f98[_0x53c39d(0xbd)]),_0x4b1703(0x4,_0x3705b0[_0x53c39d(0xa8)])],_0xb82ac),Object[_0x53c39d(0xc4)](_0x2d1b6d,_0x53c39d(0x99),{'enumerable':!0x0,'get':function(){return _0xb82ac;}}),Object['defineProperty'](_0x2d1b6d,_0x53c39d(0xa7),{'enumerable':!0x0,'get':function(){return _0x1e062f;}});}));function _0x5baa(_0x1d7371,_0x449052){_0x1d7371=_0x1d7371-0x91;const _0x36b707=_0x36b7();let _0x5baa27=_0x36b707[_0x1d7371];return _0x5baa27;}function _0x36b7(){const _0x2b83a6=['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','function','next','pluginName','@univerjs-pro/collaboration-client-node','symbol','ILogService','@univerjs-pro/collaboration-client','open','pipe','prototype','registerHTTPInterceptor','Injector','defineProperty','UniverProLicense','HTTPService','message','decorate','161111ZfRXYW','merge','Observable','packageName','Inject','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','headers','UniverNetwork','_config','getConfig','constructor','UniverProCollaborationClient','registerDependencies','_injector','send','close','dispose','Disposable','call','_httpService','UniverCollaborationClientPlugin','createSocket','amd','version','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Module','UniverCollaborationPlugin','7708930zisPBj','UniverProCollaborationClientNode','error','default','114yOfxIg','WebSocket','UniverLicensePlugin','Plugin','addEventListener','38381xEycUC','@univerjs/core','NodeCollaborationSocketService','99213Xmmaaj','40JDNlyW','object','195452rxzoPC','share','onStarting','toDisposable','24dZpcad','length','add','_configService','exports','string','UniverCollaborationClientNodePlugin','ISnapshotServerService','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','DisposableCollection','customHeaders','IConfigService','setConfig','@univerjs-pro/collaboration','ISocketService','1986150BGCVRr','356409VIBlin','DependentOn','toStringTag','collaboration-client-node.config','rxjs'];_0x36b7=function(){return _0x2b83a6;};return _0x36b7();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,16 +51,16 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.0.2",
55
- "@univerjs-pro/collaboration-client": "1.0.2",
56
- "@univerjs-pro/license": "1.0.2",
57
- "@univerjs/core": "1.0.2",
58
- "@univerjs/network": "1.0.2",
54
+ "@univerjs-pro/collaboration": "1.0.3",
55
+ "@univerjs-pro/collaboration-client": "1.0.3",
56
+ "@univerjs-pro/license": "1.0.3",
57
+ "@univerjs/core": "1.0.3",
58
+ "@univerjs/network": "1.0.3",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.0.2",
63
+ "@univerjs-infra/shared": "1.0.3",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^5.0.0"