@univerjs-pro/collaboration-client-node 0.21.0 → 0.21.1-insiders.20260429-a0b1161
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 +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;}});
|
|
1
|
+
const _0x132109=_0x3226;(function(_0x39bb6b,_0x38b732){const _0x5ea69c=_0x3226,_0x2fddb6=_0x39bb6b();while(!![]){try{const _0x24f6d9=parseInt(_0x5ea69c(0x115))/0x1*(-parseInt(_0x5ea69c(0x11d))/0x2)+-parseInt(_0x5ea69c(0xef))/0x3+-parseInt(_0x5ea69c(0x10d))/0x4+-parseInt(_0x5ea69c(0xf7))/0x5+parseInt(_0x5ea69c(0x110))/0x6*(-parseInt(_0x5ea69c(0x126))/0x7)+-parseInt(_0x5ea69c(0x108))/0x8*(parseInt(_0x5ea69c(0xf8))/0x9)+parseInt(_0x5ea69c(0x125))/0xa*(parseInt(_0x5ea69c(0xfd))/0xb);if(_0x24f6d9===_0x38b732)break;else _0x2fddb6['push'](_0x2fddb6['shift']());}catch(_0x55e3dc){_0x2fddb6['push'](_0x2fddb6['shift']());}}}(_0x7e6a,0x3e0f5),Object[_0x132109(0x122)](exports,Symbol[_0x132109(0x12b)],{'value':_0x132109(0xf0)}));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');const COLLABORATION_CLIENT_NODE_CONFIG_KEY='collaboration-client-node.config',configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x132109(0x105),version='0.21.1-insiders.20260429-a0b1161';function __decorateParam(_0x3d49c5,_0x3b0f0c){return function(_0x1d10cf,_0x476aa1){_0x3b0f0c(_0x1d10cf,_0x476aa1,_0x3d49c5);};}function _0x7e6a(){const _0x18d070=['Plugin','customHeaders','ISnapshotServerService','Inject','set','open','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','616sXDcfa','IConfigService','Disposable','error','Observable','defineProperty','default','registerDependencies','17062200oVgVNm','266HWVwIe','version','onStarting','_injector','close','toStringTag','string','symbol','UniverCollaborationClientPlugin','addEventListener','removeEventListener','_configService','542424dkeqvo','Module','DependentOn','COLLABORATION_CLIENT_NODE_CONFIG_KEY','registerHTTPInterceptor','share','function','Injector','2300630twQIgE','9NcVHXe','setConfig','pipe','getConfig','headers','11SCbpem','iterator','ILogService','decorate','toDisposable','next','createSocket','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client-node','length','add','1950752MfFawe','UniverCollaborationClientNodePlugin','WebSocket','DisposableCollection','_httpService','592820CVRQtT','dispose','_registerDependencies','8244fwgbbd','call','HTTPService','constructor','object','1191zYZRhM'];_0x7e6a=function(){return _0x18d070;};return _0x7e6a();}function __decorate(_0x4fa1ad,_0x2d4447,_0x269fe4,_0x2c25b2){const _0x4d4cf0=_0x132109;var _0x281392=arguments[_0x4d4cf0(0x106)],_0x2af712=_0x281392<0x3?_0x2d4447:_0x2c25b2===null?_0x2c25b2=Object['getOwnPropertyDescriptor'](_0x2d4447,_0x269fe4):_0x2c25b2,_0x1f0c6e;if(typeof Reflect==='object'&&typeof Reflect[_0x4d4cf0(0x100)]===_0x4d4cf0(0xf5))_0x2af712=Reflect[_0x4d4cf0(0x100)](_0x4fa1ad,_0x2d4447,_0x269fe4,_0x2c25b2);else{for(var _0x17a130=_0x4fa1ad[_0x4d4cf0(0x106)]-0x1;_0x17a130>=0x0;_0x17a130--)if(_0x1f0c6e=_0x4fa1ad[_0x17a130])_0x2af712=(_0x281392<0x3?_0x1f0c6e(_0x2af712):_0x281392>0x3?_0x1f0c6e(_0x2d4447,_0x269fe4,_0x2af712):_0x1f0c6e(_0x2d4447,_0x269fe4))||_0x2af712;}return _0x281392>0x3&&_0x2af712&&Object[_0x4d4cf0(0x122)](_0x2d4447,_0x269fe4,_0x2af712),_0x2af712;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x132109(0x11f)]{constructor(_0x42bd68){super(),this['_configService']=_0x42bd68;}[_0x132109(0x103)](_0x5eb38e){const _0x5c2bdf=_0x132109;var _0x42b8b6;const _0x3e42a6=((_0x42b8b6=this[_0x5c2bdf(0xee)][_0x5c2bdf(0xfb)](_univerjs_pro_collaboration_client['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))===null||_0x42b8b6===void 0x0?void 0x0:_0x42b8b6[_0x5c2bdf(0x117)])||{};try{const _0x4db208=new ws[(_0x5c2bdf(0x10a))](_0x5eb38e,{'headers':{..._0x3e42a6}}),_0x247713=new _univerjs_core[(_0x5c2bdf(0x10b))]();return{'URL':_0x5eb38e,'close':(_0xcedaf2,_0x18279e)=>{const _0x20b410=_0x5c2bdf;_0x4db208[_0x20b410(0x12a)](_0xcedaf2,_0x18279e),_0x247713[_0x20b410(0x10e)]();},'send':_0x58b8fa=>{_0x4db208['send'](_0x58b8fa);},'open$':new rxjs[(_0x5c2bdf(0x121))](_0x2fe908=>{const _0x355955=_0x5c2bdf,_0x33cfc1=_0x27f51a=>_0x2fe908[_0x355955(0x102)](_0x27f51a);_0x4db208['addEventListener'](_0x355955(0x11b),_0x33cfc1),_0x247713['add']((0x0,_univerjs_core[_0x355955(0x101)])(()=>_0x4db208['removeEventListener'](_0x355955(0x11b),_0x33cfc1)));})[_0x5c2bdf(0xfa)]((0x0,rxjs[_0x5c2bdf(0xf4)])()),'close$':new rxjs[(_0x5c2bdf(0x121))](_0x4e7d92=>{const _0x5df308=_0x5c2bdf,_0x4c6b72=_0x2a7dbe=>_0x4e7d92['next'](_0x2a7dbe);_0x4db208[_0x5df308(0xec)](_0x5df308(0x12a),_0x4c6b72),_0x247713['add']((0x0,_univerjs_core['toDisposable'])(()=>_0x4db208[_0x5df308(0xed)]('close',_0x4c6b72)));})[_0x5c2bdf(0xfa)]((0x0,rxjs[_0x5c2bdf(0xf4)])()),'error$':new rxjs[(_0x5c2bdf(0x121))](_0x5045d0=>{const _0x489039=_0x5c2bdf,_0x4fb04f=_0x5e1585=>_0x5045d0[_0x489039(0x102)](_0x5e1585);_0x4db208[_0x489039(0xec)](_0x489039(0x120),_0x4fb04f),_0x247713[_0x489039(0x107)]((0x0,_univerjs_core[_0x489039(0x101)])(()=>_0x4db208[_0x489039(0xed)](_0x489039(0x120),_0x4fb04f)));})[_0x5c2bdf(0xfa)]((0x0,rxjs[_0x5c2bdf(0xf4)])()),'message$':new rxjs[(_0x5c2bdf(0x121))](_0x338fc1=>{const _0x491d0a=_0x5c2bdf,_0x49a625=_0x1aa95e=>_0x338fc1['next'](_0x1aa95e);_0x4db208[_0x491d0a(0xec)]('message',_0x49a625),_0x247713[_0x491d0a(0x107)]((0x0,_univerjs_core[_0x491d0a(0x101)])(()=>_0x4db208[_0x491d0a(0xed)]('message',_0x49a625)));})[_0x5c2bdf(0xfa)]((0x0,rxjs[_0x5c2bdf(0xf4)])())};}catch(_0x232466){return console['error'](_0x232466),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core['IConfigService'])],NodeWebSocketService);function _typeof(_0x4bfdcb){'@babel/helpers - typeof';const _0x9dad0f=_0x132109;return _typeof=_0x9dad0f(0xf5)==typeof Symbol&&'symbol'==typeof Symbol[_0x9dad0f(0xfe)]?function(_0x155416){return typeof _0x155416;}:function(_0x19fd63){const _0x364be8=_0x9dad0f;return _0x19fd63&&_0x364be8(0xf5)==typeof Symbol&&_0x19fd63[_0x364be8(0x113)]===Symbol&&_0x19fd63!==Symbol['prototype']?_0x364be8(0x12d):typeof _0x19fd63;},_typeof(_0x4bfdcb);}function _0x3226(_0xb3d953,_0x478147){_0xb3d953=_0xb3d953-0xec;const _0x7e6a75=_0x7e6a();let _0x322689=_0x7e6a75[_0xb3d953];return _0x322689;}function toPrimitive(_0x838657,_0x25efe4){const _0x49a295=_0x132109;if(_0x49a295(0x114)!=_typeof(_0x838657)||!_0x838657)return _0x838657;var _0x4705d3=_0x838657[Symbol['toPrimitive']];if(void 0x0!==_0x4705d3){var _0x1d4bd0=_0x4705d3[_0x49a295(0x111)](_0x838657,_0x25efe4||_0x49a295(0x123));if(_0x49a295(0x114)!=_typeof(_0x1d4bd0))return _0x1d4bd0;throw new TypeError(_0x49a295(0x104));}return('string'===_0x25efe4?String:Number)(_0x838657);}function toPropertyKey(_0xcd7873){const _0x557a98=_0x132109;var _0x44b5a0=toPrimitive(_0xcd7873,_0x557a98(0x12c));return'symbol'==_typeof(_0x44b5a0)?_0x44b5a0:_0x44b5a0+'';}function _defineProperty(_0x26d02b,_0x5aa6b1,_0xc17406){const _0x5517fa=_0x132109;return(_0x5aa6b1=toPropertyKey(_0x5aa6b1))in _0x26d02b?Object[_0x5517fa(0x122)](_0x26d02b,_0x5aa6b1,{'value':_0xc17406,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x26d02b[_0x5aa6b1]=_0xc17406,_0x26d02b;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0x132109(0x116)]{constructor(_0x3968f6=defaultPluginConfig,_0x5119a8,_0x308da9){const _0x29eb85=_0x132109;super(),this[_0x29eb85(0xee)]=_0x5119a8,this[_0x29eb85(0x129)]=_0x308da9,this[_0x29eb85(0xee)][_0x29eb85(0xf9)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x3968f6);}[_0x132109(0x128)](){const _0x2b73a4=_0x132109;this[_0x2b73a4(0x10f)]();}[_0x132109(0x10f)](){const _0x3e315c=_0x132109;(0x0,_univerjs_core[_0x3e315c(0x124)])(this[_0x3e315c(0x129)],[[_univerjs_network['ISocketService'],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x132109(0x127),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x132109(0xf1)])(_univerjs_pro_collaboration_client[_0x132109(0x12e)]),__decorateParam(0x1,_univerjs_core[_0x132109(0x11e)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x132109(0x119)])(_univerjs_core[_0x132109(0xf6)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client['CollaborationSocketService']{constructor(_0x3ba66d,_0x18390c,_0xd915a2,_0x496789,_0xa4acff){const _0x41fe70=_0x132109;super(_0x3ba66d,_0x18390c,_0xd915a2,_0x496789,_0xa4acff);const _0x2e8bcb=this['_configService'][_0x41fe70(0xfb)](_univerjs_pro_collaboration_client[_0x41fe70(0x11c)]);this[_0x41fe70(0x10c)][_0x41fe70(0xf3)]({'interceptor':(_0x47dfb0,_0x40e2d1)=>{const _0x5c221e=_0x41fe70,_0x1ea8f4=_0x47dfb0[_0x5c221e(0xfc)];if(_0x2e8bcb===null||_0x2e8bcb===void 0x0?void 0x0:_0x2e8bcb['customHeaders']){for(const _0x4159da in _0x2e8bcb[_0x5c221e(0x117)])_0x1ea8f4[_0x5c221e(0x11a)](_0x4159da,_0x2e8bcb[_0x5c221e(0x117)][_0x4159da]);}return _0x40e2d1(_0x47dfb0);}});}async[_0x132109(0x103)](_0x59f9c1){return this['_doCreateSocket'](_0x59f9c1);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x132109(0x119)])(_univerjs_core[_0x132109(0xf6)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x132109(0x119)])(_univerjs_network[_0x132109(0x112)])),__decorateParam(0x2,_univerjs_core[_0x132109(0x11e)]),__decorateParam(0x3,_univerjs_core[_0x132109(0xff)]),__decorateParam(0x4,_univerjs_pro_collaboration[_0x132109(0x118)])],NodeCollaborationSocketService),exports[_0x132109(0xf2)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object[_0x132109(0x122)](exports,'NodeCollaborationSocketService',{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object[_0x132109(0x122)](exports,_0x132109(0x109),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2a0cde=_0x2b6c;(function(_0xb88ee1,_0x11897b){const _0xb5afc2=_0x2b6c,_0x214948=_0xb88ee1();while(!![]){try{const _0x114fbf=parseInt(_0xb5afc2(0xaf))/0x1+parseInt(_0xb5afc2(0x9b))/0x2*(parseInt(_0xb5afc2(0x94))/0x3)+-parseInt(_0xb5afc2(0xb0))/0x4*(parseInt(_0xb5afc2(0x8f))/0x5)+-parseInt(_0xb5afc2(0x8c))/0x6*(-parseInt(_0xb5afc2(0x9a))/0x7)+-parseInt(_0xb5afc2(0x9c))/0x8+parseInt(_0xb5afc2(0x90))/0x9*(parseInt(_0xb5afc2(0x98))/0xa)+-parseInt(_0xb5afc2(0x86))/0xb;if(_0x114fbf===_0x11897b)break;else _0x214948['push'](_0x214948['shift']());}catch(_0x31af70){_0x214948['push'](_0x214948['shift']());}}}(_0x4666,0xcf8dd));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';const COLLABORATION_CLIENT_NODE_CONFIG_KEY='collaboration-client-node.config',configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/collaboration-client-node',version='0.21.1-insiders.20260429-a0b1161';function __decorateParam(_0x480c4e,_0x201775){return function(_0x451405,_0x59e203){_0x201775(_0x451405,_0x59e203,_0x480c4e);};}function __decorate(_0x3f9635,_0x4ab53a,_0x534ca1,_0x53788f){const _0x2fb72b=_0x2b6c;var _0x5031df=arguments[_0x2fb72b(0xb4)],_0x4af053=_0x5031df<0x3?_0x4ab53a:_0x53788f===null?_0x53788f=Object[_0x2fb72b(0x97)](_0x4ab53a,_0x534ca1):_0x53788f,_0x5549e9;if(typeof Reflect==='object'&&typeof Reflect[_0x2fb72b(0x9d)]===_0x2fb72b(0x95))_0x4af053=Reflect[_0x2fb72b(0x9d)](_0x3f9635,_0x4ab53a,_0x534ca1,_0x53788f);else{for(var _0x5686ff=_0x3f9635[_0x2fb72b(0xb4)]-0x1;_0x5686ff>=0x0;_0x5686ff--)if(_0x5549e9=_0x3f9635[_0x5686ff])_0x4af053=(_0x5031df<0x3?_0x5549e9(_0x4af053):_0x5031df>0x3?_0x5549e9(_0x4ab53a,_0x534ca1,_0x4af053):_0x5549e9(_0x4ab53a,_0x534ca1))||_0x4af053;}return _0x5031df>0x3&&_0x4af053&&Object['defineProperty'](_0x4ab53a,_0x534ca1,_0x4af053),_0x4af053;}function _0x2b6c(_0x495126,_0x5f41d2){_0x495126=_0x495126-0x85;const _0x4666fa=_0x4666();let _0x2b6c65=_0x4666fa[_0x495126];return _0x2b6c65;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x1d463f){const _0x5e94b8=_0x2b6c;super(),this[_0x5e94b8(0x87)]=_0x1d463f;}['createSocket'](_0x476a2c){const _0x40830a=_0x2b6c;var _0x2d45c4;const _0x398d61=((_0x2d45c4=this[_0x40830a(0x87)][_0x40830a(0x9f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x2d45c4===void 0x0?void 0x0:_0x2d45c4[_0x40830a(0xac)])||{};try{const _0x172840=new WebSocket(_0x476a2c,{'headers':{..._0x398d61}}),_0x17a9b2=new DisposableCollection();return{'URL':_0x476a2c,'close':(_0x2149bb,_0xcf82ae)=>{const _0x46dbf9=_0x40830a;_0x172840[_0x46dbf9(0x8d)](_0x2149bb,_0xcf82ae),_0x17a9b2[_0x46dbf9(0xa5)]();},'send':_0x1b81b2=>{const _0x22e17c=_0x40830a;_0x172840[_0x22e17c(0x99)](_0x1b81b2);},'open$':new Observable(_0x586e39=>{const _0x32f94e=_0x40830a,_0x282fbc=_0x8adc2a=>_0x586e39[_0x32f94e(0xab)](_0x8adc2a);_0x172840[_0x32f94e(0xa0)](_0x32f94e(0xb5),_0x282fbc),_0x17a9b2[_0x32f94e(0x91)](toDisposable(()=>_0x172840['removeEventListener'](_0x32f94e(0xb5),_0x282fbc)));})['pipe'](share()),'close$':new Observable(_0x40ea6f=>{const _0x38243f=_0x40830a,_0x40aead=_0x2b3109=>_0x40ea6f['next'](_0x2b3109);_0x172840['addEventListener'](_0x38243f(0x8d),_0x40aead),_0x17a9b2[_0x38243f(0x91)](toDisposable(()=>_0x172840[_0x38243f(0xb2)]('close',_0x40aead)));})[_0x40830a(0xb3)](share()),'error$':new Observable(_0x509681=>{const _0x2cb5e7=_0x40830a,_0x4b70c1=_0x3208d0=>_0x509681['next'](_0x3208d0);_0x172840[_0x2cb5e7(0xa0)]('error',_0x4b70c1),_0x17a9b2[_0x2cb5e7(0x91)](toDisposable(()=>_0x172840['removeEventListener'](_0x2cb5e7(0x92),_0x4b70c1)));})[_0x40830a(0xb3)](share()),'message$':new Observable(_0x5f3198=>{const _0x3bd6c4=_0x40830a,_0x26b7b=_0x4f25e3=>_0x5f3198[_0x3bd6c4(0xab)](_0x4f25e3);_0x172840[_0x3bd6c4(0xa0)]('message',_0x26b7b),_0x17a9b2[_0x3bd6c4(0x91)](toDisposable(()=>_0x172840[_0x3bd6c4(0xb2)](_0x3bd6c4(0x8a),_0x26b7b)));})['pipe'](share())};}catch(_0x5ef0bf){return console[_0x40830a(0x92)](_0x5ef0bf),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x396b17){'@babel/helpers - typeof';const _0x3f671a=_0x2b6c;return _typeof=_0x3f671a(0x95)==typeof Symbol&&_0x3f671a(0x88)==typeof Symbol[_0x3f671a(0xa6)]?function(_0x33f5b6){return typeof _0x33f5b6;}:function(_0x332714){const _0x1df541=_0x3f671a;return _0x332714&&'function'==typeof Symbol&&_0x332714[_0x1df541(0xa1)]===Symbol&&_0x332714!==Symbol[_0x1df541(0x85)]?_0x1df541(0x88):typeof _0x332714;},_typeof(_0x396b17);}function toPrimitive(_0x58384b,_0x2b09f5){const _0x2c9f34=_0x2b6c;if(_0x2c9f34(0xb1)!=_typeof(_0x58384b)||!_0x58384b)return _0x58384b;var _0x217fba=_0x58384b[Symbol[_0x2c9f34(0xa7)]];if(void 0x0!==_0x217fba){var _0x5618d0=_0x217fba[_0x2c9f34(0x8e)](_0x58384b,_0x2b09f5||'default');if(_0x2c9f34(0xb1)!=_typeof(_0x5618d0))return _0x5618d0;throw new TypeError(_0x2c9f34(0x96));}return(_0x2c9f34(0xa4)===_0x2b09f5?String:Number)(_0x58384b);}function toPropertyKey(_0x934cd8){const _0x42ee17=_0x2b6c;var _0x165316=toPrimitive(_0x934cd8,_0x42ee17(0xa4));return _0x42ee17(0x88)==_typeof(_0x165316)?_0x165316:_0x165316+'';}function _defineProperty(_0x39b320,_0x5da520,_0x5a1d28){return(_0x5da520=toPropertyKey(_0x5da520))in _0x39b320?Object['defineProperty'](_0x39b320,_0x5da520,{'value':_0x5a1d28,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39b320[_0x5da520]=_0x5a1d28,_0x39b320;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x592074=defaultPluginConfig,_0x3f55e6,_0x4657b7){const _0x5a5409=_0x2b6c;super(),this[_0x5a5409(0x87)]=_0x3f55e6,this[_0x5a5409(0xa3)]=_0x4657b7,this[_0x5a5409(0x87)][_0x5a5409(0xad)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x592074);}['onStarting'](){const _0x39f12d=_0x2b6c;this[_0x39f12d(0xaa)]();}[_0x2a0cde(0xaa)](){const _0x5cce75=_0x2a0cde;registerDependencies(this[_0x5cce75(0xa3)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,'pluginName',_0x2a0cde(0xa8)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2a0cde(0xae),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2a0cde(0x89),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x3b87dc,_0x5e5d42,_0x49b4ae,_0x58bbe2,_0x3e1733){const _0x1853dd=_0x2a0cde;super(_0x3b87dc,_0x5e5d42,_0x49b4ae,_0x58bbe2,_0x3e1733);const _0x31f09a=this['_configService'][_0x1853dd(0x9f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this['_httpService'][_0x1853dd(0x93)]({'interceptor':(_0x2ac1a0,_0x5cfdb6)=>{const _0x161c22=_0x1853dd,_0x78bd20=_0x2ac1a0[_0x161c22(0x9e)];if(_0x31f09a===null||_0x31f09a===void 0x0?void 0x0:_0x31f09a[_0x161c22(0xac)]){for(const _0x18a143 in _0x31f09a[_0x161c22(0xac)])_0x78bd20[_0x161c22(0xa9)](_0x18a143,_0x31f09a[_0x161c22(0xac)][_0x18a143]);}return _0x5cfdb6(_0x2ac1a0);}});}async[_0x2a0cde(0x8b)](_0x46502c){const _0x5918b4=_0x2a0cde;return this[_0x5918b4(0xa2)](_0x46502c);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);function _0x4666(){const _0x26c354=['1305330jznODv','close','call','761195bjJEAE','18RKrIHG','add','error','registerHTTPInterceptor','6729JKfHbB','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','2454360xlaQyh','send','21MIvwap','1012XSjVWA','1393384zRBICr','decorate','headers','getConfig','addEventListener','constructor','_doCreateSocket','_injector','string','dispose','iterator','toPrimitive','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','_registerDependencies','next','customHeaders','setConfig','packageName','465164XpcZzw','44BNwaqH','object','removeEventListener','pipe','length','open','prototype','491876aKcHKz','_configService','symbol','version','message','createSocket'];_0x4666=function(){return _0x26c354;};return _0x4666();}export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2a0cde=_0x2b6c;(function(_0xb88ee1,_0x11897b){const _0xb5afc2=_0x2b6c,_0x214948=_0xb88ee1();while(!![]){try{const _0x114fbf=parseInt(_0xb5afc2(0xaf))/0x1+parseInt(_0xb5afc2(0x9b))/0x2*(parseInt(_0xb5afc2(0x94))/0x3)+-parseInt(_0xb5afc2(0xb0))/0x4*(parseInt(_0xb5afc2(0x8f))/0x5)+-parseInt(_0xb5afc2(0x8c))/0x6*(-parseInt(_0xb5afc2(0x9a))/0x7)+-parseInt(_0xb5afc2(0x9c))/0x8+parseInt(_0xb5afc2(0x90))/0x9*(parseInt(_0xb5afc2(0x98))/0xa)+-parseInt(_0xb5afc2(0x86))/0xb;if(_0x114fbf===_0x11897b)break;else _0x214948['push'](_0x214948['shift']());}catch(_0x31af70){_0x214948['push'](_0x214948['shift']());}}}(_0x4666,0xcf8dd));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';const COLLABORATION_CLIENT_NODE_CONFIG_KEY='collaboration-client-node.config',configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/collaboration-client-node',version='0.21.1-insiders.20260429-a0b1161';function __decorateParam(_0x480c4e,_0x201775){return function(_0x451405,_0x59e203){_0x201775(_0x451405,_0x59e203,_0x480c4e);};}function __decorate(_0x3f9635,_0x4ab53a,_0x534ca1,_0x53788f){const _0x2fb72b=_0x2b6c;var _0x5031df=arguments[_0x2fb72b(0xb4)],_0x4af053=_0x5031df<0x3?_0x4ab53a:_0x53788f===null?_0x53788f=Object[_0x2fb72b(0x97)](_0x4ab53a,_0x534ca1):_0x53788f,_0x5549e9;if(typeof Reflect==='object'&&typeof Reflect[_0x2fb72b(0x9d)]===_0x2fb72b(0x95))_0x4af053=Reflect[_0x2fb72b(0x9d)](_0x3f9635,_0x4ab53a,_0x534ca1,_0x53788f);else{for(var _0x5686ff=_0x3f9635[_0x2fb72b(0xb4)]-0x1;_0x5686ff>=0x0;_0x5686ff--)if(_0x5549e9=_0x3f9635[_0x5686ff])_0x4af053=(_0x5031df<0x3?_0x5549e9(_0x4af053):_0x5031df>0x3?_0x5549e9(_0x4ab53a,_0x534ca1,_0x4af053):_0x5549e9(_0x4ab53a,_0x534ca1))||_0x4af053;}return _0x5031df>0x3&&_0x4af053&&Object['defineProperty'](_0x4ab53a,_0x534ca1,_0x4af053),_0x4af053;}function _0x2b6c(_0x495126,_0x5f41d2){_0x495126=_0x495126-0x85;const _0x4666fa=_0x4666();let _0x2b6c65=_0x4666fa[_0x495126];return _0x2b6c65;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x1d463f){const _0x5e94b8=_0x2b6c;super(),this[_0x5e94b8(0x87)]=_0x1d463f;}['createSocket'](_0x476a2c){const _0x40830a=_0x2b6c;var _0x2d45c4;const _0x398d61=((_0x2d45c4=this[_0x40830a(0x87)][_0x40830a(0x9f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x2d45c4===void 0x0?void 0x0:_0x2d45c4[_0x40830a(0xac)])||{};try{const _0x172840=new WebSocket(_0x476a2c,{'headers':{..._0x398d61}}),_0x17a9b2=new DisposableCollection();return{'URL':_0x476a2c,'close':(_0x2149bb,_0xcf82ae)=>{const _0x46dbf9=_0x40830a;_0x172840[_0x46dbf9(0x8d)](_0x2149bb,_0xcf82ae),_0x17a9b2[_0x46dbf9(0xa5)]();},'send':_0x1b81b2=>{const _0x22e17c=_0x40830a;_0x172840[_0x22e17c(0x99)](_0x1b81b2);},'open$':new Observable(_0x586e39=>{const _0x32f94e=_0x40830a,_0x282fbc=_0x8adc2a=>_0x586e39[_0x32f94e(0xab)](_0x8adc2a);_0x172840[_0x32f94e(0xa0)](_0x32f94e(0xb5),_0x282fbc),_0x17a9b2[_0x32f94e(0x91)](toDisposable(()=>_0x172840['removeEventListener'](_0x32f94e(0xb5),_0x282fbc)));})['pipe'](share()),'close$':new Observable(_0x40ea6f=>{const _0x38243f=_0x40830a,_0x40aead=_0x2b3109=>_0x40ea6f['next'](_0x2b3109);_0x172840['addEventListener'](_0x38243f(0x8d),_0x40aead),_0x17a9b2[_0x38243f(0x91)](toDisposable(()=>_0x172840[_0x38243f(0xb2)]('close',_0x40aead)));})[_0x40830a(0xb3)](share()),'error$':new Observable(_0x509681=>{const _0x2cb5e7=_0x40830a,_0x4b70c1=_0x3208d0=>_0x509681['next'](_0x3208d0);_0x172840[_0x2cb5e7(0xa0)]('error',_0x4b70c1),_0x17a9b2[_0x2cb5e7(0x91)](toDisposable(()=>_0x172840['removeEventListener'](_0x2cb5e7(0x92),_0x4b70c1)));})[_0x40830a(0xb3)](share()),'message$':new Observable(_0x5f3198=>{const _0x3bd6c4=_0x40830a,_0x26b7b=_0x4f25e3=>_0x5f3198[_0x3bd6c4(0xab)](_0x4f25e3);_0x172840[_0x3bd6c4(0xa0)]('message',_0x26b7b),_0x17a9b2[_0x3bd6c4(0x91)](toDisposable(()=>_0x172840[_0x3bd6c4(0xb2)](_0x3bd6c4(0x8a),_0x26b7b)));})['pipe'](share())};}catch(_0x5ef0bf){return console[_0x40830a(0x92)](_0x5ef0bf),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x396b17){'@babel/helpers - typeof';const _0x3f671a=_0x2b6c;return _typeof=_0x3f671a(0x95)==typeof Symbol&&_0x3f671a(0x88)==typeof Symbol[_0x3f671a(0xa6)]?function(_0x33f5b6){return typeof _0x33f5b6;}:function(_0x332714){const _0x1df541=_0x3f671a;return _0x332714&&'function'==typeof Symbol&&_0x332714[_0x1df541(0xa1)]===Symbol&&_0x332714!==Symbol[_0x1df541(0x85)]?_0x1df541(0x88):typeof _0x332714;},_typeof(_0x396b17);}function toPrimitive(_0x58384b,_0x2b09f5){const _0x2c9f34=_0x2b6c;if(_0x2c9f34(0xb1)!=_typeof(_0x58384b)||!_0x58384b)return _0x58384b;var _0x217fba=_0x58384b[Symbol[_0x2c9f34(0xa7)]];if(void 0x0!==_0x217fba){var _0x5618d0=_0x217fba[_0x2c9f34(0x8e)](_0x58384b,_0x2b09f5||'default');if(_0x2c9f34(0xb1)!=_typeof(_0x5618d0))return _0x5618d0;throw new TypeError(_0x2c9f34(0x96));}return(_0x2c9f34(0xa4)===_0x2b09f5?String:Number)(_0x58384b);}function toPropertyKey(_0x934cd8){const _0x42ee17=_0x2b6c;var _0x165316=toPrimitive(_0x934cd8,_0x42ee17(0xa4));return _0x42ee17(0x88)==_typeof(_0x165316)?_0x165316:_0x165316+'';}function _defineProperty(_0x39b320,_0x5da520,_0x5a1d28){return(_0x5da520=toPropertyKey(_0x5da520))in _0x39b320?Object['defineProperty'](_0x39b320,_0x5da520,{'value':_0x5a1d28,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39b320[_0x5da520]=_0x5a1d28,_0x39b320;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x592074=defaultPluginConfig,_0x3f55e6,_0x4657b7){const _0x5a5409=_0x2b6c;super(),this[_0x5a5409(0x87)]=_0x3f55e6,this[_0x5a5409(0xa3)]=_0x4657b7,this[_0x5a5409(0x87)][_0x5a5409(0xad)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x592074);}['onStarting'](){const _0x39f12d=_0x2b6c;this[_0x39f12d(0xaa)]();}[_0x2a0cde(0xaa)](){const _0x5cce75=_0x2a0cde;registerDependencies(this[_0x5cce75(0xa3)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,'pluginName',_0x2a0cde(0xa8)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2a0cde(0xae),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2a0cde(0x89),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x3b87dc,_0x5e5d42,_0x49b4ae,_0x58bbe2,_0x3e1733){const _0x1853dd=_0x2a0cde;super(_0x3b87dc,_0x5e5d42,_0x49b4ae,_0x58bbe2,_0x3e1733);const _0x31f09a=this['_configService'][_0x1853dd(0x9f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this['_httpService'][_0x1853dd(0x93)]({'interceptor':(_0x2ac1a0,_0x5cfdb6)=>{const _0x161c22=_0x1853dd,_0x78bd20=_0x2ac1a0[_0x161c22(0x9e)];if(_0x31f09a===null||_0x31f09a===void 0x0?void 0x0:_0x31f09a[_0x161c22(0xac)]){for(const _0x18a143 in _0x31f09a[_0x161c22(0xac)])_0x78bd20[_0x161c22(0xa9)](_0x18a143,_0x31f09a[_0x161c22(0xac)][_0x18a143]);}return _0x5cfdb6(_0x2ac1a0);}});}async[_0x2a0cde(0x8b)](_0x46502c){const _0x5918b4=_0x2a0cde;return this[_0x5918b4(0xa2)](_0x46502c);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);function _0x4666(){const _0x26c354=['1305330jznODv','close','call','761195bjJEAE','18RKrIHG','add','error','registerHTTPInterceptor','6729JKfHbB','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','2454360xlaQyh','send','21MIvwap','1012XSjVWA','1393384zRBICr','decorate','headers','getConfig','addEventListener','constructor','_doCreateSocket','_injector','string','dispose','iterator','toPrimitive','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','_registerDependencies','next','customHeaders','setConfig','packageName','465164XpcZzw','44BNwaqH','object','removeEventListener','pipe','length','open','prototype','491876aKcHKz','_configService','symbol','version','message','createSocket'];_0x4666=function(){return _0x26c354;};return _0x4666();}export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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();}
|
|
1
|
+
function _0x5733(_0x1d25bd,_0xbf6aa8){_0x1d25bd=_0x1d25bd-0x1b0;const _0x18d871=_0x18d8();let _0x573355=_0x18d871[_0x1d25bd];return _0x573355;}function _0x18d8(){const _0x1419ef=['symbol','7762730dLlDTf','_configService','setConfig','6298028dcjRQg','prototype','send','packageName','open','@univerjs/core','toPrimitive','ISocketService','DependentOn','Observable','removeEventListener','toStringTag','function','Plugin','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','dispose','collaboration-client-node.config','0.21.1-insiders.20260429-a0b1161','UniverCore','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7bcgYIB','18zQOmEO','_registerDependencies','onStarting','UniverNetwork','version','add','@univerjs/network','decorate','defineProperty','8479422FBzQWa','@univerjs-pro/collaboration','Inject','call','CollaborationSocketService','@univerjs-pro/collaboration-client-node','rxjs','309786rwTlnA','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Module','string','length','Injector','share','object','addEventListener','toDisposable','error','UniverCollaborationClientNodePlugin','4094512EmlDfK','headers','UniverProCollaborationClientNode','next','createSocket','311802vhKIrq','message','4648455nBZEUu','getConfig','NodeCollaborationSocketService','getOwnPropertyDescriptor','set','constructor','20AJtYzq','7BHqxWb','_httpService','WebSocket','UniverProCollaboration','exports','@univerjs-pro/collaboration-client','UniverCollaborationClientPlugin','_doCreateSocket','customHeaders','close','pluginName','registerDependencies','pipe'];_0x18d8=function(){return _0x1419ef;};return _0x18d8();}(function(_0x3d56f1,_0x1173b0){const _0x93f09=_0x5733,_0x4f88c1=_0x3d56f1();while(!![]){try{const _0x2a2c06=-parseInt(_0x93f09(0x1e0))/0x1*(parseInt(_0x93f09(0x1f1))/0x2)+parseInt(_0x93f09(0x1b2))/0x3*(parseInt(_0x93f09(0x1ba))/0x4)+parseInt(_0x93f09(0x1b4))/0x5+-parseInt(_0x93f09(0x1ea))/0x6*(-parseInt(_0x93f09(0x1bb))/0x7)+-parseInt(_0x93f09(0x1fd))/0x8*(parseInt(_0x93f09(0x1e1))/0x9)+parseInt(_0x93f09(0x1c9))/0xa+-parseInt(_0x93f09(0x1cc))/0xb;if(_0x2a2c06===_0x1173b0)break;else _0x4f88c1['push'](_0x4f88c1['shift']());}catch(_0x226222){_0x4f88c1['push'](_0x4f88c1['shift']());}}}(_0x18d8,0xe9fec),function(_0x166fcc,_0x14ff4f){const _0x1e4e53=_0x5733;typeof exports==_0x1e4e53(0x1f8)&&typeof module<'u'?_0x14ff4f(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define['amd']?define([_0x1e4e53(0x1bf),_0x1e4e53(0x1c0),_0x1e4e53(0x1d1),_0x1e4e53(0x1e7),_0x1e4e53(0x1f0),_0x1e4e53(0x1eb)],_0x14ff4f):(_0x166fcc=typeof globalThis<'u'?globalThis:_0x166fcc||self,_0x14ff4f(_0x166fcc[_0x1e4e53(0x1ff)]={},_0x166fcc['UniverProCollaborationClient'],_0x166fcc[_0x1e4e53(0x1de)],_0x166fcc[_0x1e4e53(0x1e4)],_0x166fcc[_0x1e4e53(0x1f0)],_0x166fcc[_0x1e4e53(0x1be)]));}(this,function(_0x34e855,_0x3b6efa,_0x3f2933,_0x457599,_0x3fb0a2,_0x39c1f3){const _0x5f3f05=_0x5733;Object[_0x5f3f05(0x1e9)](_0x34e855,Symbol[_0x5f3f05(0x1d7)],{'value':_0x5f3f05(0x1f3)});var _0x579419=(_0x2b31a2,_0x1575b7)=>()=>(_0x1575b7||_0x2b31a2((_0x1575b7={'exports':{}})['exports'],_0x1575b7),_0x1575b7[_0x5f3f05(0x1bf)]);let _0x4de555=_0x5f3f05(0x1dc);Symbol(_0x4de555);let _0x20c27c={};var _0x5928a8=_0x5f3f05(0x1ef),_0x259cc4=_0x5f3f05(0x1dd),_0x3517ad=_0x579419((_0x4a8f3f,_0x1ec41b)=>{const _0x5d4828=_0x5f3f05;_0x1ec41b[_0x5d4828(0x1bf)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x5806b6(_0x2798f7,_0x83de2d){return function(_0x4c0fea,_0x59d1c8){_0x83de2d(_0x4c0fea,_0x59d1c8,_0x2798f7);};}function _0x47e9d0(_0x3c45d9,_0x36730d,_0x5d3756,_0x47ca84){const _0x549546=_0x5f3f05;var _0x3840fd=arguments[_0x549546(0x1f5)],_0x3fb3ca=_0x3840fd<0x3?_0x36730d:_0x47ca84===null?_0x47ca84=Object[_0x549546(0x1b7)](_0x36730d,_0x5d3756):_0x47ca84,_0x5a35af;if(typeof Reflect==_0x549546(0x1f8)&&typeof Reflect[_0x549546(0x1e8)]=='function')_0x3fb3ca=Reflect[_0x549546(0x1e8)](_0x3c45d9,_0x36730d,_0x5d3756,_0x47ca84);else{for(var _0x249cb8=_0x3c45d9[_0x549546(0x1f5)]-0x1;_0x249cb8>=0x0;_0x249cb8--)(_0x5a35af=_0x3c45d9[_0x249cb8])&&(_0x3fb3ca=(_0x3840fd<0x3?_0x5a35af(_0x3fb3ca):_0x3840fd>0x3?_0x5a35af(_0x36730d,_0x5d3756,_0x3fb3ca):_0x5a35af(_0x36730d,_0x5d3756))||_0x3fb3ca);}return _0x3840fd>0x3&&_0x3fb3ca&&Object[_0x549546(0x1e9)](_0x36730d,_0x5d3756,_0x3fb3ca),_0x3fb3ca;}let _0x9188ae=class extends _0x3f2933['Disposable']{constructor(_0x464cda){super(),this['_configService']=_0x464cda;}['createSocket'](_0x1d4e54){const _0xb8542a=_0x5f3f05;var _0x22cb06;let _0x15f6de=((_0x22cb06=this[_0xb8542a(0x1ca)][_0xb8542a(0x1b5)](_0x3b6efa[_0xb8542a(0x1f2)]))==null?void 0x0:_0x22cb06[_0xb8542a(0x1c3)])||{};try{let _0x2de935=new _0x3517ad[(_0xb8542a(0x1bd))](_0x1d4e54,{'headers':{..._0x15f6de}}),_0x192c04=new _0x3f2933['DisposableCollection']();return{'URL':_0x1d4e54,'close':(_0x4c2f44,_0x16880b)=>{const _0x22e480=_0xb8542a;_0x2de935['close'](_0x4c2f44,_0x16880b),_0x192c04[_0x22e480(0x1db)]();},'send':_0x28aa7b=>{const _0x4b9866=_0xb8542a;_0x2de935[_0x4b9866(0x1ce)](_0x28aa7b);},'open$':new _0x3fb0a2['Observable'](_0x4cde1e=>{const _0x2778fa=_0xb8542a;let _0x14c1b2=_0x54577b=>_0x4cde1e[_0x2778fa(0x1b0)](_0x54577b);_0x2de935[_0x2778fa(0x1f9)](_0x2778fa(0x1d0),_0x14c1b2),_0x192c04['add']((0x0,_0x3f2933[_0x2778fa(0x1fa)])(()=>_0x2de935[_0x2778fa(0x1d6)](_0x2778fa(0x1d0),_0x14c1b2)));})['pipe']((0x0,_0x3fb0a2['share'])()),'close$':new _0x3fb0a2[(_0xb8542a(0x1d5))](_0x161dea=>{const _0x4de7c7=_0xb8542a;let _0x1c7dac=_0x56a83b=>_0x161dea['next'](_0x56a83b);_0x2de935[_0x4de7c7(0x1f9)](_0x4de7c7(0x1c4),_0x1c7dac),_0x192c04[_0x4de7c7(0x1e6)]((0x0,_0x3f2933[_0x4de7c7(0x1fa)])(()=>_0x2de935[_0x4de7c7(0x1d6)](_0x4de7c7(0x1c4),_0x1c7dac)));})[_0xb8542a(0x1c7)]((0x0,_0x3fb0a2[_0xb8542a(0x1f7)])()),'error$':new _0x3fb0a2[(_0xb8542a(0x1d5))](_0x5e4d8d=>{const _0x3951af=_0xb8542a;let _0x168790=_0x101d1a=>_0x5e4d8d[_0x3951af(0x1b0)](_0x101d1a);_0x2de935[_0x3951af(0x1f9)](_0x3951af(0x1fb),_0x168790),_0x192c04[_0x3951af(0x1e6)]((0x0,_0x3f2933[_0x3951af(0x1fa)])(()=>_0x2de935['removeEventListener']('error',_0x168790)));})[_0xb8542a(0x1c7)]((0x0,_0x3fb0a2[_0xb8542a(0x1f7)])()),'message$':new _0x3fb0a2[(_0xb8542a(0x1d5))](_0x5365f2=>{const _0x1c8cf3=_0xb8542a;let _0x428508=_0x4e9ac0=>_0x5365f2['next'](_0x4e9ac0);_0x2de935[_0x1c8cf3(0x1f9)](_0x1c8cf3(0x1b3),_0x428508),_0x192c04[_0x1c8cf3(0x1e6)]((0x0,_0x3f2933[_0x1c8cf3(0x1fa)])(()=>_0x2de935[_0x1c8cf3(0x1d6)](_0x1c8cf3(0x1b3),_0x428508)));})[_0xb8542a(0x1c7)]((0x0,_0x3fb0a2[_0xb8542a(0x1f7)])())};}catch(_0x4c5d17){return console[_0xb8542a(0x1fb)](_0x4c5d17),null;}}};_0x9188ae=_0x47e9d0([_0x5806b6(0x0,_0x3f2933['IConfigService'])],_0x9188ae);function _0x1569c2(_0x38ebde){'@babel/helpers - typeof';const _0x10d1ee=_0x5f3f05;return _0x1569c2=typeof Symbol==_0x10d1ee(0x1d8)&&typeof Symbol['iterator']==_0x10d1ee(0x1c8)?function(_0x6b2a78){return typeof _0x6b2a78;}:function(_0xc7d909){const _0x40eb04=_0x10d1ee;return _0xc7d909&&typeof Symbol==_0x40eb04(0x1d8)&&_0xc7d909[_0x40eb04(0x1b9)]===Symbol&&_0xc7d909!==Symbol[_0x40eb04(0x1cd)]?_0x40eb04(0x1c8):typeof _0xc7d909;},_0x1569c2(_0x38ebde);}function _0x368e89(_0x55515a,_0x1eb981){const _0xc65434=_0x5f3f05;if(_0x1569c2(_0x55515a)!='object'||!_0x55515a)return _0x55515a;var _0x3dc152=_0x55515a[Symbol[_0xc65434(0x1d2)]];if(_0x3dc152!==void 0x0){var _0x19b276=_0x3dc152[_0xc65434(0x1ed)](_0x55515a,_0x1eb981||'default');if(_0x1569c2(_0x19b276)!=_0xc65434(0x1f8))return _0x19b276;throw TypeError(_0xc65434(0x1df));}return(_0x1eb981===_0xc65434(0x1f4)?String:Number)(_0x55515a);}function _0x1af1e5(_0x5ad50b){const _0xc981de=_0x5f3f05;var _0x3a45a8=_0x368e89(_0x5ad50b,_0xc981de(0x1f4));return _0x1569c2(_0x3a45a8)==_0xc981de(0x1c8)?_0x3a45a8:_0x3a45a8+'';}function _0x535dc6(_0x4b37db,_0x202816,_0xc53eeb){return(_0x202816=_0x1af1e5(_0x202816))in _0x4b37db?Object['defineProperty'](_0x4b37db,_0x202816,{'value':_0xc53eeb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b37db[_0x202816]=_0xc53eeb,_0x4b37db;}let _0x3e2840=class extends _0x3f2933[_0x5f3f05(0x1d9)]{constructor(_0x586b91=_0x20c27c,_0x30747a,_0x204773){const _0x26f284=_0x5f3f05;super(),this[_0x26f284(0x1ca)]=_0x30747a,this['_injector']=_0x204773,this[_0x26f284(0x1ca)][_0x26f284(0x1cb)](_0x4de555,_0x586b91);}[_0x5f3f05(0x1e3)](){const _0x13ef02=_0x5f3f05;this[_0x13ef02(0x1e2)]();}[_0x5f3f05(0x1e2)](){const _0x45da1d=_0x5f3f05;(0x0,_0x3f2933[_0x45da1d(0x1c6)])(this['_injector'],[[_0x457599[_0x45da1d(0x1d3)],{'useClass':_0x9188ae}]]);}};_0x535dc6(_0x3e2840,_0x5f3f05(0x1c5),_0x5f3f05(0x1da)),_0x535dc6(_0x3e2840,_0x5f3f05(0x1cf),_0x5928a8),_0x535dc6(_0x3e2840,_0x5f3f05(0x1e5),_0x259cc4),_0x3e2840=_0x47e9d0([(0x0,_0x3f2933[_0x5f3f05(0x1d4)])(_0x3b6efa[_0x5f3f05(0x1c1)]),_0x5806b6(0x1,_0x3f2933['IConfigService']),_0x5806b6(0x2,(0x0,_0x3f2933['Inject'])(_0x3f2933[_0x5f3f05(0x1f6)]))],_0x3e2840);let _0x105d31=class extends _0x3b6efa[_0x5f3f05(0x1ee)]{constructor(_0x3c1d04,_0x14e56a,_0xe2708f,_0x1dbfa8,_0x636768){const _0x46228d=_0x5f3f05;super(_0x3c1d04,_0x14e56a,_0xe2708f,_0x1dbfa8,_0x636768);let _0x5632e7=this[_0x46228d(0x1ca)][_0x46228d(0x1b5)](_0x3b6efa[_0x46228d(0x1f2)]);this[_0x46228d(0x1bc)]['registerHTTPInterceptor']({'interceptor':(_0xa97322,_0x5c1373)=>{const _0xc31899=_0x46228d;let _0x504377=_0xa97322[_0xc31899(0x1fe)];if(_0x5632e7!=null&&_0x5632e7[_0xc31899(0x1c3)]){for(let _0x3645dc in _0x5632e7['customHeaders'])_0x504377[_0xc31899(0x1b8)](_0x3645dc,_0x5632e7[_0xc31899(0x1c3)][_0x3645dc]);}return _0x5c1373(_0xa97322);}});}async[_0x5f3f05(0x1b1)](_0x4bdcd2){const _0x13b2ae=_0x5f3f05;return this[_0x13b2ae(0x1c2)](_0x4bdcd2);}};_0x105d31=_0x47e9d0([_0x5806b6(0x0,(0x0,_0x3f2933['Inject'])(_0x3f2933['Injector'])),_0x5806b6(0x1,(0x0,_0x3f2933[_0x5f3f05(0x1ec)])(_0x457599['HTTPService'])),_0x5806b6(0x2,_0x3f2933['IConfigService']),_0x5806b6(0x3,_0x3f2933['ILogService']),_0x5806b6(0x4,_0x39c1f3['ISnapshotServerService'])],_0x105d31),_0x34e855['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x4de555,Object['defineProperty'](_0x34e855,_0x5f3f05(0x1b6),{'enumerable':!0x0,'get':function(){return _0x105d31;}}),Object[_0x5f3f05(0x1e9)](_0x34e855,_0x5f3f05(0x1fc),{'enumerable':!0x0,'get':function(){return _0x3e2840;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1-insiders.20260429-a0b1161",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"ws": "8.20.0",
|
|
49
|
-
"@univerjs-pro/collaboration
|
|
50
|
-
"@univerjs-pro/collaboration": "0.21.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
49
|
+
"@univerjs-pro/collaboration": "0.21.1-insiders.20260429-a0b1161",
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.21.1-insiders.20260429-a0b1161",
|
|
51
|
+
"@univerjs/network": "0.21.1-insiders.20260429-a0b1161",
|
|
52
|
+
"@univerjs/core": "0.21.1-insiders.20260429-a0b1161"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/ws": "8.18.1",
|
|
56
56
|
"rxjs": "7.8.2",
|
|
57
57
|
"typescript": "^6.0.3",
|
|
58
58
|
"vitest": "^4.1.4",
|
|
59
|
-
"@univerjs-infra/shared": "0.21.
|
|
59
|
+
"@univerjs-infra/shared": "0.21.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"test": "vitest run",
|