@univerjs-pro/collaboration-client-node 0.22.1 → 0.23.0-insiders.20260522-ee0b0a4
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 +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x370a6b=_0x1703;(function(_0x211ccc,_0x2972a0){const _0x1d9ab8=_0x1703,_0x4a3553=_0x211ccc();while(!![]){try{const _0x148ab1=-parseInt(_0x1d9ab8(0x1dd))/0x1*(-parseInt(_0x1d9ab8(0x1c9))/0x2)+parseInt(_0x1d9ab8(0x1ab))/0x3+parseInt(_0x1d9ab8(0x1e4))/0x4+-parseInt(_0x1d9ab8(0x1be))/0x5+parseInt(_0x1d9ab8(0x1ce))/0x6*(parseInt(_0x1d9ab8(0x1c2))/0x7)+parseInt(_0x1d9ab8(0x1a2))/0x8*(parseInt(_0x1d9ab8(0x1e3))/0x9)+-parseInt(_0x1d9ab8(0x1b9))/0xa*(parseInt(_0x1d9ab8(0x1ad))/0xb);if(_0x148ab1===_0x2972a0)break;else _0x4a3553['push'](_0x4a3553['shift']());}catch(_0x24c5f1){_0x4a3553['push'](_0x4a3553['shift']());}}}(_0x4908,0x5ed9b),Object['defineProperty'](exports,Symbol[_0x370a6b(0x19e)],{'value':_0x370a6b(0x1c6)}));function _0x4908(){const _0x2c095d=['29386XbqbZZ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client-node','constructor','onStarting','199902fWAnWR','open','dispose','Injector','symbol','ISnapshotServerService','message','_httpService','createSocket','Inject','IConfigService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','UniverCollaborationClientNodePlugin','Observable','Disposable','17ZSfxts','pipe','_doCreateSocket','decorate','close','defineProperty','100755SwgKTj','37324cjtQqV','error','toStringTag','setConfig','registerDependencies','_configService','128OUDnVT','getConfig','DependentOn','0.22.1','version','_registerDependencies','iterator','registerHTTPInterceptor','toPrimitive','1321842RkEWPz','getOwnPropertyDescriptor','12199rXNjaN','add','collaboration-client-node.config','string','function','set','share','toDisposable','WebSocket','customHeaders','CollaborationSocketService','_injector','70xRTtrk','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','NodeCollaborationSocketService','Plugin','removeEventListener','2579465ZnxIWa','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISocketService','addEventListener','7SrcClm','headers','object','prototype','Module','next','length'];_0x4908=function(){return _0x2c095d;};return _0x4908();}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 _0x1703(_0x437aae,_0x59794c){_0x437aae=_0x437aae-0x19e;const _0x4908da=_0x4908();let _0x1703cb=_0x4908da[_0x437aae];return _0x1703cb;}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x370a6b(0x1af),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x370a6b(0x1cb),version=_0x370a6b(0x1a5);function __decorateParam(_0x419dd7,_0x22370c){return function(_0x43c196,_0x527118){_0x22370c(_0x43c196,_0x527118,_0x419dd7);};}function __decorate(_0x2197c8,_0x381585,_0x50c7d2,_0x2cb070){const _0x2b8396=_0x370a6b;var _0x2f7c6f=arguments[_0x2b8396(0x1c8)],_0x31f271=_0x2f7c6f<0x3?_0x381585:_0x2cb070===null?_0x2cb070=Object[_0x2b8396(0x1ac)](_0x381585,_0x50c7d2):_0x2cb070,_0x27b9e5;if(typeof Reflect===_0x2b8396(0x1c4)&&typeof Reflect[_0x2b8396(0x1e0)]==='function')_0x31f271=Reflect[_0x2b8396(0x1e0)](_0x2197c8,_0x381585,_0x50c7d2,_0x2cb070);else{for(var _0x557006=_0x2197c8['length']-0x1;_0x557006>=0x0;_0x557006--)if(_0x27b9e5=_0x2197c8[_0x557006])_0x31f271=(_0x2f7c6f<0x3?_0x27b9e5(_0x31f271):_0x2f7c6f>0x3?_0x27b9e5(_0x381585,_0x50c7d2,_0x31f271):_0x27b9e5(_0x381585,_0x50c7d2))||_0x31f271;}return _0x2f7c6f>0x3&&_0x31f271&&Object[_0x2b8396(0x1e2)](_0x381585,_0x50c7d2,_0x31f271),_0x31f271;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x370a6b(0x1dc)]{constructor(_0x357396){const _0x594a08=_0x370a6b;super(),this[_0x594a08(0x1a1)]=_0x357396;}[_0x370a6b(0x1d6)](_0x2046a1){const _0x3aa6d3=_0x370a6b;var _0x20b6be;const _0x5a799c=((_0x20b6be=this['_configService']['getConfig'](_univerjs_pro_collaboration_client[_0x3aa6d3(0x1bf)]))===null||_0x20b6be===void 0x0?void 0x0:_0x20b6be[_0x3aa6d3(0x1b6)])||{};try{const _0x576626=new ws[(_0x3aa6d3(0x1b5))](_0x2046a1,{'headers':{..._0x5a799c}}),_0xfd145d=new _univerjs_core['DisposableCollection']();return{'URL':_0x2046a1,'close':(_0x2e993c,_0x1d27a0)=>{const _0x574210=_0x3aa6d3;_0x576626[_0x574210(0x1e1)](_0x2e993c,_0x1d27a0),_0xfd145d[_0x574210(0x1d0)]();},'send':_0x5adacf=>{_0x576626['send'](_0x5adacf);},'open$':new rxjs['Observable'](_0x4a0eca=>{const _0x40244a=_0x3aa6d3,_0x36be41=_0x37f61b=>_0x4a0eca[_0x40244a(0x1c7)](_0x37f61b);_0x576626[_0x40244a(0x1c1)](_0x40244a(0x1cf),_0x36be41),_0xfd145d[_0x40244a(0x1ae)]((0x0,_univerjs_core['toDisposable'])(()=>_0x576626[_0x40244a(0x1bd)]('open',_0x36be41)));})[_0x3aa6d3(0x1de)]((0x0,rxjs[_0x3aa6d3(0x1b3)])()),'close$':new rxjs[(_0x3aa6d3(0x1db))](_0x50639f=>{const _0x192a99=_0x3aa6d3,_0x4c7ab4=_0x23d2da=>_0x50639f[_0x192a99(0x1c7)](_0x23d2da);_0x576626[_0x192a99(0x1c1)](_0x192a99(0x1e1),_0x4c7ab4),_0xfd145d[_0x192a99(0x1ae)]((0x0,_univerjs_core[_0x192a99(0x1b4)])(()=>_0x576626[_0x192a99(0x1bd)](_0x192a99(0x1e1),_0x4c7ab4)));})[_0x3aa6d3(0x1de)]((0x0,rxjs['share'])()),'error$':new rxjs[(_0x3aa6d3(0x1db))](_0x324c4f=>{const _0x22a716=_0x3aa6d3,_0x4bbd23=_0x1fc038=>_0x324c4f['next'](_0x1fc038);_0x576626['addEventListener'](_0x22a716(0x1e5),_0x4bbd23),_0xfd145d[_0x22a716(0x1ae)]((0x0,_univerjs_core[_0x22a716(0x1b4)])(()=>_0x576626['removeEventListener'](_0x22a716(0x1e5),_0x4bbd23)));})[_0x3aa6d3(0x1de)]((0x0,rxjs['share'])()),'message$':new rxjs[(_0x3aa6d3(0x1db))](_0x5ae5e1=>{const _0xc4e3d=_0x3aa6d3,_0x38a9d2=_0x16fe50=>_0x5ae5e1[_0xc4e3d(0x1c7)](_0x16fe50);_0x576626['addEventListener'](_0xc4e3d(0x1d4),_0x38a9d2),_0xfd145d[_0xc4e3d(0x1ae)]((0x0,_univerjs_core[_0xc4e3d(0x1b4)])(()=>_0x576626[_0xc4e3d(0x1bd)]('message',_0x38a9d2)));})['pipe']((0x0,rxjs[_0x3aa6d3(0x1b3)])())};}catch(_0x34805e){return console[_0x3aa6d3(0x1e5)](_0x34805e),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core['IConfigService'])],NodeWebSocketService);function _typeof(_0x234128){'@babel/helpers - typeof';const _0xa7a76=_0x370a6b;return _typeof=_0xa7a76(0x1b1)==typeof Symbol&&_0xa7a76(0x1d2)==typeof Symbol[_0xa7a76(0x1a8)]?function(_0x53e4f9){return typeof _0x53e4f9;}:function(_0x47d3d7){const _0x15991e=_0xa7a76;return _0x47d3d7&&_0x15991e(0x1b1)==typeof Symbol&&_0x47d3d7[_0x15991e(0x1cc)]===Symbol&&_0x47d3d7!==Symbol[_0x15991e(0x1c5)]?'symbol':typeof _0x47d3d7;},_typeof(_0x234128);}function toPrimitive(_0x4dce4e,_0x5f38e8){const _0x106ac7=_0x370a6b;if(_0x106ac7(0x1c4)!=_typeof(_0x4dce4e)||!_0x4dce4e)return _0x4dce4e;var _0x2c4df0=_0x4dce4e[Symbol[_0x106ac7(0x1aa)]];if(void 0x0!==_0x2c4df0){var _0x2e90cd=_0x2c4df0['call'](_0x4dce4e,_0x5f38e8||'default');if(_0x106ac7(0x1c4)!=_typeof(_0x2e90cd))return _0x2e90cd;throw new TypeError(_0x106ac7(0x1ca));}return('string'===_0x5f38e8?String:Number)(_0x4dce4e);}function toPropertyKey(_0x2cf9a2){const _0x3df6d2=_0x370a6b;var _0x441cb8=toPrimitive(_0x2cf9a2,_0x3df6d2(0x1b0));return _0x3df6d2(0x1d2)==_typeof(_0x441cb8)?_0x441cb8:_0x441cb8+'';}function _defineProperty(_0x3c9561,_0x145f5f,_0x3c79f5){const _0x2a79f2=_0x370a6b;return(_0x145f5f=toPropertyKey(_0x145f5f))in _0x3c9561?Object[_0x2a79f2(0x1e2)](_0x3c9561,_0x145f5f,{'value':_0x3c79f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c9561[_0x145f5f]=_0x3c79f5,_0x3c9561;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0x370a6b(0x1bc)]{constructor(_0x364d56=defaultPluginConfig,_0x4d3382,_0x49ac42){const _0x1773d6=_0x370a6b;super(),this[_0x1773d6(0x1a1)]=_0x4d3382,this[_0x1773d6(0x1b8)]=_0x49ac42,this['_configService'][_0x1773d6(0x19f)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x364d56);}[_0x370a6b(0x1cd)](){const _0x5bd8c3=_0x370a6b;this[_0x5bd8c3(0x1a7)]();}[_0x370a6b(0x1a7)](){const _0x1687cc=_0x370a6b;(0x0,_univerjs_core[_0x1687cc(0x1a0)])(this[_0x1687cc(0x1b8)],[[_univerjs_network[_0x1687cc(0x1c0)],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,'pluginName',_0x370a6b(0x1ba)),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x370a6b(0x1a6),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x370a6b(0x1a4)])(_univerjs_pro_collaboration_client['UniverCollaborationClientPlugin']),__decorateParam(0x1,_univerjs_core[_0x370a6b(0x1d8)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x370a6b(0x1d7)])(_univerjs_core[_0x370a6b(0x1d1)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client[_0x370a6b(0x1b7)]{constructor(_0x7991bb,_0x4e8cc8,_0x1e826a,_0x36fdab,_0x4030e7){const _0x297e2e=_0x370a6b;super(_0x7991bb,_0x4e8cc8,_0x1e826a,_0x36fdab,_0x4030e7);const _0x338b06=this[_0x297e2e(0x1a1)][_0x297e2e(0x1a3)](_univerjs_pro_collaboration_client[_0x297e2e(0x1bf)]);this[_0x297e2e(0x1d5)][_0x297e2e(0x1a9)]({'interceptor':(_0x566f68,_0x4efe7b)=>{const _0x5d3911=_0x297e2e,_0x22080b=_0x566f68[_0x5d3911(0x1c3)];if(_0x338b06===null||_0x338b06===void 0x0?void 0x0:_0x338b06[_0x5d3911(0x1b6)]){for(const _0xedfe2a in _0x338b06[_0x5d3911(0x1b6)])_0x22080b[_0x5d3911(0x1b2)](_0xedfe2a,_0x338b06['customHeaders'][_0xedfe2a]);}return _0x4efe7b(_0x566f68);}});}async[_0x370a6b(0x1d6)](_0x5a04bd){const _0x13fa7c=_0x370a6b;return this[_0x13fa7c(0x1df)](_0x5a04bd);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a6b(0x1d7)])(_univerjs_core[_0x370a6b(0x1d1)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a6b(0x1d7)])(_univerjs_network['HTTPService'])),__decorateParam(0x2,_univerjs_core[_0x370a6b(0x1d8)]),__decorateParam(0x3,_univerjs_core['ILogService']),__decorateParam(0x4,_univerjs_pro_collaboration[_0x370a6b(0x1d3)])],NodeCollaborationSocketService),exports[_0x370a6b(0x1d9)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object[_0x370a6b(0x1e2)](exports,_0x370a6b(0x1bb),{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object[_0x370a6b(0x1e2)](exports,_0x370a6b(0x1da),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
|
|
1
|
+
const _0x3447d4=_0x1b50;(function(_0x3fb561,_0x253176){const _0x2935ac=_0x1b50,_0x5aa017=_0x3fb561();while(!![]){try{const _0x3eebcf=parseInt(_0x2935ac(0x117))/0x1*(parseInt(_0x2935ac(0x105))/0x2)+-parseInt(_0x2935ac(0x107))/0x3+-parseInt(_0x2935ac(0x119))/0x4*(parseInt(_0x2935ac(0x110))/0x5)+parseInt(_0x2935ac(0x114))/0x6+parseInt(_0x2935ac(0x118))/0x7*(-parseInt(_0x2935ac(0x104))/0x8)+parseInt(_0x2935ac(0xf2))/0x9*(-parseInt(_0x2935ac(0x128))/0xa)+-parseInt(_0x2935ac(0x116))/0xb*(-parseInt(_0x2935ac(0x12f))/0xc);if(_0x3eebcf===_0x253176)break;else _0x5aa017['push'](_0x5aa017['shift']());}catch(_0x33b4ca){_0x5aa017['push'](_0x5aa017['shift']());}}}(_0x1d26,0x1c1ef),Object[_0x3447d4(0xfb)](exports,Symbol['toStringTag'],{'value':_0x3447d4(0x121)}));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=_0x3447d4(0x122);function _0x1b50(_0x472149,_0x4a6d40){_0x472149=_0x472149-0xf0;const _0x1d26b0=_0x1d26();let _0x1b5017=_0x1d26b0[_0x472149];return _0x1b5017;}Symbol(o);function _0x1d26(){const _0x21ba22=['headers','1250442ANYIJI','0.23.0-insiders.20260522-ee0b0a4','265441SZQXwC','1BoGkoR','214256DekfZB','377116LolQvP','ILogService','function','toDisposable','message','default','_configService','object','Module','collaboration-client-node.config','DisposableCollection','@univerjs-pro/collaboration-client-node','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DependentOn','_registerDependencies','486440StIykk','Disposable','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','Inject','CollaborationSocketService','Observable','72XfgiAy','_httpService','close','share','pipe','_injector','length','addEventListener','iterator','9AaZMxn','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','ISnapshotServerService','Plugin','packageName','ISocketService','add','Injector','registerHTTPInterceptor','defineProperty','symbol','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','next','registerDependencies','HTTPService','send','open','16bhiKrD','41864tJPqFV','WebSocket','164409IrgrNZ','error','customHeaders','string','prototype','version','decorate','onStarting','NodeCollaborationSocketService','5ZQsUQi','getConfig','IConfigService'];_0x1d26=function(){return _0x21ba22;};return _0x1d26();}const s={};var c=_0x3447d4(0x124),l=_0x3447d4(0x115);function u(_0x117f56,_0xbde478){return function(_0x33d047,_0x11da61){_0xbde478(_0x33d047,_0x11da61,_0x117f56);};}function d(_0x69ebf5,_0x51da3d,_0x124f29,_0x1f5b0d){const _0x24b128=_0x3447d4;var _0x286131=arguments[_0x24b128(0x135)],_0x262536=_0x286131<0x3?_0x51da3d:_0x1f5b0d===null?_0x1f5b0d=Object[_0x24b128(0x12b)](_0x51da3d,_0x124f29):_0x1f5b0d,_0x173b82;if(typeof Reflect==_0x24b128(0x120)&&typeof Reflect[_0x24b128(0x10d)]=='function')_0x262536=Reflect[_0x24b128(0x10d)](_0x69ebf5,_0x51da3d,_0x124f29,_0x1f5b0d);else{for(var _0x1da8ce=_0x69ebf5[_0x24b128(0x135)]-0x1;_0x1da8ce>=0x0;_0x1da8ce--)(_0x173b82=_0x69ebf5[_0x1da8ce])&&(_0x262536=(_0x286131<0x3?_0x173b82(_0x262536):_0x286131>0x3?_0x173b82(_0x51da3d,_0x124f29,_0x262536):_0x173b82(_0x51da3d,_0x124f29))||_0x262536);}return _0x286131>0x3&&_0x262536&&Object[_0x24b128(0xfb)](_0x51da3d,_0x124f29,_0x262536),_0x262536;}let f=class extends t[_0x3447d4(0x129)]{constructor(_0x14e1f4){const _0x18b184=_0x3447d4;super(),this[_0x18b184(0x11f)]=_0x14e1f4;}['createSocket'](_0x464226){const _0x269571=_0x3447d4;var _0x5c3e75;let _0xc0fa16=((_0x5c3e75=this['_configService'][_0x269571(0x111)](e[_0x269571(0xfd)]))==null?void 0x0:_0x5c3e75[_0x269571(0x109)])||{};try{let _0x17dc9e=new i[(_0x269571(0x106))](_0x464226,{'headers':{..._0xc0fa16}}),_0x13ee45=new t[(_0x269571(0x123))]();return{'URL':_0x464226,'close':(_0x23edf2,_0x4d7de1)=>{const _0x5857ba=_0x269571;_0x17dc9e[_0x5857ba(0x131)](_0x23edf2,_0x4d7de1),_0x13ee45['dispose']();},'send':_0x429203=>{const _0x4d718d=_0x269571;_0x17dc9e[_0x4d718d(0x102)](_0x429203);},'open$':new r[(_0x269571(0x12e))](_0x3e9723=>{const _0x2fc63f=_0x269571;let _0x4c88b6=_0x2b8bca=>_0x3e9723[_0x2fc63f(0xff)](_0x2b8bca);_0x17dc9e['addEventListener'](_0x2fc63f(0x103),_0x4c88b6),_0x13ee45[_0x2fc63f(0xf8)]((0x0,t[_0x2fc63f(0x11c)])(()=>_0x17dc9e[_0x2fc63f(0xfe)](_0x2fc63f(0x103),_0x4c88b6)));})[_0x269571(0x133)]((0x0,r[_0x269571(0x132)])()),'close$':new r['Observable'](_0x5e8c65=>{const _0x53a5cb=_0x269571;let _0x307e4c=_0x92bea9=>_0x5e8c65[_0x53a5cb(0xff)](_0x92bea9);_0x17dc9e[_0x53a5cb(0xf0)]('close',_0x307e4c),_0x13ee45[_0x53a5cb(0xf8)]((0x0,t['toDisposable'])(()=>_0x17dc9e[_0x53a5cb(0xfe)]('close',_0x307e4c)));})['pipe']((0x0,r[_0x269571(0x132)])()),'error$':new r[(_0x269571(0x12e))](_0x21d0c9=>{const _0x5863da=_0x269571;let _0x2aaff0=_0x3bf76d=>_0x21d0c9['next'](_0x3bf76d);_0x17dc9e['addEventListener'](_0x5863da(0x108),_0x2aaff0),_0x13ee45[_0x5863da(0xf8)]((0x0,t[_0x5863da(0x11c)])(()=>_0x17dc9e['removeEventListener'](_0x5863da(0x108),_0x2aaff0)));})[_0x269571(0x133)]((0x0,r['share'])()),'message$':new r[(_0x269571(0x12e))](_0x3cc5b1=>{const _0x1cd05d=_0x269571;let _0x3c97f0=_0x26da9d=>_0x3cc5b1[_0x1cd05d(0xff)](_0x26da9d);_0x17dc9e['addEventListener'](_0x1cd05d(0x11d),_0x3c97f0),_0x13ee45[_0x1cd05d(0xf8)]((0x0,t['toDisposable'])(()=>_0x17dc9e[_0x1cd05d(0xfe)](_0x1cd05d(0x11d),_0x3c97f0)));})['pipe']((0x0,r[_0x269571(0x132)])())};}catch(_0x34faec){return console[_0x269571(0x108)](_0x34faec),null;}}};f=d([u(0x0,t[_0x3447d4(0x112)])],f);function p(_0x16711b){'@babel/helpers - typeof';const _0x1dffc0=_0x3447d4;return p=typeof Symbol==_0x1dffc0(0x11b)&&typeof Symbol[_0x1dffc0(0xf1)]==_0x1dffc0(0xfc)?function(_0x14aceb){return typeof _0x14aceb;}:function(_0x27e2ad){const _0x1b7522=_0x1dffc0;return _0x27e2ad&&typeof Symbol==_0x1b7522(0x11b)&&_0x27e2ad['constructor']===Symbol&&_0x27e2ad!==Symbol[_0x1b7522(0x10b)]?_0x1b7522(0xfc):typeof _0x27e2ad;},p(_0x16711b);}function m(_0x2598db,_0x486b1a){const _0x16f04b=_0x3447d4;if(p(_0x2598db)!='object'||!_0x2598db)return _0x2598db;var _0x164af5=_0x2598db[Symbol['toPrimitive']];if(_0x164af5!==void 0x0){var _0x48111e=_0x164af5['call'](_0x2598db,_0x486b1a||_0x16f04b(0x11e));if(p(_0x48111e)!=_0x16f04b(0x120))return _0x48111e;throw TypeError(_0x16f04b(0x125));}return(_0x486b1a==='string'?String:Number)(_0x2598db);}function h(_0x3bc515){const _0x29a40a=_0x3447d4;var _0x1afc45=m(_0x3bc515,_0x29a40a(0x10a));return p(_0x1afc45)=='symbol'?_0x1afc45:_0x1afc45+'';}function g(_0x4042f5,_0x46d04d,_0x20a968){const _0x1c8013=_0x3447d4;return(_0x46d04d=h(_0x46d04d))in _0x4042f5?Object[_0x1c8013(0xfb)](_0x4042f5,_0x46d04d,{'value':_0x20a968,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4042f5[_0x46d04d]=_0x20a968,_0x4042f5;}let _=class extends t[_0x3447d4(0xf5)]{constructor(_0x4d9200=s,_0x95ba61,_0x26d3b2){const _0x1f4bbb=_0x3447d4;super(),this['_configService']=_0x95ba61,this[_0x1f4bbb(0x134)]=_0x26d3b2,this[_0x1f4bbb(0x11f)]['setConfig'](o,_0x4d9200);}[_0x3447d4(0x10e)](){const _0x570cae=_0x3447d4;this[_0x570cae(0x127)]();}['_registerDependencies'](){const _0x5f29f4=_0x3447d4;(0x0,t[_0x5f29f4(0x100)])(this[_0x5f29f4(0x134)],[[n[_0x5f29f4(0xf7)],{'useClass':f}]]);}};g(_,'pluginName',_0x3447d4(0xf3)),g(_,_0x3447d4(0xf6),c),g(_,_0x3447d4(0x10c),l),_=d([(0x0,t[_0x3447d4(0x126)])(e[_0x3447d4(0x12a)]),u(0x1,t[_0x3447d4(0x112)]),u(0x2,(0x0,t['Inject'])(t[_0x3447d4(0xf9)]))],_);let v=class extends e[_0x3447d4(0x12d)]{constructor(_0x45ec81,_0x5d619d,_0x5e1398,_0xec9adb,_0x2191b8){const _0x54bed7=_0x3447d4;super(_0x45ec81,_0x5d619d,_0x5e1398,_0xec9adb,_0x2191b8);let _0x471001=this[_0x54bed7(0x11f)][_0x54bed7(0x111)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x54bed7(0x130)][_0x54bed7(0xfa)]({'interceptor':(_0x1b8612,_0x3a1963)=>{const _0x332644=_0x54bed7;let _0x103f58=_0x1b8612[_0x332644(0x113)];if(_0x471001!=null&&_0x471001[_0x332644(0x109)]){for(let _0x47fd6f in _0x471001['customHeaders'])_0x103f58['set'](_0x47fd6f,_0x471001[_0x332644(0x109)][_0x47fd6f]);}return _0x3a1963(_0x1b8612);}});}async['createSocket'](_0x168b21){return this['_doCreateSocket'](_0x168b21);}};v=d([u(0x0,(0x0,t[_0x3447d4(0x12c)])(t[_0x3447d4(0xf9)])),u(0x1,(0x0,t[_0x3447d4(0x12c)])(n[_0x3447d4(0x101)])),u(0x2,t['IConfigService']),u(0x3,t[_0x3447d4(0x11a)]),u(0x4,a[_0x3447d4(0xf4)])],v),exports['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=o,Object[_0x3447d4(0xfb)](exports,_0x3447d4(0x10f),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x3447d4(0xfb)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x282358=_0x2890;(function(_0x4210b0,_0x38b93d){const _0x33f992=_0x2890,_0x2692a4=_0x4210b0();while(!![]){try{const _0x10b524=parseInt(_0x33f992(0x167))/0x1+parseInt(_0x33f992(0x168))/0x2+-parseInt(_0x33f992(0x15e))/0x3*(parseInt(_0x33f992(0x160))/0x4)+-parseInt(_0x33f992(0x165))/0x5+-parseInt(_0x33f992(0x188))/0x6+-parseInt(_0x33f992(0x16d))/0x7*(parseInt(_0x33f992(0x175))/0x8)+parseInt(_0x33f992(0x17d))/0x9*(parseInt(_0x33f992(0x166))/0xa);if(_0x10b524===_0x38b93d)break;else _0x2692a4['push'](_0x2692a4['shift']());}catch(_0x572cd5){_0x2692a4['push'](_0x2692a4['shift']());}}}(_0x160b,0xd64df));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1f8a00,CollaborationSocketService as _0x5e6e88,UniverCollaborationClientPlugin as _0x56967c}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5a26dc,Disposable as _0x48bc7a,DisposableCollection as _0x248093,IConfigService as _0x170b69,ILogService as _0x36bde4,Inject as _0x465221,Injector as _0x510a5c,Plugin as _0x1ebbfd,registerDependencies as _0x25f4bc,toDisposable as _0x36c126}from'@univerjs/core';import{HTTPService as _0x2743f6,ISocketService as _0x4c9db3}from'@univerjs/network';function _0x160b(){const _0x17cb65=['send','string','getConfig','removeEventListener','22240buKgHo','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createSocket','add','packageName','headers','customHeaders','_registerDependencies','81810RunYhu','next','_configService','_injector','function','pipe','@univerjs-pro/collaboration-client-node','pluginName','iterator','close','length','10321002ANhqHB','open','constructor','error','symbol','collaboration-client-node.config','60IZNAAO','setConfig','269644pJSHew','_httpService','decorate','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','addEventListener','2528450cpKZrt','2950nyaQEd','1606825PbiOqw','2884586zzAcGF','object','defineProperty','getOwnPropertyDescriptor','set','3220IFpZuO','prototype','_doCreateSocket','version'];_0x160b=function(){return _0x17cb65;};return _0x160b();}import{Observable as _0x8338b4,share as _0xd31643}from'rxjs';import{WebSocket as _0x5e4e25}from'ws';import{ISnapshotServerService as _0x1128da}from'@univerjs-pro/collaboration';const y=_0x282358(0x15d);Symbol(y);const b={};var x=_0x282358(0x183),S='0.23.0-insiders.20260522-ee0b0a4';function C(_0x344c06,_0x1fde77){return function(_0x77a9c0,_0x5ee8d1){_0x1fde77(_0x77a9c0,_0x5ee8d1,_0x344c06);};}function w(_0x38d5e2,_0x1a6a30,_0x326688,_0x1cfe9b){const _0x63a5bd=_0x282358;var _0x1f73e3=arguments[_0x63a5bd(0x187)],_0x4b7286=_0x1f73e3<0x3?_0x1a6a30:_0x1cfe9b===null?_0x1cfe9b=Object[_0x63a5bd(0x16b)](_0x1a6a30,_0x326688):_0x1cfe9b,_0x58a234;if(typeof Reflect=='object'&&typeof Reflect[_0x63a5bd(0x162)]==_0x63a5bd(0x181))_0x4b7286=Reflect[_0x63a5bd(0x162)](_0x38d5e2,_0x1a6a30,_0x326688,_0x1cfe9b);else{for(var _0x4722d0=_0x38d5e2['length']-0x1;_0x4722d0>=0x0;_0x4722d0--)(_0x58a234=_0x38d5e2[_0x4722d0])&&(_0x4b7286=(_0x1f73e3<0x3?_0x58a234(_0x4b7286):_0x1f73e3>0x3?_0x58a234(_0x1a6a30,_0x326688,_0x4b7286):_0x58a234(_0x1a6a30,_0x326688))||_0x4b7286);}return _0x1f73e3>0x3&&_0x4b7286&&Object[_0x63a5bd(0x16a)](_0x1a6a30,_0x326688,_0x4b7286),_0x4b7286;}let T=class extends _0x48bc7a{constructor(_0x1f7357){super(),this['_configService']=_0x1f7357;}[_0x282358(0x177)](_0x191557){const _0x399445=_0x282358;var _0x1e1b44;let _0x1b6e03=((_0x1e1b44=this['_configService']['getConfig'](_0x1f8a00))==null?void 0x0:_0x1e1b44['customHeaders'])||{};try{let _0x5417c7=new _0x5e4e25(_0x191557,{'headers':{..._0x1b6e03}}),_0x42dc3e=new _0x248093();return{'URL':_0x191557,'close':(_0x178f4d,_0x753dd8)=>{const _0x5c461a=_0x2890;_0x5417c7[_0x5c461a(0x186)](_0x178f4d,_0x753dd8),_0x42dc3e['dispose']();},'send':_0x3556f5=>{const _0x1af6f9=_0x2890;_0x5417c7[_0x1af6f9(0x171)](_0x3556f5);},'open$':new _0x8338b4(_0x2c048d=>{const _0x1ba0a6=_0x2890;let _0x4a8dad=_0x1636b3=>_0x2c048d['next'](_0x1636b3);_0x5417c7[_0x1ba0a6(0x164)](_0x1ba0a6(0x189),_0x4a8dad),_0x42dc3e[_0x1ba0a6(0x178)](_0x36c126(()=>_0x5417c7[_0x1ba0a6(0x174)](_0x1ba0a6(0x189),_0x4a8dad)));})[_0x399445(0x182)](_0xd31643()),'close$':new _0x8338b4(_0x41a605=>{const _0x3cd7ec=_0x399445;let _0x247162=_0x577abe=>_0x41a605['next'](_0x577abe);_0x5417c7['addEventListener']('close',_0x247162),_0x42dc3e[_0x3cd7ec(0x178)](_0x36c126(()=>_0x5417c7[_0x3cd7ec(0x174)]('close',_0x247162)));})[_0x399445(0x182)](_0xd31643()),'error$':new _0x8338b4(_0x4a27ba=>{const _0x5c5852=_0x399445;let _0x100456=_0x15947f=>_0x4a27ba[_0x5c5852(0x17e)](_0x15947f);_0x5417c7[_0x5c5852(0x164)](_0x5c5852(0x18b),_0x100456),_0x42dc3e['add'](_0x36c126(()=>_0x5417c7[_0x5c5852(0x174)]('error',_0x100456)));})[_0x399445(0x182)](_0xd31643()),'message$':new _0x8338b4(_0x462125=>{const _0x54a4fa=_0x399445;let _0x595a3b=_0x2ef923=>_0x462125[_0x54a4fa(0x17e)](_0x2ef923);_0x5417c7[_0x54a4fa(0x164)]('message',_0x595a3b),_0x42dc3e[_0x54a4fa(0x178)](_0x36c126(()=>_0x5417c7['removeEventListener']('message',_0x595a3b)));})[_0x399445(0x182)](_0xd31643())};}catch(_0xcd8a45){return console[_0x399445(0x18b)](_0xcd8a45),null;}}};function _0x2890(_0xe237a8,_0x39be64){_0xe237a8=_0xe237a8-0x15c;const _0x160bef=_0x160b();let _0x2890f3=_0x160bef[_0xe237a8];return _0x2890f3;}T=w([C(0x0,_0x170b69)],T);function E(_0x4826dc){'@babel/helpers - typeof';const _0x4a3ce2=_0x282358;return E=typeof Symbol==_0x4a3ce2(0x181)&&typeof Symbol[_0x4a3ce2(0x185)]=='symbol'?function(_0x287c51){return typeof _0x287c51;}:function(_0x3bfa8b){const _0xa25cd4=_0x4a3ce2;return _0x3bfa8b&&typeof Symbol==_0xa25cd4(0x181)&&_0x3bfa8b[_0xa25cd4(0x18a)]===Symbol&&_0x3bfa8b!==Symbol[_0xa25cd4(0x16e)]?_0xa25cd4(0x15c):typeof _0x3bfa8b;},E(_0x4826dc);}function D(_0x4c0e72,_0x162036){const _0x273394=_0x282358;if(E(_0x4c0e72)!=_0x273394(0x169)||!_0x4c0e72)return _0x4c0e72;var _0x4b81c4=_0x4c0e72[Symbol['toPrimitive']];if(_0x4b81c4!==void 0x0){var _0x562ce1=_0x4b81c4['call'](_0x4c0e72,_0x162036||'default');if(E(_0x562ce1)!=_0x273394(0x169))return _0x562ce1;throw TypeError(_0x273394(0x176));}return(_0x162036===_0x273394(0x172)?String:Number)(_0x4c0e72);}function O(_0x1454bc){const _0x2c69b3=_0x282358;var _0x5b2988=D(_0x1454bc,_0x2c69b3(0x172));return E(_0x5b2988)=='symbol'?_0x5b2988:_0x5b2988+'';}function k(_0x20db81,_0x3551b4,_0x44c677){const _0x39f9c9=_0x282358;return(_0x3551b4=O(_0x3551b4))in _0x20db81?Object[_0x39f9c9(0x16a)](_0x20db81,_0x3551b4,{'value':_0x44c677,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20db81[_0x3551b4]=_0x44c677,_0x20db81;}let A=class extends _0x1ebbfd{constructor(_0x51c41a=b,_0x7f6040,_0x466132){const _0x4c4c63=_0x282358;super(),this[_0x4c4c63(0x17f)]=_0x7f6040,this['_injector']=_0x466132,this['_configService'][_0x4c4c63(0x15f)](y,_0x51c41a);}['onStarting'](){const _0x5f4afb=_0x282358;this[_0x5f4afb(0x17c)]();}['_registerDependencies'](){const _0x4af511=_0x282358;_0x25f4bc(this[_0x4af511(0x180)],[[_0x4c9db3,{'useClass':T}]]);}};k(A,_0x282358(0x184),_0x282358(0x163)),k(A,_0x282358(0x179),x),k(A,_0x282358(0x170),S),A=w([_0x5a26dc(_0x56967c),C(0x1,_0x170b69),C(0x2,_0x465221(_0x510a5c))],A);let j=class extends _0x5e6e88{constructor(_0xfcf09d,_0x322258,_0x2c7d2f,_0x10de04,_0x4110ea){const _0x2f4e6f=_0x282358;super(_0xfcf09d,_0x322258,_0x2c7d2f,_0x10de04,_0x4110ea);let _0xcd69c=this['_configService'][_0x2f4e6f(0x173)](_0x1f8a00);this[_0x2f4e6f(0x161)]['registerHTTPInterceptor']({'interceptor':(_0x4ba93d,_0x4b5cb1)=>{const _0x4f2882=_0x2f4e6f;let _0x5c6f02=_0x4ba93d[_0x4f2882(0x17a)];if(_0xcd69c!=null&&_0xcd69c['customHeaders']){for(let _0x1aec1f in _0xcd69c[_0x4f2882(0x17b)])_0x5c6f02[_0x4f2882(0x16c)](_0x1aec1f,_0xcd69c['customHeaders'][_0x1aec1f]);}return _0x4b5cb1(_0x4ba93d);}});}async[_0x282358(0x177)](_0x56d470){const _0xee5541=_0x282358;return this[_0xee5541(0x16f)](_0x56d470);}};j=w([C(0x0,_0x465221(_0x510a5c)),C(0x1,_0x465221(_0x2743f6)),C(0x2,_0x170b69),C(0x3,_0x36bde4),C(0x4,_0x1128da)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x282358=_0x2890;(function(_0x4210b0,_0x38b93d){const _0x33f992=_0x2890,_0x2692a4=_0x4210b0();while(!![]){try{const _0x10b524=parseInt(_0x33f992(0x167))/0x1+parseInt(_0x33f992(0x168))/0x2+-parseInt(_0x33f992(0x15e))/0x3*(parseInt(_0x33f992(0x160))/0x4)+-parseInt(_0x33f992(0x165))/0x5+-parseInt(_0x33f992(0x188))/0x6+-parseInt(_0x33f992(0x16d))/0x7*(parseInt(_0x33f992(0x175))/0x8)+parseInt(_0x33f992(0x17d))/0x9*(parseInt(_0x33f992(0x166))/0xa);if(_0x10b524===_0x38b93d)break;else _0x2692a4['push'](_0x2692a4['shift']());}catch(_0x572cd5){_0x2692a4['push'](_0x2692a4['shift']());}}}(_0x160b,0xd64df));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1f8a00,CollaborationSocketService as _0x5e6e88,UniverCollaborationClientPlugin as _0x56967c}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5a26dc,Disposable as _0x48bc7a,DisposableCollection as _0x248093,IConfigService as _0x170b69,ILogService as _0x36bde4,Inject as _0x465221,Injector as _0x510a5c,Plugin as _0x1ebbfd,registerDependencies as _0x25f4bc,toDisposable as _0x36c126}from'@univerjs/core';import{HTTPService as _0x2743f6,ISocketService as _0x4c9db3}from'@univerjs/network';function _0x160b(){const _0x17cb65=['send','string','getConfig','removeEventListener','22240buKgHo','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createSocket','add','packageName','headers','customHeaders','_registerDependencies','81810RunYhu','next','_configService','_injector','function','pipe','@univerjs-pro/collaboration-client-node','pluginName','iterator','close','length','10321002ANhqHB','open','constructor','error','symbol','collaboration-client-node.config','60IZNAAO','setConfig','269644pJSHew','_httpService','decorate','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','addEventListener','2528450cpKZrt','2950nyaQEd','1606825PbiOqw','2884586zzAcGF','object','defineProperty','getOwnPropertyDescriptor','set','3220IFpZuO','prototype','_doCreateSocket','version'];_0x160b=function(){return _0x17cb65;};return _0x160b();}import{Observable as _0x8338b4,share as _0xd31643}from'rxjs';import{WebSocket as _0x5e4e25}from'ws';import{ISnapshotServerService as _0x1128da}from'@univerjs-pro/collaboration';const y=_0x282358(0x15d);Symbol(y);const b={};var x=_0x282358(0x183),S='0.23.0-insiders.20260522-ee0b0a4';function C(_0x344c06,_0x1fde77){return function(_0x77a9c0,_0x5ee8d1){_0x1fde77(_0x77a9c0,_0x5ee8d1,_0x344c06);};}function w(_0x38d5e2,_0x1a6a30,_0x326688,_0x1cfe9b){const _0x63a5bd=_0x282358;var _0x1f73e3=arguments[_0x63a5bd(0x187)],_0x4b7286=_0x1f73e3<0x3?_0x1a6a30:_0x1cfe9b===null?_0x1cfe9b=Object[_0x63a5bd(0x16b)](_0x1a6a30,_0x326688):_0x1cfe9b,_0x58a234;if(typeof Reflect=='object'&&typeof Reflect[_0x63a5bd(0x162)]==_0x63a5bd(0x181))_0x4b7286=Reflect[_0x63a5bd(0x162)](_0x38d5e2,_0x1a6a30,_0x326688,_0x1cfe9b);else{for(var _0x4722d0=_0x38d5e2['length']-0x1;_0x4722d0>=0x0;_0x4722d0--)(_0x58a234=_0x38d5e2[_0x4722d0])&&(_0x4b7286=(_0x1f73e3<0x3?_0x58a234(_0x4b7286):_0x1f73e3>0x3?_0x58a234(_0x1a6a30,_0x326688,_0x4b7286):_0x58a234(_0x1a6a30,_0x326688))||_0x4b7286);}return _0x1f73e3>0x3&&_0x4b7286&&Object[_0x63a5bd(0x16a)](_0x1a6a30,_0x326688,_0x4b7286),_0x4b7286;}let T=class extends _0x48bc7a{constructor(_0x1f7357){super(),this['_configService']=_0x1f7357;}[_0x282358(0x177)](_0x191557){const _0x399445=_0x282358;var _0x1e1b44;let _0x1b6e03=((_0x1e1b44=this['_configService']['getConfig'](_0x1f8a00))==null?void 0x0:_0x1e1b44['customHeaders'])||{};try{let _0x5417c7=new _0x5e4e25(_0x191557,{'headers':{..._0x1b6e03}}),_0x42dc3e=new _0x248093();return{'URL':_0x191557,'close':(_0x178f4d,_0x753dd8)=>{const _0x5c461a=_0x2890;_0x5417c7[_0x5c461a(0x186)](_0x178f4d,_0x753dd8),_0x42dc3e['dispose']();},'send':_0x3556f5=>{const _0x1af6f9=_0x2890;_0x5417c7[_0x1af6f9(0x171)](_0x3556f5);},'open$':new _0x8338b4(_0x2c048d=>{const _0x1ba0a6=_0x2890;let _0x4a8dad=_0x1636b3=>_0x2c048d['next'](_0x1636b3);_0x5417c7[_0x1ba0a6(0x164)](_0x1ba0a6(0x189),_0x4a8dad),_0x42dc3e[_0x1ba0a6(0x178)](_0x36c126(()=>_0x5417c7[_0x1ba0a6(0x174)](_0x1ba0a6(0x189),_0x4a8dad)));})[_0x399445(0x182)](_0xd31643()),'close$':new _0x8338b4(_0x41a605=>{const _0x3cd7ec=_0x399445;let _0x247162=_0x577abe=>_0x41a605['next'](_0x577abe);_0x5417c7['addEventListener']('close',_0x247162),_0x42dc3e[_0x3cd7ec(0x178)](_0x36c126(()=>_0x5417c7[_0x3cd7ec(0x174)]('close',_0x247162)));})[_0x399445(0x182)](_0xd31643()),'error$':new _0x8338b4(_0x4a27ba=>{const _0x5c5852=_0x399445;let _0x100456=_0x15947f=>_0x4a27ba[_0x5c5852(0x17e)](_0x15947f);_0x5417c7[_0x5c5852(0x164)](_0x5c5852(0x18b),_0x100456),_0x42dc3e['add'](_0x36c126(()=>_0x5417c7[_0x5c5852(0x174)]('error',_0x100456)));})[_0x399445(0x182)](_0xd31643()),'message$':new _0x8338b4(_0x462125=>{const _0x54a4fa=_0x399445;let _0x595a3b=_0x2ef923=>_0x462125[_0x54a4fa(0x17e)](_0x2ef923);_0x5417c7[_0x54a4fa(0x164)]('message',_0x595a3b),_0x42dc3e[_0x54a4fa(0x178)](_0x36c126(()=>_0x5417c7['removeEventListener']('message',_0x595a3b)));})[_0x399445(0x182)](_0xd31643())};}catch(_0xcd8a45){return console[_0x399445(0x18b)](_0xcd8a45),null;}}};function _0x2890(_0xe237a8,_0x39be64){_0xe237a8=_0xe237a8-0x15c;const _0x160bef=_0x160b();let _0x2890f3=_0x160bef[_0xe237a8];return _0x2890f3;}T=w([C(0x0,_0x170b69)],T);function E(_0x4826dc){'@babel/helpers - typeof';const _0x4a3ce2=_0x282358;return E=typeof Symbol==_0x4a3ce2(0x181)&&typeof Symbol[_0x4a3ce2(0x185)]=='symbol'?function(_0x287c51){return typeof _0x287c51;}:function(_0x3bfa8b){const _0xa25cd4=_0x4a3ce2;return _0x3bfa8b&&typeof Symbol==_0xa25cd4(0x181)&&_0x3bfa8b[_0xa25cd4(0x18a)]===Symbol&&_0x3bfa8b!==Symbol[_0xa25cd4(0x16e)]?_0xa25cd4(0x15c):typeof _0x3bfa8b;},E(_0x4826dc);}function D(_0x4c0e72,_0x162036){const _0x273394=_0x282358;if(E(_0x4c0e72)!=_0x273394(0x169)||!_0x4c0e72)return _0x4c0e72;var _0x4b81c4=_0x4c0e72[Symbol['toPrimitive']];if(_0x4b81c4!==void 0x0){var _0x562ce1=_0x4b81c4['call'](_0x4c0e72,_0x162036||'default');if(E(_0x562ce1)!=_0x273394(0x169))return _0x562ce1;throw TypeError(_0x273394(0x176));}return(_0x162036===_0x273394(0x172)?String:Number)(_0x4c0e72);}function O(_0x1454bc){const _0x2c69b3=_0x282358;var _0x5b2988=D(_0x1454bc,_0x2c69b3(0x172));return E(_0x5b2988)=='symbol'?_0x5b2988:_0x5b2988+'';}function k(_0x20db81,_0x3551b4,_0x44c677){const _0x39f9c9=_0x282358;return(_0x3551b4=O(_0x3551b4))in _0x20db81?Object[_0x39f9c9(0x16a)](_0x20db81,_0x3551b4,{'value':_0x44c677,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20db81[_0x3551b4]=_0x44c677,_0x20db81;}let A=class extends _0x1ebbfd{constructor(_0x51c41a=b,_0x7f6040,_0x466132){const _0x4c4c63=_0x282358;super(),this[_0x4c4c63(0x17f)]=_0x7f6040,this['_injector']=_0x466132,this['_configService'][_0x4c4c63(0x15f)](y,_0x51c41a);}['onStarting'](){const _0x5f4afb=_0x282358;this[_0x5f4afb(0x17c)]();}['_registerDependencies'](){const _0x4af511=_0x282358;_0x25f4bc(this[_0x4af511(0x180)],[[_0x4c9db3,{'useClass':T}]]);}};k(A,_0x282358(0x184),_0x282358(0x163)),k(A,_0x282358(0x179),x),k(A,_0x282358(0x170),S),A=w([_0x5a26dc(_0x56967c),C(0x1,_0x170b69),C(0x2,_0x465221(_0x510a5c))],A);let j=class extends _0x5e6e88{constructor(_0xfcf09d,_0x322258,_0x2c7d2f,_0x10de04,_0x4110ea){const _0x2f4e6f=_0x282358;super(_0xfcf09d,_0x322258,_0x2c7d2f,_0x10de04,_0x4110ea);let _0xcd69c=this['_configService'][_0x2f4e6f(0x173)](_0x1f8a00);this[_0x2f4e6f(0x161)]['registerHTTPInterceptor']({'interceptor':(_0x4ba93d,_0x4b5cb1)=>{const _0x4f2882=_0x2f4e6f;let _0x5c6f02=_0x4ba93d[_0x4f2882(0x17a)];if(_0xcd69c!=null&&_0xcd69c['customHeaders']){for(let _0x1aec1f in _0xcd69c[_0x4f2882(0x17b)])_0x5c6f02[_0x4f2882(0x16c)](_0x1aec1f,_0xcd69c['customHeaders'][_0x1aec1f]);}return _0x4b5cb1(_0x4ba93d);}});}async[_0x282358(0x177)](_0x56d470){const _0xee5541=_0x282358;return this[_0xee5541(0x16f)](_0x56d470);}};j=w([C(0x0,_0x465221(_0x510a5c)),C(0x1,_0x465221(_0x2743f6)),C(0x2,_0x170b69),C(0x3,_0x36bde4),C(0x4,_0x1128da)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x30c6(){const _0xff6f1=['304762tsSTWp','UniverCollaborationClientPlugin','symbol','add','@univerjs/core','3776778WbSNOT','set','@univerjs/network','126889JsbIaC','WebSocket','message','constructor','rxjs','UniverCollaborationClientNodePlugin','UniverProCollaborationClientNode','call','UniverNetwork','55DXaUTs','Inject','string','headers','getConfig','pluginName','ILogService','Injector','close','Observable','_doCreateSocket','3350088rfCPSB','toDisposable','prototype','createSocket','310659Kdxspk','packageName','exports','setConfig','IConfigService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','ISnapshotServerService','@univerjs-pro/collaboration-client-node','0.22.1','DependentOn','_injector','UniverProCollaboration','registerDependencies','registerHTTPInterceptor','collaboration-client-node.config','UniverCore','_registerDependencies','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','version','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','share','next','pipe','toPrimitive','_configService','6384666azpWsp','object','function','amd','NodeCollaborationSocketService','customHeaders','560RnUVqU','CollaborationSocketService','default','defineProperty','toStringTag','length','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','_httpService','error','getOwnPropertyDescriptor','9192wbwUno','removeEventListener','decorate','open','ISocketService','addEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'];_0x30c6=function(){return _0xff6f1;};return _0x30c6();}function _0x1240(_0x3a53e1,_0x5b4522){_0x3a53e1=_0x3a53e1-0x8a;const _0x30c644=_0x30c6();let _0x1240b7=_0x30c644[_0x3a53e1];return _0x1240b7;}(function(_0x475586,_0x5c47ec){const _0x5b43fd=_0x1240,_0x5b8a52=_0x475586();while(!![]){try{const _0x259cc9=-parseInt(_0x5b43fd(0x9b))/0x1+parseInt(_0x5b43fd(0xcb))/0x2+parseInt(_0x5b43fd(0x97))/0x3+parseInt(_0x5b43fd(0xc4))/0x4*(parseInt(_0x5b43fd(0x8c))/0x5)+-parseInt(_0x5b43fd(0xb4))/0x6+parseInt(_0x5b43fd(0xd3))/0x7*(parseInt(_0x5b43fd(0xba))/0x8)+-parseInt(_0x5b43fd(0xd0))/0x9;if(_0x259cc9===_0x5c47ec)break;else _0x5b8a52['push'](_0x5b8a52['shift']());}catch(_0x19ef2c){_0x5b8a52['push'](_0x5b8a52['shift']());}}}(_0x30c6,0xbbb41),function(_0x245513,_0x12fc69){const _0x3a1578=_0x1240;typeof exports==_0x3a1578(0xb5)&&typeof module<'u'?_0x12fc69(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x3a1578(0xb6)&&define[_0x3a1578(0xb7)]?define([_0x3a1578(0x9d),'@univerjs-pro/collaboration-client',_0x3a1578(0xcf),_0x3a1578(0xd2),_0x3a1578(0xd7),'@univerjs-pro/collaboration'],_0x12fc69):(_0x245513=typeof globalThis<'u'?globalThis:_0x245513||self,_0x12fc69(_0x245513[_0x3a1578(0xd9)]={},_0x245513['UniverProCollaborationClient'],_0x245513[_0x3a1578(0xaa)],_0x245513[_0x3a1578(0x8b)],_0x245513[_0x3a1578(0xd7)],_0x245513[_0x3a1578(0xa6)]));}(this,function(_0x4b6854,_0x37f31d,_0x3a7177,_0x8073b5,_0xbb2d2c,_0x4db3f2){const _0x1e9608=_0x1240;Object[_0x1e9608(0xbd)](_0x4b6854,Symbol[_0x1e9608(0xbe)],{'value':'Module'});var _0x2ad078=(_0x39aed4,_0x4c33cd)=>()=>(_0x4c33cd||(_0x39aed4((_0x4c33cd={'exports':{}})[_0x1e9608(0x9d)],_0x4c33cd),_0x39aed4=null),_0x4c33cd[_0x1e9608(0x9d)]);let _0x541963=_0x1e9608(0xa9);Symbol(_0x541963);let _0x5973ca={};var _0xee6f87=_0x1e9608(0xa2),_0x39f5c6=_0x1e9608(0xa3),_0x32198f=_0x2ad078((_0x5ffe89,_0x3d4b16)=>{const _0x442c97=_0x1e9608;_0x3d4b16[_0x442c97(0x9d)]=function(){const _0xaf5f77=_0x442c97;throw Error(_0xaf5f77(0xc0));};})();function _0x1de4f0(_0x30e9d3,_0x48b36f){return function(_0x54a2ed,_0x446f95){_0x48b36f(_0x54a2ed,_0x446f95,_0x30e9d3);};}function _0xdd215f(_0x3c4de8,_0x4363c3,_0x3111a4,_0x3f4a69){const _0x5d154d=_0x1e9608;var _0x470684=arguments[_0x5d154d(0xbf)],_0x4dc0c7=_0x470684<0x3?_0x4363c3:_0x3f4a69===null?_0x3f4a69=Object[_0x5d154d(0xc3)](_0x4363c3,_0x3111a4):_0x3f4a69,_0x5eb645;if(typeof Reflect==_0x5d154d(0xb5)&&typeof Reflect[_0x5d154d(0xc6)]==_0x5d154d(0xb6))_0x4dc0c7=Reflect['decorate'](_0x3c4de8,_0x4363c3,_0x3111a4,_0x3f4a69);else{for(var _0x3c364a=_0x3c4de8[_0x5d154d(0xbf)]-0x1;_0x3c364a>=0x0;_0x3c364a--)(_0x5eb645=_0x3c4de8[_0x3c364a])&&(_0x4dc0c7=(_0x470684<0x3?_0x5eb645(_0x4dc0c7):_0x470684>0x3?_0x5eb645(_0x4363c3,_0x3111a4,_0x4dc0c7):_0x5eb645(_0x4363c3,_0x3111a4))||_0x4dc0c7);}return _0x470684>0x3&&_0x4dc0c7&&Object[_0x5d154d(0xbd)](_0x4363c3,_0x3111a4,_0x4dc0c7),_0x4dc0c7;}let _0x1f31b2=class extends _0x3a7177['Disposable']{constructor(_0x2b451d){const _0x3ca9d6=_0x1e9608;super(),this[_0x3ca9d6(0xb3)]=_0x2b451d;}[_0x1e9608(0x9a)](_0x46ca66){const _0x3054e5=_0x1e9608;var _0x427539;let _0x8b788c=((_0x427539=this[_0x3054e5(0xb3)][_0x3054e5(0x90)](_0x37f31d[_0x3054e5(0xae)]))==null?void 0x0:_0x427539[_0x3054e5(0xb9)])||{};try{let _0x34682a=new _0x32198f[(_0x3054e5(0xd4))](_0x46ca66,{'headers':{..._0x8b788c}}),_0x21846c=new _0x3a7177['DisposableCollection']();return{'URL':_0x46ca66,'close':(_0x392ba9,_0x488d8f)=>{const _0x51cc92=_0x3054e5;_0x34682a[_0x51cc92(0x94)](_0x392ba9,_0x488d8f),_0x21846c['dispose']();},'send':_0x4144b5=>{_0x34682a['send'](_0x4144b5);},'open$':new _0xbb2d2c['Observable'](_0x1c03b3=>{const _0x5bc997=_0x3054e5;let _0x206231=_0x1d7173=>_0x1c03b3[_0x5bc997(0xb0)](_0x1d7173);_0x34682a['addEventListener'](_0x5bc997(0xc7),_0x206231),_0x21846c[_0x5bc997(0xce)]((0x0,_0x3a7177[_0x5bc997(0x98)])(()=>_0x34682a[_0x5bc997(0xc5)](_0x5bc997(0xc7),_0x206231)));})['pipe']((0x0,_0xbb2d2c['share'])()),'close$':new _0xbb2d2c['Observable'](_0x3b9d1c=>{const _0x2a82c4=_0x3054e5;let _0x18a9bd=_0x4e7662=>_0x3b9d1c['next'](_0x4e7662);_0x34682a[_0x2a82c4(0xc9)](_0x2a82c4(0x94),_0x18a9bd),_0x21846c[_0x2a82c4(0xce)]((0x0,_0x3a7177['toDisposable'])(()=>_0x34682a[_0x2a82c4(0xc5)](_0x2a82c4(0x94),_0x18a9bd)));})['pipe']((0x0,_0xbb2d2c[_0x3054e5(0xaf)])()),'error$':new _0xbb2d2c[(_0x3054e5(0x95))](_0x193eb9=>{const _0x3c8be0=_0x3054e5;let _0x34034d=_0x102072=>_0x193eb9['next'](_0x102072);_0x34682a[_0x3c8be0(0xc9)](_0x3c8be0(0xc2),_0x34034d),_0x21846c[_0x3c8be0(0xce)]((0x0,_0x3a7177['toDisposable'])(()=>_0x34682a[_0x3c8be0(0xc5)](_0x3c8be0(0xc2),_0x34034d)));})['pipe']((0x0,_0xbb2d2c['share'])()),'message$':new _0xbb2d2c[(_0x3054e5(0x95))](_0x136aab=>{const _0x60f084=_0x3054e5;let _0x3a506e=_0x257d2e=>_0x136aab[_0x60f084(0xb0)](_0x257d2e);_0x34682a['addEventListener'](_0x60f084(0xd5),_0x3a506e),_0x21846c[_0x60f084(0xce)]((0x0,_0x3a7177['toDisposable'])(()=>_0x34682a[_0x60f084(0xc5)]('message',_0x3a506e)));})[_0x3054e5(0xb1)]((0x0,_0xbb2d2c[_0x3054e5(0xaf)])())};}catch(_0x12ced6){return console[_0x3054e5(0xc2)](_0x12ced6),null;}}};_0x1f31b2=_0xdd215f([_0x1de4f0(0x0,_0x3a7177[_0x1e9608(0x9f)])],_0x1f31b2);function _0xf38b17(_0x244c91){'@babel/helpers - typeof';const _0x3bb8ef=_0x1e9608;return _0xf38b17=typeof Symbol==_0x3bb8ef(0xb6)&&typeof Symbol['iterator']==_0x3bb8ef(0xcd)?function(_0x3b4196){return typeof _0x3b4196;}:function(_0x25aec8){const _0x4de823=_0x3bb8ef;return _0x25aec8&&typeof Symbol==_0x4de823(0xb6)&&_0x25aec8[_0x4de823(0xd6)]===Symbol&&_0x25aec8!==Symbol[_0x4de823(0x99)]?_0x4de823(0xcd):typeof _0x25aec8;},_0xf38b17(_0x244c91);}function _0x14bdd1(_0x145aae,_0xec721d){const _0x1589dd=_0x1e9608;if(_0xf38b17(_0x145aae)!=_0x1589dd(0xb5)||!_0x145aae)return _0x145aae;var _0x30c779=_0x145aae[Symbol[_0x1589dd(0xb2)]];if(_0x30c779!==void 0x0){var _0x5b5c0e=_0x30c779[_0x1589dd(0x8a)](_0x145aae,_0xec721d||_0x1589dd(0xbc));if(_0xf38b17(_0x5b5c0e)!=_0x1589dd(0xb5))return _0x5b5c0e;throw TypeError(_0x1589dd(0xac));}return(_0xec721d===_0x1589dd(0x8e)?String:Number)(_0x145aae);}function _0x1aa2f2(_0x539ebb){const _0x31be72=_0x1e9608;var _0x45a1b8=_0x14bdd1(_0x539ebb,_0x31be72(0x8e));return _0xf38b17(_0x45a1b8)==_0x31be72(0xcd)?_0x45a1b8:_0x45a1b8+'';}function _0x39897f(_0x18d48d,_0x17ba5b,_0x3f4cf){const _0x3eb273=_0x1e9608;return(_0x17ba5b=_0x1aa2f2(_0x17ba5b))in _0x18d48d?Object[_0x3eb273(0xbd)](_0x18d48d,_0x17ba5b,{'value':_0x3f4cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18d48d[_0x17ba5b]=_0x3f4cf,_0x18d48d;}let _0x47a2b4=class extends _0x3a7177['Plugin']{constructor(_0x3a62c6=_0x5973ca,_0x474e01,_0x2802ea){const _0x17bbca=_0x1e9608;super(),this['_configService']=_0x474e01,this[_0x17bbca(0xa5)]=_0x2802ea,this[_0x17bbca(0xb3)][_0x17bbca(0x9e)](_0x541963,_0x3a62c6);}['onStarting'](){const _0x696db3=_0x1e9608;this[_0x696db3(0xab)]();}['_registerDependencies'](){const _0x5a3b39=_0x1e9608;(0x0,_0x3a7177[_0x5a3b39(0xa7)])(this[_0x5a3b39(0xa5)],[[_0x8073b5[_0x5a3b39(0xc8)],{'useClass':_0x1f31b2}]]);}};_0x39897f(_0x47a2b4,_0x1e9608(0x91),_0x1e9608(0xca)),_0x39897f(_0x47a2b4,_0x1e9608(0x9c),_0xee6f87),_0x39897f(_0x47a2b4,_0x1e9608(0xad),_0x39f5c6),_0x47a2b4=_0xdd215f([(0x0,_0x3a7177[_0x1e9608(0xa4)])(_0x37f31d[_0x1e9608(0xcc)]),_0x1de4f0(0x1,_0x3a7177['IConfigService']),_0x1de4f0(0x2,(0x0,_0x3a7177['Inject'])(_0x3a7177[_0x1e9608(0x93)]))],_0x47a2b4);let _0x502d98=class extends _0x37f31d[_0x1e9608(0xbb)]{constructor(_0x56e50a,_0xf2e715,_0x49604f,_0x1d2d7f,_0x8b510){const _0xd4b5ab=_0x1e9608;super(_0x56e50a,_0xf2e715,_0x49604f,_0x1d2d7f,_0x8b510);let _0x2ccc43=this['_configService'][_0xd4b5ab(0x90)](_0x37f31d['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0xd4b5ab(0xc1)][_0xd4b5ab(0xa8)]({'interceptor':(_0x57f8fa,_0x1ec666)=>{const _0x28d271=_0xd4b5ab;let _0x40dbb5=_0x57f8fa[_0x28d271(0x8f)];if(_0x2ccc43!=null&&_0x2ccc43[_0x28d271(0xb9)]){for(let _0x5e832f in _0x2ccc43[_0x28d271(0xb9)])_0x40dbb5[_0x28d271(0xd1)](_0x5e832f,_0x2ccc43[_0x28d271(0xb9)][_0x5e832f]);}return _0x1ec666(_0x57f8fa);}});}async['createSocket'](_0x1d59a2){const _0x347c0b=_0x1e9608;return this[_0x347c0b(0x96)](_0x1d59a2);}};_0x502d98=_0xdd215f([_0x1de4f0(0x0,(0x0,_0x3a7177[_0x1e9608(0x8d)])(_0x3a7177[_0x1e9608(0x93)])),_0x1de4f0(0x1,(0x0,_0x3a7177[_0x1e9608(0x8d)])(_0x8073b5['HTTPService'])),_0x1de4f0(0x2,_0x3a7177['IConfigService']),_0x1de4f0(0x3,_0x3a7177[_0x1e9608(0x92)]),_0x1de4f0(0x4,_0x4db3f2[_0x1e9608(0xa1)])],_0x502d98),_0x4b6854[_0x1e9608(0xa0)]=_0x541963,Object[_0x1e9608(0xbd)](_0x4b6854,_0x1e9608(0xb8),{'enumerable':!0x0,'get':function(){return _0x502d98;}}),Object[_0x1e9608(0xbd)](_0x4b6854,_0x1e9608(0xd8),{'enumerable':!0x0,'get':function(){return _0x47a2b4;}});}));
|
|
1
|
+
function _0x5701(_0x3306b2,_0x5496b1){_0x3306b2=_0x3306b2-0x93;const _0x163ab8=_0x163a();let _0x570150=_0x163ab8[_0x3306b2];return _0x570150;}function _0x163a(){const _0xb37e76=['open','share','add','UniverCore','UniverProCollaboration','Observable','12058991ItSRTG','packageName','addEventListener','next','UniverCollaborationClientPlugin','_registerDependencies','message','2902365hLmsmd','UniverNetwork','Inject','error','UniverCollaborationClientNodePlugin','version','rxjs','IConfigService','customHeaders','exports','getConfig','string','DisposableCollection','collaboration-client-node.config','object','838860gZmAwB','function','NodeCollaborationSocketService','createSocket','ILogService','toStringTag','359439GBQczQ','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','DependentOn','Module','@univerjs-pro/collaboration-client','toPrimitive','@univerjs/network','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_configService','decorate','registerHTTPInterceptor','2242264DjrOQN','iterator','dispose','setConfig','send','constructor','244416LLXTtI','@univerjs-pro/collaboration','default','close','prototype','ISnapshotServerService','onStarting','defineProperty','@univerjs-pro/collaboration-client-node','removeEventListener','pipe','registerDependencies','ISocketService','symbol','call','WebSocket','_doCreateSocket','Injector','pluginName','6856500lVrHdI','UniverProCollaborationClient','0.23.0-insiders.20260522-ee0b0a4','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','getOwnPropertyDescriptor','toDisposable','_httpService'];_0x163a=function(){return _0xb37e76;};return _0x163a();}(function(_0x4a2186,_0xda0b5c){const _0x41442a=_0x5701,_0x4ef400=_0x4a2186();while(!![]){try{const _0x4c9dbd=-parseInt(_0x41442a(0x9a))/0x1+-parseInt(_0x41442a(0xac))/0x2+parseInt(_0x41442a(0xd3))/0x3+parseInt(_0x41442a(0xa6))/0x4+parseInt(_0x41442a(0xbf))/0x5+parseInt(_0x41442a(0x94))/0x6+-parseInt(_0x41442a(0xcc))/0x7;if(_0x4c9dbd===_0xda0b5c)break;else _0x4ef400['push'](_0x4ef400['shift']());}catch(_0x1e6d21){_0x4ef400['push'](_0x4ef400['shift']());}}}(_0x163a,0xcbcd3),function(_0x240f40,_0x251414){const _0x33e6d7=_0x5701;typeof exports==_0x33e6d7(0x93)&&typeof module<'u'?_0x251414(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',_0x33e6d7(0x9e),'@univerjs/core',_0x33e6d7(0xa0),_0x33e6d7(0xd9),_0x33e6d7(0xad)],_0x251414):(_0x240f40=typeof globalThis<'u'?globalThis:_0x240f40||self,_0x251414(_0x240f40['UniverProCollaborationClientNode']={},_0x240f40[_0x33e6d7(0xc0)],_0x240f40[_0x33e6d7(0xc9)],_0x240f40[_0x33e6d7(0xd4)],_0x240f40[_0x33e6d7(0xd9)],_0x240f40[_0x33e6d7(0xca)]));}(this,function(_0x5ceb3c,_0x50b896,_0x1ecf53,_0x2f121e,_0x385e91,_0x1d02df){const _0xfb7424=_0x5701;Object[_0xfb7424(0xb3)](_0x5ceb3c,Symbol[_0xfb7424(0x99)],{'value':_0xfb7424(0x9d)});var _0x3ddd5e=(_0x5219ff,_0xd0d683)=>()=>(_0xd0d683||(_0x5219ff((_0xd0d683={'exports':{}})[_0xfb7424(0xdc)],_0xd0d683),_0x5219ff=null),_0xd0d683[_0xfb7424(0xdc)]);let _0x58a71e=_0xfb7424(0xe0);Symbol(_0x58a71e);let _0x256709={};var _0x58794e=_0xfb7424(0xb4),_0x4a75ae=_0xfb7424(0xc1),_0x3d4b90=_0x3ddd5e((_0x3b9405,_0x47cc2e)=>{_0x47cc2e['exports']=function(){const _0x52b499=_0x5701;throw Error(_0x52b499(0xc2));};})();function _0x2946d0(_0x25a19d,_0x3a2bd8){return function(_0x58ea5d,_0x3b110b){_0x3a2bd8(_0x58ea5d,_0x3b110b,_0x25a19d);};}function _0x22bacf(_0x56d81e,_0x29fb50,_0x4bcf46,_0x322ff0){const _0x553d14=_0xfb7424;var _0x2bfc9c=arguments['length'],_0x30381f=_0x2bfc9c<0x3?_0x29fb50:_0x322ff0===null?_0x322ff0=Object[_0x553d14(0xc3)](_0x29fb50,_0x4bcf46):_0x322ff0,_0x1964e1;if(typeof Reflect==_0x553d14(0x93)&&typeof Reflect[_0x553d14(0xa4)]==_0x553d14(0x95))_0x30381f=Reflect['decorate'](_0x56d81e,_0x29fb50,_0x4bcf46,_0x322ff0);else{for(var _0x29130e=_0x56d81e['length']-0x1;_0x29130e>=0x0;_0x29130e--)(_0x1964e1=_0x56d81e[_0x29130e])&&(_0x30381f=(_0x2bfc9c<0x3?_0x1964e1(_0x30381f):_0x2bfc9c>0x3?_0x1964e1(_0x29fb50,_0x4bcf46,_0x30381f):_0x1964e1(_0x29fb50,_0x4bcf46))||_0x30381f);}return _0x2bfc9c>0x3&&_0x30381f&&Object[_0x553d14(0xb3)](_0x29fb50,_0x4bcf46,_0x30381f),_0x30381f;}let _0x1edd01=class extends _0x1ecf53['Disposable']{constructor(_0x52db91){const _0x21eac8=_0xfb7424;super(),this[_0x21eac8(0xa3)]=_0x52db91;}['createSocket'](_0x3b6acb){const _0x5eada0=_0xfb7424;var _0x4df563;let _0xcdfe96=((_0x4df563=this[_0x5eada0(0xa3)]['getConfig'](_0x50b896[_0x5eada0(0x9b)]))==null?void 0x0:_0x4df563[_0x5eada0(0xdb)])||{};try{let _0x678a9f=new _0x3d4b90[(_0x5eada0(0xbb))](_0x3b6acb,{'headers':{..._0xcdfe96}}),_0x471e9d=new _0x1ecf53[(_0x5eada0(0xdf))]();return{'URL':_0x3b6acb,'close':(_0x16d092,_0x13e1ae)=>{const _0x26c4bf=_0x5eada0;_0x678a9f['close'](_0x16d092,_0x13e1ae),_0x471e9d[_0x26c4bf(0xa8)]();},'send':_0x7a3333=>{const _0x4a7393=_0x5eada0;_0x678a9f[_0x4a7393(0xaa)](_0x7a3333);},'open$':new _0x385e91['Observable'](_0x597743=>{const _0x1f332b=_0x5eada0;let _0x55206f=_0x19fbb1=>_0x597743[_0x1f332b(0xcf)](_0x19fbb1);_0x678a9f[_0x1f332b(0xce)](_0x1f332b(0xc6),_0x55206f),_0x471e9d[_0x1f332b(0xc8)]((0x0,_0x1ecf53[_0x1f332b(0xc4)])(()=>_0x678a9f['removeEventListener'](_0x1f332b(0xc6),_0x55206f)));})[_0x5eada0(0xb6)]((0x0,_0x385e91['share'])()),'close$':new _0x385e91[(_0x5eada0(0xcb))](_0x43f1f1=>{const _0x445e81=_0x5eada0;let _0x47d742=_0x27e183=>_0x43f1f1['next'](_0x27e183);_0x678a9f[_0x445e81(0xce)](_0x445e81(0xaf),_0x47d742),_0x471e9d['add']((0x0,_0x1ecf53[_0x445e81(0xc4)])(()=>_0x678a9f[_0x445e81(0xb5)](_0x445e81(0xaf),_0x47d742)));})[_0x5eada0(0xb6)]((0x0,_0x385e91[_0x5eada0(0xc7)])()),'error$':new _0x385e91[(_0x5eada0(0xcb))](_0xc3ba6a=>{const _0xde792f=_0x5eada0;let _0x292977=_0x504c69=>_0xc3ba6a[_0xde792f(0xcf)](_0x504c69);_0x678a9f[_0xde792f(0xce)](_0xde792f(0xd6),_0x292977),_0x471e9d[_0xde792f(0xc8)]((0x0,_0x1ecf53[_0xde792f(0xc4)])(()=>_0x678a9f[_0xde792f(0xb5)](_0xde792f(0xd6),_0x292977)));})[_0x5eada0(0xb6)]((0x0,_0x385e91['share'])()),'message$':new _0x385e91[(_0x5eada0(0xcb))](_0x23fc17=>{const _0x4ff137=_0x5eada0;let _0x5e8a4d=_0x160bc4=>_0x23fc17[_0x4ff137(0xcf)](_0x160bc4);_0x678a9f[_0x4ff137(0xce)](_0x4ff137(0xd2),_0x5e8a4d),_0x471e9d[_0x4ff137(0xc8)]((0x0,_0x1ecf53['toDisposable'])(()=>_0x678a9f['removeEventListener']('message',_0x5e8a4d)));})[_0x5eada0(0xb6)]((0x0,_0x385e91['share'])())};}catch(_0x184102){return console['error'](_0x184102),null;}}};_0x1edd01=_0x22bacf([_0x2946d0(0x0,_0x1ecf53[_0xfb7424(0xda)])],_0x1edd01);function _0x46a473(_0x48282e){'@babel/helpers - typeof';const _0x38c752=_0xfb7424;return _0x46a473=typeof Symbol==_0x38c752(0x95)&&typeof Symbol[_0x38c752(0xa7)]=='symbol'?function(_0x4b1847){return typeof _0x4b1847;}:function(_0x57c0b4){const _0x4ce9e3=_0x38c752;return _0x57c0b4&&typeof Symbol==_0x4ce9e3(0x95)&&_0x57c0b4[_0x4ce9e3(0xab)]===Symbol&&_0x57c0b4!==Symbol[_0x4ce9e3(0xb0)]?_0x4ce9e3(0xb9):typeof _0x57c0b4;},_0x46a473(_0x48282e);}function _0x3c33f5(_0x5c0b6f,_0x483317){const _0x13dc8e=_0xfb7424;if(_0x46a473(_0x5c0b6f)!=_0x13dc8e(0x93)||!_0x5c0b6f)return _0x5c0b6f;var _0xb7e0fd=_0x5c0b6f[Symbol[_0x13dc8e(0x9f)]];if(_0xb7e0fd!==void 0x0){var _0x285cb8=_0xb7e0fd[_0x13dc8e(0xba)](_0x5c0b6f,_0x483317||_0x13dc8e(0xae));if(_0x46a473(_0x285cb8)!='object')return _0x285cb8;throw TypeError(_0x13dc8e(0xa2));}return(_0x483317===_0x13dc8e(0xde)?String:Number)(_0x5c0b6f);}function _0x43fa10(_0x14439f){const _0x10a334=_0xfb7424;var _0x1244d3=_0x3c33f5(_0x14439f,_0x10a334(0xde));return _0x46a473(_0x1244d3)==_0x10a334(0xb9)?_0x1244d3:_0x1244d3+'';}function _0x5891a8(_0x18f428,_0x143cf7,_0x5a2673){const _0x3c97bc=_0xfb7424;return(_0x143cf7=_0x43fa10(_0x143cf7))in _0x18f428?Object[_0x3c97bc(0xb3)](_0x18f428,_0x143cf7,{'value':_0x5a2673,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18f428[_0x143cf7]=_0x5a2673,_0x18f428;}let _0x5a3c48=class extends _0x1ecf53['Plugin']{constructor(_0x29db8d=_0x256709,_0x29a80a,_0x139e8a){const _0x1a1b50=_0xfb7424;super(),this['_configService']=_0x29a80a,this[_0x1a1b50(0xa1)]=_0x139e8a,this[_0x1a1b50(0xa3)][_0x1a1b50(0xa9)](_0x58a71e,_0x29db8d);}[_0xfb7424(0xb2)](){const _0x36db47=_0xfb7424;this[_0x36db47(0xd1)]();}['_registerDependencies'](){const _0x304ee2=_0xfb7424;(0x0,_0x1ecf53[_0x304ee2(0xb7)])(this['_injector'],[[_0x2f121e[_0x304ee2(0xb8)],{'useClass':_0x1edd01}]]);}};_0x5891a8(_0x5a3c48,_0xfb7424(0xbe),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x5891a8(_0x5a3c48,_0xfb7424(0xcd),_0x58794e),_0x5891a8(_0x5a3c48,_0xfb7424(0xd8),_0x4a75ae),_0x5a3c48=_0x22bacf([(0x0,_0x1ecf53[_0xfb7424(0x9c)])(_0x50b896[_0xfb7424(0xd0)]),_0x2946d0(0x1,_0x1ecf53[_0xfb7424(0xda)]),_0x2946d0(0x2,(0x0,_0x1ecf53[_0xfb7424(0xd5)])(_0x1ecf53[_0xfb7424(0xbd)]))],_0x5a3c48);let _0x2a7a0c=class extends _0x50b896['CollaborationSocketService']{constructor(_0x73b267,_0x4a23e6,_0xe01d94,_0x136816,_0x37df78){const _0x1b1360=_0xfb7424;super(_0x73b267,_0x4a23e6,_0xe01d94,_0x136816,_0x37df78);let _0x4a4de2=this[_0x1b1360(0xa3)][_0x1b1360(0xdd)](_0x50b896[_0x1b1360(0x9b)]);this[_0x1b1360(0xc5)][_0x1b1360(0xa5)]({'interceptor':(_0x48578b,_0x1e4262)=>{const _0x30b47f=_0x1b1360;let _0x2da39f=_0x48578b['headers'];if(_0x4a4de2!=null&&_0x4a4de2[_0x30b47f(0xdb)]){for(let _0x57958b in _0x4a4de2[_0x30b47f(0xdb)])_0x2da39f['set'](_0x57958b,_0x4a4de2[_0x30b47f(0xdb)][_0x57958b]);}return _0x1e4262(_0x48578b);}});}async[_0xfb7424(0x97)](_0x4fe2a0){const _0x269191=_0xfb7424;return this[_0x269191(0xbc)](_0x4fe2a0);}};_0x2a7a0c=_0x22bacf([_0x2946d0(0x0,(0x0,_0x1ecf53[_0xfb7424(0xd5)])(_0x1ecf53['Injector'])),_0x2946d0(0x1,(0x0,_0x1ecf53[_0xfb7424(0xd5)])(_0x2f121e['HTTPService'])),_0x2946d0(0x2,_0x1ecf53[_0xfb7424(0xda)]),_0x2946d0(0x3,_0x1ecf53[_0xfb7424(0x98)]),_0x2946d0(0x4,_0x1d02df[_0xfb7424(0xb1)])],_0x2a7a0c),_0x5ceb3c['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x58a71e,Object[_0xfb7424(0xb3)](_0x5ceb3c,_0xfb7424(0x96),{'enumerable':!0x0,'get':function(){return _0x2a7a0c;}}),Object['defineProperty'](_0x5ceb3c,_0xfb7424(0xd7),{'enumerable':!0x0,'get':function(){return _0x5a3c48;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0-insiders.20260522-ee0b0a4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Node.js collaboration client plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"rxjs": ">=7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"ws": "8.20.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs-pro/collaboration": "0.
|
|
57
|
-
"@univerjs/network": "0.
|
|
58
|
-
"@univerjs
|
|
54
|
+
"ws": "8.20.1",
|
|
55
|
+
"@univerjs-pro/collaboration": "0.23.0-insiders.20260522-ee0b0a4",
|
|
56
|
+
"@univerjs-pro/collaboration-client": "0.23.0-insiders.20260522-ee0b0a4",
|
|
57
|
+
"@univerjs/network": "0.23.0-insiders.20260522-ee0b0a4",
|
|
58
|
+
"@univerjs/core": "0.23.0-insiders.20260522-ee0b0a4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/ws": "8.18.1",
|
|
62
62
|
"rxjs": "7.8.2",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
|
-
"vitest": "^4.1.
|
|
65
|
-
"@univerjs-infra/shared": "0.
|
|
64
|
+
"vitest": "^4.1.6",
|
|
65
|
+
"@univerjs-infra/shared": "0.23.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"test": "vitest run",
|