@univerjs-pro/collaboration-client-node 0.20.1 → 0.21.0
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x7c5bd2=_0x4e17;function _0x52cf(){const _0x75a35a=['object','162814CJoEMN','CollaborationSocketService','_registerDependencies','WebSocket','pipe','0.20.1','prototype','_httpService','open','call','set','_doCreateSocket','removeEventListener','add','getOwnPropertyDescriptor','toStringTag','1480056zdxEbs','version','close','1597828bhCKyX','@univerjs-pro/collaboration-client-node','message','function','share','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pluginName','_injector','collaboration-client-node.config','ISocketService','4604271hqAWnc','send','10KfZMez','Module','UniverCollaborationClientPlugin','2933070AhzXWt','UniverCollaborationClientNodePlugin','HTTPService','defineProperty','iterator','NodeCollaborationSocketService','createSocket','dispose','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','Injector','2162166FnZjhc','toPrimitive','6004096juJnur','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','toDisposable','registerHTTPInterceptor','error','length','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Observable','registerDependencies','addEventListener','IConfigService','headers','decorate','Plugin','_configService','symbol','DependentOn','next','customHeaders','Disposable','string'];_0x52cf=function(){return _0x75a35a;};return _0x52cf();}(function(_0x33c96b,_0x47dee4){const _0x521798=_0x4e17,_0x2019cd=_0x33c96b();while(!![]){try{const _0xf347b4=parseInt(_0x521798(0x117))/0x1*(-parseInt(_0x521798(0xf8))/0x2)+parseInt(_0x521798(0x108))/0x3+-parseInt(_0x521798(0x10b))/0x4+-parseInt(_0x521798(0x11a))/0x5+parseInt(_0x521798(0xdf))/0x6+parseInt(_0x521798(0x115))/0x7+parseInt(_0x521798(0xe1))/0x8;if(_0xf347b4===_0x47dee4)break;else _0x2019cd['push'](_0x2019cd['shift']());}catch(_0x371be4){_0x2019cd['push'](_0x2019cd['shift']());}}}(_0x52cf,0x70c0d),Object[_0x7c5bd2(0x11d)](exports,Symbol[_0x7c5bd2(0x107)],{'value':_0x7c5bd2(0x118)}));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=_0x7c5bd2(0x113);Symbol(o);const s={};var c=_0x7c5bd2(0x10c),l=_0x7c5bd2(0xfd);function u(_0xa0d3fb,_0x232200){return function(_0x1022bb,_0x29cd2f){_0x232200(_0x1022bb,_0x29cd2f,_0xa0d3fb);};}function d(_0x2f5e60,_0x4cf35a,_0x5ae6b3,_0x4fa17b){const _0x127252=_0x7c5bd2;var _0x2523f8=arguments[_0x127252(0xe7)],_0x566a84=_0x2523f8<0x3?_0x4cf35a:_0x4fa17b===null?_0x4fa17b=Object[_0x127252(0x106)](_0x4cf35a,_0x5ae6b3):_0x4fa17b,_0x4d15f3;if(typeof Reflect==_0x127252(0xf7)&&typeof Reflect[_0x127252(0xee)]==_0x127252(0x10e))_0x566a84=Reflect[_0x127252(0xee)](_0x2f5e60,_0x4cf35a,_0x5ae6b3,_0x4fa17b);else{for(var _0x568285=_0x2f5e60[_0x127252(0xe7)]-0x1;_0x568285>=0x0;_0x568285--)(_0x4d15f3=_0x2f5e60[_0x568285])&&(_0x566a84=(_0x2523f8<0x3?_0x4d15f3(_0x566a84):_0x2523f8>0x3?_0x4d15f3(_0x4cf35a,_0x5ae6b3,_0x566a84):_0x4d15f3(_0x4cf35a,_0x5ae6b3))||_0x566a84);}return _0x2523f8>0x3&&_0x566a84&&Object[_0x127252(0x11d)](_0x4cf35a,_0x5ae6b3,_0x566a84),_0x566a84;}let f=class extends t[_0x7c5bd2(0xf5)]{constructor(_0x14a5d3){const _0x5afd89=_0x7c5bd2;super(),this[_0x5afd89(0xf0)]=_0x14a5d3;}[_0x7c5bd2(0x120)](_0x370e51){const _0x2e0f2e=_0x7c5bd2;var _0x524308;let _0x421c57=((_0x524308=this[_0x2e0f2e(0xf0)]['getConfig'](e[_0x2e0f2e(0x110)]))==null?void 0x0:_0x524308[_0x2e0f2e(0xf4)])||{};try{let _0x3d65b2=new i[(_0x2e0f2e(0xfb))](_0x370e51,{'headers':{..._0x421c57}}),_0x45001f=new t['DisposableCollection']();return{'URL':_0x370e51,'close':(_0x2d58b3,_0x51dcc0)=>{const _0x4c6746=_0x2e0f2e;_0x3d65b2[_0x4c6746(0x10a)](_0x2d58b3,_0x51dcc0),_0x45001f[_0x4c6746(0xdc)]();},'send':_0x3e21ab=>{const _0x17099e=_0x2e0f2e;_0x3d65b2[_0x17099e(0x116)](_0x3e21ab);},'open$':new r[(_0x2e0f2e(0xe9))](_0x56c8dc=>{const _0x56881b=_0x2e0f2e;let _0x31d76d=_0x4d6c59=>_0x56c8dc[_0x56881b(0xf3)](_0x4d6c59);_0x3d65b2[_0x56881b(0xeb)](_0x56881b(0x100),_0x31d76d),_0x45001f[_0x56881b(0x105)]((0x0,t[_0x56881b(0xe4)])(()=>_0x3d65b2[_0x56881b(0x104)]('open',_0x31d76d)));})[_0x2e0f2e(0xfc)]((0x0,r[_0x2e0f2e(0x10f)])()),'close$':new r[(_0x2e0f2e(0xe9))](_0x2f860b=>{const _0x79e330=_0x2e0f2e;let _0x6b18bd=_0xe50277=>_0x2f860b[_0x79e330(0xf3)](_0xe50277);_0x3d65b2[_0x79e330(0xeb)](_0x79e330(0x10a),_0x6b18bd),_0x45001f[_0x79e330(0x105)]((0x0,t[_0x79e330(0xe4)])(()=>_0x3d65b2[_0x79e330(0x104)](_0x79e330(0x10a),_0x6b18bd)));})['pipe']((0x0,r['share'])()),'error$':new r['Observable'](_0xd3fe44=>{const _0x53b4c4=_0x2e0f2e;let _0x4837d2=_0x56b3f4=>_0xd3fe44[_0x53b4c4(0xf3)](_0x56b3f4);_0x3d65b2[_0x53b4c4(0xeb)](_0x53b4c4(0xe6),_0x4837d2),_0x45001f[_0x53b4c4(0x105)]((0x0,t[_0x53b4c4(0xe4)])(()=>_0x3d65b2[_0x53b4c4(0x104)](_0x53b4c4(0xe6),_0x4837d2)));})['pipe']((0x0,r[_0x2e0f2e(0x10f)])()),'message$':new r[(_0x2e0f2e(0xe9))](_0x173241=>{const _0xa31c33=_0x2e0f2e;let _0x56e61c=_0x1c2ec5=>_0x173241[_0xa31c33(0xf3)](_0x1c2ec5);_0x3d65b2[_0xa31c33(0xeb)](_0xa31c33(0x10d),_0x56e61c),_0x45001f['add']((0x0,t[_0xa31c33(0xe4)])(()=>_0x3d65b2[_0xa31c33(0x104)](_0xa31c33(0x10d),_0x56e61c)));})[_0x2e0f2e(0xfc)]((0x0,r[_0x2e0f2e(0x10f)])())};}catch(_0x331355){return console[_0x2e0f2e(0xe6)](_0x331355),null;}}};f=d([u(0x0,t[_0x7c5bd2(0xec)])],f);function p(_0xe5630){'@babel/helpers - typeof';const _0x1846a3=_0x7c5bd2;return p=typeof Symbol=='function'&&typeof Symbol[_0x1846a3(0x11e)]==_0x1846a3(0xf1)?function(_0xaf95c0){return typeof _0xaf95c0;}:function(_0x2e9c9d){const _0x5e3efc=_0x1846a3;return _0x2e9c9d&&typeof Symbol==_0x5e3efc(0x10e)&&_0x2e9c9d['constructor']===Symbol&&_0x2e9c9d!==Symbol[_0x5e3efc(0xfe)]?_0x5e3efc(0xf1):typeof _0x2e9c9d;},p(_0xe5630);}function m(_0x1fee27,_0xe09dce){const _0x40e27d=_0x7c5bd2;if(p(_0x1fee27)!='object'||!_0x1fee27)return _0x1fee27;var _0x5ea5ba=_0x1fee27[Symbol[_0x40e27d(0xe0)]];if(_0x5ea5ba!==void 0x0){var _0x35a050=_0x5ea5ba[_0x40e27d(0x101)](_0x1fee27,_0xe09dce||'default');if(p(_0x35a050)!=_0x40e27d(0xf7))return _0x35a050;throw TypeError(_0x40e27d(0xe2));}return(_0xe09dce==='string'?String:Number)(_0x1fee27);}function _0x4e17(_0x511f94,_0x341502){_0x511f94=_0x511f94-0xdc;const _0x52cf89=_0x52cf();let _0x4e1765=_0x52cf89[_0x511f94];return _0x4e1765;}function h(_0x3c515c){const _0x381962=_0x7c5bd2;var _0x3343e4=m(_0x3c515c,_0x381962(0xf6));return p(_0x3343e4)==_0x381962(0xf1)?_0x3343e4:_0x3343e4+'';}function g(_0x39a856,_0x1561c5,_0x3b9baa){const _0x4cb6b5=_0x7c5bd2;return(_0x1561c5=h(_0x1561c5))in _0x39a856?Object[_0x4cb6b5(0x11d)](_0x39a856,_0x1561c5,{'value':_0x3b9baa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39a856[_0x1561c5]=_0x3b9baa,_0x39a856;}let _=class extends t[_0x7c5bd2(0xef)]{constructor(_0x283dee=s,_0xb35cb3,_0x4ec124){const _0x2a38a8=_0x7c5bd2;super(),this['_configService']=_0xb35cb3,this[_0x2a38a8(0x112)]=_0x4ec124,this[_0x2a38a8(0xf0)]['setConfig'](o,_0x283dee);}['onStarting'](){const _0x566b7b=_0x7c5bd2;this[_0x566b7b(0xfa)]();}[_0x7c5bd2(0xfa)](){const _0x28c5c1=_0x7c5bd2;(0x0,t[_0x28c5c1(0xea)])(this[_0x28c5c1(0x112)],[[n[_0x28c5c1(0x114)],{'useClass':f}]]);}};g(_,_0x7c5bd2(0x111),_0x7c5bd2(0xdd)),g(_,'packageName',c),g(_,_0x7c5bd2(0x109),l),_=d([(0x0,t[_0x7c5bd2(0xf2)])(e[_0x7c5bd2(0x119)]),u(0x1,t[_0x7c5bd2(0xec)]),u(0x2,(0x0,t[_0x7c5bd2(0xe3)])(t[_0x7c5bd2(0xde)]))],_);let v=class extends e[_0x7c5bd2(0xf9)]{constructor(_0x200ff9,_0x2dc8d9,_0x414236,_0x12ede0,_0x18ee5f){const _0x10565e=_0x7c5bd2;super(_0x200ff9,_0x2dc8d9,_0x414236,_0x12ede0,_0x18ee5f);let _0x104da7=this[_0x10565e(0xf0)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x10565e(0xff)][_0x10565e(0xe5)]({'interceptor':(_0x2110a0,_0x2fcbd9)=>{const _0x54edce=_0x10565e;let _0x152ce9=_0x2110a0[_0x54edce(0xed)];if(_0x104da7!=null&&_0x104da7[_0x54edce(0xf4)]){for(let _0x223f0c in _0x104da7[_0x54edce(0xf4)])_0x152ce9[_0x54edce(0x102)](_0x223f0c,_0x104da7[_0x54edce(0xf4)][_0x223f0c]);}return _0x2fcbd9(_0x2110a0);}});}async[_0x7c5bd2(0x120)](_0x203313){const _0x564789=_0x7c5bd2;return this[_0x564789(0x103)](_0x203313);}};v=d([u(0x0,(0x0,t[_0x7c5bd2(0xe3)])(t[_0x7c5bd2(0xde)])),u(0x1,(0x0,t['Inject'])(n[_0x7c5bd2(0x11c)])),u(0x2,t['IConfigService']),u(0x3,t['ILogService']),u(0x4,a['ISnapshotServerService'])],v),exports[_0x7c5bd2(0xe8)]=o,Object['defineProperty'](exports,_0x7c5bd2(0x11f),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x7c5bd2(0x11d)](exports,_0x7c5bd2(0x11b),{'enumerable':!0x0,'get':function(){return _;}});
|
|
1
|
+
const _0x4f36aa=_0x523b;(function(_0x47b3fb,_0x4f9c4d){const _0xe7a8b2=_0x523b,_0x59b32b=_0x47b3fb();while(!![]){try{const _0x390b55=-parseInt(_0xe7a8b2(0x121))/0x1+parseInt(_0xe7a8b2(0xfa))/0x2*(parseInt(_0xe7a8b2(0x127))/0x3)+-parseInt(_0xe7a8b2(0x126))/0x4*(-parseInt(_0xe7a8b2(0xf9))/0x5)+-parseInt(_0xe7a8b2(0x12b))/0x6*(-parseInt(_0xe7a8b2(0x12e))/0x7)+-parseInt(_0xe7a8b2(0x11d))/0x8+-parseInt(_0xe7a8b2(0x119))/0x9+parseInt(_0xe7a8b2(0x133))/0xa;if(_0x390b55===_0x4f9c4d)break;else _0x59b32b['push'](_0x59b32b['shift']());}catch(_0x2370b3){_0x59b32b['push'](_0x59b32b['shift']());}}}(_0x5dcf,0xeeacb),Object[_0x4f36aa(0x129)](exports,Symbol[_0x4f36aa(0x102)],{'value':_0x4f36aa(0x11b)}));function _0x523b(_0x2450ee,_0x809ea0){_0x2450ee=_0x2450ee-0xf5;const _0x5dcf1b=_0x5dcf();let _0x523b1d=_0x5dcf1b[_0x2450ee];return _0x523b1d;}let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core=require('@univerjs/core'),_univerjs_network=require('@univerjs/network'),rxjs=require('rxjs'),ws=require('ws'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration');function _0x5dcf(){const _0x43e549=['set','4rlxylh','4107SgRJkq','customHeaders','defineProperty','addEventListener','1091586wjlFZQ','close','headers','7rbGYND','DependentOn','CollaborationSocketService','length','_registerDependencies','10241190chDDBX','ISocketService','next','string','collaboration-client-node.config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','DisposableCollection','prototype','share','2768770zBkRbE','1826irwwjr','Observable','error','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','send','Injector','IConfigService','toStringTag','createSocket','constructor','0.21.0','object','message','symbol','getConfig','UniverCollaborationClientNodePlugin','iterator','setConfig','_doCreateSocket','toPrimitive','add','_configService','function','ILogService','registerDependencies','default','pluginName','removeEventListener','WebSocket','version','785178KTMqhj','Inject','Module','Disposable','3070080NcNgxg','registerHTTPInterceptor','open','_injector','1561088kiIvrU','toDisposable','COLLABORATION_CLIENT_NODE_CONFIG_KEY','pipe'];_0x5dcf=function(){return _0x43e549;};return _0x5dcf();}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x4f36aa(0x137),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x4f36aa(0xf5),version=_0x4f36aa(0x105);function __decorateParam(_0x4422b2,_0x1ba76e){return function(_0x4a82ac,_0x51a6d4){_0x1ba76e(_0x4a82ac,_0x51a6d4,_0x4422b2);};}function __decorate(_0x495a98,_0x42173d,_0xf8be12,_0x90d76){const _0x4d64fc=_0x4f36aa;var _0xa8399d=arguments['length'],_0xd2d796=_0xa8399d<0x3?_0x42173d:_0x90d76===null?_0x90d76=Object['getOwnPropertyDescriptor'](_0x42173d,_0xf8be12):_0x90d76,_0x1cd7f1;if(typeof Reflect==='object'&&typeof Reflect[_0x4d64fc(0xfd)]===_0x4d64fc(0x111))_0xd2d796=Reflect['decorate'](_0x495a98,_0x42173d,_0xf8be12,_0x90d76);else{for(var _0x1835c6=_0x495a98[_0x4d64fc(0x131)]-0x1;_0x1835c6>=0x0;_0x1835c6--)if(_0x1cd7f1=_0x495a98[_0x1835c6])_0xd2d796=(_0xa8399d<0x3?_0x1cd7f1(_0xd2d796):_0xa8399d>0x3?_0x1cd7f1(_0x42173d,_0xf8be12,_0xd2d796):_0x1cd7f1(_0x42173d,_0xf8be12))||_0xd2d796;}return _0xa8399d>0x3&&_0xd2d796&&Object[_0x4d64fc(0x129)](_0x42173d,_0xf8be12,_0xd2d796),_0xd2d796;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x4f36aa(0x11c)]{constructor(_0xaee6a4){const _0x59f94d=_0x4f36aa;super(),this[_0x59f94d(0x110)]=_0xaee6a4;}[_0x4f36aa(0x103)](_0x5d85e2){const _0x53d256=_0x4f36aa;var _0x319f80;const _0x24bd2e=((_0x319f80=this[_0x53d256(0x110)]['getConfig'](_univerjs_pro_collaboration_client[_0x53d256(0x138)]))===null||_0x319f80===void 0x0?void 0x0:_0x319f80['customHeaders'])||{};try{const _0x79c372=new ws[(_0x53d256(0x117))](_0x5d85e2,{'headers':{..._0x24bd2e}}),_0x446940=new _univerjs_core[(_0x53d256(0xf6))]();return{'URL':_0x5d85e2,'close':(_0x107b48,_0x3daedb)=>{const _0x91c8ce=_0x53d256;_0x79c372[_0x91c8ce(0x12c)](_0x107b48,_0x3daedb),_0x446940['dispose']();},'send':_0x40afe6=>{const _0x8ed8bd=_0x53d256;_0x79c372[_0x8ed8bd(0xff)](_0x40afe6);},'open$':new rxjs['Observable'](_0x467f73=>{const _0x5bfe92=_0x53d256,_0x7b782f=_0xe0828c=>_0x467f73[_0x5bfe92(0x135)](_0xe0828c);_0x79c372[_0x5bfe92(0x12a)](_0x5bfe92(0x11f),_0x7b782f),_0x446940['add']((0x0,_univerjs_core['toDisposable'])(()=>_0x79c372['removeEventListener']('open',_0x7b782f)));})[_0x53d256(0x124)]((0x0,rxjs[_0x53d256(0xf8)])()),'close$':new rxjs['Observable'](_0xcb84b9=>{const _0x3b8382=_0x53d256,_0x2c11ed=_0x274021=>_0xcb84b9[_0x3b8382(0x135)](_0x274021);_0x79c372['addEventListener'](_0x3b8382(0x12c),_0x2c11ed),_0x446940[_0x3b8382(0x10f)]((0x0,_univerjs_core[_0x3b8382(0x122)])(()=>_0x79c372[_0x3b8382(0x116)](_0x3b8382(0x12c),_0x2c11ed)));})[_0x53d256(0x124)]((0x0,rxjs[_0x53d256(0xf8)])()),'error$':new rxjs['Observable'](_0x6efb13=>{const _0x104b99=_0x53d256,_0x20a4dd=_0x967327=>_0x6efb13[_0x104b99(0x135)](_0x967327);_0x79c372['addEventListener'](_0x104b99(0xfc),_0x20a4dd),_0x446940[_0x104b99(0x10f)]((0x0,_univerjs_core[_0x104b99(0x122)])(()=>_0x79c372[_0x104b99(0x116)]('error',_0x20a4dd)));})[_0x53d256(0x124)]((0x0,rxjs[_0x53d256(0xf8)])()),'message$':new rxjs[(_0x53d256(0xfb))](_0xbb7fd3=>{const _0x333f6e=_0x53d256,_0x30e841=_0x480531=>_0xbb7fd3['next'](_0x480531);_0x79c372[_0x333f6e(0x12a)](_0x333f6e(0x107),_0x30e841),_0x446940[_0x333f6e(0x10f)]((0x0,_univerjs_core[_0x333f6e(0x122)])(()=>_0x79c372[_0x333f6e(0x116)](_0x333f6e(0x107),_0x30e841)));})[_0x53d256(0x124)]((0x0,rxjs[_0x53d256(0xf8)])())};}catch(_0x155522){return console[_0x53d256(0xfc)](_0x155522),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core[_0x4f36aa(0x101)])],NodeWebSocketService);function _typeof(_0x278017){'@babel/helpers - typeof';const _0x16e276=_0x4f36aa;return _typeof=_0x16e276(0x111)==typeof Symbol&&'symbol'==typeof Symbol[_0x16e276(0x10b)]?function(_0xc03c69){return typeof _0xc03c69;}:function(_0x3cd201){const _0x5a508b=_0x16e276;return _0x3cd201&&_0x5a508b(0x111)==typeof Symbol&&_0x3cd201[_0x5a508b(0x104)]===Symbol&&_0x3cd201!==Symbol[_0x5a508b(0xf7)]?_0x5a508b(0x108):typeof _0x3cd201;},_typeof(_0x278017);}function toPrimitive(_0x453a5f,_0x4fac5d){const _0x1df45b=_0x4f36aa;if(_0x1df45b(0x106)!=_typeof(_0x453a5f)||!_0x453a5f)return _0x453a5f;var _0x5f44f6=_0x453a5f[Symbol[_0x1df45b(0x10e)]];if(void 0x0!==_0x5f44f6){var _0x4e360e=_0x5f44f6['call'](_0x453a5f,_0x4fac5d||_0x1df45b(0x114));if(_0x1df45b(0x106)!=_typeof(_0x4e360e))return _0x4e360e;throw new TypeError(_0x1df45b(0xfe));}return(_0x1df45b(0x136)===_0x4fac5d?String:Number)(_0x453a5f);}function toPropertyKey(_0x481dcf){const _0x1df7eb=_0x4f36aa;var _0x4a0ffb=toPrimitive(_0x481dcf,_0x1df7eb(0x136));return'symbol'==_typeof(_0x4a0ffb)?_0x4a0ffb:_0x4a0ffb+'';}function _defineProperty(_0x41ad0e,_0x1878a8,_0x4bc0e1){const _0xe7d420=_0x4f36aa;return(_0x1878a8=toPropertyKey(_0x1878a8))in _0x41ad0e?Object[_0xe7d420(0x129)](_0x41ad0e,_0x1878a8,{'value':_0x4bc0e1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41ad0e[_0x1878a8]=_0x4bc0e1,_0x41ad0e;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core['Plugin']{constructor(_0x356d00=defaultPluginConfig,_0x2dcafd,_0x3d4757){const _0x40034a=_0x4f36aa;super(),this[_0x40034a(0x110)]=_0x2dcafd,this[_0x40034a(0x120)]=_0x3d4757,this[_0x40034a(0x110)][_0x40034a(0x10c)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x356d00);}['onStarting'](){const _0x52976f=_0x4f36aa;this[_0x52976f(0x132)]();}['_registerDependencies'](){const _0x216d01=_0x4f36aa;(0x0,_univerjs_core[_0x216d01(0x113)])(this[_0x216d01(0x120)],[[_univerjs_network[_0x216d01(0x134)],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x4f36aa(0x115),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x4f36aa(0x118),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x4f36aa(0x12f)])(_univerjs_pro_collaboration_client['UniverCollaborationClientPlugin']),__decorateParam(0x1,_univerjs_core['IConfigService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x4f36aa(0x11a)])(_univerjs_core[_0x4f36aa(0x100)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client[_0x4f36aa(0x130)]{constructor(_0x2ce838,_0x3113bc,_0x231244,_0x5675de,_0x39643a){const _0xead07b=_0x4f36aa;super(_0x2ce838,_0x3113bc,_0x231244,_0x5675de,_0x39643a);const _0x4007be=this[_0xead07b(0x110)][_0xead07b(0x109)](_univerjs_pro_collaboration_client[_0xead07b(0x138)]);this['_httpService'][_0xead07b(0x11e)]({'interceptor':(_0x5ba0c5,_0x190203)=>{const _0xfefb88=_0xead07b,_0x183010=_0x5ba0c5[_0xfefb88(0x12d)];if(_0x4007be===null||_0x4007be===void 0x0?void 0x0:_0x4007be[_0xfefb88(0x128)]){for(const _0x4fc840 in _0x4007be[_0xfefb88(0x128)])_0x183010[_0xfefb88(0x125)](_0x4fc840,_0x4007be[_0xfefb88(0x128)][_0x4fc840]);}return _0x190203(_0x5ba0c5);}});}async[_0x4f36aa(0x103)](_0x214765){const _0x36e0cd=_0x4f36aa;return this[_0x36e0cd(0x10d)](_0x214765);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x4f36aa(0x100)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x4f36aa(0x11a)])(_univerjs_network['HTTPService'])),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_core[_0x4f36aa(0x112)]),__decorateParam(0x4,_univerjs_pro_collaboration['ISnapshotServerService'])],NodeCollaborationSocketService),exports[_0x4f36aa(0x123)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object[_0x4f36aa(0x129)](exports,'NodeCollaborationSocketService',{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object[_0x4f36aa(0x129)](exports,_0x4f36aa(0x10a),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x38e5(){const _0x5497e8=['registerHTTPInterceptor','78977520ZbmtSm','set','error','setConfig','next','pipe','@univerjs-pro/collaboration-client-node','toPrimitive','pluginName','0.21.0','close','open','2553956jNIkkS','400141jZpzdK','2602490Tffnub','174DlmcdP','headers','9951890oaTLky','send','symbol','defineProperty','decorate','removeEventListener','string','_configService','_registerDependencies','dispose','customHeaders','version','packageName','462709SRbyRu','object','add','_injector','getConfig','_httpService','8HbDrEX','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','15980076UtfGSI','addEventListener','message','prototype','function','createSocket','collaboration-client-node.config','3MotcBd'];_0x38e5=function(){return _0x5497e8;};return _0x38e5();}const _0x54e3f2=_0x5c0a;(function(_0x3642c8,_0x1d2724){const _0x2faec2=_0x5c0a,_0x58191a=_0x3642c8();while(!![]){try{const _0x47815e=parseInt(_0x2faec2(0x139))/0x1+-parseInt(_0x2faec2(0x159))/0x2+parseInt(_0x2faec2(0x149))/0x3*(-parseInt(_0x2faec2(0x157))/0x4)+-parseInt(_0x2faec2(0x15c))/0x5+-parseInt(_0x2faec2(0x15a))/0x6*(parseInt(_0x2faec2(0x158))/0x7)+-parseInt(_0x2faec2(0x13f))/0x8*(parseInt(_0x2faec2(0x142))/0x9)+parseInt(_0x2faec2(0x14b))/0xa;if(_0x47815e===_0x1d2724)break;else _0x58191a['push'](_0x58191a['shift']());}catch(_0x17eb6e){_0x58191a['push'](_0x58191a['shift']());}}}(_0x38e5,0xf36c2));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';function _0x5c0a(_0x1074cd,_0x2a36a4){_0x1074cd=_0x1074cd-0x132;const _0x38e596=_0x38e5();let _0x5c0af9=_0x38e596[_0x1074cd];return _0x5c0af9;}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x54e3f2(0x148),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x54e3f2(0x151),version=_0x54e3f2(0x154);function __decorateParam(_0x505fb6,_0x3903f5){return function(_0x320c6e,_0x44991c){_0x3903f5(_0x320c6e,_0x44991c,_0x505fb6);};}function __decorate(_0x5d2c98,_0x42d70e,_0xc81142,_0xe0282){const _0x28b4a3=_0x54e3f2;var _0x11c550=arguments['length'],_0x5c5c90=_0x11c550<0x3?_0x42d70e:_0xe0282===null?_0xe0282=Object['getOwnPropertyDescriptor'](_0x42d70e,_0xc81142):_0xe0282,_0x336380;if(typeof Reflect===_0x28b4a3(0x13a)&&typeof Reflect[_0x28b4a3(0x160)]===_0x28b4a3(0x146))_0x5c5c90=Reflect[_0x28b4a3(0x160)](_0x5d2c98,_0x42d70e,_0xc81142,_0xe0282);else{for(var _0x159871=_0x5d2c98[_0x28b4a3(0x141)]-0x1;_0x159871>=0x0;_0x159871--)if(_0x336380=_0x5d2c98[_0x159871])_0x5c5c90=(_0x11c550<0x3?_0x336380(_0x5c5c90):_0x11c550>0x3?_0x336380(_0x42d70e,_0xc81142,_0x5c5c90):_0x336380(_0x42d70e,_0xc81142))||_0x5c5c90;}return _0x11c550>0x3&&_0x5c5c90&&Object[_0x28b4a3(0x15f)](_0x42d70e,_0xc81142,_0x5c5c90),_0x5c5c90;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x49760f){const _0xf0aae9=_0x54e3f2;super(),this[_0xf0aae9(0x133)]=_0x49760f;}['createSocket'](_0x5660a1){const _0x48ac5b=_0x54e3f2;var _0x561ea5;const _0xbeb955=((_0x561ea5=this[_0x48ac5b(0x133)][_0x48ac5b(0x13d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x561ea5===void 0x0?void 0x0:_0x561ea5['customHeaders'])||{};try{const _0x15d69c=new WebSocket(_0x5660a1,{'headers':{..._0xbeb955}}),_0xed5f33=new DisposableCollection();return{'URL':_0x5660a1,'close':(_0x48273f,_0x2cf328)=>{const _0x155e28=_0x48ac5b;_0x15d69c[_0x155e28(0x155)](_0x48273f,_0x2cf328),_0xed5f33[_0x155e28(0x135)]();},'send':_0x584164=>{const _0x5da18a=_0x48ac5b;_0x15d69c[_0x5da18a(0x15d)](_0x584164);},'open$':new Observable(_0x1b8dfb=>{const _0x55afc5=_0x48ac5b,_0x1a457c=_0x245c5=>_0x1b8dfb['next'](_0x245c5);_0x15d69c[_0x55afc5(0x143)](_0x55afc5(0x156),_0x1a457c),_0xed5f33[_0x55afc5(0x13b)](toDisposable(()=>_0x15d69c['removeEventListener'](_0x55afc5(0x156),_0x1a457c)));})[_0x48ac5b(0x150)](share()),'close$':new Observable(_0x287d20=>{const _0x15d0c8=_0x48ac5b,_0x1c243c=_0x36fa9c=>_0x287d20[_0x15d0c8(0x14f)](_0x36fa9c);_0x15d69c[_0x15d0c8(0x143)](_0x15d0c8(0x155),_0x1c243c),_0xed5f33[_0x15d0c8(0x13b)](toDisposable(()=>_0x15d69c[_0x15d0c8(0x161)](_0x15d0c8(0x155),_0x1c243c)));})[_0x48ac5b(0x150)](share()),'error$':new Observable(_0x3a9ae7=>{const _0x2d3c51=_0x48ac5b,_0x3130d5=_0x59ac47=>_0x3a9ae7[_0x2d3c51(0x14f)](_0x59ac47);_0x15d69c[_0x2d3c51(0x143)](_0x2d3c51(0x14d),_0x3130d5),_0xed5f33[_0x2d3c51(0x13b)](toDisposable(()=>_0x15d69c[_0x2d3c51(0x161)]('error',_0x3130d5)));})[_0x48ac5b(0x150)](share()),'message$':new Observable(_0x37dc61=>{const _0x1ea12e=_0x48ac5b,_0x33d206=_0x566fff=>_0x37dc61[_0x1ea12e(0x14f)](_0x566fff);_0x15d69c[_0x1ea12e(0x143)](_0x1ea12e(0x144),_0x33d206),_0xed5f33[_0x1ea12e(0x13b)](toDisposable(()=>_0x15d69c[_0x1ea12e(0x161)](_0x1ea12e(0x144),_0x33d206)));})[_0x48ac5b(0x150)](share())};}catch(_0x10e592){return console[_0x48ac5b(0x14d)](_0x10e592),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x135c9d){'@babel/helpers - typeof';const _0x50f3aa=_0x54e3f2;return _typeof=_0x50f3aa(0x146)==typeof Symbol&&_0x50f3aa(0x15e)==typeof Symbol['iterator']?function(_0x684525){return typeof _0x684525;}:function(_0x224ecf){const _0x53a1d8=_0x50f3aa;return _0x224ecf&&_0x53a1d8(0x146)==typeof Symbol&&_0x224ecf['constructor']===Symbol&&_0x224ecf!==Symbol[_0x53a1d8(0x145)]?_0x53a1d8(0x15e):typeof _0x224ecf;},_typeof(_0x135c9d);}function toPrimitive(_0x5d941b,_0x5c9393){const _0x5b7526=_0x54e3f2;if(_0x5b7526(0x13a)!=_typeof(_0x5d941b)||!_0x5d941b)return _0x5d941b;var _0x3c5688=_0x5d941b[Symbol[_0x5b7526(0x152)]];if(void 0x0!==_0x3c5688){var _0x2ac5af=_0x3c5688['call'](_0x5d941b,_0x5c9393||'default');if('object'!=_typeof(_0x2ac5af))return _0x2ac5af;throw new TypeError(_0x5b7526(0x140));}return(_0x5b7526(0x132)===_0x5c9393?String:Number)(_0x5d941b);}function toPropertyKey(_0x2c9813){const _0x409e04=_0x54e3f2;var _0x56cbc8=toPrimitive(_0x2c9813,_0x409e04(0x132));return _0x409e04(0x15e)==_typeof(_0x56cbc8)?_0x56cbc8:_0x56cbc8+'';}function _defineProperty(_0x3e7b5a,_0xafd7f3,_0x51fbac){const _0x25378f=_0x54e3f2;return(_0xafd7f3=toPropertyKey(_0xafd7f3))in _0x3e7b5a?Object[_0x25378f(0x15f)](_0x3e7b5a,_0xafd7f3,{'value':_0x51fbac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e7b5a[_0xafd7f3]=_0x51fbac,_0x3e7b5a;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x1030ac=defaultPluginConfig,_0x148179,_0x4bac78){const _0x115e04=_0x54e3f2;super(),this[_0x115e04(0x133)]=_0x148179,this[_0x115e04(0x13c)]=_0x4bac78,this[_0x115e04(0x133)][_0x115e04(0x14e)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x1030ac);}['onStarting'](){const _0x54271d=_0x54e3f2;this[_0x54271d(0x134)]();}[_0x54e3f2(0x134)](){const _0x12d1bc=_0x54e3f2;registerDependencies(this[_0x12d1bc(0x13c)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x54e3f2(0x153),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,_0x54e3f2(0x138),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x54e3f2(0x137),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x582f1a,_0x159a6e,_0x2f7925,_0x6c4882,_0x2a6088){const _0x7bdae1=_0x54e3f2;super(_0x582f1a,_0x159a6e,_0x2f7925,_0x6c4882,_0x2a6088);const _0x2ee5be=this[_0x7bdae1(0x133)][_0x7bdae1(0x13d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x7bdae1(0x13e)][_0x7bdae1(0x14a)]({'interceptor':(_0x50756b,_0x5863db)=>{const _0x4da666=_0x7bdae1,_0x55ac27=_0x50756b[_0x4da666(0x15b)];if(_0x2ee5be===null||_0x2ee5be===void 0x0?void 0x0:_0x2ee5be[_0x4da666(0x136)]){for(const _0x54e2ef in _0x2ee5be[_0x4da666(0x136)])_0x55ac27[_0x4da666(0x14c)](_0x54e2ef,_0x2ee5be['customHeaders'][_0x54e2ef]);}return _0x5863db(_0x50756b);}});}async[_0x54e3f2(0x147)](_0x519797){return this['_doCreateSocket'](_0x519797);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x38e5(){const _0x5497e8=['registerHTTPInterceptor','78977520ZbmtSm','set','error','setConfig','next','pipe','@univerjs-pro/collaboration-client-node','toPrimitive','pluginName','0.21.0','close','open','2553956jNIkkS','400141jZpzdK','2602490Tffnub','174DlmcdP','headers','9951890oaTLky','send','symbol','defineProperty','decorate','removeEventListener','string','_configService','_registerDependencies','dispose','customHeaders','version','packageName','462709SRbyRu','object','add','_injector','getConfig','_httpService','8HbDrEX','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','15980076UtfGSI','addEventListener','message','prototype','function','createSocket','collaboration-client-node.config','3MotcBd'];_0x38e5=function(){return _0x5497e8;};return _0x38e5();}const _0x54e3f2=_0x5c0a;(function(_0x3642c8,_0x1d2724){const _0x2faec2=_0x5c0a,_0x58191a=_0x3642c8();while(!![]){try{const _0x47815e=parseInt(_0x2faec2(0x139))/0x1+-parseInt(_0x2faec2(0x159))/0x2+parseInt(_0x2faec2(0x149))/0x3*(-parseInt(_0x2faec2(0x157))/0x4)+-parseInt(_0x2faec2(0x15c))/0x5+-parseInt(_0x2faec2(0x15a))/0x6*(parseInt(_0x2faec2(0x158))/0x7)+-parseInt(_0x2faec2(0x13f))/0x8*(parseInt(_0x2faec2(0x142))/0x9)+parseInt(_0x2faec2(0x14b))/0xa;if(_0x47815e===_0x1d2724)break;else _0x58191a['push'](_0x58191a['shift']());}catch(_0x17eb6e){_0x58191a['push'](_0x58191a['shift']());}}}(_0x38e5,0xf36c2));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';function _0x5c0a(_0x1074cd,_0x2a36a4){_0x1074cd=_0x1074cd-0x132;const _0x38e596=_0x38e5();let _0x5c0af9=_0x38e596[_0x1074cd];return _0x5c0af9;}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x54e3f2(0x148),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x54e3f2(0x151),version=_0x54e3f2(0x154);function __decorateParam(_0x505fb6,_0x3903f5){return function(_0x320c6e,_0x44991c){_0x3903f5(_0x320c6e,_0x44991c,_0x505fb6);};}function __decorate(_0x5d2c98,_0x42d70e,_0xc81142,_0xe0282){const _0x28b4a3=_0x54e3f2;var _0x11c550=arguments['length'],_0x5c5c90=_0x11c550<0x3?_0x42d70e:_0xe0282===null?_0xe0282=Object['getOwnPropertyDescriptor'](_0x42d70e,_0xc81142):_0xe0282,_0x336380;if(typeof Reflect===_0x28b4a3(0x13a)&&typeof Reflect[_0x28b4a3(0x160)]===_0x28b4a3(0x146))_0x5c5c90=Reflect[_0x28b4a3(0x160)](_0x5d2c98,_0x42d70e,_0xc81142,_0xe0282);else{for(var _0x159871=_0x5d2c98[_0x28b4a3(0x141)]-0x1;_0x159871>=0x0;_0x159871--)if(_0x336380=_0x5d2c98[_0x159871])_0x5c5c90=(_0x11c550<0x3?_0x336380(_0x5c5c90):_0x11c550>0x3?_0x336380(_0x42d70e,_0xc81142,_0x5c5c90):_0x336380(_0x42d70e,_0xc81142))||_0x5c5c90;}return _0x11c550>0x3&&_0x5c5c90&&Object[_0x28b4a3(0x15f)](_0x42d70e,_0xc81142,_0x5c5c90),_0x5c5c90;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x49760f){const _0xf0aae9=_0x54e3f2;super(),this[_0xf0aae9(0x133)]=_0x49760f;}['createSocket'](_0x5660a1){const _0x48ac5b=_0x54e3f2;var _0x561ea5;const _0xbeb955=((_0x561ea5=this[_0x48ac5b(0x133)][_0x48ac5b(0x13d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x561ea5===void 0x0?void 0x0:_0x561ea5['customHeaders'])||{};try{const _0x15d69c=new WebSocket(_0x5660a1,{'headers':{..._0xbeb955}}),_0xed5f33=new DisposableCollection();return{'URL':_0x5660a1,'close':(_0x48273f,_0x2cf328)=>{const _0x155e28=_0x48ac5b;_0x15d69c[_0x155e28(0x155)](_0x48273f,_0x2cf328),_0xed5f33[_0x155e28(0x135)]();},'send':_0x584164=>{const _0x5da18a=_0x48ac5b;_0x15d69c[_0x5da18a(0x15d)](_0x584164);},'open$':new Observable(_0x1b8dfb=>{const _0x55afc5=_0x48ac5b,_0x1a457c=_0x245c5=>_0x1b8dfb['next'](_0x245c5);_0x15d69c[_0x55afc5(0x143)](_0x55afc5(0x156),_0x1a457c),_0xed5f33[_0x55afc5(0x13b)](toDisposable(()=>_0x15d69c['removeEventListener'](_0x55afc5(0x156),_0x1a457c)));})[_0x48ac5b(0x150)](share()),'close$':new Observable(_0x287d20=>{const _0x15d0c8=_0x48ac5b,_0x1c243c=_0x36fa9c=>_0x287d20[_0x15d0c8(0x14f)](_0x36fa9c);_0x15d69c[_0x15d0c8(0x143)](_0x15d0c8(0x155),_0x1c243c),_0xed5f33[_0x15d0c8(0x13b)](toDisposable(()=>_0x15d69c[_0x15d0c8(0x161)](_0x15d0c8(0x155),_0x1c243c)));})[_0x48ac5b(0x150)](share()),'error$':new Observable(_0x3a9ae7=>{const _0x2d3c51=_0x48ac5b,_0x3130d5=_0x59ac47=>_0x3a9ae7[_0x2d3c51(0x14f)](_0x59ac47);_0x15d69c[_0x2d3c51(0x143)](_0x2d3c51(0x14d),_0x3130d5),_0xed5f33[_0x2d3c51(0x13b)](toDisposable(()=>_0x15d69c[_0x2d3c51(0x161)]('error',_0x3130d5)));})[_0x48ac5b(0x150)](share()),'message$':new Observable(_0x37dc61=>{const _0x1ea12e=_0x48ac5b,_0x33d206=_0x566fff=>_0x37dc61[_0x1ea12e(0x14f)](_0x566fff);_0x15d69c[_0x1ea12e(0x143)](_0x1ea12e(0x144),_0x33d206),_0xed5f33[_0x1ea12e(0x13b)](toDisposable(()=>_0x15d69c[_0x1ea12e(0x161)](_0x1ea12e(0x144),_0x33d206)));})[_0x48ac5b(0x150)](share())};}catch(_0x10e592){return console[_0x48ac5b(0x14d)](_0x10e592),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x135c9d){'@babel/helpers - typeof';const _0x50f3aa=_0x54e3f2;return _typeof=_0x50f3aa(0x146)==typeof Symbol&&_0x50f3aa(0x15e)==typeof Symbol['iterator']?function(_0x684525){return typeof _0x684525;}:function(_0x224ecf){const _0x53a1d8=_0x50f3aa;return _0x224ecf&&_0x53a1d8(0x146)==typeof Symbol&&_0x224ecf['constructor']===Symbol&&_0x224ecf!==Symbol[_0x53a1d8(0x145)]?_0x53a1d8(0x15e):typeof _0x224ecf;},_typeof(_0x135c9d);}function toPrimitive(_0x5d941b,_0x5c9393){const _0x5b7526=_0x54e3f2;if(_0x5b7526(0x13a)!=_typeof(_0x5d941b)||!_0x5d941b)return _0x5d941b;var _0x3c5688=_0x5d941b[Symbol[_0x5b7526(0x152)]];if(void 0x0!==_0x3c5688){var _0x2ac5af=_0x3c5688['call'](_0x5d941b,_0x5c9393||'default');if('object'!=_typeof(_0x2ac5af))return _0x2ac5af;throw new TypeError(_0x5b7526(0x140));}return(_0x5b7526(0x132)===_0x5c9393?String:Number)(_0x5d941b);}function toPropertyKey(_0x2c9813){const _0x409e04=_0x54e3f2;var _0x56cbc8=toPrimitive(_0x2c9813,_0x409e04(0x132));return _0x409e04(0x15e)==_typeof(_0x56cbc8)?_0x56cbc8:_0x56cbc8+'';}function _defineProperty(_0x3e7b5a,_0xafd7f3,_0x51fbac){const _0x25378f=_0x54e3f2;return(_0xafd7f3=toPropertyKey(_0xafd7f3))in _0x3e7b5a?Object[_0x25378f(0x15f)](_0x3e7b5a,_0xafd7f3,{'value':_0x51fbac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e7b5a[_0xafd7f3]=_0x51fbac,_0x3e7b5a;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x1030ac=defaultPluginConfig,_0x148179,_0x4bac78){const _0x115e04=_0x54e3f2;super(),this[_0x115e04(0x133)]=_0x148179,this[_0x115e04(0x13c)]=_0x4bac78,this[_0x115e04(0x133)][_0x115e04(0x14e)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x1030ac);}['onStarting'](){const _0x54271d=_0x54e3f2;this[_0x54271d(0x134)]();}[_0x54e3f2(0x134)](){const _0x12d1bc=_0x54e3f2;registerDependencies(this[_0x12d1bc(0x13c)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x54e3f2(0x153),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,_0x54e3f2(0x138),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x54e3f2(0x137),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x582f1a,_0x159a6e,_0x2f7925,_0x6c4882,_0x2a6088){const _0x7bdae1=_0x54e3f2;super(_0x582f1a,_0x159a6e,_0x2f7925,_0x6c4882,_0x2a6088);const _0x2ee5be=this[_0x7bdae1(0x133)][_0x7bdae1(0x13d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x7bdae1(0x13e)][_0x7bdae1(0x14a)]({'interceptor':(_0x50756b,_0x5863db)=>{const _0x4da666=_0x7bdae1,_0x55ac27=_0x50756b[_0x4da666(0x15b)];if(_0x2ee5be===null||_0x2ee5be===void 0x0?void 0x0:_0x2ee5be[_0x4da666(0x136)]){for(const _0x54e2ef in _0x2ee5be[_0x4da666(0x136)])_0x55ac27[_0x4da666(0x14c)](_0x54e2ef,_0x2ee5be['customHeaders'][_0x54e2ef]);}return _0x5863db(_0x50756b);}});}async[_0x54e3f2(0x147)](_0x519797){return this['_doCreateSocket'](_0x519797);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x47b0(){const _0x59c489=['0.20.1','object','2891043JVqukd','toPrimitive','decorate','defineProperty','16aOjZMB','@univerjs/network','error','IConfigService','430990afEaCG','ISocketService','UniverProCollaborationClient','Disposable','dispose','pipe','UniverProCollaboration','close','removeEventListener','8853660NRggCV','10TUGbsz','exports','length','registerDependencies','prototype','_httpService','add','DependentOn','Inject','DisposableCollection','rxjs','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setConfig','set','Injector','84810MHOpOP','constructor','default','Observable','Plugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','share','NodeCollaborationSocketService','_registerDependencies','message','1296282nsioBa','onStarting','8XkLlPP','open','string','@univerjs-pro/collaboration-client','120TebVUa','CollaborationSocketService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','_injector','getConfig','@univerjs/core','@univerjs-pro/collaboration','addEventListener','toDisposable','Module','collaboration-client-node.config','UniverCollaborationClientNodePlugin','customHeaders','_configService','979540bjmVpt','toStringTag','UniverCore','packageName','function','HTTPService','symbol','350669JBsxEa','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','version','next'];_0x47b0=function(){return _0x59c489;};return _0x47b0();}function _0x567d(_0x5edbc2,_0x585bdb){_0x5edbc2=_0x5edbc2-0xe5;const _0x47b01b=_0x47b0();let _0x567d50=_0x47b01b[_0x5edbc2];return _0x567d50;}(function(_0x49e62b,_0x2a07ef){const _0x14e79b=_0x567d,_0x386f51=_0x49e62b();while(!![]){try{const _0x202856=-parseInt(_0x14e79b(0x129))/0x1*(-parseInt(_0x14e79b(0xfa))/0x2)+-parseInt(_0x14e79b(0x125))/0x3+-parseInt(_0x14e79b(0x118))/0x4*(-parseInt(_0x14e79b(0xea))/0x5)+-parseInt(_0x14e79b(0x104))/0x6+-parseInt(_0x14e79b(0x12d))/0x7*(parseInt(_0x14e79b(0x106))/0x8)+parseInt(_0x14e79b(0xe9))/0x9+-parseInt(_0x14e79b(0x10a))/0xa*(parseInt(_0x14e79b(0x11f))/0xb);if(_0x202856===_0x2a07ef)break;else _0x386f51['push'](_0x386f51['shift']());}catch(_0x1006bd){_0x386f51['push'](_0x386f51['shift']());}}}(_0x47b0,0x80f10),function(_0x17eb6d,_0x2d82d4){const _0x3f0446=_0x567d;typeof exports==_0x3f0446(0x124)&&typeof module<'u'?_0x2d82d4(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x3f0446(0x11c)&&define['amd']?define(['exports',_0x3f0446(0x109),_0x3f0446(0x10f),_0x3f0446(0x12a),_0x3f0446(0xf4),_0x3f0446(0x110)],_0x2d82d4):(_0x17eb6d=typeof globalThis<'u'?globalThis:_0x17eb6d||self,_0x2d82d4(_0x17eb6d['UniverProCollaborationClientNode']={},_0x17eb6d[_0x3f0446(0x12f)],_0x17eb6d[_0x3f0446(0x11a)],_0x17eb6d['UniverNetwork'],_0x17eb6d['rxjs'],_0x17eb6d[_0x3f0446(0xe6)]));}(this,function(_0x489616,_0x269c3a,_0xcafa50,_0x32e61a,_0x228111,_0x33d016){const _0x15fdc3=_0x567d;Object['defineProperty'](_0x489616,Symbol[_0x15fdc3(0x119)],{'value':_0x15fdc3(0x113)});var _0x310290=(_0x3a2521,_0x51cb7f)=>()=>(_0x51cb7f||_0x3a2521((_0x51cb7f={'exports':{}})[_0x15fdc3(0xeb)],_0x51cb7f),_0x51cb7f[_0x15fdc3(0xeb)]);let _0x1f63e9=_0x15fdc3(0x114);Symbol(_0x1f63e9);let _0x252d71={};var _0xa74da2='@univerjs-pro/collaboration-client-node',_0x2639b8=_0x15fdc3(0x123),_0x1397b4=_0x310290((_0x2926c9,_0x3b733e)=>{const _0x8de39c=_0x15fdc3;_0x3b733e[_0x8de39c(0xeb)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x3c28d3(_0x43b7ad,_0x347740){return function(_0x53d551,_0x21e1cc){_0x347740(_0x53d551,_0x21e1cc,_0x43b7ad);};}function _0x2f2399(_0x14f6cf,_0x1f16f6,_0xb78220,_0x293734){const _0x2b9158=_0x15fdc3;var _0x4d5ccc=arguments[_0x2b9158(0xec)],_0x343893=_0x4d5ccc<0x3?_0x1f16f6:_0x293734===null?_0x293734=Object['getOwnPropertyDescriptor'](_0x1f16f6,_0xb78220):_0x293734,_0x26c621;if(typeof Reflect==_0x2b9158(0x124)&&typeof Reflect[_0x2b9158(0x127)]=='function')_0x343893=Reflect[_0x2b9158(0x127)](_0x14f6cf,_0x1f16f6,_0xb78220,_0x293734);else{for(var _0x3a0503=_0x14f6cf[_0x2b9158(0xec)]-0x1;_0x3a0503>=0x0;_0x3a0503--)(_0x26c621=_0x14f6cf[_0x3a0503])&&(_0x343893=(_0x4d5ccc<0x3?_0x26c621(_0x343893):_0x4d5ccc>0x3?_0x26c621(_0x1f16f6,_0xb78220,_0x343893):_0x26c621(_0x1f16f6,_0xb78220))||_0x343893);}return _0x4d5ccc>0x3&&_0x343893&&Object[_0x2b9158(0x128)](_0x1f16f6,_0xb78220,_0x343893),_0x343893;}let _0x1319ac=class extends _0xcafa50[_0x15fdc3(0x130)]{constructor(_0x321642){const _0x577557=_0x15fdc3;super(),this[_0x577557(0x117)]=_0x321642;}['createSocket'](_0x10731d){const _0x572674=_0x15fdc3;var _0x4bdf17;let _0x38dcc0=((_0x4bdf17=this[_0x572674(0x117)][_0x572674(0x10e)](_0x269c3a[_0x572674(0xff)]))==null?void 0x0:_0x4bdf17[_0x572674(0x116)])||{};try{let _0x2ba628=new _0x1397b4['WebSocket'](_0x10731d,{'headers':{..._0x38dcc0}}),_0x3b5389=new _0xcafa50[(_0x572674(0xf3))]();return{'URL':_0x10731d,'close':(_0x580c90,_0x5bbd31)=>{const _0x51a10c=_0x572674;_0x2ba628[_0x51a10c(0xe7)](_0x580c90,_0x5bbd31),_0x3b5389[_0x51a10c(0x131)]();},'send':_0x212a20=>{_0x2ba628['send'](_0x212a20);},'open$':new _0x228111[(_0x572674(0xfd))](_0x3c7cb0=>{const _0x14bbbd=_0x572674;let _0x227040=_0x15eac8=>_0x3c7cb0[_0x14bbbd(0x122)](_0x15eac8);_0x2ba628[_0x14bbbd(0x111)](_0x14bbbd(0x107),_0x227040),_0x3b5389[_0x14bbbd(0xf0)]((0x0,_0xcafa50[_0x14bbbd(0x112)])(()=>_0x2ba628[_0x14bbbd(0xe8)](_0x14bbbd(0x107),_0x227040)));})[_0x572674(0xe5)]((0x0,_0x228111['share'])()),'close$':new _0x228111[(_0x572674(0xfd))](_0x3d8e22=>{const _0x13f472=_0x572674;let _0x4fb87d=_0xff48a2=>_0x3d8e22['next'](_0xff48a2);_0x2ba628[_0x13f472(0x111)](_0x13f472(0xe7),_0x4fb87d),_0x3b5389['add']((0x0,_0xcafa50[_0x13f472(0x112)])(()=>_0x2ba628[_0x13f472(0xe8)](_0x13f472(0xe7),_0x4fb87d)));})[_0x572674(0xe5)]((0x0,_0x228111[_0x572674(0x100)])()),'error$':new _0x228111[(_0x572674(0xfd))](_0x1d2f8e=>{const _0x52be50=_0x572674;let _0x11c8d2=_0x337540=>_0x1d2f8e['next'](_0x337540);_0x2ba628[_0x52be50(0x111)]('error',_0x11c8d2),_0x3b5389[_0x52be50(0xf0)]((0x0,_0xcafa50[_0x52be50(0x112)])(()=>_0x2ba628[_0x52be50(0xe8)](_0x52be50(0x12b),_0x11c8d2)));})[_0x572674(0xe5)]((0x0,_0x228111[_0x572674(0x100)])()),'message$':new _0x228111['Observable'](_0x2606d6=>{const _0x1e337f=_0x572674;let _0x4506af=_0x589f60=>_0x2606d6[_0x1e337f(0x122)](_0x589f60);_0x2ba628[_0x1e337f(0x111)](_0x1e337f(0x103),_0x4506af),_0x3b5389[_0x1e337f(0xf0)]((0x0,_0xcafa50[_0x1e337f(0x112)])(()=>_0x2ba628['removeEventListener']('message',_0x4506af)));})[_0x572674(0xe5)]((0x0,_0x228111[_0x572674(0x100)])())};}catch(_0x31b304){return console['error'](_0x31b304),null;}}};_0x1319ac=_0x2f2399([_0x3c28d3(0x0,_0xcafa50[_0x15fdc3(0x12c)])],_0x1319ac);function _0x2cd1ba(_0x63a411){'@babel/helpers - typeof';const _0x520acd=_0x15fdc3;return _0x2cd1ba=typeof Symbol==_0x520acd(0x11c)&&typeof Symbol[_0x520acd(0xf5)]==_0x520acd(0x11e)?function(_0x246bc8){return typeof _0x246bc8;}:function(_0x11527d){const _0x4c7ade=_0x520acd;return _0x11527d&&typeof Symbol=='function'&&_0x11527d[_0x4c7ade(0xfb)]===Symbol&&_0x11527d!==Symbol[_0x4c7ade(0xee)]?_0x4c7ade(0x11e):typeof _0x11527d;},_0x2cd1ba(_0x63a411);}function _0x44f2e5(_0x1a83df,_0x1c7ac9){const _0x57f27c=_0x15fdc3;if(_0x2cd1ba(_0x1a83df)!=_0x57f27c(0x124)||!_0x1a83df)return _0x1a83df;var _0x498782=_0x1a83df[Symbol[_0x57f27c(0x126)]];if(_0x498782!==void 0x0){var _0x1911f0=_0x498782['call'](_0x1a83df,_0x1c7ac9||_0x57f27c(0xfc));if(_0x2cd1ba(_0x1911f0)!=_0x57f27c(0x124))return _0x1911f0;throw TypeError(_0x57f27c(0xf6));}return(_0x1c7ac9===_0x57f27c(0x108)?String:Number)(_0x1a83df);}function _0x21139b(_0x12e4d3){const _0x30f6a0=_0x15fdc3;var _0x3c952f=_0x44f2e5(_0x12e4d3,_0x30f6a0(0x108));return _0x2cd1ba(_0x3c952f)==_0x30f6a0(0x11e)?_0x3c952f:_0x3c952f+'';}function _0x2f80d9(_0x1b2692,_0x4cc24f,_0x2958f6){const _0x4bfd47=_0x15fdc3;return(_0x4cc24f=_0x21139b(_0x4cc24f))in _0x1b2692?Object[_0x4bfd47(0x128)](_0x1b2692,_0x4cc24f,{'value':_0x2958f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b2692[_0x4cc24f]=_0x2958f6,_0x1b2692;}let _0x269e55=class extends _0xcafa50[_0x15fdc3(0xfe)]{constructor(_0x52f496=_0x252d71,_0x42327b,_0xb773ec){const _0x565bed=_0x15fdc3;super(),this[_0x565bed(0x117)]=_0x42327b,this[_0x565bed(0x10d)]=_0xb773ec,this[_0x565bed(0x117)][_0x565bed(0xf7)](_0x1f63e9,_0x52f496);}[_0x15fdc3(0x105)](){const _0x6c950b=_0x15fdc3;this[_0x6c950b(0x102)]();}[_0x15fdc3(0x102)](){const _0x956d5d=_0x15fdc3;(0x0,_0xcafa50[_0x956d5d(0xed)])(this[_0x956d5d(0x10d)],[[_0x32e61a[_0x956d5d(0x12e)],{'useClass':_0x1319ac}]]);}};_0x2f80d9(_0x269e55,'pluginName',_0x15fdc3(0x120)),_0x2f80d9(_0x269e55,_0x15fdc3(0x11b),_0xa74da2),_0x2f80d9(_0x269e55,_0x15fdc3(0x121),_0x2639b8),_0x269e55=_0x2f2399([(0x0,_0xcafa50[_0x15fdc3(0xf1)])(_0x269c3a['UniverCollaborationClientPlugin']),_0x3c28d3(0x1,_0xcafa50[_0x15fdc3(0x12c)]),_0x3c28d3(0x2,(0x0,_0xcafa50[_0x15fdc3(0xf2)])(_0xcafa50[_0x15fdc3(0xf9)]))],_0x269e55);let _0x2db9ad=class extends _0x269c3a[_0x15fdc3(0x10b)]{constructor(_0x13733e,_0x13bc47,_0x3e1ad6,_0x44f804,_0x47a6d2){const _0x112a02=_0x15fdc3;super(_0x13733e,_0x13bc47,_0x3e1ad6,_0x44f804,_0x47a6d2);let _0x411e9b=this[_0x112a02(0x117)]['getConfig'](_0x269c3a[_0x112a02(0xff)]);this[_0x112a02(0xef)]['registerHTTPInterceptor']({'interceptor':(_0x4f7283,_0x8bb56f)=>{const _0x5483d3=_0x112a02;let _0x5643ac=_0x4f7283['headers'];if(_0x411e9b!=null&&_0x411e9b['customHeaders']){for(let _0x2dc309 in _0x411e9b[_0x5483d3(0x116)])_0x5643ac[_0x5483d3(0xf8)](_0x2dc309,_0x411e9b['customHeaders'][_0x2dc309]);}return _0x8bb56f(_0x4f7283);}});}async['createSocket'](_0x4b5623){return this['_doCreateSocket'](_0x4b5623);}};_0x2db9ad=_0x2f2399([_0x3c28d3(0x0,(0x0,_0xcafa50[_0x15fdc3(0xf2)])(_0xcafa50['Injector'])),_0x3c28d3(0x1,(0x0,_0xcafa50['Inject'])(_0x32e61a[_0x15fdc3(0x11d)])),_0x3c28d3(0x2,_0xcafa50[_0x15fdc3(0x12c)]),_0x3c28d3(0x3,_0xcafa50['ILogService']),_0x3c28d3(0x4,_0x33d016['ISnapshotServerService'])],_0x2db9ad),_0x489616[_0x15fdc3(0x10c)]=_0x1f63e9,Object[_0x15fdc3(0x128)](_0x489616,_0x15fdc3(0x101),{'enumerable':!0x0,'get':function(){return _0x2db9ad;}}),Object[_0x15fdc3(0x128)](_0x489616,_0x15fdc3(0x115),{'enumerable':!0x0,'get':function(){return _0x269e55;}});}));
|
|
1
|
+
(function(_0x5346b9,_0x256e75){const _0x38aaa1=_0x3077,_0x1ddfe4=_0x5346b9();while(!![]){try{const _0x193f3d=-parseInt(_0x38aaa1(0x189))/0x1*(-parseInt(_0x38aaa1(0x16b))/0x2)+-parseInt(_0x38aaa1(0x19a))/0x3+-parseInt(_0x38aaa1(0x1b4))/0x4+parseInt(_0x38aaa1(0x182))/0x5*(-parseInt(_0x38aaa1(0x185))/0x6)+parseInt(_0x38aaa1(0x1b7))/0x7*(parseInt(_0x38aaa1(0x191))/0x8)+-parseInt(_0x38aaa1(0x199))/0x9+parseInt(_0x38aaa1(0x1a4))/0xa;if(_0x193f3d===_0x256e75)break;else _0x1ddfe4['push'](_0x1ddfe4['shift']());}catch(_0x51253b){_0x1ddfe4['push'](_0x1ddfe4['shift']());}}}(_0x46f6,0x55e8c),function(_0x200c1,_0x51befa){const _0x1bd68b=_0x3077;typeof exports==_0x1bd68b(0x194)&&typeof module<'u'?_0x51befa(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define['amd']?define(['exports',_0x1bd68b(0x168),_0x1bd68b(0x16c),_0x1bd68b(0x180),_0x1bd68b(0x1b3),_0x1bd68b(0x1aa)],_0x51befa):(_0x200c1=typeof globalThis<'u'?globalThis:_0x200c1||self,_0x51befa(_0x200c1[_0x1bd68b(0x178)]={},_0x200c1[_0x1bd68b(0x186)],_0x200c1[_0x1bd68b(0x170)],_0x200c1[_0x1bd68b(0x167)],_0x200c1[_0x1bd68b(0x1b3)],_0x200c1[_0x1bd68b(0x19e)]));}(this,function(_0x4773bf,_0x3ad14c,_0x44f04f,_0x327f9f,_0x33d629,_0x530390){const _0x1954c4=_0x3077;Object[_0x1954c4(0x171)](_0x4773bf,Symbol['toStringTag'],{'value':_0x1954c4(0x1ad)});var _0x405301=(_0x1e3517,_0x3f05dd)=>()=>(_0x3f05dd||_0x1e3517((_0x3f05dd={'exports':{}})[_0x1954c4(0x175)],_0x3f05dd),_0x3f05dd[_0x1954c4(0x175)]);let _0xc0b994=_0x1954c4(0x18e);Symbol(_0xc0b994);let _0x13b522={};var _0x157ab2=_0x1954c4(0x1a2),_0x59e422=_0x1954c4(0x19c),_0xd8a412=_0x405301((_0x4ff0e9,_0x4b71ab)=>{_0x4b71ab['exports']=function(){const _0x3c010b=_0x3077;throw Error(_0x3c010b(0x17a));};})();function _0x2d9674(_0x1a34de,_0x6974e8){return function(_0x545a92,_0x23d1c7){_0x6974e8(_0x545a92,_0x23d1c7,_0x1a34de);};}function _0x1d5965(_0x12e056,_0x487422,_0x39ea06,_0x2886ea){const _0x3e6ae8=_0x1954c4;var _0x3a0ac8=arguments[_0x3e6ae8(0x181)],_0x58129e=_0x3a0ac8<0x3?_0x487422:_0x2886ea===null?_0x2886ea=Object['getOwnPropertyDescriptor'](_0x487422,_0x39ea06):_0x2886ea,_0x4026fe;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x58129e=Reflect[_0x3e6ae8(0x169)](_0x12e056,_0x487422,_0x39ea06,_0x2886ea);else{for(var _0x5cec26=_0x12e056[_0x3e6ae8(0x181)]-0x1;_0x5cec26>=0x0;_0x5cec26--)(_0x4026fe=_0x12e056[_0x5cec26])&&(_0x58129e=(_0x3a0ac8<0x3?_0x4026fe(_0x58129e):_0x3a0ac8>0x3?_0x4026fe(_0x487422,_0x39ea06,_0x58129e):_0x4026fe(_0x487422,_0x39ea06))||_0x58129e);}return _0x3a0ac8>0x3&&_0x58129e&&Object['defineProperty'](_0x487422,_0x39ea06,_0x58129e),_0x58129e;}let _0x2386b4=class extends _0x44f04f[_0x1954c4(0x187)]{constructor(_0x2441ce){super(),this['_configService']=_0x2441ce;}[_0x1954c4(0x17c)](_0x5155ad){const _0x1d6b75=_0x1954c4;var _0x1eeff1;let _0x532a78=((_0x1eeff1=this[_0x1d6b75(0x1b2)][_0x1d6b75(0x17b)](_0x3ad14c['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1eeff1[_0x1d6b75(0x174)])||{};try{let _0x2c7494=new _0xd8a412[(_0x1d6b75(0x1ae))](_0x5155ad,{'headers':{..._0x532a78}}),_0x284cb3=new _0x44f04f[(_0x1d6b75(0x183))]();return{'URL':_0x5155ad,'close':(_0x34d1f4,_0x40bd52)=>{const _0x1fbc3b=_0x1d6b75;_0x2c7494[_0x1fbc3b(0x1ab)](_0x34d1f4,_0x40bd52),_0x284cb3[_0x1fbc3b(0x1a3)]();},'send':_0x472c10=>{const _0x230037=_0x1d6b75;_0x2c7494[_0x230037(0x193)](_0x472c10);},'open$':new _0x33d629['Observable'](_0x4adab5=>{const _0x4f1500=_0x1d6b75;let _0x4fb718=_0x56dc50=>_0x4adab5[_0x4f1500(0x16f)](_0x56dc50);_0x2c7494[_0x4f1500(0x188)]('open',_0x4fb718),_0x284cb3[_0x4f1500(0x1a1)]((0x0,_0x44f04f[_0x4f1500(0x1a0)])(()=>_0x2c7494['removeEventListener']('open',_0x4fb718)));})[_0x1d6b75(0x17d)]((0x0,_0x33d629[_0x1d6b75(0x19d)])()),'close$':new _0x33d629[(_0x1d6b75(0x190))](_0x51367e=>{const _0x3e3df0=_0x1d6b75;let _0x284bd7=_0x12e220=>_0x51367e['next'](_0x12e220);_0x2c7494[_0x3e3df0(0x188)](_0x3e3df0(0x1ab),_0x284bd7),_0x284cb3['add']((0x0,_0x44f04f[_0x3e3df0(0x1a0)])(()=>_0x2c7494[_0x3e3df0(0x1af)]('close',_0x284bd7)));})[_0x1d6b75(0x17d)]((0x0,_0x33d629[_0x1d6b75(0x19d)])()),'error$':new _0x33d629[(_0x1d6b75(0x190))](_0x18d1c1=>{const _0x45ddf0=_0x1d6b75;let _0x3c10d5=_0x1cc463=>_0x18d1c1['next'](_0x1cc463);_0x2c7494[_0x45ddf0(0x188)]('error',_0x3c10d5),_0x284cb3[_0x45ddf0(0x1a1)]((0x0,_0x44f04f['toDisposable'])(()=>_0x2c7494[_0x45ddf0(0x1af)](_0x45ddf0(0x16a),_0x3c10d5)));})[_0x1d6b75(0x17d)]((0x0,_0x33d629[_0x1d6b75(0x19d)])()),'message$':new _0x33d629[(_0x1d6b75(0x190))](_0x1d3044=>{const _0x2b690c=_0x1d6b75;let _0x9931d8=_0x5b225f=>_0x1d3044[_0x2b690c(0x16f)](_0x5b225f);_0x2c7494[_0x2b690c(0x188)](_0x2b690c(0x196),_0x9931d8),_0x284cb3['add']((0x0,_0x44f04f[_0x2b690c(0x1a0)])(()=>_0x2c7494['removeEventListener'](_0x2b690c(0x196),_0x9931d8)));})[_0x1d6b75(0x17d)]((0x0,_0x33d629[_0x1d6b75(0x19d)])())};}catch(_0x2865ab){return console['error'](_0x2865ab),null;}}};_0x2386b4=_0x1d5965([_0x2d9674(0x0,_0x44f04f[_0x1954c4(0x1b1)])],_0x2386b4);function _0x3921df(_0x100f27){'@babel/helpers - typeof';const _0x1d8288=_0x1954c4;return _0x3921df=typeof Symbol==_0x1d8288(0x195)&&typeof Symbol[_0x1d8288(0x18c)]=='symbol'?function(_0x1b7d68){return typeof _0x1b7d68;}:function(_0x410781){const _0x5a71a3=_0x1d8288;return _0x410781&&typeof Symbol==_0x5a71a3(0x195)&&_0x410781[_0x5a71a3(0x179)]===Symbol&&_0x410781!==Symbol[_0x5a71a3(0x1a7)]?'symbol':typeof _0x410781;},_0x3921df(_0x100f27);}function _0x57a234(_0x13f68c,_0x17909f){const _0x3e34d6=_0x1954c4;if(_0x3921df(_0x13f68c)!=_0x3e34d6(0x194)||!_0x13f68c)return _0x13f68c;var _0xcfed16=_0x13f68c[Symbol[_0x3e34d6(0x18b)]];if(_0xcfed16!==void 0x0){var _0xb3456d=_0xcfed16[_0x3e34d6(0x18f)](_0x13f68c,_0x17909f||'default');if(_0x3921df(_0xb3456d)!=_0x3e34d6(0x194))return _0xb3456d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x17909f===_0x3e34d6(0x197)?String:Number)(_0x13f68c);}function _0x540ad0(_0x354d3f){const _0x5cce27=_0x1954c4;var _0x2667b9=_0x57a234(_0x354d3f,_0x5cce27(0x197));return _0x3921df(_0x2667b9)=='symbol'?_0x2667b9:_0x2667b9+'';}function _0x286827(_0x3c9e25,_0x15ed36,_0x2c4066){const _0x7524fe=_0x1954c4;return(_0x15ed36=_0x540ad0(_0x15ed36))in _0x3c9e25?Object[_0x7524fe(0x171)](_0x3c9e25,_0x15ed36,{'value':_0x2c4066,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c9e25[_0x15ed36]=_0x2c4066,_0x3c9e25;}let _0x5c4ac2=class extends _0x44f04f[_0x1954c4(0x1ac)]{constructor(_0x564756=_0x13b522,_0x308cf9,_0x3d9f7b){const _0x1b395d=_0x1954c4;super(),this['_configService']=_0x308cf9,this[_0x1b395d(0x177)]=_0x3d9f7b,this[_0x1b395d(0x1b2)][_0x1b395d(0x1b6)](_0xc0b994,_0x564756);}[_0x1954c4(0x173)](){const _0x1403ad=_0x1954c4;this[_0x1403ad(0x198)]();}[_0x1954c4(0x198)](){const _0xd3bca=_0x1954c4;(0x0,_0x44f04f[_0xd3bca(0x1b5)])(this[_0xd3bca(0x177)],[[_0x327f9f[_0xd3bca(0x1b0)],{'useClass':_0x2386b4}]]);}};_0x286827(_0x5c4ac2,_0x1954c4(0x1a5),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x286827(_0x5c4ac2,_0x1954c4(0x18a),_0x157ab2),_0x286827(_0x5c4ac2,_0x1954c4(0x17f),_0x59e422),_0x5c4ac2=_0x1d5965([(0x0,_0x44f04f[_0x1954c4(0x192)])(_0x3ad14c[_0x1954c4(0x1a8)]),_0x2d9674(0x1,_0x44f04f[_0x1954c4(0x1b1)]),_0x2d9674(0x2,(0x0,_0x44f04f['Inject'])(_0x44f04f[_0x1954c4(0x16d)]))],_0x5c4ac2);let _0x45d57c=class extends _0x3ad14c[_0x1954c4(0x1a9)]{constructor(_0x208f33,_0x1b0d3b,_0x5429b8,_0x4e7032,_0x324cda){const _0x2cf032=_0x1954c4;super(_0x208f33,_0x1b0d3b,_0x5429b8,_0x4e7032,_0x324cda);let _0x497906=this[_0x2cf032(0x1b2)][_0x2cf032(0x17b)](_0x3ad14c['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x2cf032(0x172)][_0x2cf032(0x1a6)]({'interceptor':(_0x10409a,_0x3aeacb)=>{const _0x3b2951=_0x2cf032;let _0x13953a=_0x10409a[_0x3b2951(0x19b)];if(_0x497906!=null&&_0x497906[_0x3b2951(0x174)]){for(let _0x260e48 in _0x497906['customHeaders'])_0x13953a['set'](_0x260e48,_0x497906['customHeaders'][_0x260e48]);}return _0x3aeacb(_0x10409a);}});}async['createSocket'](_0x236544){const _0x330be3=_0x1954c4;return this[_0x330be3(0x18d)](_0x236544);}};_0x45d57c=_0x1d5965([_0x2d9674(0x0,(0x0,_0x44f04f[_0x1954c4(0x176)])(_0x44f04f[_0x1954c4(0x16d)])),_0x2d9674(0x1,(0x0,_0x44f04f[_0x1954c4(0x176)])(_0x327f9f[_0x1954c4(0x166)])),_0x2d9674(0x2,_0x44f04f[_0x1954c4(0x1b1)]),_0x2d9674(0x3,_0x44f04f[_0x1954c4(0x184)]),_0x2d9674(0x4,_0x530390[_0x1954c4(0x16e)])],_0x45d57c),_0x4773bf[_0x1954c4(0x19f)]=_0xc0b994,Object[_0x1954c4(0x171)](_0x4773bf,_0x1954c4(0x17e),{'enumerable':!0x0,'get':function(){return _0x45d57c;}}),Object[_0x1954c4(0x171)](_0x4773bf,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x5c4ac2;}});}));function _0x3077(_0x50605f,_0x4d8534){_0x50605f=_0x50605f-0x166;const _0x46f60f=_0x46f6();let _0x307703=_0x46f60f[_0x50605f];return _0x307703;}function _0x46f6(){const _0x18bed6=['getConfig','createSocket','pipe','NodeCollaborationSocketService','version','@univerjs/network','length','75KOnpRw','DisposableCollection','ILogService','83724ewNKQh','UniverProCollaborationClient','Disposable','addEventListener','93XAMfcY','packageName','toPrimitive','iterator','_doCreateSocket','collaboration-client-node.config','call','Observable','227136oGOACa','DependentOn','send','object','function','message','string','_registerDependencies','4576176FpYcto','2037465dNMwqQ','headers','0.21.0','share','UniverProCollaboration','COLLABORATION_CLIENT_NODE_CONFIG_KEY','toDisposable','add','@univerjs-pro/collaboration-client-node','dispose','9438730ifvgJh','pluginName','registerHTTPInterceptor','prototype','UniverCollaborationClientPlugin','CollaborationSocketService','@univerjs-pro/collaboration','close','Plugin','Module','WebSocket','removeEventListener','ISocketService','IConfigService','_configService','rxjs','231524cqtJgk','registerDependencies','setConfig','112sgHatw','HTTPService','UniverNetwork','@univerjs-pro/collaboration-client','decorate','error','8786imMUAZ','@univerjs/core','Injector','ISnapshotServerService','next','UniverCore','defineProperty','_httpService','onStarting','customHeaders','exports','Inject','_injector','UniverProCollaborationClientNode','constructor','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object'];_0x46f6=function(){return _0x18bed6;};return _0x46f6();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"ws": "8.
|
|
49
|
-
"@univerjs-pro/collaboration": "0.
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs/core": "0.
|
|
52
|
-
"@univerjs/network": "0.
|
|
48
|
+
"ws": "8.20.0",
|
|
49
|
+
"@univerjs-pro/collaboration-client": "0.21.0",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.21.0",
|
|
51
|
+
"@univerjs/core": "0.21.0",
|
|
52
|
+
"@univerjs/network": "0.21.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/ws": "8.18.1",
|
|
56
56
|
"rxjs": "7.8.2",
|
|
57
|
-
"typescript": "^6.0.
|
|
58
|
-
"vitest": "^4.1.
|
|
59
|
-
"@univerjs-infra/shared": "0.
|
|
57
|
+
"typescript": "^6.0.3",
|
|
58
|
+
"vitest": "^4.1.4",
|
|
59
|
+
"@univerjs-infra/shared": "0.21.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"test": "vitest run",
|