@univerjs-pro/collaboration-client-node 0.18.0 → 0.19.0-insiders.20260403-3e0e122
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
|
|
1
|
+
const _0x48b267=_0x5aeb;(function(_0x2c9408,_0xd6dc93){const _0x187020=_0x5aeb,_0x40843c=_0x2c9408();while(!![]){try{const _0x1a60a9=-parseInt(_0x187020(0x180))/0x1+parseInt(_0x187020(0x1b1))/0x2*(parseInt(_0x187020(0x1a1))/0x3)+parseInt(_0x187020(0x188))/0x4*(parseInt(_0x187020(0x172))/0x5)+-parseInt(_0x187020(0x1b0))/0x6+parseInt(_0x187020(0x19c))/0x7*(parseInt(_0x187020(0x170))/0x8)+parseInt(_0x187020(0x198))/0x9*(-parseInt(_0x187020(0x195))/0xa)+parseInt(_0x187020(0x192))/0xb;if(_0x1a60a9===_0xd6dc93)break;else _0x40843c['push'](_0x40843c['shift']());}catch(_0x2a5851){_0x40843c['push'](_0x40843c['shift']());}}}(_0x1c90,0x2acda),Object[_0x48b267(0x194)](exports,Symbol[_0x48b267(0x178)],{'value':_0x48b267(0x18a)}));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=_0x48b267(0x1a3);Symbol(o);const s={};function _0x5aeb(_0x2ce9ef,_0x288667){_0x2ce9ef=_0x2ce9ef-0x170;const _0x1c9013=_0x1c90();let _0x5aeb17=_0x1c9013[_0x2ce9ef];return _0x5aeb17;}var c=_0x48b267(0x184),l=_0x48b267(0x1ab);function u(_0x4d857d,_0x48b0f5){return function(_0x3afd7d,_0x476dd5){_0x48b0f5(_0x3afd7d,_0x476dd5,_0x4d857d);};}function d(_0x5cc936,_0x5942b5,_0x31d583,_0x10f392){const _0x1b0434=_0x48b267;var _0x39464d=arguments[_0x1b0434(0x19b)],_0x5cfc06=_0x39464d<0x3?_0x5942b5:_0x10f392===null?_0x10f392=Object[_0x1b0434(0x18d)](_0x5942b5,_0x31d583):_0x10f392,_0x350905;if(typeof Reflect==_0x1b0434(0x173)&&typeof Reflect['decorate']==_0x1b0434(0x18c))_0x5cfc06=Reflect[_0x1b0434(0x193)](_0x5cc936,_0x5942b5,_0x31d583,_0x10f392);else{for(var _0x158dca=_0x5cc936[_0x1b0434(0x19b)]-0x1;_0x158dca>=0x0;_0x158dca--)(_0x350905=_0x5cc936[_0x158dca])&&(_0x5cfc06=(_0x39464d<0x3?_0x350905(_0x5cfc06):_0x39464d>0x3?_0x350905(_0x5942b5,_0x31d583,_0x5cfc06):_0x350905(_0x5942b5,_0x31d583))||_0x5cfc06);}return _0x39464d>0x3&&_0x5cfc06&&Object['defineProperty'](_0x5942b5,_0x31d583,_0x5cfc06),_0x5cfc06;}let f=class extends t[_0x48b267(0x185)]{constructor(_0x2894ed){const _0xcd007e=_0x48b267;super(),this[_0xcd007e(0x171)]=_0x2894ed;}['createSocket'](_0x5b31df){const _0x27cd5f=_0x48b267;var _0x2b2035;let _0xfd037d=((_0x2b2035=this[_0x27cd5f(0x171)][_0x27cd5f(0x17d)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x2b2035[_0x27cd5f(0x1ae)])||{};try{let _0x2e75e8=new i[(_0x27cd5f(0x191))](_0x5b31df,{'headers':{..._0xfd037d}}),_0xe740b2=new t[(_0x27cd5f(0x196))]();return{'URL':_0x5b31df,'close':(_0x4301a0,_0x51cf8c)=>{const _0xdeff47=_0x27cd5f;_0x2e75e8[_0xdeff47(0x187)](_0x4301a0,_0x51cf8c),_0xe740b2[_0xdeff47(0x18f)]();},'send':_0x15a17d=>{_0x2e75e8['send'](_0x15a17d);},'open$':new r[(_0x27cd5f(0x190))](_0x37ca44=>{const _0x156494=_0x27cd5f;let _0x4af0b4=_0x344f98=>_0x37ca44['next'](_0x344f98);_0x2e75e8[_0x156494(0x1a5)]('open',_0x4af0b4),_0xe740b2[_0x156494(0x197)]((0x0,t[_0x156494(0x181)])(()=>_0x2e75e8['removeEventListener']('open',_0x4af0b4)));})[_0x27cd5f(0x1b2)]((0x0,r['share'])()),'close$':new r[(_0x27cd5f(0x190))](_0x3ea9db=>{const _0xc5e6d8=_0x27cd5f;let _0x5342da=_0xe9bad0=>_0x3ea9db['next'](_0xe9bad0);_0x2e75e8[_0xc5e6d8(0x1a5)](_0xc5e6d8(0x187),_0x5342da),_0xe740b2[_0xc5e6d8(0x197)]((0x0,t['toDisposable'])(()=>_0x2e75e8['removeEventListener']('close',_0x5342da)));})[_0x27cd5f(0x1b2)]((0x0,r['share'])()),'error$':new r[(_0x27cd5f(0x190))](_0x3ac5aa=>{const _0x3347a4=_0x27cd5f;let _0x4afe02=_0x3750a7=>_0x3ac5aa['next'](_0x3750a7);_0x2e75e8[_0x3347a4(0x1a5)](_0x3347a4(0x17b),_0x4afe02),_0xe740b2['add']((0x0,t[_0x3347a4(0x181)])(()=>_0x2e75e8[_0x3347a4(0x1a0)](_0x3347a4(0x17b),_0x4afe02)));})['pipe']((0x0,r[_0x27cd5f(0x19f)])()),'message$':new r['Observable'](_0x4a19c2=>{const _0x4a07e1=_0x27cd5f;let _0x2583a0=_0x464a86=>_0x4a19c2[_0x4a07e1(0x1ac)](_0x464a86);_0x2e75e8[_0x4a07e1(0x1a5)](_0x4a07e1(0x183),_0x2583a0),_0xe740b2['add']((0x0,t[_0x4a07e1(0x181)])(()=>_0x2e75e8[_0x4a07e1(0x1a0)](_0x4a07e1(0x183),_0x2583a0)));})[_0x27cd5f(0x1b2)]((0x0,r[_0x27cd5f(0x19f)])())};}catch(_0x150c99){return console[_0x27cd5f(0x17b)](_0x150c99),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x2af33e){'@babel/helpers - typeof';const _0x535601=_0x48b267;return p=typeof Symbol==_0x535601(0x18c)&&typeof Symbol['iterator']==_0x535601(0x189)?function(_0x38056b){return typeof _0x38056b;}:function(_0x4b8eca){const _0x3cb60e=_0x535601;return _0x4b8eca&&typeof Symbol==_0x3cb60e(0x18c)&&_0x4b8eca['constructor']===Symbol&&_0x4b8eca!==Symbol[_0x3cb60e(0x182)]?_0x3cb60e(0x189):typeof _0x4b8eca;},p(_0x2af33e);}function m(_0xdbaa88,_0x114f95){const _0x1c738f=_0x48b267;if(p(_0xdbaa88)!=_0x1c738f(0x173)||!_0xdbaa88)return _0xdbaa88;var _0x2340b3=_0xdbaa88[Symbol['toPrimitive']];if(_0x2340b3!==void 0x0){var _0x464759=_0x2340b3[_0x1c738f(0x179)](_0xdbaa88,_0x114f95||_0x1c738f(0x1a9));if(p(_0x464759)!='object')return _0x464759;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x114f95==='string'?String:Number)(_0xdbaa88);}function _0x1c90(){const _0x2a9f21=['CollaborationSocketService','IConfigService','_injector','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toStringTag','call','string','error','registerDependencies','getConfig','_doCreateSocket','packageName','219093AGuhad','toDisposable','prototype','message','@univerjs-pro/collaboration-client-node','Disposable','ILogService','close','4vPPWaY','symbol','Module','onStarting','function','getOwnPropertyDescriptor','UniverCollaborationClientPlugin','dispose','Observable','WebSocket','5614158lVbOCp','decorate','defineProperty','1790GhhWYn','DisposableCollection','add','4995IEKPJP','createSocket','Inject','length','14iuYYVf','headers','Plugin','share','removeEventListener','57awLKgf','DependentOn','collaboration-client-node.config','_httpService','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','UniverCollaborationClientNodePlugin','_registerDependencies','default','Injector','0.19.0-insiders.20260403-3e0e122','next','HTTPService','customHeaders','version','1523586cusaCy','5334AbYsHx','pipe','323216DjEodn','_configService','529180XjRDvb','object'];_0x1c90=function(){return _0x2a9f21;};return _0x1c90();}function h(_0x3ce826){const _0x4fb867=_0x48b267;var _0x58294c=m(_0x3ce826,_0x4fb867(0x17a));return p(_0x58294c)==_0x4fb867(0x189)?_0x58294c:_0x58294c+'';}function g(_0x52b74c,_0x1a39de,_0x3d1e9b){return(_0x1a39de=h(_0x1a39de))in _0x52b74c?Object['defineProperty'](_0x52b74c,_0x1a39de,{'value':_0x3d1e9b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52b74c[_0x1a39de]=_0x3d1e9b,_0x52b74c;}let _=class extends t[_0x48b267(0x19e)]{constructor(_0xcc599b=s,_0x45c307,_0x46094f){const _0x49ce9d=_0x48b267;super(),this[_0x49ce9d(0x171)]=_0x45c307,this['_injector']=_0x46094f,this[_0x49ce9d(0x171)]['setConfig'](o,_0xcc599b);}[_0x48b267(0x18b)](){const _0x3ffd4f=_0x48b267;this[_0x3ffd4f(0x1a8)]();}[_0x48b267(0x1a8)](){const _0x12196e=_0x48b267;(0x0,t[_0x12196e(0x17c)])(this[_0x12196e(0x176)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x48b267(0x17f),c),g(_,_0x48b267(0x1af),l),_=d([(0x0,t[_0x48b267(0x1a2)])(e[_0x48b267(0x18e)]),u(0x1,t[_0x48b267(0x175)]),u(0x2,(0x0,t['Inject'])(t[_0x48b267(0x1aa)]))],_);let v=class extends e[_0x48b267(0x174)]{constructor(_0x5d3875,_0x3a407f,_0x13e9cd,_0x3cca7c,_0x372c0e){const _0x125d66=_0x48b267;super(_0x5d3875,_0x3a407f,_0x13e9cd,_0x3cca7c,_0x372c0e);let _0x48264d=this[_0x125d66(0x171)][_0x125d66(0x17d)](e[_0x125d66(0x177)]);this[_0x125d66(0x1a4)]['registerHTTPInterceptor']({'interceptor':(_0xcb0d41,_0x2130c0)=>{const _0x299c8b=_0x125d66;let _0x2927b8=_0xcb0d41[_0x299c8b(0x19d)];if(_0x48264d!=null&&_0x48264d[_0x299c8b(0x1ae)]){for(let _0x195608 in _0x48264d[_0x299c8b(0x1ae)])_0x2927b8['set'](_0x195608,_0x48264d[_0x299c8b(0x1ae)][_0x195608]);}return _0x2130c0(_0xcb0d41);}});}async[_0x48b267(0x199)](_0x513a9a){const _0x37edaa=_0x48b267;return this[_0x37edaa(0x17e)](_0x513a9a);}};v=d([u(0x0,(0x0,t['Inject'])(t[_0x48b267(0x1aa)])),u(0x1,(0x0,t[_0x48b267(0x19a)])(n[_0x48b267(0x1ad)])),u(0x2,t[_0x48b267(0x175)]),u(0x3,t[_0x48b267(0x186)]),u(0x4,a['ISnapshotServerService'])],v),exports[_0x48b267(0x1a6)]=o,Object[_0x48b267(0x194)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x48b267(0x194)](exports,_0x48b267(0x1a7),{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1e905c=_0x16bb;(function(_0x5ac375,_0x23f437){const _0x48a37c=_0x16bb,_0x47f252=_0x5ac375();while(!![]){try{const _0xa67da6=-parseInt(_0x48a37c(0x1bd))/0x1+parseInt(_0x48a37c(0x1cd))/0x2+parseInt(_0x48a37c(0x1af))/0x3*(-parseInt(_0x48a37c(0x1c2))/0x4)+parseInt(_0x48a37c(0x1b0))/0x5+parseInt(_0x48a37c(0x1c7))/0x6*(-parseInt(_0x48a37c(0x1a1))/0x7)+-parseInt(_0x48a37c(0x1bf))/0x8*(-parseInt(_0x48a37c(0x1a0))/0x9)+parseInt(_0x48a37c(0x1ce))/0xa*(-parseInt(_0x48a37c(0x1a6))/0xb);if(_0xa67da6===_0x23f437)break;else _0x47f252['push'](_0x47f252['shift']());}catch(_0x4a470e){_0x47f252['push'](_0x47f252['shift']());}}}(_0x2655,0x34113));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x420003,CollaborationSocketService as _0x23468b,UniverCollaborationClientPlugin as _0x3866db}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5b89f5,Disposable as _0x70cd0f,DisposableCollection as _0x237120,IConfigService as _0xae442b,ILogService as _0x1213f1,Inject as _0xe87f60,Injector as _0x3192cc,Plugin as _0x1e81f7,registerDependencies as _0x200e69,toDisposable as _0xa9d42d}from'@univerjs/core';import{HTTPService as _0x1ff73c,ISocketService as _0x30731a}from'@univerjs/network';import{Observable as _0x328a54,share as _0x157586}from'rxjs';import{WebSocket as _0x174867}from'ws';import{ISnapshotServerService as _0x3a5724}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';function _0x2655(){const _0x56f469=['_configService','prototype','362982sZdQGl','10fXeGMT','iterator','add','getConfig','getOwnPropertyDescriptor','0.19.0-insiders.20260403-3e0e122','setConfig','2055411dsjpvO','49eXnSif','packageName','createSocket','toPrimitive','headers','4269529lAYNdJ','function','customHeaders','addEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','error','version','_doCreateSocket','message','579201SepZRZ','2020660tBYQco','object','call','constructor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','defineProperty','length','open','send','next','registerHTTPInterceptor','close','15574krDnNv','default','8iPKNzt','removeEventListener','pipe','4TBtvyD','symbol','_injector','decorate','_registerDependencies','3390tcztVF','string','set','onStarting'];_0x2655=function(){return _0x56f469;};return _0x2655();}Symbol(y);const b={};var x='@univerjs-pro/collaboration-client-node',S=_0x1e905c(0x19e);function C(_0x47c0c2,_0x361376){return function(_0x4e272c,_0x2b05f6){_0x361376(_0x4e272c,_0x2b05f6,_0x47c0c2);};}function w(_0x436d05,_0x4d8607,_0x9ab7fe,_0x4c050c){const _0x41762f=_0x1e905c;var _0x16fb23=arguments[_0x41762f(0x1b7)],_0x3f4584=_0x16fb23<0x3?_0x4d8607:_0x4c050c===null?_0x4c050c=Object[_0x41762f(0x19d)](_0x4d8607,_0x9ab7fe):_0x4c050c,_0x138685;if(typeof Reflect=='object'&&typeof Reflect[_0x41762f(0x1c5)]=='function')_0x3f4584=Reflect[_0x41762f(0x1c5)](_0x436d05,_0x4d8607,_0x9ab7fe,_0x4c050c);else{for(var _0x779dd4=_0x436d05[_0x41762f(0x1b7)]-0x1;_0x779dd4>=0x0;_0x779dd4--)(_0x138685=_0x436d05[_0x779dd4])&&(_0x3f4584=(_0x16fb23<0x3?_0x138685(_0x3f4584):_0x16fb23>0x3?_0x138685(_0x4d8607,_0x9ab7fe,_0x3f4584):_0x138685(_0x4d8607,_0x9ab7fe))||_0x3f4584);}return _0x16fb23>0x3&&_0x3f4584&&Object[_0x41762f(0x1b6)](_0x4d8607,_0x9ab7fe,_0x3f4584),_0x3f4584;}let T=class extends _0x70cd0f{constructor(_0x59d5f3){const _0x5ef6f2=_0x1e905c;super(),this[_0x5ef6f2(0x1cb)]=_0x59d5f3;}[_0x1e905c(0x1a3)](_0x2154f7){const _0xe90138=_0x1e905c;var _0x359f89;let _0x371bfb=((_0x359f89=this['_configService'][_0xe90138(0x19c)](_0x420003))==null?void 0x0:_0x359f89[_0xe90138(0x1a8)])||{};try{let _0x34d9cd=new _0x174867(_0x2154f7,{'headers':{..._0x371bfb}}),_0x4b97c9=new _0x237120();return{'URL':_0x2154f7,'close':(_0x33c89d,_0x20e121)=>{const _0x3c7529=_0xe90138;_0x34d9cd[_0x3c7529(0x1bc)](_0x33c89d,_0x20e121),_0x4b97c9['dispose']();},'send':_0x18ed7f=>{const _0x487bbd=_0xe90138;_0x34d9cd[_0x487bbd(0x1b9)](_0x18ed7f);},'open$':new _0x328a54(_0xbc0180=>{const _0x1176b2=_0xe90138;let _0xbdd114=_0x5789ce=>_0xbc0180[_0x1176b2(0x1ba)](_0x5789ce);_0x34d9cd['addEventListener'](_0x1176b2(0x1b8),_0xbdd114),_0x4b97c9[_0x1176b2(0x1d0)](_0xa9d42d(()=>_0x34d9cd[_0x1176b2(0x1c0)]('open',_0xbdd114)));})[_0xe90138(0x1c1)](_0x157586()),'close$':new _0x328a54(_0xddd91b=>{const _0x4b9b46=_0xe90138;let _0x450755=_0x4f1fce=>_0xddd91b[_0x4b9b46(0x1ba)](_0x4f1fce);_0x34d9cd[_0x4b9b46(0x1a9)]('close',_0x450755),_0x4b97c9['add'](_0xa9d42d(()=>_0x34d9cd['removeEventListener']('close',_0x450755)));})[_0xe90138(0x1c1)](_0x157586()),'error$':new _0x328a54(_0x649b42=>{const _0x373196=_0xe90138;let _0x520cce=_0x2c389b=>_0x649b42['next'](_0x2c389b);_0x34d9cd[_0x373196(0x1a9)](_0x373196(0x1ab),_0x520cce),_0x4b97c9[_0x373196(0x1d0)](_0xa9d42d(()=>_0x34d9cd[_0x373196(0x1c0)](_0x373196(0x1ab),_0x520cce)));})[_0xe90138(0x1c1)](_0x157586()),'message$':new _0x328a54(_0x5bedbd=>{const _0x1f6ff5=_0xe90138;let _0x2d88c2=_0x58b4e6=>_0x5bedbd[_0x1f6ff5(0x1ba)](_0x58b4e6);_0x34d9cd[_0x1f6ff5(0x1a9)](_0x1f6ff5(0x1ae),_0x2d88c2),_0x4b97c9[_0x1f6ff5(0x1d0)](_0xa9d42d(()=>_0x34d9cd[_0x1f6ff5(0x1c0)]('message',_0x2d88c2)));})[_0xe90138(0x1c1)](_0x157586())};}catch(_0x63f4b4){return console[_0xe90138(0x1ab)](_0x63f4b4),null;}}};function _0x16bb(_0x12020c,_0x1df50d){_0x12020c=_0x12020c-0x19c;const _0x26552a=_0x2655();let _0x16bb18=_0x26552a[_0x12020c];return _0x16bb18;}T=w([C(0x0,_0xae442b)],T);function E(_0x579385){'@babel/helpers - typeof';const _0x13c30c=_0x1e905c;return E=typeof Symbol==_0x13c30c(0x1a7)&&typeof Symbol[_0x13c30c(0x1cf)]==_0x13c30c(0x1c3)?function(_0x37b1ed){return typeof _0x37b1ed;}:function(_0x2f7c13){const _0x10b562=_0x13c30c;return _0x2f7c13&&typeof Symbol=='function'&&_0x2f7c13[_0x10b562(0x1b3)]===Symbol&&_0x2f7c13!==Symbol[_0x10b562(0x1cc)]?_0x10b562(0x1c3):typeof _0x2f7c13;},E(_0x579385);}function D(_0x5707ed,_0x52a196){const _0x2219bf=_0x1e905c;if(E(_0x5707ed)!=_0x2219bf(0x1b1)||!_0x5707ed)return _0x5707ed;var _0x1c50c4=_0x5707ed[Symbol[_0x2219bf(0x1a4)]];if(_0x1c50c4!==void 0x0){var _0xe27a6e=_0x1c50c4[_0x2219bf(0x1b2)](_0x5707ed,_0x52a196||_0x2219bf(0x1be));if(E(_0xe27a6e)!=_0x2219bf(0x1b1))return _0xe27a6e;throw TypeError(_0x2219bf(0x1b4));}return(_0x52a196===_0x2219bf(0x1c8)?String:Number)(_0x5707ed);}function O(_0x1656fb){const _0x357db3=_0x1e905c;var _0x1e5c4c=D(_0x1656fb,_0x357db3(0x1c8));return E(_0x1e5c4c)==_0x357db3(0x1c3)?_0x1e5c4c:_0x1e5c4c+'';}function k(_0x577b7b,_0x469354,_0x391084){return(_0x469354=O(_0x469354))in _0x577b7b?Object['defineProperty'](_0x577b7b,_0x469354,{'value':_0x391084,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x577b7b[_0x469354]=_0x391084,_0x577b7b;}let A=class extends _0x1e81f7{constructor(_0xb02f84=b,_0xad2cca,_0x452844){const _0x5a0251=_0x1e905c;super(),this[_0x5a0251(0x1cb)]=_0xad2cca,this[_0x5a0251(0x1c4)]=_0x452844,this[_0x5a0251(0x1cb)][_0x5a0251(0x19f)](y,_0xb02f84);}[_0x1e905c(0x1ca)](){const _0x1bf97a=_0x1e905c;this[_0x1bf97a(0x1c6)]();}[_0x1e905c(0x1c6)](){_0x200e69(this['_injector'],[[_0x30731a,{'useClass':T}]]);}};k(A,_0x1e905c(0x1b5),_0x1e905c(0x1aa)),k(A,_0x1e905c(0x1a2),x),k(A,_0x1e905c(0x1ac),S),A=w([_0x5b89f5(_0x3866db),C(0x1,_0xae442b),C(0x2,_0xe87f60(_0x3192cc))],A);let j=class extends _0x23468b{constructor(_0x4eed6a,_0x1adcf9,_0x21acb3,_0x200c28,_0x2483c4){const _0x169da6=_0x1e905c;super(_0x4eed6a,_0x1adcf9,_0x21acb3,_0x200c28,_0x2483c4);let _0x649e54=this[_0x169da6(0x1cb)][_0x169da6(0x19c)](_0x420003);this['_httpService'][_0x169da6(0x1bb)]({'interceptor':(_0x40b6ac,_0x2e78dc)=>{const _0x1fd8e7=_0x169da6;let _0x33e3b1=_0x40b6ac[_0x1fd8e7(0x1a5)];if(_0x649e54!=null&&_0x649e54[_0x1fd8e7(0x1a8)]){for(let _0x502bfd in _0x649e54[_0x1fd8e7(0x1a8)])_0x33e3b1[_0x1fd8e7(0x1c9)](_0x502bfd,_0x649e54[_0x1fd8e7(0x1a8)][_0x502bfd]);}return _0x2e78dc(_0x40b6ac);}});}async[_0x1e905c(0x1a3)](_0x555b9b){const _0x19ada2=_0x1e905c;return this[_0x19ada2(0x1ad)](_0x555b9b);}};j=w([C(0x0,_0xe87f60(_0x3192cc)),C(0x1,_0xe87f60(_0x1ff73c)),C(0x2,_0xae442b),C(0x3,_0x1213f1),C(0x4,_0x3a5724)],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 _0x1e905c=_0x16bb;(function(_0x5ac375,_0x23f437){const _0x48a37c=_0x16bb,_0x47f252=_0x5ac375();while(!![]){try{const _0xa67da6=-parseInt(_0x48a37c(0x1bd))/0x1+parseInt(_0x48a37c(0x1cd))/0x2+parseInt(_0x48a37c(0x1af))/0x3*(-parseInt(_0x48a37c(0x1c2))/0x4)+parseInt(_0x48a37c(0x1b0))/0x5+parseInt(_0x48a37c(0x1c7))/0x6*(-parseInt(_0x48a37c(0x1a1))/0x7)+-parseInt(_0x48a37c(0x1bf))/0x8*(-parseInt(_0x48a37c(0x1a0))/0x9)+parseInt(_0x48a37c(0x1ce))/0xa*(-parseInt(_0x48a37c(0x1a6))/0xb);if(_0xa67da6===_0x23f437)break;else _0x47f252['push'](_0x47f252['shift']());}catch(_0x4a470e){_0x47f252['push'](_0x47f252['shift']());}}}(_0x2655,0x34113));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x420003,CollaborationSocketService as _0x23468b,UniverCollaborationClientPlugin as _0x3866db}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5b89f5,Disposable as _0x70cd0f,DisposableCollection as _0x237120,IConfigService as _0xae442b,ILogService as _0x1213f1,Inject as _0xe87f60,Injector as _0x3192cc,Plugin as _0x1e81f7,registerDependencies as _0x200e69,toDisposable as _0xa9d42d}from'@univerjs/core';import{HTTPService as _0x1ff73c,ISocketService as _0x30731a}from'@univerjs/network';import{Observable as _0x328a54,share as _0x157586}from'rxjs';import{WebSocket as _0x174867}from'ws';import{ISnapshotServerService as _0x3a5724}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';function _0x2655(){const _0x56f469=['_configService','prototype','362982sZdQGl','10fXeGMT','iterator','add','getConfig','getOwnPropertyDescriptor','0.19.0-insiders.20260403-3e0e122','setConfig','2055411dsjpvO','49eXnSif','packageName','createSocket','toPrimitive','headers','4269529lAYNdJ','function','customHeaders','addEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','error','version','_doCreateSocket','message','579201SepZRZ','2020660tBYQco','object','call','constructor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','defineProperty','length','open','send','next','registerHTTPInterceptor','close','15574krDnNv','default','8iPKNzt','removeEventListener','pipe','4TBtvyD','symbol','_injector','decorate','_registerDependencies','3390tcztVF','string','set','onStarting'];_0x2655=function(){return _0x56f469;};return _0x2655();}Symbol(y);const b={};var x='@univerjs-pro/collaboration-client-node',S=_0x1e905c(0x19e);function C(_0x47c0c2,_0x361376){return function(_0x4e272c,_0x2b05f6){_0x361376(_0x4e272c,_0x2b05f6,_0x47c0c2);};}function w(_0x436d05,_0x4d8607,_0x9ab7fe,_0x4c050c){const _0x41762f=_0x1e905c;var _0x16fb23=arguments[_0x41762f(0x1b7)],_0x3f4584=_0x16fb23<0x3?_0x4d8607:_0x4c050c===null?_0x4c050c=Object[_0x41762f(0x19d)](_0x4d8607,_0x9ab7fe):_0x4c050c,_0x138685;if(typeof Reflect=='object'&&typeof Reflect[_0x41762f(0x1c5)]=='function')_0x3f4584=Reflect[_0x41762f(0x1c5)](_0x436d05,_0x4d8607,_0x9ab7fe,_0x4c050c);else{for(var _0x779dd4=_0x436d05[_0x41762f(0x1b7)]-0x1;_0x779dd4>=0x0;_0x779dd4--)(_0x138685=_0x436d05[_0x779dd4])&&(_0x3f4584=(_0x16fb23<0x3?_0x138685(_0x3f4584):_0x16fb23>0x3?_0x138685(_0x4d8607,_0x9ab7fe,_0x3f4584):_0x138685(_0x4d8607,_0x9ab7fe))||_0x3f4584);}return _0x16fb23>0x3&&_0x3f4584&&Object[_0x41762f(0x1b6)](_0x4d8607,_0x9ab7fe,_0x3f4584),_0x3f4584;}let T=class extends _0x70cd0f{constructor(_0x59d5f3){const _0x5ef6f2=_0x1e905c;super(),this[_0x5ef6f2(0x1cb)]=_0x59d5f3;}[_0x1e905c(0x1a3)](_0x2154f7){const _0xe90138=_0x1e905c;var _0x359f89;let _0x371bfb=((_0x359f89=this['_configService'][_0xe90138(0x19c)](_0x420003))==null?void 0x0:_0x359f89[_0xe90138(0x1a8)])||{};try{let _0x34d9cd=new _0x174867(_0x2154f7,{'headers':{..._0x371bfb}}),_0x4b97c9=new _0x237120();return{'URL':_0x2154f7,'close':(_0x33c89d,_0x20e121)=>{const _0x3c7529=_0xe90138;_0x34d9cd[_0x3c7529(0x1bc)](_0x33c89d,_0x20e121),_0x4b97c9['dispose']();},'send':_0x18ed7f=>{const _0x487bbd=_0xe90138;_0x34d9cd[_0x487bbd(0x1b9)](_0x18ed7f);},'open$':new _0x328a54(_0xbc0180=>{const _0x1176b2=_0xe90138;let _0xbdd114=_0x5789ce=>_0xbc0180[_0x1176b2(0x1ba)](_0x5789ce);_0x34d9cd['addEventListener'](_0x1176b2(0x1b8),_0xbdd114),_0x4b97c9[_0x1176b2(0x1d0)](_0xa9d42d(()=>_0x34d9cd[_0x1176b2(0x1c0)]('open',_0xbdd114)));})[_0xe90138(0x1c1)](_0x157586()),'close$':new _0x328a54(_0xddd91b=>{const _0x4b9b46=_0xe90138;let _0x450755=_0x4f1fce=>_0xddd91b[_0x4b9b46(0x1ba)](_0x4f1fce);_0x34d9cd[_0x4b9b46(0x1a9)]('close',_0x450755),_0x4b97c9['add'](_0xa9d42d(()=>_0x34d9cd['removeEventListener']('close',_0x450755)));})[_0xe90138(0x1c1)](_0x157586()),'error$':new _0x328a54(_0x649b42=>{const _0x373196=_0xe90138;let _0x520cce=_0x2c389b=>_0x649b42['next'](_0x2c389b);_0x34d9cd[_0x373196(0x1a9)](_0x373196(0x1ab),_0x520cce),_0x4b97c9[_0x373196(0x1d0)](_0xa9d42d(()=>_0x34d9cd[_0x373196(0x1c0)](_0x373196(0x1ab),_0x520cce)));})[_0xe90138(0x1c1)](_0x157586()),'message$':new _0x328a54(_0x5bedbd=>{const _0x1f6ff5=_0xe90138;let _0x2d88c2=_0x58b4e6=>_0x5bedbd[_0x1f6ff5(0x1ba)](_0x58b4e6);_0x34d9cd[_0x1f6ff5(0x1a9)](_0x1f6ff5(0x1ae),_0x2d88c2),_0x4b97c9[_0x1f6ff5(0x1d0)](_0xa9d42d(()=>_0x34d9cd[_0x1f6ff5(0x1c0)]('message',_0x2d88c2)));})[_0xe90138(0x1c1)](_0x157586())};}catch(_0x63f4b4){return console[_0xe90138(0x1ab)](_0x63f4b4),null;}}};function _0x16bb(_0x12020c,_0x1df50d){_0x12020c=_0x12020c-0x19c;const _0x26552a=_0x2655();let _0x16bb18=_0x26552a[_0x12020c];return _0x16bb18;}T=w([C(0x0,_0xae442b)],T);function E(_0x579385){'@babel/helpers - typeof';const _0x13c30c=_0x1e905c;return E=typeof Symbol==_0x13c30c(0x1a7)&&typeof Symbol[_0x13c30c(0x1cf)]==_0x13c30c(0x1c3)?function(_0x37b1ed){return typeof _0x37b1ed;}:function(_0x2f7c13){const _0x10b562=_0x13c30c;return _0x2f7c13&&typeof Symbol=='function'&&_0x2f7c13[_0x10b562(0x1b3)]===Symbol&&_0x2f7c13!==Symbol[_0x10b562(0x1cc)]?_0x10b562(0x1c3):typeof _0x2f7c13;},E(_0x579385);}function D(_0x5707ed,_0x52a196){const _0x2219bf=_0x1e905c;if(E(_0x5707ed)!=_0x2219bf(0x1b1)||!_0x5707ed)return _0x5707ed;var _0x1c50c4=_0x5707ed[Symbol[_0x2219bf(0x1a4)]];if(_0x1c50c4!==void 0x0){var _0xe27a6e=_0x1c50c4[_0x2219bf(0x1b2)](_0x5707ed,_0x52a196||_0x2219bf(0x1be));if(E(_0xe27a6e)!=_0x2219bf(0x1b1))return _0xe27a6e;throw TypeError(_0x2219bf(0x1b4));}return(_0x52a196===_0x2219bf(0x1c8)?String:Number)(_0x5707ed);}function O(_0x1656fb){const _0x357db3=_0x1e905c;var _0x1e5c4c=D(_0x1656fb,_0x357db3(0x1c8));return E(_0x1e5c4c)==_0x357db3(0x1c3)?_0x1e5c4c:_0x1e5c4c+'';}function k(_0x577b7b,_0x469354,_0x391084){return(_0x469354=O(_0x469354))in _0x577b7b?Object['defineProperty'](_0x577b7b,_0x469354,{'value':_0x391084,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x577b7b[_0x469354]=_0x391084,_0x577b7b;}let A=class extends _0x1e81f7{constructor(_0xb02f84=b,_0xad2cca,_0x452844){const _0x5a0251=_0x1e905c;super(),this[_0x5a0251(0x1cb)]=_0xad2cca,this[_0x5a0251(0x1c4)]=_0x452844,this[_0x5a0251(0x1cb)][_0x5a0251(0x19f)](y,_0xb02f84);}[_0x1e905c(0x1ca)](){const _0x1bf97a=_0x1e905c;this[_0x1bf97a(0x1c6)]();}[_0x1e905c(0x1c6)](){_0x200e69(this['_injector'],[[_0x30731a,{'useClass':T}]]);}};k(A,_0x1e905c(0x1b5),_0x1e905c(0x1aa)),k(A,_0x1e905c(0x1a2),x),k(A,_0x1e905c(0x1ac),S),A=w([_0x5b89f5(_0x3866db),C(0x1,_0xae442b),C(0x2,_0xe87f60(_0x3192cc))],A);let j=class extends _0x23468b{constructor(_0x4eed6a,_0x1adcf9,_0x21acb3,_0x200c28,_0x2483c4){const _0x169da6=_0x1e905c;super(_0x4eed6a,_0x1adcf9,_0x21acb3,_0x200c28,_0x2483c4);let _0x649e54=this[_0x169da6(0x1cb)][_0x169da6(0x19c)](_0x420003);this['_httpService'][_0x169da6(0x1bb)]({'interceptor':(_0x40b6ac,_0x2e78dc)=>{const _0x1fd8e7=_0x169da6;let _0x33e3b1=_0x40b6ac[_0x1fd8e7(0x1a5)];if(_0x649e54!=null&&_0x649e54[_0x1fd8e7(0x1a8)]){for(let _0x502bfd in _0x649e54[_0x1fd8e7(0x1a8)])_0x33e3b1[_0x1fd8e7(0x1c9)](_0x502bfd,_0x649e54[_0x1fd8e7(0x1a8)][_0x502bfd]);}return _0x2e78dc(_0x40b6ac);}});}async[_0x1e905c(0x1a3)](_0x555b9b){const _0x19ada2=_0x1e905c;return this[_0x19ada2(0x1ad)](_0x555b9b);}};j=w([C(0x0,_0xe87f60(_0x3192cc)),C(0x1,_0xe87f60(_0x1ff73c)),C(0x2,_0xae442b),C(0x3,_0x1213f1),C(0x4,_0x3a5724)],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 _0x1586(_0x477034,_0x21a7d3){_0x477034=_0x477034-0xb7;const _0x33d662=_0x33d6();let _0x1586d0=_0x33d662[_0x477034];return _0x1586d0;}function _0x33d6(){const _0x4448a3=['rxjs','registerHTTPInterceptor','constructor','2243964CopQhh','_configService','length','prototype','open','0.18.0','getConfig','send','@univerjs-pro/collaboration','22213377uQAluR','share','removeEventListener','IConfigService','iterator','symbol','5380272WgalUv','toPrimitive','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','default','UniverProCollaborationClient','UniverCore','exports','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Observable','3577EndNbN','16vXCTHZ','236263DXLNTc','toDisposable','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','766855kWuozq','WebSocket','decorate','string','next','error','2637591JQrnvD','onStarting','20CiOwYT','DisposableCollection','set','_httpService','@univerjs/core','function','packageName','registerDependencies','UniverProCollaborationClientNode','_injector','CollaborationSocketService','HTTPService','@univerjs-pro/collaboration-client-node','customHeaders','add','_doCreateSocket','Module','pipe','setConfig','dispose','object','getOwnPropertyDescriptor','10936IfRZmu','message','@univerjs/network','version','addEventListener','defineProperty','UniverProCollaboration','Inject','Disposable','UniverNetwork','_registerDependencies','DependentOn','close','amd','createSocket'];_0x33d6=function(){return _0x4448a3;};return _0x33d6();}(function(_0x317428,_0x452df2){const _0xf95d9b=_0x1586,_0x5b8121=_0x317428();while(!![]){try{const _0x3572f5=-parseInt(_0xf95d9b(0xd6))/0x1*(parseInt(_0xf95d9b(0xd5))/0x2)+-parseInt(_0xf95d9b(0xdf))/0x3+parseInt(_0xf95d9b(0xbc))/0x4+-parseInt(_0xf95d9b(0xd9))/0x5+-parseInt(_0xf95d9b(0xcb))/0x6+parseInt(_0xf95d9b(0xd4))/0x7*(-parseInt(_0xf95d9b(0xf7))/0x8)+parseInt(_0xf95d9b(0xc5))/0x9*(parseInt(_0xf95d9b(0xe1))/0xa);if(_0x3572f5===_0x452df2)break;else _0x5b8121['push'](_0x5b8121['shift']());}catch(_0x53106d){_0x5b8121['push'](_0x5b8121['shift']());}}}(_0x33d6,0xef1b0),function(_0x2cda3e,_0x230f48){const _0x8172ef=_0x1586;typeof exports==_0x8172ef(0xf5)&&typeof module<'u'?_0x230f48(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x8172ef(0xe6)&&define[_0x8172ef(0xb7)]?define([_0x8172ef(0xd1),'@univerjs-pro/collaboration-client',_0x8172ef(0xe5),_0x8172ef(0xf9),_0x8172ef(0xb9),_0x8172ef(0xc4)],_0x230f48):(_0x2cda3e=typeof globalThis<'u'?globalThis:_0x2cda3e||self,_0x230f48(_0x2cda3e[_0x8172ef(0xe9)]={},_0x2cda3e[_0x8172ef(0xcf)],_0x2cda3e[_0x8172ef(0xd0)],_0x2cda3e[_0x8172ef(0x100)],_0x2cda3e[_0x8172ef(0xb9)],_0x2cda3e[_0x8172ef(0xfd)]));}(this,function(_0x113a83,_0x114384,_0x5c5016,_0x5a8ef2,_0x1d45f8,_0x104d63){const _0x211aab=_0x1586;Object[_0x211aab(0xfc)](_0x113a83,Symbol['toStringTag'],{'value':_0x211aab(0xf1)});var _0x18bcc9=(_0x2bba61,_0x1ea8d7)=>()=>(_0x1ea8d7||_0x2bba61((_0x1ea8d7={'exports':{}})['exports'],_0x1ea8d7),_0x1ea8d7[_0x211aab(0xd1)]);let _0x2c58a6='collaboration-client-node.config';Symbol(_0x2c58a6);let _0x233e50={};var _0x10a2dd=_0x211aab(0xed),_0x242f10=_0x211aab(0xc1),_0x4dd035=_0x18bcc9((_0x3c23e3,_0x96ce32)=>{_0x96ce32['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x31613c(_0x3730fa,_0x4d7c6a){return function(_0x2a882c,_0x57d7f1){_0x4d7c6a(_0x2a882c,_0x57d7f1,_0x3730fa);};}function _0xc4f8fb(_0x46b230,_0x5bffe8,_0x468d79,_0x5bb38d){const _0x5c0f57=_0x211aab;var _0x47971d=arguments[_0x5c0f57(0xbe)],_0x5d574d=_0x47971d<0x3?_0x5bffe8:_0x5bb38d===null?_0x5bb38d=Object[_0x5c0f57(0xf6)](_0x5bffe8,_0x468d79):_0x5bb38d,_0x15fcbd;if(typeof Reflect==_0x5c0f57(0xf5)&&typeof Reflect['decorate']==_0x5c0f57(0xe6))_0x5d574d=Reflect[_0x5c0f57(0xdb)](_0x46b230,_0x5bffe8,_0x468d79,_0x5bb38d);else{for(var _0xcaa6fc=_0x46b230[_0x5c0f57(0xbe)]-0x1;_0xcaa6fc>=0x0;_0xcaa6fc--)(_0x15fcbd=_0x46b230[_0xcaa6fc])&&(_0x5d574d=(_0x47971d<0x3?_0x15fcbd(_0x5d574d):_0x47971d>0x3?_0x15fcbd(_0x5bffe8,_0x468d79,_0x5d574d):_0x15fcbd(_0x5bffe8,_0x468d79))||_0x5d574d);}return _0x47971d>0x3&&_0x5d574d&&Object[_0x5c0f57(0xfc)](_0x5bffe8,_0x468d79,_0x5d574d),_0x5d574d;}let _0x589e46=class extends _0x5c5016[_0x211aab(0xff)]{constructor(_0xd3d572){const _0x12655a=_0x211aab;super(),this[_0x12655a(0xbd)]=_0xd3d572;}[_0x211aab(0xb8)](_0x3b88b9){const _0x127612=_0x211aab;var _0x268bc9;let _0x474178=((_0x268bc9=this[_0x127612(0xbd)][_0x127612(0xc2)](_0x114384['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x268bc9[_0x127612(0xee)])||{};try{let _0x4937e4=new _0x4dd035[(_0x127612(0xda))](_0x3b88b9,{'headers':{..._0x474178}}),_0x447fae=new _0x5c5016[(_0x127612(0xe2))]();return{'URL':_0x3b88b9,'close':(_0x5e1283,_0x1c2f57)=>{const _0x4300fc=_0x127612;_0x4937e4[_0x4300fc(0x103)](_0x5e1283,_0x1c2f57),_0x447fae[_0x4300fc(0xf4)]();},'send':_0x21bdbc=>{const _0x29648b=_0x127612;_0x4937e4[_0x29648b(0xc3)](_0x21bdbc);},'open$':new _0x1d45f8['Observable'](_0x2a860f=>{const _0x4c7e5a=_0x127612;let _0x3e7609=_0x59e974=>_0x2a860f[_0x4c7e5a(0xdd)](_0x59e974);_0x4937e4[_0x4c7e5a(0xfb)](_0x4c7e5a(0xc0),_0x3e7609),_0x447fae[_0x4c7e5a(0xef)]((0x0,_0x5c5016[_0x4c7e5a(0xd7)])(()=>_0x4937e4['removeEventListener'](_0x4c7e5a(0xc0),_0x3e7609)));})[_0x127612(0xf2)]((0x0,_0x1d45f8['share'])()),'close$':new _0x1d45f8['Observable'](_0x145509=>{const _0x4842ba=_0x127612;let _0x5b4feb=_0x52829a=>_0x145509[_0x4842ba(0xdd)](_0x52829a);_0x4937e4[_0x4842ba(0xfb)](_0x4842ba(0x103),_0x5b4feb),_0x447fae['add']((0x0,_0x5c5016['toDisposable'])(()=>_0x4937e4[_0x4842ba(0xc7)](_0x4842ba(0x103),_0x5b4feb)));})[_0x127612(0xf2)]((0x0,_0x1d45f8[_0x127612(0xc6)])()),'error$':new _0x1d45f8[(_0x127612(0xd3))](_0x3688de=>{const _0x424ce2=_0x127612;let _0x4dddaf=_0x5442fa=>_0x3688de[_0x424ce2(0xdd)](_0x5442fa);_0x4937e4['addEventListener'](_0x424ce2(0xde),_0x4dddaf),_0x447fae[_0x424ce2(0xef)]((0x0,_0x5c5016[_0x424ce2(0xd7)])(()=>_0x4937e4[_0x424ce2(0xc7)](_0x424ce2(0xde),_0x4dddaf)));})[_0x127612(0xf2)]((0x0,_0x1d45f8['share'])()),'message$':new _0x1d45f8['Observable'](_0x58bf0b=>{const _0x150065=_0x127612;let _0x177c7f=_0xd11fc2=>_0x58bf0b['next'](_0xd11fc2);_0x4937e4['addEventListener']('message',_0x177c7f),_0x447fae['add']((0x0,_0x5c5016[_0x150065(0xd7)])(()=>_0x4937e4[_0x150065(0xc7)](_0x150065(0xf8),_0x177c7f)));})['pipe']((0x0,_0x1d45f8['share'])())};}catch(_0x2cb65f){return console[_0x127612(0xde)](_0x2cb65f),null;}}};_0x589e46=_0xc4f8fb([_0x31613c(0x0,_0x5c5016[_0x211aab(0xc8)])],_0x589e46);function _0x2d2790(_0x129b3a){'@babel/helpers - typeof';const _0x2d5d07=_0x211aab;return _0x2d2790=typeof Symbol==_0x2d5d07(0xe6)&&typeof Symbol[_0x2d5d07(0xc9)]=='symbol'?function(_0x3fab2d){return typeof _0x3fab2d;}:function(_0x24c690){const _0x5b4c3c=_0x2d5d07;return _0x24c690&&typeof Symbol=='function'&&_0x24c690[_0x5b4c3c(0xbb)]===Symbol&&_0x24c690!==Symbol[_0x5b4c3c(0xbf)]?_0x5b4c3c(0xca):typeof _0x24c690;},_0x2d2790(_0x129b3a);}function _0x143e2e(_0x2a65d6,_0x860516){const _0xb2b7a=_0x211aab;if(_0x2d2790(_0x2a65d6)!=_0xb2b7a(0xf5)||!_0x2a65d6)return _0x2a65d6;var _0x1301f3=_0x2a65d6[Symbol[_0xb2b7a(0xcc)]];if(_0x1301f3!==void 0x0){var _0x46503d=_0x1301f3['call'](_0x2a65d6,_0x860516||_0xb2b7a(0xce));if(_0x2d2790(_0x46503d)!='object')return _0x46503d;throw TypeError(_0xb2b7a(0xd2));}return(_0x860516==='string'?String:Number)(_0x2a65d6);}function _0x31a738(_0x32df2f){const _0x112ad8=_0x211aab;var _0x18ea9a=_0x143e2e(_0x32df2f,_0x112ad8(0xdc));return _0x2d2790(_0x18ea9a)==_0x112ad8(0xca)?_0x18ea9a:_0x18ea9a+'';}function _0x435403(_0x59d955,_0x44ae85,_0xd9921){const _0x66aa82=_0x211aab;return(_0x44ae85=_0x31a738(_0x44ae85))in _0x59d955?Object[_0x66aa82(0xfc)](_0x59d955,_0x44ae85,{'value':_0xd9921,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59d955[_0x44ae85]=_0xd9921,_0x59d955;}let _0x8920bd=class extends _0x5c5016['Plugin']{constructor(_0x4d4da8=_0x233e50,_0x17a82e,_0x51ccaf){const _0x36f256=_0x211aab;super(),this[_0x36f256(0xbd)]=_0x17a82e,this['_injector']=_0x51ccaf,this[_0x36f256(0xbd)][_0x36f256(0xf3)](_0x2c58a6,_0x4d4da8);}[_0x211aab(0xe0)](){const _0x5d37d4=_0x211aab;this[_0x5d37d4(0x101)]();}[_0x211aab(0x101)](){const _0x495679=_0x211aab;(0x0,_0x5c5016[_0x495679(0xe8)])(this[_0x495679(0xea)],[[_0x5a8ef2['ISocketService'],{'useClass':_0x589e46}]]);}};_0x435403(_0x8920bd,'pluginName',_0x211aab(0xd8)),_0x435403(_0x8920bd,_0x211aab(0xe7),_0x10a2dd),_0x435403(_0x8920bd,_0x211aab(0xfa),_0x242f10),_0x8920bd=_0xc4f8fb([(0x0,_0x5c5016[_0x211aab(0x102)])(_0x114384['UniverCollaborationClientPlugin']),_0x31613c(0x1,_0x5c5016[_0x211aab(0xc8)]),_0x31613c(0x2,(0x0,_0x5c5016['Inject'])(_0x5c5016['Injector']))],_0x8920bd);let _0x1a875f=class extends _0x114384[_0x211aab(0xeb)]{constructor(_0x2f951f,_0x92d5df,_0x5cf336,_0xd2acf7,_0x38515d){const _0x540d1a=_0x211aab;super(_0x2f951f,_0x92d5df,_0x5cf336,_0xd2acf7,_0x38515d);let _0x381de1=this[_0x540d1a(0xbd)]['getConfig'](_0x114384[_0x540d1a(0xcd)]);this[_0x540d1a(0xe4)][_0x540d1a(0xba)]({'interceptor':(_0x5c71a1,_0xfe3ce1)=>{const _0x2f8ce8=_0x540d1a;let _0x1f67cb=_0x5c71a1['headers'];if(_0x381de1!=null&&_0x381de1[_0x2f8ce8(0xee)]){for(let _0x28ec03 in _0x381de1[_0x2f8ce8(0xee)])_0x1f67cb[_0x2f8ce8(0xe3)](_0x28ec03,_0x381de1[_0x2f8ce8(0xee)][_0x28ec03]);}return _0xfe3ce1(_0x5c71a1);}});}async[_0x211aab(0xb8)](_0x28941c){const _0x39164f=_0x211aab;return this[_0x39164f(0xf0)](_0x28941c);}};_0x1a875f=_0xc4f8fb([_0x31613c(0x0,(0x0,_0x5c5016['Inject'])(_0x5c5016['Injector'])),_0x31613c(0x1,(0x0,_0x5c5016[_0x211aab(0xfe)])(_0x5a8ef2[_0x211aab(0xec)])),_0x31613c(0x2,_0x5c5016[_0x211aab(0xc8)]),_0x31613c(0x3,_0x5c5016['ILogService']),_0x31613c(0x4,_0x104d63['ISnapshotServerService'])],_0x1a875f),_0x113a83['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x2c58a6,Object[_0x211aab(0xfc)](_0x113a83,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x1a875f;}}),Object[_0x211aab(0xfc)](_0x113a83,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x8920bd;}});}));
|
|
1
|
+
function _0x17a9(){const _0x20f6bd=['@univerjs-pro/collaboration-client-node','UniverCore','packageName','DependentOn','4XyfzAB','function','83iafcqp','Inject','@univerjs-pro/collaboration','next','COLLABORATION_CLIENT_NODE_CONFIG_KEY','open','addEventListener','object','_doCreateSocket','_configService','WebSocket','version','_httpService','removeEventListener','share','call','defineProperty','_registerDependencies','@univerjs/network','iterator','8035641FTNdrU','decorate','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','Module','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toStringTag','NodeCollaborationSocketService','Observable','5869340LglREf','8365525VEPscX','constructor','string','0.19.0-insiders.20260403-3e0e122','createSocket','CollaborationSocketService','symbol','default','56769040qIVCVF','add','pluginName','registerHTTPInterceptor','length','send','8ggcPnA','@univerjs-pro/collaboration-client','488343WJUuyZ','UniverCollaborationClientPlugin','pipe','customHeaders','rxjs','error','close','DisposableCollection','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverProCollaborationClientNode','_injector','onStarting','exports','20854iXshle','getOwnPropertyDescriptor','Injector','toDisposable','UniverNetwork','dispose','getConfig','UniverCollaborationClientNodePlugin','prototype','UniverProCollaborationClient','UniverProCollaboration','@univerjs/core','6331764zVJwMe','collaboration-client-node.config','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','message','IConfigService'];_0x17a9=function(){return _0x20f6bd;};return _0x17a9();}function _0x1253(_0x9a7998,_0x5e6a9f){_0x9a7998=_0x9a7998-0xda;const _0x17a935=_0x17a9();let _0x1253f3=_0x17a935[_0x9a7998];return _0x1253f3;}(function(_0x47bfbd,_0x43850e){const _0x3abf16=_0x1253,_0x161f0c=_0x47bfbd();while(!![]){try{const _0x45e0b4=-parseInt(_0x3abf16(0xed))/0x1*(parseInt(_0x3abf16(0x127))/0x2)+parseInt(_0x3abf16(0x11a))/0x3*(parseInt(_0x3abf16(0xeb))/0x4)+-parseInt(_0x3abf16(0x109))/0x5+-parseInt(_0x3abf16(0xe1))/0x6+parseInt(_0x3abf16(0x10a))/0x7*(-parseInt(_0x3abf16(0x118))/0x8)+-parseInt(_0x3abf16(0x101))/0x9+parseInt(_0x3abf16(0x112))/0xa;if(_0x45e0b4===_0x43850e)break;else _0x161f0c['push'](_0x161f0c['shift']());}catch(_0x326fc7){_0x161f0c['push'](_0x161f0c['shift']());}}}(_0x17a9,0xa0706),function(_0x291ce5,_0x284a17){const _0xe8bdbf=_0x1253;typeof exports=='object'&&typeof module<'u'?_0x284a17(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define['amd']?define([_0xe8bdbf(0x126),_0xe8bdbf(0x119),_0xe8bdbf(0xe0),_0xe8bdbf(0xff),_0xe8bdbf(0x11e),_0xe8bdbf(0xef)],_0x284a17):(_0x291ce5=typeof globalThis<'u'?globalThis:_0x291ce5||self,_0x284a17(_0x291ce5[_0xe8bdbf(0x123)]={},_0x291ce5[_0xe8bdbf(0xde)],_0x291ce5[_0xe8bdbf(0xe8)],_0x291ce5[_0xe8bdbf(0x12b)],_0x291ce5[_0xe8bdbf(0x11e)],_0x291ce5[_0xe8bdbf(0xdf)]));}(this,function(_0x431643,_0x2350d2,_0x2e3ea7,_0x56b049,_0x11503d,_0x57ea68){const _0x2804ae=_0x1253;Object[_0x2804ae(0xfd)](_0x431643,Symbol[_0x2804ae(0x106)],{'value':_0x2804ae(0x104)});var _0x582654=(_0x42757f,_0x2bb173)=>()=>(_0x2bb173||_0x42757f((_0x2bb173={'exports':{}})[_0x2804ae(0x126)],_0x2bb173),_0x2bb173[_0x2804ae(0x126)]);let _0x125a3b=_0x2804ae(0xe2);Symbol(_0x125a3b);let _0x1abb8c={};var _0x3238b9=_0x2804ae(0xe7),_0x361eff=_0x2804ae(0x10d),_0x1e87bf=_0x582654((_0x436607,_0x24ce12)=>{const _0x455d79=_0x2804ae;_0x24ce12[_0x455d79(0x126)]=function(){const _0x5215e8=_0x455d79;throw Error(_0x5215e8(0x103));};})();function _0x12ba84(_0x35333e,_0x3a9230){return function(_0x315995,_0x3af61a){_0x3a9230(_0x315995,_0x3af61a,_0x35333e);};}function _0x1e0062(_0x3f9294,_0x499069,_0x4433f1,_0x36db9d){const _0x222832=_0x2804ae;var _0x1e4c0e=arguments['length'],_0x5a0b09=_0x1e4c0e<0x3?_0x499069:_0x36db9d===null?_0x36db9d=Object[_0x222832(0x128)](_0x499069,_0x4433f1):_0x36db9d,_0x190937;if(typeof Reflect==_0x222832(0xf4)&&typeof Reflect['decorate']==_0x222832(0xec))_0x5a0b09=Reflect[_0x222832(0x102)](_0x3f9294,_0x499069,_0x4433f1,_0x36db9d);else{for(var _0x33b9be=_0x3f9294[_0x222832(0x116)]-0x1;_0x33b9be>=0x0;_0x33b9be--)(_0x190937=_0x3f9294[_0x33b9be])&&(_0x5a0b09=(_0x1e4c0e<0x3?_0x190937(_0x5a0b09):_0x1e4c0e>0x3?_0x190937(_0x499069,_0x4433f1,_0x5a0b09):_0x190937(_0x499069,_0x4433f1))||_0x5a0b09);}return _0x1e4c0e>0x3&&_0x5a0b09&&Object['defineProperty'](_0x499069,_0x4433f1,_0x5a0b09),_0x5a0b09;}let _0x6f7609=class extends _0x2e3ea7['Disposable']{constructor(_0x4ff777){const _0x3c14a2=_0x2804ae;super(),this[_0x3c14a2(0xf6)]=_0x4ff777;}[_0x2804ae(0x10e)](_0x34cbe4){const _0x11c6e2=_0x2804ae;var _0x2225ba;let _0x23f1ef=((_0x2225ba=this[_0x11c6e2(0xf6)]['getConfig'](_0x2350d2[_0x11c6e2(0x122)]))==null?void 0x0:_0x2225ba['customHeaders'])||{};try{let _0x561e5c=new _0x1e87bf[(_0x11c6e2(0xf7))](_0x34cbe4,{'headers':{..._0x23f1ef}}),_0x307b05=new _0x2e3ea7[(_0x11c6e2(0x121))]();return{'URL':_0x34cbe4,'close':(_0x1747a6,_0x299ae0)=>{const _0x3272ff=_0x11c6e2;_0x561e5c[_0x3272ff(0x120)](_0x1747a6,_0x299ae0),_0x307b05[_0x3272ff(0xda)]();},'send':_0x5f2c03=>{const _0x2c45d6=_0x11c6e2;_0x561e5c[_0x2c45d6(0x117)](_0x5f2c03);},'open$':new _0x11503d[(_0x11c6e2(0x108))](_0x214c4a=>{const _0x1d4511=_0x11c6e2;let _0x5cc03f=_0x492a38=>_0x214c4a['next'](_0x492a38);_0x561e5c['addEventListener']('open',_0x5cc03f),_0x307b05[_0x1d4511(0x113)]((0x0,_0x2e3ea7[_0x1d4511(0x12a)])(()=>_0x561e5c[_0x1d4511(0xfa)](_0x1d4511(0xf2),_0x5cc03f)));})[_0x11c6e2(0x11c)]((0x0,_0x11503d[_0x11c6e2(0xfb)])()),'close$':new _0x11503d[(_0x11c6e2(0x108))](_0x13fc16=>{const _0x31b2ec=_0x11c6e2;let _0x2206d2=_0x33184a=>_0x13fc16[_0x31b2ec(0xf0)](_0x33184a);_0x561e5c['addEventListener']('close',_0x2206d2),_0x307b05[_0x31b2ec(0x113)]((0x0,_0x2e3ea7['toDisposable'])(()=>_0x561e5c[_0x31b2ec(0xfa)]('close',_0x2206d2)));})['pipe']((0x0,_0x11503d[_0x11c6e2(0xfb)])()),'error$':new _0x11503d[(_0x11c6e2(0x108))](_0x2dbf44=>{const _0x4e37f5=_0x11c6e2;let _0x221674=_0x4da178=>_0x2dbf44[_0x4e37f5(0xf0)](_0x4da178);_0x561e5c['addEventListener'](_0x4e37f5(0x11f),_0x221674),_0x307b05['add']((0x0,_0x2e3ea7[_0x4e37f5(0x12a)])(()=>_0x561e5c['removeEventListener'](_0x4e37f5(0x11f),_0x221674)));})['pipe']((0x0,_0x11503d[_0x11c6e2(0xfb)])()),'message$':new _0x11503d[(_0x11c6e2(0x108))](_0x42c65b=>{const _0x345a5c=_0x11c6e2;let _0x10f85e=_0x1c42e4=>_0x42c65b['next'](_0x1c42e4);_0x561e5c[_0x345a5c(0xf3)]('message',_0x10f85e),_0x307b05[_0x345a5c(0x113)]((0x0,_0x2e3ea7['toDisposable'])(()=>_0x561e5c[_0x345a5c(0xfa)](_0x345a5c(0xe5),_0x10f85e)));})['pipe']((0x0,_0x11503d[_0x11c6e2(0xfb)])())};}catch(_0xd3944a){return console[_0x11c6e2(0x11f)](_0xd3944a),null;}}};_0x6f7609=_0x1e0062([_0x12ba84(0x0,_0x2e3ea7['IConfigService'])],_0x6f7609);function _0x5eaf36(_0x3de702){'@babel/helpers - typeof';const _0x171aff=_0x2804ae;return _0x5eaf36=typeof Symbol==_0x171aff(0xec)&&typeof Symbol[_0x171aff(0x100)]==_0x171aff(0x110)?function(_0x2e3e12){return typeof _0x2e3e12;}:function(_0x4fb794){const _0x5bf697=_0x171aff;return _0x4fb794&&typeof Symbol==_0x5bf697(0xec)&&_0x4fb794[_0x5bf697(0x10b)]===Symbol&&_0x4fb794!==Symbol[_0x5bf697(0xdd)]?_0x5bf697(0x110):typeof _0x4fb794;},_0x5eaf36(_0x3de702);}function _0x2fe165(_0x2ab52b,_0x1923ef){const _0x1dbf57=_0x2804ae;if(_0x5eaf36(_0x2ab52b)!=_0x1dbf57(0xf4)||!_0x2ab52b)return _0x2ab52b;var _0x63e77f=_0x2ab52b[Symbol['toPrimitive']];if(_0x63e77f!==void 0x0){var _0x4ac49c=_0x63e77f[_0x1dbf57(0xfc)](_0x2ab52b,_0x1923ef||_0x1dbf57(0x111));if(_0x5eaf36(_0x4ac49c)!='object')return _0x4ac49c;throw TypeError(_0x1dbf57(0xe4));}return(_0x1923ef===_0x1dbf57(0x10c)?String:Number)(_0x2ab52b);}function _0x31eef0(_0x2a671b){const _0x513bc7=_0x2804ae;var _0x26f4c8=_0x2fe165(_0x2a671b,'string');return _0x5eaf36(_0x26f4c8)==_0x513bc7(0x110)?_0x26f4c8:_0x26f4c8+'';}function _0x105d86(_0x46b271,_0x50936b,_0x5e8f53){const _0x57d4d4=_0x2804ae;return(_0x50936b=_0x31eef0(_0x50936b))in _0x46b271?Object[_0x57d4d4(0xfd)](_0x46b271,_0x50936b,{'value':_0x5e8f53,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b271[_0x50936b]=_0x5e8f53,_0x46b271;}let _0x58ae1e=class extends _0x2e3ea7[_0x2804ae(0xe3)]{constructor(_0x3ba53d=_0x1abb8c,_0x2fd80e,_0x446e8f){const _0x1a191b=_0x2804ae;super(),this[_0x1a191b(0xf6)]=_0x2fd80e,this['_injector']=_0x446e8f,this[_0x1a191b(0xf6)]['setConfig'](_0x125a3b,_0x3ba53d);}[_0x2804ae(0x125)](){const _0x4bc0b8=_0x2804ae;this[_0x4bc0b8(0xfe)]();}[_0x2804ae(0xfe)](){const _0x5d6764=_0x2804ae;(0x0,_0x2e3ea7['registerDependencies'])(this[_0x5d6764(0x124)],[[_0x56b049['ISocketService'],{'useClass':_0x6f7609}]]);}};_0x105d86(_0x58ae1e,_0x2804ae(0x114),_0x2804ae(0x105)),_0x105d86(_0x58ae1e,_0x2804ae(0xe9),_0x3238b9),_0x105d86(_0x58ae1e,_0x2804ae(0xf8),_0x361eff),_0x58ae1e=_0x1e0062([(0x0,_0x2e3ea7[_0x2804ae(0xea)])(_0x2350d2[_0x2804ae(0x11b)]),_0x12ba84(0x1,_0x2e3ea7[_0x2804ae(0xe6)]),_0x12ba84(0x2,(0x0,_0x2e3ea7[_0x2804ae(0xee)])(_0x2e3ea7[_0x2804ae(0x129)]))],_0x58ae1e);let _0x555e34=class extends _0x2350d2[_0x2804ae(0x10f)]{constructor(_0x27e166,_0x356e19,_0x15074d,_0x401cf3,_0x3d4802){const _0x39f302=_0x2804ae;super(_0x27e166,_0x356e19,_0x15074d,_0x401cf3,_0x3d4802);let _0x24a833=this[_0x39f302(0xf6)][_0x39f302(0xdb)](_0x2350d2[_0x39f302(0x122)]);this[_0x39f302(0xf9)][_0x39f302(0x115)]({'interceptor':(_0x3e65c4,_0x14df10)=>{const _0x3cf085=_0x39f302;let _0x1a12f5=_0x3e65c4['headers'];if(_0x24a833!=null&&_0x24a833[_0x3cf085(0x11d)]){for(let _0x30190c in _0x24a833['customHeaders'])_0x1a12f5['set'](_0x30190c,_0x24a833['customHeaders'][_0x30190c]);}return _0x14df10(_0x3e65c4);}});}async['createSocket'](_0xf66463){const _0x2d5a9d=_0x2804ae;return this[_0x2d5a9d(0xf5)](_0xf66463);}};_0x555e34=_0x1e0062([_0x12ba84(0x0,(0x0,_0x2e3ea7[_0x2804ae(0xee)])(_0x2e3ea7[_0x2804ae(0x129)])),_0x12ba84(0x1,(0x0,_0x2e3ea7[_0x2804ae(0xee)])(_0x56b049['HTTPService'])),_0x12ba84(0x2,_0x2e3ea7[_0x2804ae(0xe6)]),_0x12ba84(0x3,_0x2e3ea7['ILogService']),_0x12ba84(0x4,_0x57ea68['ISnapshotServerService'])],_0x555e34),_0x431643[_0x2804ae(0xf1)]=_0x125a3b,Object['defineProperty'](_0x431643,_0x2804ae(0x107),{'enumerable':!0x0,'get':function(){return _0x555e34;}}),Object['defineProperty'](_0x431643,_0x2804ae(0xdc),{'enumerable':!0x0,'get':function(){return _0x58ae1e;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-insiders.20260403-3e0e122",
|
|
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.19.0",
|
|
49
|
-
"@univerjs
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs-pro/collaboration": "0.
|
|
52
|
-
"@univerjs/
|
|
49
|
+
"@univerjs/core": "0.19.0-insiders.20260403-3e0e122",
|
|
50
|
+
"@univerjs/network": "0.19.0-insiders.20260403-3e0e122",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.19.0-insiders.20260403-3e0e122",
|
|
52
|
+
"@univerjs-pro/collaboration": "0.19.0-insiders.20260403-3e0e122"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/ws": "8.18.1",
|
|
56
56
|
"rxjs": "7.8.2",
|
|
57
|
-
"typescript": "^
|
|
58
|
-
"vitest": "^4.1.
|
|
59
|
-
"@univerjs-infra/shared": "0.
|
|
57
|
+
"typescript": "^6.0.2",
|
|
58
|
+
"vitest": "^4.1.1",
|
|
59
|
+
"@univerjs-infra/shared": "0.19.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"test": "vitest run",
|