@univerjs-pro/collaboration-client-node 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40ad66=_0x1c69;(function(_0x533617,_0x3d8847){const _0x11a8af=_0x1c69,_0x20a09d=_0x533617();while(!![]){try{const _0xe6db8d=parseInt(_0x11a8af(0x167))/0x1+-parseInt(_0x11a8af(0x177))/0x2+parseInt(_0x11a8af(0x17a))/0x3+parseInt(_0x11a8af(0x172))/0x4+-parseInt(_0x11a8af(0x173))/0x5*(-parseInt(_0x11a8af(0x162))/0x6)+parseInt(_0x11a8af(0x190))/0x7*(-parseInt(_0x11a8af(0x179))/0x8)+-parseInt(_0x11a8af(0x17f))/0x9;if(_0xe6db8d===_0x3d8847)break;else _0x20a09d['push'](_0x20a09d['shift']());}catch(_0x3518cd){_0x20a09d['push'](_0x20a09d['shift']());}}}(_0x5598,0xa153a),Object[_0x40ad66(0x174)](exports,Symbol['toStringTag'],{'value':'Module'}));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=_0x40ad66(0x18b);Symbol(o);const s={};var c=_0x40ad66(0x193),l=_0x40ad66(0x17c);function u(_0x5c43b2,_0xcd0567){return function(_0x468132,_0x57a197){_0xcd0567(_0x468132,_0x57a197,_0x5c43b2);};}function d(_0x254364,_0x1e1949,_0x504861,_0x1bdb62){const _0x563924=_0x40ad66;var _0x5b0c3e=arguments[_0x563924(0x18a)],_0x160013=_0x5b0c3e<0x3?_0x1e1949:_0x1bdb62===null?_0x1bdb62=Object[_0x563924(0x180)](_0x1e1949,_0x504861):_0x1bdb62,_0x41e3af;if(typeof Reflect==_0x563924(0x185)&&typeof Reflect['decorate']==_0x563924(0x19b))_0x160013=Reflect[_0x563924(0x189)](_0x254364,_0x1e1949,_0x504861,_0x1bdb62);else{for(var _0x2b7003=_0x254364['length']-0x1;_0x2b7003>=0x0;_0x2b7003--)(_0x41e3af=_0x254364[_0x2b7003])&&(_0x160013=(_0x5b0c3e<0x3?_0x41e3af(_0x160013):_0x5b0c3e>0x3?_0x41e3af(_0x1e1949,_0x504861,_0x160013):_0x41e3af(_0x1e1949,_0x504861))||_0x160013);}return _0x5b0c3e>0x3&&_0x160013&&Object[_0x563924(0x174)](_0x1e1949,_0x504861,_0x160013),_0x160013;}let f=class extends t[_0x40ad66(0x16e)]{constructor(_0x187915){const _0x2f21da=_0x40ad66;super(),this[_0x2f21da(0x182)]=_0x187915;}['createSocket'](_0x51d00f){const _0x302d51=_0x40ad66;var _0x5c5367;let _0x1bcf62=((_0x5c5367=this[_0x302d51(0x182)][_0x302d51(0x181)](e[_0x302d51(0x188)]))==null?void 0x0:_0x5c5367[_0x302d51(0x165)])||{};try{let _0xdbf122=new i[(_0x302d51(0x195))](_0x51d00f,{'headers':{..._0x1bcf62}}),_0x525583=new t['DisposableCollection']();return{'URL':_0x51d00f,'close':(_0x1502e9,_0x47bf58)=>{const _0x3153e5=_0x302d51;_0xdbf122[_0x3153e5(0x196)](_0x1502e9,_0x47bf58),_0x525583[_0x3153e5(0x163)]();},'send':_0x24da84=>{const _0x420685=_0x302d51;_0xdbf122[_0x420685(0x16d)](_0x24da84);},'open$':new r[(_0x302d51(0x18d))](_0xf0f5eb=>{const _0x56758b=_0x302d51;let _0x3bf93e=_0x45b548=>_0xf0f5eb[_0x56758b(0x171)](_0x45b548);_0xdbf122[_0x56758b(0x16a)](_0x56758b(0x168),_0x3bf93e),_0x525583['add']((0x0,t[_0x56758b(0x191)])(()=>_0xdbf122[_0x56758b(0x18c)](_0x56758b(0x168),_0x3bf93e)));})[_0x302d51(0x15a)]((0x0,r[_0x302d51(0x164)])()),'close$':new r[(_0x302d51(0x18d))](_0x3af4d3=>{const _0x489f33=_0x302d51;let _0x1bf2e2=_0x1fded2=>_0x3af4d3[_0x489f33(0x171)](_0x1fded2);_0xdbf122[_0x489f33(0x16a)](_0x489f33(0x196),_0x1bf2e2),_0x525583[_0x489f33(0x15d)]((0x0,t[_0x489f33(0x191)])(()=>_0xdbf122[_0x489f33(0x18c)](_0x489f33(0x196),_0x1bf2e2)));})['pipe']((0x0,r[_0x302d51(0x164)])()),'error$':new r['Observable'](_0x1ae996=>{const _0x1237cf=_0x302d51;let _0x11914a=_0x240a37=>_0x1ae996[_0x1237cf(0x171)](_0x240a37);_0xdbf122[_0x1237cf(0x16a)](_0x1237cf(0x197),_0x11914a),_0x525583[_0x1237cf(0x15d)]((0x0,t[_0x1237cf(0x191)])(()=>_0xdbf122['removeEventListener'](_0x1237cf(0x197),_0x11914a)));})[_0x302d51(0x15a)]((0x0,r['share'])()),'message$':new r['Observable'](_0x3769f1=>{const _0x443c00=_0x302d51;let _0x44d71e=_0x5c0075=>_0x3769f1[_0x443c00(0x171)](_0x5c0075);_0xdbf122[_0x443c00(0x16a)](_0x443c00(0x186),_0x44d71e),_0x525583[_0x443c00(0x15d)]((0x0,t[_0x443c00(0x191)])(()=>_0xdbf122['removeEventListener'](_0x443c00(0x186),_0x44d71e)));})['pipe']((0x0,r[_0x302d51(0x164)])())};}catch(_0x596672){return console[_0x302d51(0x197)](_0x596672),null;}}};f=d([u(0x0,t[_0x40ad66(0x18e)])],f);function p(_0x59ebc4){'@babel/helpers - typeof';const _0x36b5b3=_0x40ad66;return p=typeof Symbol==_0x36b5b3(0x19b)&&typeof Symbol[_0x36b5b3(0x175)]==_0x36b5b3(0x15e)?function(_0x2dce03){return typeof _0x2dce03;}:function(_0x2ab27e){const _0x488bd2=_0x36b5b3;return _0x2ab27e&&typeof Symbol==_0x488bd2(0x19b)&&_0x2ab27e[_0x488bd2(0x187)]===Symbol&&_0x2ab27e!==Symbol[_0x488bd2(0x15c)]?_0x488bd2(0x15e):typeof _0x2ab27e;},p(_0x59ebc4);}function m(_0xad84c1,_0x5335a7){const _0x2c4e50=_0x40ad66;if(p(_0xad84c1)!=_0x2c4e50(0x185)||!_0xad84c1)return _0xad84c1;var _0x4d59fb=_0xad84c1[Symbol['toPrimitive']];if(_0x4d59fb!==void 0x0){var _0x4867ac=_0x4d59fb[_0x2c4e50(0x16f)](_0xad84c1,_0x5335a7||_0x2c4e50(0x18f));if(p(_0x4867ac)!=_0x2c4e50(0x185))return _0x4867ac;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5335a7===_0x2c4e50(0x166)?String:Number)(_0xad84c1);}function h(_0x467175){const _0x2d2ccf=_0x40ad66;var _0x2fed43=m(_0x467175,_0x2d2ccf(0x166));return p(_0x2fed43)=='symbol'?_0x2fed43:_0x2fed43+'';}function g(_0x1c9b5e,_0x4b5fc2,_0x27a4d6){const _0x3eeac2=_0x40ad66;return(_0x4b5fc2=h(_0x4b5fc2))in _0x1c9b5e?Object[_0x3eeac2(0x174)](_0x1c9b5e,_0x4b5fc2,{'value':_0x27a4d6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c9b5e[_0x4b5fc2]=_0x27a4d6,_0x1c9b5e;}let _=class extends t[_0x40ad66(0x198)]{constructor(_0x488e63=s,_0x27ab24,_0x11f91b){const _0x3d99f2=_0x40ad66;super(),this['_configService']=_0x27ab24,this[_0x3d99f2(0x161)]=_0x11f91b,this[_0x3d99f2(0x182)][_0x3d99f2(0x15b)](o,_0x488e63);}[_0x40ad66(0x184)](){const _0x335b03=_0x40ad66;this[_0x335b03(0x17e)]();}[_0x40ad66(0x17e)](){const _0x58b65b=_0x40ad66;(0x0,t['registerDependencies'])(this['_injector'],[[n[_0x58b65b(0x183)],{'useClass':f}]]);}};function _0x1c69(_0x3b4f0e,_0x3ec684){_0x3b4f0e=_0x3b4f0e-0x15a;const _0x5598ac=_0x5598();let _0x1c6995=_0x5598ac[_0x3b4f0e];return _0x1c6995;}function _0x5598(){const _0x425b18=['send','Disposable','call','ISnapshotServerService','next','3158040ccNrLB','200595OKFjjq','defineProperty','iterator','_doCreateSocket','216484csyiLc','COLLABORATION_CLIENT_NODE_CONFIG_KEY','311696hZmfKo','2429817PaZjPv','UniverCollaborationClientPlugin','0.20.0','createSocket','_registerDependencies','6964218WuvERO','getOwnPropertyDescriptor','getConfig','_configService','ISocketService','onStarting','object','message','constructor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','decorate','length','collaboration-client-node.config','removeEventListener','Observable','IConfigService','default','210uJQtBz','toDisposable','CollaborationSocketService','@univerjs-pro/collaboration-client-node','NodeCollaborationSocketService','WebSocket','close','error','Plugin','set','Injector','function','packageName','pipe','setConfig','prototype','add','symbol','UniverCollaborationClientNodePlugin','Inject','_injector','54AZNSEg','dispose','share','customHeaders','string','751178JXrSci','open','pluginName','addEventListener','version','HTTPService'];_0x5598=function(){return _0x425b18;};return _0x5598();}g(_,_0x40ad66(0x169),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x40ad66(0x19c),c),g(_,_0x40ad66(0x16b),l),_=d([(0x0,t['DependentOn'])(e[_0x40ad66(0x17b)]),u(0x1,t['IConfigService']),u(0x2,(0x0,t[_0x40ad66(0x160)])(t[_0x40ad66(0x19a)]))],_);let v=class extends e[_0x40ad66(0x192)]{constructor(_0x5f4b70,_0xf7e16,_0x1b4150,_0x126aff,_0x8282e1){const _0x474de7=_0x40ad66;super(_0x5f4b70,_0xf7e16,_0x1b4150,_0x126aff,_0x8282e1);let _0x1b2661=this[_0x474de7(0x182)][_0x474de7(0x181)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x5dc457,_0x3c0cd7)=>{const _0x54e2df=_0x474de7;let _0x153d9a=_0x5dc457['headers'];if(_0x1b2661!=null&&_0x1b2661[_0x54e2df(0x165)]){for(let _0xac4ea9 in _0x1b2661[_0x54e2df(0x165)])_0x153d9a[_0x54e2df(0x199)](_0xac4ea9,_0x1b2661[_0x54e2df(0x165)][_0xac4ea9]);}return _0x3c0cd7(_0x5dc457);}});}async[_0x40ad66(0x17d)](_0x3fc963){const _0x17d9aa=_0x40ad66;return this[_0x17d9aa(0x176)](_0x3fc963);}};v=d([u(0x0,(0x0,t[_0x40ad66(0x160)])(t[_0x40ad66(0x19a)])),u(0x1,(0x0,t[_0x40ad66(0x160)])(n[_0x40ad66(0x16c)])),u(0x2,t['IConfigService']),u(0x3,t['ILogService']),u(0x4,a[_0x40ad66(0x170)])],v),exports[_0x40ad66(0x178)]=o,Object[_0x40ad66(0x174)](exports,_0x40ad66(0x194),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x40ad66(0x174)](exports,_0x40ad66(0x15f),{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x281941=_0x3be8;(function(_0x23017a,_0x9522ed){const _0x541b25=_0x3be8,_0x1b3f51=_0x23017a();while(!![]){try{const _0x2c3d19=-parseInt(_0x541b25(0x10d))/0x1+parseInt(_0x541b25(0x109))/0x2+parseInt(_0x541b25(0xfb))/0x3*(-parseInt(_0x541b25(0xef))/0x4)+-parseInt(_0x541b25(0x112))/0x5+-parseInt(_0x541b25(0xf6))/0x6*(-parseInt(_0x541b25(0xf7))/0x7)+-parseInt(_0x541b25(0x110))/0x8*(parseInt(_0x541b25(0xf5))/0x9)+parseInt(_0x541b25(0xf9))/0xa;if(_0x2c3d19===_0x9522ed)break;else _0x1b3f51['push'](_0x1b3f51['shift']());}catch(_0x451c16){_0x1b3f51['push'](_0x1b3f51['shift']());}}}(_0x17c2,0xb079e));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e9332,CollaborationSocketService as _0xd62d0,UniverCollaborationClientPlugin as _0xaac7ea}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x487f2c,Disposable as _0x12017b,DisposableCollection as _0x39501d,IConfigService as _0x568e84,ILogService as _0x1e6864,Inject as _0x561dee,Injector as _0xf2a2f,Plugin as _0x25149c,registerDependencies as _0x110fdc,toDisposable as _0x54ce44}from'@univerjs/core';function _0x3be8(_0x15e1e9,_0xc5d2b1){_0x15e1e9=_0x15e1e9-0xe9;const _0x17c2ed=_0x17c2();let _0x3be8e2=_0x17c2ed[_0x15e1e9];return _0x3be8e2;}import{HTTPService as _0x4d4276,ISocketService as _0x486c76}from'@univerjs/network';import{Observable as _0x199b68,share as _0x2c5b53}from'rxjs';import{WebSocket as _0x2cb203}from'ws';import{ISnapshotServerService as _0x135542}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';Symbol(y);const b={};var x=_0x281941(0x102),S=_0x281941(0x104);function C(_0x3ab6e7,_0xebd428){return function(_0x3e44e5,_0x3bfb3f){_0xebd428(_0x3e44e5,_0x3bfb3f,_0x3ab6e7);};}function w(_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2){const _0x17b10e=_0x281941;var _0x2a6893=arguments[_0x17b10e(0xee)],_0x426be5=_0x2a6893<0x3?_0x3dc8fe:_0x17ebb2===null?_0x17ebb2=Object['getOwnPropertyDescriptor'](_0x3dc8fe,_0x2a72ab):_0x17ebb2,_0x242fe3;if(typeof Reflect==_0x17b10e(0x10a)&&typeof Reflect[_0x17b10e(0xec)]==_0x17b10e(0x100))_0x426be5=Reflect[_0x17b10e(0xec)](_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2);else{for(var _0x37ab45=_0x3e4808[_0x17b10e(0xee)]-0x1;_0x37ab45>=0x0;_0x37ab45--)(_0x242fe3=_0x3e4808[_0x37ab45])&&(_0x426be5=(_0x2a6893<0x3?_0x242fe3(_0x426be5):_0x2a6893>0x3?_0x242fe3(_0x3dc8fe,_0x2a72ab,_0x426be5):_0x242fe3(_0x3dc8fe,_0x2a72ab))||_0x426be5);}return _0x2a6893>0x3&&_0x426be5&&Object[_0x17b10e(0xff)](_0x3dc8fe,_0x2a72ab,_0x426be5),_0x426be5;}let T=class extends _0x12017b{constructor(_0xaea20){const _0x1fc9bf=_0x281941;super(),this[_0x1fc9bf(0x10e)]=_0xaea20;}[_0x281941(0xf8)](_0x51db60){const _0x400ca2=_0x281941;var _0x3fa05d;let _0x3e7fcc=((_0x3fa05d=this[_0x400ca2(0x10e)][_0x400ca2(0xfd)](_0x5e9332))==null?void 0x0:_0x3fa05d[_0x400ca2(0x101)])||{};try{let _0x96f6e4=new _0x2cb203(_0x51db60,{'headers':{..._0x3e7fcc}}),_0x1d9911=new _0x39501d();return{'URL':_0x51db60,'close':(_0x32a9c3,_0x26b835)=>{const _0x194b2f=_0x400ca2;_0x96f6e4[_0x194b2f(0x116)](_0x32a9c3,_0x26b835),_0x1d9911[_0x194b2f(0x10c)]();},'send':_0x2ceb39=>{_0x96f6e4['send'](_0x2ceb39);},'open$':new _0x199b68(_0x1a3406=>{const _0x272e4b=_0x400ca2;let _0x1b871d=_0x6dc277=>_0x1a3406[_0x272e4b(0x103)](_0x6dc277);_0x96f6e4[_0x272e4b(0xf0)](_0x272e4b(0xf2),_0x1b871d),_0x1d9911[_0x272e4b(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x272e4b(0x108)](_0x272e4b(0xf2),_0x1b871d)));})[_0x400ca2(0xfc)](_0x2c5b53()),'close$':new _0x199b68(_0x57e6b4=>{const _0x32139e=_0x400ca2;let _0x57603e=_0x5449a0=>_0x57e6b4[_0x32139e(0x103)](_0x5449a0);_0x96f6e4[_0x32139e(0xf0)](_0x32139e(0x116),_0x57603e),_0x1d9911[_0x32139e(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x32139e(0x108)](_0x32139e(0x116),_0x57603e)));})['pipe'](_0x2c5b53()),'error$':new _0x199b68(_0x4310d5=>{const _0x2c9d68=_0x400ca2;let _0x4b3d20=_0x3b0609=>_0x4310d5[_0x2c9d68(0x103)](_0x3b0609);_0x96f6e4[_0x2c9d68(0xf0)](_0x2c9d68(0x114),_0x4b3d20),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4[_0x2c9d68(0x108)](_0x2c9d68(0x114),_0x4b3d20)));})[_0x400ca2(0xfc)](_0x2c5b53()),'message$':new _0x199b68(_0x46645d=>{const _0x2a2e1f=_0x400ca2;let _0x5ea23c=_0x5d3b28=>_0x46645d[_0x2a2e1f(0x103)](_0x5d3b28);_0x96f6e4[_0x2a2e1f(0xf0)](_0x2a2e1f(0x106),_0x5ea23c),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4['removeEventListener'](_0x2a2e1f(0x106),_0x5ea23c)));})['pipe'](_0x2c5b53())};}catch(_0x14e24b){return console[_0x400ca2(0x114)](_0x14e24b),null;}}};T=w([C(0x0,_0x568e84)],T);function _0x17c2(){const _0xdac35=['_registerDependencies','set','decorate','default','length','1610364CfWBwK','addEventListener','toPrimitive','open','call','headers','81PQKleS','8988kRwvfA','3143eZCQdh','createSocket','26416910zmETFP','setConfig','9kTeWSD','pipe','getConfig','add','defineProperty','function','customHeaders','@univerjs-pro/collaboration-client-node','next','0.20.0','_injector','message','pluginName','removeEventListener','1428326MXnpGB','object','version','dispose','664787wgfTxK','_configService','packageName','342776gtKwlT','_httpService','5237135WHDACJ','prototype','error','_doCreateSocket','close','symbol'];_0x17c2=function(){return _0xdac35;};return _0x17c2();}function E(_0xfe3ed5){'@babel/helpers - typeof';const _0x7ee222=_0x281941;return E=typeof Symbol==_0x7ee222(0x100)&&typeof Symbol['iterator']==_0x7ee222(0xe9)?function(_0x421bba){return typeof _0x421bba;}:function(_0x209131){const _0x8ca021=_0x7ee222;return _0x209131&&typeof Symbol==_0x8ca021(0x100)&&_0x209131['constructor']===Symbol&&_0x209131!==Symbol[_0x8ca021(0x113)]?_0x8ca021(0xe9):typeof _0x209131;},E(_0xfe3ed5);}function D(_0x2347f0,_0x2b6465){const _0x4fd00f=_0x281941;if(E(_0x2347f0)!='object'||!_0x2347f0)return _0x2347f0;var _0x2b7a2c=_0x2347f0[Symbol[_0x4fd00f(0xf1)]];if(_0x2b7a2c!==void 0x0){var _0xd1efbf=_0x2b7a2c[_0x4fd00f(0xf3)](_0x2347f0,_0x2b6465||_0x4fd00f(0xed));if(E(_0xd1efbf)!=_0x4fd00f(0x10a))return _0xd1efbf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2b6465==='string'?String:Number)(_0x2347f0);}function O(_0xc12ec7){var _0x557478=D(_0xc12ec7,'string');return E(_0x557478)=='symbol'?_0x557478:_0x557478+'';}function k(_0x409d69,_0x165d69,_0x4ce17b){const _0x47d4b0=_0x281941;return(_0x165d69=O(_0x165d69))in _0x409d69?Object[_0x47d4b0(0xff)](_0x409d69,_0x165d69,{'value':_0x4ce17b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x409d69[_0x165d69]=_0x4ce17b,_0x409d69;}let A=class extends _0x25149c{constructor(_0x916411=b,_0x5bce19,_0x588938){const _0x5de727=_0x281941;super(),this['_configService']=_0x5bce19,this[_0x5de727(0x105)]=_0x588938,this[_0x5de727(0x10e)][_0x5de727(0xfa)](y,_0x916411);}['onStarting'](){const _0x3d0904=_0x281941;this[_0x3d0904(0xea)]();}['_registerDependencies'](){const _0xfaff80=_0x281941;_0x110fdc(this[_0xfaff80(0x105)],[[_0x486c76,{'useClass':T}]]);}};k(A,_0x281941(0x107),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x281941(0x10f),x),k(A,_0x281941(0x10b),S),A=w([_0x487f2c(_0xaac7ea),C(0x1,_0x568e84),C(0x2,_0x561dee(_0xf2a2f))],A);let j=class extends _0xd62d0{constructor(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88){const _0x1d443c=_0x281941;super(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88);let _0x23252f=this[_0x1d443c(0x10e)][_0x1d443c(0xfd)](_0x5e9332);this[_0x1d443c(0x111)]['registerHTTPInterceptor']({'interceptor':(_0x551d37,_0x130df8)=>{const _0x1a7489=_0x1d443c;let _0x36b4d9=_0x551d37[_0x1a7489(0xf4)];if(_0x23252f!=null&&_0x23252f[_0x1a7489(0x101)]){for(let _0x2648d4 in _0x23252f[_0x1a7489(0x101)])_0x36b4d9[_0x1a7489(0xeb)](_0x2648d4,_0x23252f[_0x1a7489(0x101)][_0x2648d4]);}return _0x130df8(_0x551d37);}});}async[_0x281941(0xf8)](_0x45adbd){const _0x33c92e=_0x281941;return this[_0x33c92e(0x115)](_0x45adbd);}};j=w([C(0x0,_0x561dee(_0xf2a2f)),C(0x1,_0x561dee(_0x4d4276)),C(0x2,_0x568e84),C(0x3,_0x1e6864),C(0x4,_0x135542)],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 _0x281941=_0x3be8;(function(_0x23017a,_0x9522ed){const _0x541b25=_0x3be8,_0x1b3f51=_0x23017a();while(!![]){try{const _0x2c3d19=-parseInt(_0x541b25(0x10d))/0x1+parseInt(_0x541b25(0x109))/0x2+parseInt(_0x541b25(0xfb))/0x3*(-parseInt(_0x541b25(0xef))/0x4)+-parseInt(_0x541b25(0x112))/0x5+-parseInt(_0x541b25(0xf6))/0x6*(-parseInt(_0x541b25(0xf7))/0x7)+-parseInt(_0x541b25(0x110))/0x8*(parseInt(_0x541b25(0xf5))/0x9)+parseInt(_0x541b25(0xf9))/0xa;if(_0x2c3d19===_0x9522ed)break;else _0x1b3f51['push'](_0x1b3f51['shift']());}catch(_0x451c16){_0x1b3f51['push'](_0x1b3f51['shift']());}}}(_0x17c2,0xb079e));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e9332,CollaborationSocketService as _0xd62d0,UniverCollaborationClientPlugin as _0xaac7ea}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x487f2c,Disposable as _0x12017b,DisposableCollection as _0x39501d,IConfigService as _0x568e84,ILogService as _0x1e6864,Inject as _0x561dee,Injector as _0xf2a2f,Plugin as _0x25149c,registerDependencies as _0x110fdc,toDisposable as _0x54ce44}from'@univerjs/core';function _0x3be8(_0x15e1e9,_0xc5d2b1){_0x15e1e9=_0x15e1e9-0xe9;const _0x17c2ed=_0x17c2();let _0x3be8e2=_0x17c2ed[_0x15e1e9];return _0x3be8e2;}import{HTTPService as _0x4d4276,ISocketService as _0x486c76}from'@univerjs/network';import{Observable as _0x199b68,share as _0x2c5b53}from'rxjs';import{WebSocket as _0x2cb203}from'ws';import{ISnapshotServerService as _0x135542}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';Symbol(y);const b={};var x=_0x281941(0x102),S=_0x281941(0x104);function C(_0x3ab6e7,_0xebd428){return function(_0x3e44e5,_0x3bfb3f){_0xebd428(_0x3e44e5,_0x3bfb3f,_0x3ab6e7);};}function w(_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2){const _0x17b10e=_0x281941;var _0x2a6893=arguments[_0x17b10e(0xee)],_0x426be5=_0x2a6893<0x3?_0x3dc8fe:_0x17ebb2===null?_0x17ebb2=Object['getOwnPropertyDescriptor'](_0x3dc8fe,_0x2a72ab):_0x17ebb2,_0x242fe3;if(typeof Reflect==_0x17b10e(0x10a)&&typeof Reflect[_0x17b10e(0xec)]==_0x17b10e(0x100))_0x426be5=Reflect[_0x17b10e(0xec)](_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2);else{for(var _0x37ab45=_0x3e4808[_0x17b10e(0xee)]-0x1;_0x37ab45>=0x0;_0x37ab45--)(_0x242fe3=_0x3e4808[_0x37ab45])&&(_0x426be5=(_0x2a6893<0x3?_0x242fe3(_0x426be5):_0x2a6893>0x3?_0x242fe3(_0x3dc8fe,_0x2a72ab,_0x426be5):_0x242fe3(_0x3dc8fe,_0x2a72ab))||_0x426be5);}return _0x2a6893>0x3&&_0x426be5&&Object[_0x17b10e(0xff)](_0x3dc8fe,_0x2a72ab,_0x426be5),_0x426be5;}let T=class extends _0x12017b{constructor(_0xaea20){const _0x1fc9bf=_0x281941;super(),this[_0x1fc9bf(0x10e)]=_0xaea20;}[_0x281941(0xf8)](_0x51db60){const _0x400ca2=_0x281941;var _0x3fa05d;let _0x3e7fcc=((_0x3fa05d=this[_0x400ca2(0x10e)][_0x400ca2(0xfd)](_0x5e9332))==null?void 0x0:_0x3fa05d[_0x400ca2(0x101)])||{};try{let _0x96f6e4=new _0x2cb203(_0x51db60,{'headers':{..._0x3e7fcc}}),_0x1d9911=new _0x39501d();return{'URL':_0x51db60,'close':(_0x32a9c3,_0x26b835)=>{const _0x194b2f=_0x400ca2;_0x96f6e4[_0x194b2f(0x116)](_0x32a9c3,_0x26b835),_0x1d9911[_0x194b2f(0x10c)]();},'send':_0x2ceb39=>{_0x96f6e4['send'](_0x2ceb39);},'open$':new _0x199b68(_0x1a3406=>{const _0x272e4b=_0x400ca2;let _0x1b871d=_0x6dc277=>_0x1a3406[_0x272e4b(0x103)](_0x6dc277);_0x96f6e4[_0x272e4b(0xf0)](_0x272e4b(0xf2),_0x1b871d),_0x1d9911[_0x272e4b(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x272e4b(0x108)](_0x272e4b(0xf2),_0x1b871d)));})[_0x400ca2(0xfc)](_0x2c5b53()),'close$':new _0x199b68(_0x57e6b4=>{const _0x32139e=_0x400ca2;let _0x57603e=_0x5449a0=>_0x57e6b4[_0x32139e(0x103)](_0x5449a0);_0x96f6e4[_0x32139e(0xf0)](_0x32139e(0x116),_0x57603e),_0x1d9911[_0x32139e(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x32139e(0x108)](_0x32139e(0x116),_0x57603e)));})['pipe'](_0x2c5b53()),'error$':new _0x199b68(_0x4310d5=>{const _0x2c9d68=_0x400ca2;let _0x4b3d20=_0x3b0609=>_0x4310d5[_0x2c9d68(0x103)](_0x3b0609);_0x96f6e4[_0x2c9d68(0xf0)](_0x2c9d68(0x114),_0x4b3d20),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4[_0x2c9d68(0x108)](_0x2c9d68(0x114),_0x4b3d20)));})[_0x400ca2(0xfc)](_0x2c5b53()),'message$':new _0x199b68(_0x46645d=>{const _0x2a2e1f=_0x400ca2;let _0x5ea23c=_0x5d3b28=>_0x46645d[_0x2a2e1f(0x103)](_0x5d3b28);_0x96f6e4[_0x2a2e1f(0xf0)](_0x2a2e1f(0x106),_0x5ea23c),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4['removeEventListener'](_0x2a2e1f(0x106),_0x5ea23c)));})['pipe'](_0x2c5b53())};}catch(_0x14e24b){return console[_0x400ca2(0x114)](_0x14e24b),null;}}};T=w([C(0x0,_0x568e84)],T);function _0x17c2(){const _0xdac35=['_registerDependencies','set','decorate','default','length','1610364CfWBwK','addEventListener','toPrimitive','open','call','headers','81PQKleS','8988kRwvfA','3143eZCQdh','createSocket','26416910zmETFP','setConfig','9kTeWSD','pipe','getConfig','add','defineProperty','function','customHeaders','@univerjs-pro/collaboration-client-node','next','0.20.0','_injector','message','pluginName','removeEventListener','1428326MXnpGB','object','version','dispose','664787wgfTxK','_configService','packageName','342776gtKwlT','_httpService','5237135WHDACJ','prototype','error','_doCreateSocket','close','symbol'];_0x17c2=function(){return _0xdac35;};return _0x17c2();}function E(_0xfe3ed5){'@babel/helpers - typeof';const _0x7ee222=_0x281941;return E=typeof Symbol==_0x7ee222(0x100)&&typeof Symbol['iterator']==_0x7ee222(0xe9)?function(_0x421bba){return typeof _0x421bba;}:function(_0x209131){const _0x8ca021=_0x7ee222;return _0x209131&&typeof Symbol==_0x8ca021(0x100)&&_0x209131['constructor']===Symbol&&_0x209131!==Symbol[_0x8ca021(0x113)]?_0x8ca021(0xe9):typeof _0x209131;},E(_0xfe3ed5);}function D(_0x2347f0,_0x2b6465){const _0x4fd00f=_0x281941;if(E(_0x2347f0)!='object'||!_0x2347f0)return _0x2347f0;var _0x2b7a2c=_0x2347f0[Symbol[_0x4fd00f(0xf1)]];if(_0x2b7a2c!==void 0x0){var _0xd1efbf=_0x2b7a2c[_0x4fd00f(0xf3)](_0x2347f0,_0x2b6465||_0x4fd00f(0xed));if(E(_0xd1efbf)!=_0x4fd00f(0x10a))return _0xd1efbf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2b6465==='string'?String:Number)(_0x2347f0);}function O(_0xc12ec7){var _0x557478=D(_0xc12ec7,'string');return E(_0x557478)=='symbol'?_0x557478:_0x557478+'';}function k(_0x409d69,_0x165d69,_0x4ce17b){const _0x47d4b0=_0x281941;return(_0x165d69=O(_0x165d69))in _0x409d69?Object[_0x47d4b0(0xff)](_0x409d69,_0x165d69,{'value':_0x4ce17b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x409d69[_0x165d69]=_0x4ce17b,_0x409d69;}let A=class extends _0x25149c{constructor(_0x916411=b,_0x5bce19,_0x588938){const _0x5de727=_0x281941;super(),this['_configService']=_0x5bce19,this[_0x5de727(0x105)]=_0x588938,this[_0x5de727(0x10e)][_0x5de727(0xfa)](y,_0x916411);}['onStarting'](){const _0x3d0904=_0x281941;this[_0x3d0904(0xea)]();}['_registerDependencies'](){const _0xfaff80=_0x281941;_0x110fdc(this[_0xfaff80(0x105)],[[_0x486c76,{'useClass':T}]]);}};k(A,_0x281941(0x107),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x281941(0x10f),x),k(A,_0x281941(0x10b),S),A=w([_0x487f2c(_0xaac7ea),C(0x1,_0x568e84),C(0x2,_0x561dee(_0xf2a2f))],A);let j=class extends _0xd62d0{constructor(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88){const _0x1d443c=_0x281941;super(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88);let _0x23252f=this[_0x1d443c(0x10e)][_0x1d443c(0xfd)](_0x5e9332);this[_0x1d443c(0x111)]['registerHTTPInterceptor']({'interceptor':(_0x551d37,_0x130df8)=>{const _0x1a7489=_0x1d443c;let _0x36b4d9=_0x551d37[_0x1a7489(0xf4)];if(_0x23252f!=null&&_0x23252f[_0x1a7489(0x101)]){for(let _0x2648d4 in _0x23252f[_0x1a7489(0x101)])_0x36b4d9[_0x1a7489(0xeb)](_0x2648d4,_0x23252f[_0x1a7489(0x101)][_0x2648d4]);}return _0x130df8(_0x551d37);}});}async[_0x281941(0xf8)](_0x45adbd){const _0x33c92e=_0x281941;return this[_0x33c92e(0x115)](_0x45adbd);}};j=w([C(0x0,_0x561dee(_0xf2a2f)),C(0x1,_0x561dee(_0x4d4276)),C(0x2,_0x568e84),C(0x3,_0x1e6864),C(0x4,_0x135542)],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(_0x12c6ff,_0x5b1fa0){const _0xd3997=_0x198c,_0x53c236=_0x12c6ff();while(!![]){try{const _0x2c489c=parseInt(_0xd3997(0x118))/0x1*(-parseInt(_0xd3997(0x110))/0x2)+parseInt(_0xd3997(0x147))/0x3+-parseInt(_0xd3997(0x148))/0x4+-parseInt(_0xd3997(0x109))/0x5*(parseInt(_0xd3997(0x119))/0x6)+parseInt(_0xd3997(0x12c))/0x7*(-parseInt(_0xd3997(0x105))/0x8)+parseInt(_0xd3997(0x149))/0x9*(-parseInt(_0xd3997(0x13f))/0xa)+parseInt(_0xd3997(0x137))/0xb*(parseInt(_0xd3997(0x12e))/0xc);if(_0x2c489c===_0x5b1fa0)break;else _0x53c236['push'](_0x53c236['shift']());}catch(_0x570565){_0x53c236['push'](_0x53c236['shift']());}}}(_0x5421,0x6227e),function(_0x353cab,_0x58368d){const _0x1a46fe=_0x198c;typeof exports==_0x1a46fe(0x144)&&typeof module<'u'?_0x58368d(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define[_0x1a46fe(0x126)]?define([_0x1a46fe(0x134),_0x1a46fe(0x132),_0x1a46fe(0x138),_0x1a46fe(0x142),_0x1a46fe(0x141),_0x1a46fe(0x117)],_0x58368d):(_0x353cab=typeof globalThis<'u'?globalThis:_0x353cab||self,_0x58368d(_0x353cab[_0x1a46fe(0x12f)]={},_0x353cab[_0x1a46fe(0x114)],_0x353cab['UniverCore'],_0x353cab[_0x1a46fe(0x13a)],_0x353cab[_0x1a46fe(0x141)],_0x353cab[_0x1a46fe(0x125)]));}(this,function(_0xd04f7a,_0x519a10,_0xb2b17a,_0x48b893,_0x53c63a,_0x4ab3e4){const _0x54cfd0=_0x198c;Object[_0x54cfd0(0x151)](_0xd04f7a,Symbol[_0x54cfd0(0x153)],{'value':_0x54cfd0(0x135)});var _0x2f718c=(_0x31397f,_0x2d3f16)=>()=>(_0x2d3f16||_0x31397f((_0x2d3f16={'exports':{}})['exports'],_0x2d3f16),_0x2d3f16[_0x54cfd0(0x134)]);let _0x4437a6=_0x54cfd0(0x152);Symbol(_0x4437a6);let _0x38acc6={};var _0x377dc9=_0x54cfd0(0x10e),_0x31dfac=_0x54cfd0(0x11c),_0x599fcb=_0x2f718c((_0x24c77e,_0x2e43b5)=>{const _0x3052d5=_0x54cfd0;_0x2e43b5[_0x3052d5(0x134)]=function(){const _0x4f7641=_0x3052d5;throw Error(_0x4f7641(0x10c));};})();function _0x3f35d4(_0x5f1766,_0x48dc7d){return function(_0x72237d,_0x29c470){_0x48dc7d(_0x72237d,_0x29c470,_0x5f1766);};}function _0x4e88fd(_0x21f368,_0x40b9f9,_0x366b78,_0xb7cf9f){const _0x3fbfa4=_0x54cfd0;var _0x1f1f0a=arguments['length'],_0x1e2bb1=_0x1f1f0a<0x3?_0x40b9f9:_0xb7cf9f===null?_0xb7cf9f=Object[_0x3fbfa4(0x123)](_0x40b9f9,_0x366b78):_0xb7cf9f,_0x1fa128;if(typeof Reflect==_0x3fbfa4(0x144)&&typeof Reflect[_0x3fbfa4(0x13c)]==_0x3fbfa4(0x140))_0x1e2bb1=Reflect[_0x3fbfa4(0x13c)](_0x21f368,_0x40b9f9,_0x366b78,_0xb7cf9f);else{for(var _0x49da64=_0x21f368[_0x3fbfa4(0x14f)]-0x1;_0x49da64>=0x0;_0x49da64--)(_0x1fa128=_0x21f368[_0x49da64])&&(_0x1e2bb1=(_0x1f1f0a<0x3?_0x1fa128(_0x1e2bb1):_0x1f1f0a>0x3?_0x1fa128(_0x40b9f9,_0x366b78,_0x1e2bb1):_0x1fa128(_0x40b9f9,_0x366b78))||_0x1e2bb1);}return _0x1f1f0a>0x3&&_0x1e2bb1&&Object[_0x3fbfa4(0x151)](_0x40b9f9,_0x366b78,_0x1e2bb1),_0x1e2bb1;}let _0x2c4e7c=class extends _0xb2b17a['Disposable']{constructor(_0x1d1ce8){const _0x1ac6cf=_0x54cfd0;super(),this[_0x1ac6cf(0x139)]=_0x1d1ce8;}['createSocket'](_0x5070ac){const _0x42d857=_0x54cfd0;var _0x519fec;let _0x49f2bb=((_0x519fec=this[_0x42d857(0x139)]['getConfig'](_0x519a10[_0x42d857(0x108)]))==null?void 0x0:_0x519fec['customHeaders'])||{};try{let _0x401181=new _0x599fcb[(_0x42d857(0x124))](_0x5070ac,{'headers':{..._0x49f2bb}}),_0x3d7a86=new _0xb2b17a[(_0x42d857(0x104))]();return{'URL':_0x5070ac,'close':(_0x38bbcf,_0x5e7a60)=>{const _0x180492=_0x42d857;_0x401181[_0x180492(0x145)](_0x38bbcf,_0x5e7a60),_0x3d7a86['dispose']();},'send':_0x291c04=>{const _0x1ecb38=_0x42d857;_0x401181[_0x1ecb38(0x130)](_0x291c04);},'open$':new _0x53c63a['Observable'](_0x2b7474=>{const _0x2d12b9=_0x42d857;let _0xf5ab04=_0x1457fe=>_0x2b7474[_0x2d12b9(0x14a)](_0x1457fe);_0x401181[_0x2d12b9(0x111)](_0x2d12b9(0x13d),_0xf5ab04),_0x3d7a86[_0x2d12b9(0x14e)]((0x0,_0xb2b17a['toDisposable'])(()=>_0x401181['removeEventListener'](_0x2d12b9(0x13d),_0xf5ab04)));})['pipe']((0x0,_0x53c63a[_0x42d857(0x13e)])()),'close$':new _0x53c63a[(_0x42d857(0x120))](_0x37d8dd=>{const _0x5aa96e=_0x42d857;let _0x41bb0a=_0x935119=>_0x37d8dd['next'](_0x935119);_0x401181[_0x5aa96e(0x111)](_0x5aa96e(0x145),_0x41bb0a),_0x3d7a86['add']((0x0,_0xb2b17a[_0x5aa96e(0x128)])(()=>_0x401181[_0x5aa96e(0x115)](_0x5aa96e(0x145),_0x41bb0a)));})['pipe']((0x0,_0x53c63a[_0x42d857(0x13e)])()),'error$':new _0x53c63a['Observable'](_0xb6b6b5=>{const _0x56f07b=_0x42d857;let _0x1e49f3=_0x1171ba=>_0xb6b6b5[_0x56f07b(0x14a)](_0x1171ba);_0x401181['addEventListener'](_0x56f07b(0x150),_0x1e49f3),_0x3d7a86[_0x56f07b(0x14e)]((0x0,_0xb2b17a[_0x56f07b(0x128)])(()=>_0x401181[_0x56f07b(0x115)]('error',_0x1e49f3)));})[_0x42d857(0x143)]((0x0,_0x53c63a[_0x42d857(0x13e)])()),'message$':new _0x53c63a[(_0x42d857(0x120))](_0xf792e2=>{const _0x1b7a08=_0x42d857;let _0x1e18cb=_0x15f1b5=>_0xf792e2['next'](_0x15f1b5);_0x401181[_0x1b7a08(0x111)](_0x1b7a08(0x10b),_0x1e18cb),_0x3d7a86[_0x1b7a08(0x14e)]((0x0,_0xb2b17a[_0x1b7a08(0x128)])(()=>_0x401181[_0x1b7a08(0x115)]('message',_0x1e18cb)));})['pipe']((0x0,_0x53c63a[_0x42d857(0x13e)])())};}catch(_0x323e14){return console[_0x42d857(0x150)](_0x323e14),null;}}};_0x2c4e7c=_0x4e88fd([_0x3f35d4(0x0,_0xb2b17a[_0x54cfd0(0x12d)])],_0x2c4e7c);function _0x1d4ff3(_0x521583){'@babel/helpers - typeof';const _0x5f2c84=_0x54cfd0;return _0x1d4ff3=typeof Symbol==_0x5f2c84(0x140)&&typeof Symbol[_0x5f2c84(0x154)]=='symbol'?function(_0x541765){return typeof _0x541765;}:function(_0x33a3e7){const _0x1c69e2=_0x5f2c84;return _0x33a3e7&&typeof Symbol==_0x1c69e2(0x140)&&_0x33a3e7[_0x1c69e2(0x14b)]===Symbol&&_0x33a3e7!==Symbol['prototype']?_0x1c69e2(0x13b):typeof _0x33a3e7;},_0x1d4ff3(_0x521583);}function _0x35a04b(_0x31c904,_0x39bff5){const _0x49e8d8=_0x54cfd0;if(_0x1d4ff3(_0x31c904)!=_0x49e8d8(0x144)||!_0x31c904)return _0x31c904;var _0x3a7295=_0x31c904[Symbol[_0x49e8d8(0x12a)]];if(_0x3a7295!==void 0x0){var _0x516bf0=_0x3a7295[_0x49e8d8(0x11e)](_0x31c904,_0x39bff5||_0x49e8d8(0x10f));if(_0x1d4ff3(_0x516bf0)!='object')return _0x516bf0;throw TypeError(_0x49e8d8(0x129));}return(_0x39bff5===_0x49e8d8(0x11d)?String:Number)(_0x31c904);}function _0x3a96ce(_0x5875d5){const _0xb90f6f=_0x54cfd0;var _0xc470c=_0x35a04b(_0x5875d5,_0xb90f6f(0x11d));return _0x1d4ff3(_0xc470c)=='symbol'?_0xc470c:_0xc470c+'';}function _0x9c3a07(_0x4f4ce1,_0x3c4070,_0x516ae1){const _0x5c4f08=_0x54cfd0;return(_0x3c4070=_0x3a96ce(_0x3c4070))in _0x4f4ce1?Object[_0x5c4f08(0x151)](_0x4f4ce1,_0x3c4070,{'value':_0x516ae1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f4ce1[_0x3c4070]=_0x516ae1,_0x4f4ce1;}let _0x59a765=class extends _0xb2b17a[_0x54cfd0(0x11a)]{constructor(_0xac4688=_0x38acc6,_0x291bf8,_0x2b0a48){const _0x818c85=_0x54cfd0;super(),this[_0x818c85(0x139)]=_0x291bf8,this[_0x818c85(0x113)]=_0x2b0a48,this[_0x818c85(0x139)][_0x818c85(0x11b)](_0x4437a6,_0xac4688);}['onStarting'](){const _0x1431f2=_0x54cfd0;this[_0x1431f2(0x136)]();}['_registerDependencies'](){const _0x53acba=_0x54cfd0;(0x0,_0xb2b17a[_0x53acba(0x10a)])(this[_0x53acba(0x113)],[[_0x48b893['ISocketService'],{'useClass':_0x2c4e7c}]]);}};_0x9c3a07(_0x59a765,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x9c3a07(_0x59a765,_0x54cfd0(0x131),_0x377dc9),_0x9c3a07(_0x59a765,'version',_0x31dfac),_0x59a765=_0x4e88fd([(0x0,_0xb2b17a[_0x54cfd0(0x133)])(_0x519a10['UniverCollaborationClientPlugin']),_0x3f35d4(0x1,_0xb2b17a[_0x54cfd0(0x12d)]),_0x3f35d4(0x2,(0x0,_0xb2b17a[_0x54cfd0(0x116)])(_0xb2b17a[_0x54cfd0(0x112)]))],_0x59a765);let _0x6bd25d=class extends _0x519a10[_0x54cfd0(0x127)]{constructor(_0xe53e58,_0x24fc32,_0x1c81ac,_0x34ed7d,_0x157664){const _0x36b02a=_0x54cfd0;super(_0xe53e58,_0x24fc32,_0x1c81ac,_0x34ed7d,_0x157664);let _0x4d6245=this[_0x36b02a(0x139)][_0x36b02a(0x107)](_0x519a10['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x36b02a(0x10d)]({'interceptor':(_0x547ad0,_0x1f57b3)=>{const _0x564094=_0x36b02a;let _0x3c4d89=_0x547ad0[_0x564094(0x122)];if(_0x4d6245!=null&&_0x4d6245['customHeaders']){for(let _0x18c605 in _0x4d6245[_0x564094(0x106)])_0x3c4d89[_0x564094(0x121)](_0x18c605,_0x4d6245[_0x564094(0x106)][_0x18c605]);}return _0x1f57b3(_0x547ad0);}});}async['createSocket'](_0xbd49a7){const _0x364445=_0x54cfd0;return this[_0x364445(0x146)](_0xbd49a7);}};_0x6bd25d=_0x4e88fd([_0x3f35d4(0x0,(0x0,_0xb2b17a[_0x54cfd0(0x116)])(_0xb2b17a[_0x54cfd0(0x112)])),_0x3f35d4(0x1,(0x0,_0xb2b17a[_0x54cfd0(0x116)])(_0x48b893['HTTPService'])),_0x3f35d4(0x2,_0xb2b17a[_0x54cfd0(0x12d)]),_0x3f35d4(0x3,_0xb2b17a[_0x54cfd0(0x12b)]),_0x3f35d4(0x4,_0x4ab3e4[_0x54cfd0(0x14c)])],_0x6bd25d),_0xd04f7a[_0x54cfd0(0x14d)]=_0x4437a6,Object[_0x54cfd0(0x151)](_0xd04f7a,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x6bd25d;}}),Object[_0x54cfd0(0x151)](_0xd04f7a,_0x54cfd0(0x11f),{'enumerable':!0x0,'get':function(){return _0x59a765;}});}));function _0x198c(_0x4e40d6,_0x39a64c){_0x4e40d6=_0x4e40d6-0x104;const _0x54215a=_0x5421();let _0x198c6b=_0x54215a[_0x4e40d6];return _0x198c6b;}function _0x5421(){const _0x1cd218=['Injector','_injector','UniverProCollaborationClient','removeEventListener','Inject','@univerjs-pro/collaboration','113837wRIYKB','90DQtZul','Plugin','setConfig','0.19.0','string','call','UniverCollaborationClientNodePlugin','Observable','set','headers','getOwnPropertyDescriptor','WebSocket','UniverProCollaboration','amd','CollaborationSocketService','toDisposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toPrimitive','ILogService','1904fMeQpY','IConfigService','1957212fsNdzg','UniverProCollaborationClientNode','send','packageName','@univerjs-pro/collaboration-client','DependentOn','exports','Module','_registerDependencies','44XZMvFI','@univerjs/core','_configService','UniverNetwork','symbol','decorate','open','share','975340KwdrXy','function','rxjs','@univerjs/network','pipe','object','close','_doCreateSocket','2275926ThbFDl','2157096ANwoqK','18IzcLwb','next','constructor','ISnapshotServerService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','add','length','error','defineProperty','collaboration-client-node.config','toStringTag','iterator','DisposableCollection','1104qCrnZa','customHeaders','getConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','41095NiEkmd','registerDependencies','message','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','registerHTTPInterceptor','@univerjs-pro/collaboration-client-node','default','2KWNrTw','addEventListener'];_0x5421=function(){return _0x1cd218;};return _0x5421();}
|
|
1
|
+
function _0x4cd1(_0xade83a,_0x3a9a60){_0xade83a=_0xade83a-0x108;const _0x23c96a=_0x23c9();let _0x4cd1ec=_0x23c96a[_0xade83a];return _0x4cd1ec;}function _0x23c9(){const _0x3d123b=['setConfig','3540RpdMdv','UniverProCollaborationClientNode','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol','toPrimitive','exports','string','createSocket','function','defineProperty','UniverCore','send','version','1669676kcFZvZ','_injector','set','@univerjs/core','addEventListener','6541030sPVeje','Observable','_registerDependencies','Injector','21xBwASj','next','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','open','prototype','add','HTTPService','close','UniverCollaborationClientPlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','UniverNetwork','Plugin','error','NodeCollaborationSocketService','5ORYmuT','iterator','pipe','removeEventListener','object','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','customHeaders','default','toStringTag','200cMGXOd','toDisposable','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','headers','IConfigService','length','rxjs','UniverProCollaborationClient','_configService','registerDependencies','0.20.0','ILogService','_httpService','ISocketService','@univerjs-pro/collaboration-client','188203Zcoyla','18802641JXkEGN','share','@univerjs/network','UniverCollaborationClientNodePlugin','dispose','Module','192771hAsPXn','728154LorquS','collaboration-client-node.config','472oeGmPN','getConfig','registerHTTPInterceptor','Inject'];_0x23c9=function(){return _0x3d123b;};return _0x23c9();}(function(_0x5caaab,_0x5f331e){const _0x4f5c9b=_0x4cd1,_0x9a09cb=_0x5caaab();while(!![]){try{const _0x552108=-parseInt(_0x4f5c9b(0x134))/0x1+-parseInt(_0x4f5c9b(0x13e))/0x2*(parseInt(_0x4f5c9b(0x143))/0x3)+parseInt(_0x4f5c9b(0x150))/0x4*(-parseInt(_0x4f5c9b(0x11c))/0x5)+-parseInt(_0x4f5c9b(0x13c))/0x6*(parseInt(_0x4f5c9b(0x10d))/0x7)+parseInt(_0x4f5c9b(0x125))/0x8*(parseInt(_0x4f5c9b(0x13b))/0x9)+-parseInt(_0x4f5c9b(0x109))/0xa+parseInt(_0x4f5c9b(0x135))/0xb;if(_0x552108===_0x5f331e)break;else _0x9a09cb['push'](_0x9a09cb['shift']());}catch(_0x533433){_0x9a09cb['push'](_0x9a09cb['shift']());}}}(_0x23c9,0x539fc),function(_0x5c1e97,_0x34903e){const _0x2841d1=_0x4cd1;typeof exports==_0x2841d1(0x120)&&typeof module<'u'?_0x34903e(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x2841d1(0x14b)&&define['amd']?define(['exports',_0x2841d1(0x133),_0x2841d1(0x153),_0x2841d1(0x137),_0x2841d1(0x12b),'@univerjs-pro/collaboration'],_0x34903e):(_0x5c1e97=typeof globalThis<'u'?globalThis:_0x5c1e97||self,_0x34903e(_0x5c1e97[_0x2841d1(0x144)]={},_0x5c1e97[_0x2841d1(0x12c)],_0x5c1e97[_0x2841d1(0x14d)],_0x5c1e97[_0x2841d1(0x118)],_0x5c1e97[_0x2841d1(0x12b)],_0x5c1e97['UniverProCollaboration']));}(this,function(_0x3cff4e,_0x2d81f0,_0x340ba7,_0x3da3e4,_0x57bdd2,_0x5c6add){const _0x522df2=_0x4cd1;Object[_0x522df2(0x14c)](_0x3cff4e,Symbol[_0x522df2(0x124)],{'value':_0x522df2(0x13a)});var _0x4138bc=(_0x1ce507,_0x5ef11e)=>()=>(_0x5ef11e||_0x1ce507((_0x5ef11e={'exports':{}})[_0x522df2(0x148)],_0x5ef11e),_0x5ef11e[_0x522df2(0x148)]);let _0x35bb47=_0x522df2(0x13d);Symbol(_0x35bb47);let _0x53393d={};var _0x50093a='@univerjs-pro/collaboration-client-node',_0xfd64ec=_0x522df2(0x12f),_0x197a8b=_0x4138bc((_0x27e4d1,_0x4ddb57)=>{const _0xbebb94=_0x522df2;_0x4ddb57[_0xbebb94(0x148)]=function(){const _0x2356ca=_0xbebb94;throw Error(_0x2356ca(0x127));};})();function _0x1bb5ce(_0x1f1806,_0x57432d){return function(_0x2de770,_0x2cb262){_0x57432d(_0x2de770,_0x2cb262,_0x1f1806);};}function _0x5790e0(_0x3d1d04,_0x507f56,_0x265c0c,_0x2a8b18){const _0x2d2810=_0x522df2;var _0x152391=arguments[_0x2d2810(0x12a)],_0x328020=_0x152391<0x3?_0x507f56:_0x2a8b18===null?_0x2a8b18=Object['getOwnPropertyDescriptor'](_0x507f56,_0x265c0c):_0x2a8b18,_0x55a190;if(typeof Reflect==_0x2d2810(0x120)&&typeof Reflect[_0x2d2810(0x117)]==_0x2d2810(0x14b))_0x328020=Reflect['decorate'](_0x3d1d04,_0x507f56,_0x265c0c,_0x2a8b18);else{for(var _0x18d961=_0x3d1d04['length']-0x1;_0x18d961>=0x0;_0x18d961--)(_0x55a190=_0x3d1d04[_0x18d961])&&(_0x328020=(_0x152391<0x3?_0x55a190(_0x328020):_0x152391>0x3?_0x55a190(_0x507f56,_0x265c0c,_0x328020):_0x55a190(_0x507f56,_0x265c0c))||_0x328020);}return _0x152391>0x3&&_0x328020&&Object['defineProperty'](_0x507f56,_0x265c0c,_0x328020),_0x328020;}let _0x390d84=class extends _0x340ba7['Disposable']{constructor(_0x1c2d0f){const _0x570cd4=_0x522df2;super(),this[_0x570cd4(0x12d)]=_0x1c2d0f;}[_0x522df2(0x14a)](_0x3f56c7){const _0x158b03=_0x522df2;var _0x572b36;let _0x54b631=((_0x572b36=this[_0x158b03(0x12d)][_0x158b03(0x13f)](_0x2d81f0[_0x158b03(0x10f)]))==null?void 0x0:_0x572b36[_0x158b03(0x122)])||{};try{let _0x2135ff=new _0x197a8b['WebSocket'](_0x3f56c7,{'headers':{..._0x54b631}}),_0x1b1d1d=new _0x340ba7['DisposableCollection']();return{'URL':_0x3f56c7,'close':(_0x344b36,_0x2ef46b)=>{const _0x3fa5a9=_0x158b03;_0x2135ff[_0x3fa5a9(0x114)](_0x344b36,_0x2ef46b),_0x1b1d1d[_0x3fa5a9(0x139)]();},'send':_0x449be5=>{const _0x3de4=_0x158b03;_0x2135ff[_0x3de4(0x14e)](_0x449be5);},'open$':new _0x57bdd2[(_0x158b03(0x10a))](_0x16f916=>{const _0x4bc1ff=_0x158b03;let _0x4ac334=_0x4158c0=>_0x16f916[_0x4bc1ff(0x10e)](_0x4158c0);_0x2135ff['addEventListener'](_0x4bc1ff(0x110),_0x4ac334),_0x1b1d1d['add']((0x0,_0x340ba7[_0x4bc1ff(0x126)])(()=>_0x2135ff[_0x4bc1ff(0x11f)](_0x4bc1ff(0x110),_0x4ac334)));})[_0x158b03(0x11e)]((0x0,_0x57bdd2[_0x158b03(0x136)])()),'close$':new _0x57bdd2[(_0x158b03(0x10a))](_0x1e0497=>{const _0x5b1d18=_0x158b03;let _0x1fafb2=_0xab8cbd=>_0x1e0497['next'](_0xab8cbd);_0x2135ff[_0x5b1d18(0x108)]('close',_0x1fafb2),_0x1b1d1d[_0x5b1d18(0x112)]((0x0,_0x340ba7[_0x5b1d18(0x126)])(()=>_0x2135ff[_0x5b1d18(0x11f)](_0x5b1d18(0x114),_0x1fafb2)));})['pipe']((0x0,_0x57bdd2[_0x158b03(0x136)])()),'error$':new _0x57bdd2[(_0x158b03(0x10a))](_0x1c31a2=>{const _0x35345f=_0x158b03;let _0x5ebd12=_0x1f0d7a=>_0x1c31a2['next'](_0x1f0d7a);_0x2135ff[_0x35345f(0x108)]('error',_0x5ebd12),_0x1b1d1d[_0x35345f(0x112)]((0x0,_0x340ba7[_0x35345f(0x126)])(()=>_0x2135ff[_0x35345f(0x11f)](_0x35345f(0x11a),_0x5ebd12)));})['pipe']((0x0,_0x57bdd2[_0x158b03(0x136)])()),'message$':new _0x57bdd2[(_0x158b03(0x10a))](_0x5f41e2=>{const _0x1f8ca3=_0x158b03;let _0x221222=_0x510e06=>_0x5f41e2[_0x1f8ca3(0x10e)](_0x510e06);_0x2135ff[_0x1f8ca3(0x108)]('message',_0x221222),_0x1b1d1d[_0x1f8ca3(0x112)]((0x0,_0x340ba7[_0x1f8ca3(0x126)])(()=>_0x2135ff[_0x1f8ca3(0x11f)]('message',_0x221222)));})[_0x158b03(0x11e)]((0x0,_0x57bdd2[_0x158b03(0x136)])())};}catch(_0x49c7d7){return console['error'](_0x49c7d7),null;}}};_0x390d84=_0x5790e0([_0x1bb5ce(0x0,_0x340ba7[_0x522df2(0x129)])],_0x390d84);function _0xa97341(_0x5d13d3){'@babel/helpers - typeof';const _0x3da095=_0x522df2;return _0xa97341=typeof Symbol==_0x3da095(0x14b)&&typeof Symbol[_0x3da095(0x11d)]==_0x3da095(0x146)?function(_0x4b3b24){return typeof _0x4b3b24;}:function(_0x4e1cc1){const _0x2d71c3=_0x3da095;return _0x4e1cc1&&typeof Symbol=='function'&&_0x4e1cc1['constructor']===Symbol&&_0x4e1cc1!==Symbol[_0x2d71c3(0x111)]?'symbol':typeof _0x4e1cc1;},_0xa97341(_0x5d13d3);}function _0x13dfe8(_0x4e1f1c,_0x1be553){const _0x52389b=_0x522df2;if(_0xa97341(_0x4e1f1c)!='object'||!_0x4e1f1c)return _0x4e1f1c;var _0x42b14b=_0x4e1f1c[Symbol[_0x52389b(0x147)]];if(_0x42b14b!==void 0x0){var _0xddbf1c=_0x42b14b['call'](_0x4e1f1c,_0x1be553||_0x52389b(0x123));if(_0xa97341(_0xddbf1c)!=_0x52389b(0x120))return _0xddbf1c;throw TypeError(_0x52389b(0x116));}return(_0x1be553===_0x52389b(0x149)?String:Number)(_0x4e1f1c);}function _0x26767b(_0x334a06){const _0x46a745=_0x522df2;var _0x1925ae=_0x13dfe8(_0x334a06,_0x46a745(0x149));return _0xa97341(_0x1925ae)==_0x46a745(0x146)?_0x1925ae:_0x1925ae+'';}function _0x13169c(_0x43295e,_0x38528b,_0x147ace){const _0x4a8066=_0x522df2;return(_0x38528b=_0x26767b(_0x38528b))in _0x43295e?Object[_0x4a8066(0x14c)](_0x43295e,_0x38528b,{'value':_0x147ace,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43295e[_0x38528b]=_0x147ace,_0x43295e;}let _0x2b7bd9=class extends _0x340ba7[_0x522df2(0x119)]{constructor(_0x17c7ac=_0x53393d,_0x405410,_0x39e520){const _0x568514=_0x522df2;super(),this[_0x568514(0x12d)]=_0x405410,this[_0x568514(0x151)]=_0x39e520,this[_0x568514(0x12d)][_0x568514(0x142)](_0x35bb47,_0x17c7ac);}['onStarting'](){const _0x93ae13=_0x522df2;this[_0x93ae13(0x10b)]();}[_0x522df2(0x10b)](){const _0x465627=_0x522df2;(0x0,_0x340ba7[_0x465627(0x12e)])(this['_injector'],[[_0x3da3e4[_0x465627(0x132)],{'useClass':_0x390d84}]]);}};_0x13169c(_0x2b7bd9,'pluginName',_0x522df2(0x121)),_0x13169c(_0x2b7bd9,'packageName',_0x50093a),_0x13169c(_0x2b7bd9,_0x522df2(0x14f),_0xfd64ec),_0x2b7bd9=_0x5790e0([(0x0,_0x340ba7['DependentOn'])(_0x2d81f0[_0x522df2(0x115)]),_0x1bb5ce(0x1,_0x340ba7[_0x522df2(0x129)]),_0x1bb5ce(0x2,(0x0,_0x340ba7[_0x522df2(0x141)])(_0x340ba7[_0x522df2(0x10c)]))],_0x2b7bd9);let _0x24b170=class extends _0x2d81f0['CollaborationSocketService']{constructor(_0x467a69,_0x1ecc05,_0x2c6999,_0x34cab6,_0x38b96d){const _0x4bd529=_0x522df2;super(_0x467a69,_0x1ecc05,_0x2c6999,_0x34cab6,_0x38b96d);let _0x1f7af1=this['_configService'][_0x4bd529(0x13f)](_0x2d81f0[_0x4bd529(0x10f)]);this[_0x4bd529(0x131)][_0x4bd529(0x140)]({'interceptor':(_0x47182d,_0x522c2b)=>{const _0x2d6afa=_0x4bd529;let _0x414800=_0x47182d[_0x2d6afa(0x128)];if(_0x1f7af1!=null&&_0x1f7af1[_0x2d6afa(0x122)]){for(let _0x50b6f6 in _0x1f7af1[_0x2d6afa(0x122)])_0x414800[_0x2d6afa(0x152)](_0x50b6f6,_0x1f7af1['customHeaders'][_0x50b6f6]);}return _0x522c2b(_0x47182d);}});}async[_0x522df2(0x14a)](_0x2472d4){return this['_doCreateSocket'](_0x2472d4);}};_0x24b170=_0x5790e0([_0x1bb5ce(0x0,(0x0,_0x340ba7[_0x522df2(0x141)])(_0x340ba7[_0x522df2(0x10c)])),_0x1bb5ce(0x1,(0x0,_0x340ba7['Inject'])(_0x3da3e4[_0x522df2(0x113)])),_0x1bb5ce(0x2,_0x340ba7['IConfigService']),_0x1bb5ce(0x3,_0x340ba7[_0x522df2(0x130)]),_0x1bb5ce(0x4,_0x5c6add['ISnapshotServerService'])],_0x24b170),_0x3cff4e[_0x522df2(0x145)]=_0x35bb47,Object[_0x522df2(0x14c)](_0x3cff4e,_0x522df2(0x11b),{'enumerable':!0x0,'get':function(){return _0x24b170;}}),Object[_0x522df2(0x14c)](_0x3cff4e,_0x522df2(0x138),{'enumerable':!0x0,'get':function(){return _0x2b7bd9;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
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-pro/collaboration
|
|
50
|
-
"@univerjs/network": "0.
|
|
51
|
-
"@univerjs-pro/collaboration": "0.
|
|
52
|
-
"@univerjs/core": "0.
|
|
49
|
+
"@univerjs-pro/collaboration": "0.20.0",
|
|
50
|
+
"@univerjs/network": "0.20.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.20.0",
|
|
52
|
+
"@univerjs/core": "0.20.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/ws": "8.18.1",
|
|
56
56
|
"rxjs": "7.8.2",
|
|
57
57
|
"typescript": "^6.0.2",
|
|
58
58
|
"vitest": "^4.1.1",
|
|
59
|
-
"@univerjs-infra/shared": "0.
|
|
59
|
+
"@univerjs-infra/shared": "0.20.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"test": "vitest run",
|