@univerjs-pro/collaboration-client-node 0.25.0 → 0.25.1
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 _0x51a858=_0x3450;(function(_0x3c31ed,_0x1cc84e){const _0x5ea538=_0x3450,_0x463537=_0x3c31ed();while(!![]){try{const _0x3b864f=parseInt(_0x5ea538(0xdf))/0x1+-parseInt(_0x5ea538(0xd4))/0x2+-parseInt(_0x5ea538(0xf0))/0x3*(parseInt(_0x5ea538(0xb2))/0x4)+parseInt(_0x5ea538(0xb6))/0x5*(parseInt(_0x5ea538(0xc0))/0x6)+parseInt(_0x5ea538(0xda))/0x7+-parseInt(_0x5ea538(0xd2))/0x8*(-parseInt(_0x5ea538(0xf5))/0x9)+-parseInt(_0x5ea538(0xdd))/0xa;if(_0x3b864f===_0x1cc84e)break;else _0x463537['push'](_0x463537['shift']());}catch(_0x12a4df){_0x463537['push'](_0x463537['shift']());}}}(_0x7b9a,0x36049),Object[_0x51a858(0xd6)](exports,Symbol[_0x51a858(0xb7)],{'value':_0x51a858(0xcd)}));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='collaboration-client-node.config',s={};var c='@univerjs-pro/collaboration-client-node',l=_0x51a858(0xd3);function u(_0x5b6c72,_0x3aa126){return function(_0x1971d5,_0x16c70d){_0x3aa126(_0x1971d5,_0x16c70d,_0x5b6c72);};}function d(_0x1927e4,_0x18786e,_0x4f64f6,_0x2585b9){const _0x5b484f=_0x51a858;var _0x3ba81c=arguments[_0x5b484f(0xc8)],_0x24b127=_0x3ba81c<0x3?_0x18786e:_0x2585b9===null?_0x2585b9=Object['getOwnPropertyDescriptor'](_0x18786e,_0x4f64f6):_0x2585b9,_0x1d5fa9;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x24b127=Reflect[_0x5b484f(0xe8)](_0x1927e4,_0x18786e,_0x4f64f6,_0x2585b9);else{for(var _0x588a61=_0x1927e4[_0x5b484f(0xc8)]-0x1;_0x588a61>=0x0;_0x588a61--)(_0x1d5fa9=_0x1927e4[_0x588a61])&&(_0x24b127=(_0x3ba81c<0x3?_0x1d5fa9(_0x24b127):_0x3ba81c>0x3?_0x1d5fa9(_0x18786e,_0x4f64f6,_0x24b127):_0x1d5fa9(_0x18786e,_0x4f64f6))||_0x24b127);}return _0x3ba81c>0x3&&_0x24b127&&Object['defineProperty'](_0x18786e,_0x4f64f6,_0x24b127),_0x24b127;}let f=class extends t['Disposable']{constructor(_0x317caf){const _0x3301c3=_0x51a858;super(),this[_0x3301c3(0xb9)]=_0x317caf;}[_0x51a858(0xec)](_0x7ff2f7){const _0x354143=_0x51a858;var _0x4331f5;let _0x49ae28=((_0x4331f5=this['_configService']['getConfig'](e[_0x354143(0xb4)]))==null?void 0x0:_0x4331f5['customHeaders'])||{};try{let _0x6c37b3=new i[(_0x354143(0xcb))](_0x7ff2f7,{'headers':{..._0x49ae28}}),_0x3988a1=new t[(_0x354143(0xbd))]();return{'URL':_0x7ff2f7,'close':(_0x9e4baf,_0x1d9ff4)=>{const _0x2f5939=_0x354143;_0x6c37b3['close'](_0x9e4baf,_0x1d9ff4),_0x3988a1[_0x2f5939(0xcc)]();},'send':_0x144330=>{const _0x213d10=_0x354143;_0x6c37b3[_0x213d10(0xce)](_0x144330);},'open$':new r[(_0x354143(0xe6))](_0x401aaf=>{const _0x28b369=_0x354143;let _0x2456dc=_0xd83ed4=>_0x401aaf[_0x28b369(0xb8)](_0xd83ed4);_0x6c37b3[_0x28b369(0xc1)](_0x28b369(0xe9),_0x2456dc),_0x3988a1[_0x28b369(0xf1)]((0x0,t['toDisposable'])(()=>_0x6c37b3['removeEventListener']('open',_0x2456dc)));})['pipe']((0x0,r[_0x354143(0xbe)])()),'close$':new r[(_0x354143(0xe6))](_0x12c60f=>{const _0x52f250=_0x354143;let _0x422790=_0x37d97b=>_0x12c60f[_0x52f250(0xb8)](_0x37d97b);_0x6c37b3['addEventListener'](_0x52f250(0xba),_0x422790),_0x3988a1[_0x52f250(0xf1)]((0x0,t[_0x52f250(0xf4)])(()=>_0x6c37b3[_0x52f250(0xcf)]('close',_0x422790)));})[_0x354143(0xc9)]((0x0,r[_0x354143(0xbe)])()),'error$':new r[(_0x354143(0xe6))](_0x4d99c2=>{const _0x5629f1=_0x354143;let _0x9380bb=_0x1499f5=>_0x4d99c2[_0x5629f1(0xb8)](_0x1499f5);_0x6c37b3[_0x5629f1(0xc1)](_0x5629f1(0xe7),_0x9380bb),_0x3988a1[_0x5629f1(0xf1)]((0x0,t[_0x5629f1(0xf4)])(()=>_0x6c37b3[_0x5629f1(0xcf)](_0x5629f1(0xe7),_0x9380bb)));})[_0x354143(0xc9)]((0x0,r[_0x354143(0xbe)])()),'message$':new r[(_0x354143(0xe6))](_0x2363c4=>{const _0x712bc2=_0x354143;let _0x44138b=_0x49a05e=>_0x2363c4[_0x712bc2(0xb8)](_0x49a05e);_0x6c37b3[_0x712bc2(0xc1)]('message',_0x44138b),_0x3988a1[_0x712bc2(0xf1)]((0x0,t[_0x712bc2(0xf4)])(()=>_0x6c37b3[_0x712bc2(0xcf)]('message',_0x44138b)));})[_0x354143(0xc9)]((0x0,r['share'])())};}catch(_0x56cd65){return console['error'](_0x56cd65),null;}}};f=d([u(0x0,t[_0x51a858(0xe1)])],f);function _0x3450(_0x180796,_0x25667b){_0x180796=_0x180796-0xb2;const _0x7b9a3c=_0x7b9a();let _0x345089=_0x7b9a3c[_0x180796];return _0x345089;}function p(_0x3da99c){'@babel/helpers - typeof';const _0x40d0b4=_0x51a858;return p=typeof Symbol=='function'&&typeof Symbol[_0x40d0b4(0xd8)]=='symbol'?function(_0x26b012){return typeof _0x26b012;}:function(_0xb190bb){const _0x93c028=_0x40d0b4;return _0xb190bb&&typeof Symbol==_0x93c028(0xd7)&&_0xb190bb[_0x93c028(0xef)]===Symbol&&_0xb190bb!==Symbol[_0x93c028(0xc4)]?_0x93c028(0xbf):typeof _0xb190bb;},p(_0x3da99c);}function m(_0x31b925,_0x300b8c){const _0x682914=_0x51a858;if(p(_0x31b925)!=_0x682914(0xe0)||!_0x31b925)return _0x31b925;var _0x4dbd80=_0x31b925[Symbol[_0x682914(0xb5)]];if(_0x4dbd80!==void 0x0){var _0x14f37d=_0x4dbd80[_0x682914(0xdc)](_0x31b925,_0x300b8c||_0x682914(0xde));if(p(_0x14f37d)!=_0x682914(0xe0))return _0x14f37d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x300b8c===_0x682914(0xc5)?String:Number)(_0x31b925);}function h(_0x918b29){const _0x525aca=_0x51a858;var _0x5257ae=m(_0x918b29,'string');return p(_0x5257ae)==_0x525aca(0xbf)?_0x5257ae:_0x5257ae+'';}function _0x7b9a(){const _0x24147a=['setConfig','createSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','getConfig','constructor','3rwkWCV','add','version','_doCreateSocket','toDisposable','69507BOXKhR','23204EaVmyo','_registerDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toPrimitive','305065rfBMKH','toStringTag','next','_configService','close','set','UniverCollaborationClientPlugin','DisposableCollection','share','symbol','12dYWXED','addEventListener','_httpService','CollaborationSocketService','prototype','string','ISocketService','registerDependencies','length','pipe','headers','WebSocket','dispose','Module','send','removeEventListener','Inject','NodeCollaborationSocketService','40HIvMPd','0.25.1','174210mhdLGh','registerHTTPInterceptor','defineProperty','function','iterator','HTTPService','32935NGNTNg','_injector','call','1826230vVkHHe','default','331440zPSouq','object','IConfigService','packageName','customHeaders','DependentOn','Injector','Observable','error','decorate','open','COLLABORATION_CLIENT_NODE_CONFIG_KEY'];_0x7b9a=function(){return _0x24147a;};return _0x7b9a();}function g(_0x2f2bf7,_0x769362,_0x3622f2){const _0x5008b2=_0x51a858;return(_0x769362=h(_0x769362))in _0x2f2bf7?Object[_0x5008b2(0xd6)](_0x2f2bf7,_0x769362,{'value':_0x3622f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f2bf7[_0x769362]=_0x3622f2,_0x2f2bf7;}let _=class extends t['Plugin']{constructor(_0x404211=s,_0x718ab6,_0x42ad2d){const _0x2001f3=_0x51a858;super(),this[_0x2001f3(0xb9)]=_0x718ab6,this[_0x2001f3(0xdb)]=_0x42ad2d,this[_0x2001f3(0xb9)][_0x2001f3(0xeb)](o,_0x404211);}['onStarting'](){const _0x348934=_0x51a858;this[_0x348934(0xb3)]();}['_registerDependencies'](){const _0x3937e5=_0x51a858;(0x0,t[_0x3937e5(0xc7)])(this[_0x3937e5(0xdb)],[[n[_0x3937e5(0xc6)],{'useClass':f}]]);}};g(_,'pluginName',_0x51a858(0xed)),g(_,_0x51a858(0xe2),c),g(_,_0x51a858(0xf2),l),_=d([(0x0,t[_0x51a858(0xe4)])(e[_0x51a858(0xbc)]),u(0x1,t[_0x51a858(0xe1)]),u(0x2,(0x0,t[_0x51a858(0xd0)])(t[_0x51a858(0xe5)]))],_);let v=class extends e[_0x51a858(0xc3)]{constructor(_0xcfa687,_0x2e1ecb,_0x2c4846,_0x1bdd51,_0x85ed91){const _0x2fed1c=_0x51a858;super(_0xcfa687,_0x2e1ecb,_0x2c4846,_0x1bdd51,_0x85ed91);let _0x2b1c38=this[_0x2fed1c(0xb9)][_0x2fed1c(0xee)](e[_0x2fed1c(0xb4)]);this[_0x2fed1c(0xc2)][_0x2fed1c(0xd5)]({'interceptor':(_0x1f1ae1,_0x548581)=>{const _0x1476c5=_0x2fed1c;let _0x5c756a=_0x1f1ae1[_0x1476c5(0xca)];if(_0x2b1c38!=null&&_0x2b1c38[_0x1476c5(0xe3)]){for(let _0x44b797 in _0x2b1c38[_0x1476c5(0xe3)])_0x5c756a[_0x1476c5(0xbb)](_0x44b797,_0x2b1c38[_0x1476c5(0xe3)][_0x44b797]);}return _0x548581(_0x1f1ae1);}});}async[_0x51a858(0xec)](_0x1dae89){const _0x48e0f9=_0x51a858;return this[_0x48e0f9(0xf3)](_0x1dae89);}};v=d([u(0x0,(0x0,t[_0x51a858(0xd0)])(t[_0x51a858(0xe5)])),u(0x1,(0x0,t['Inject'])(n[_0x51a858(0xd9)])),u(0x2,t[_0x51a858(0xe1)]),u(0x3,t['ILogService']),u(0x4,a['ISnapshotServerService'])],v),exports[_0x51a858(0xea)]=o,Object[_0x51a858(0xd6)](exports,_0x51a858(0xd1),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x51a858(0xd6)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2ff42c=_0x3266;(function(_0x4eda03,_0x23a556){const _0x33c773=_0x3266,_0x17305f=_0x4eda03();while(!![]){try{const _0x5dc32e=parseInt(_0x33c773(0x12e))/0x1+-parseInt(_0x33c773(0x127))/0x2*(-parseInt(_0x33c773(0x13d))/0x3)+parseInt(_0x33c773(0x12c))/0x4*(-parseInt(_0x33c773(0x124))/0x5)+-parseInt(_0x33c773(0x145))/0x6*(parseInt(_0x33c773(0x14e))/0x7)+-parseInt(_0x33c773(0x131))/0x8+-parseInt(_0x33c773(0x138))/0x9+parseInt(_0x33c773(0x14f))/0xa;if(_0x5dc32e===_0x23a556)break;else _0x17305f['push'](_0x17305f['shift']());}catch(_0x1a60e8){_0x17305f['push'](_0x17305f['shift']());}}}(_0x368d,0x559a6));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f4bbd,CollaborationSocketService as _0x8a4bf2,UniverCollaborationClientPlugin as _0x4e0740}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x3eeab3,Disposable as _0x2640ba,DisposableCollection as _0x5b1e22,IConfigService as _0x50c13a,ILogService as _0x1b5bba,Inject as _0x4f7324,Injector as _0x175a86,Plugin as _0xc671d8,registerDependencies as _0x29bcdc,toDisposable as _0xf7b8a6}from'@univerjs/core';import{HTTPService as _0x1db5a9,ISocketService as _0x51c7d6}from'@univerjs/network';import{Observable as _0x4197d8,share as _0x49beba}from'rxjs';import{WebSocket as _0x5f4de1}from'ws';import{ISnapshotServerService as _0x5df9f4}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config',b={};var x=_0x2ff42c(0x133),S=_0x2ff42c(0x14c);function _0x368d(){const _0x4f6d22=['length','customHeaders','next','getOwnPropertyDescriptor','registerHTTPInterceptor','622014gjCGdJ','dispose','_configService','packageName','add','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.25.1','message','7iKVGWG','8645460HCEEXa','onStarting','function','string','decorate','344015KYxPjg','prototype','_registerDependencies','8rKozDD','object','defineProperty','iterator','open','36KKfvqB','error','384499XNjyLC','_httpService','pipe','1657784tXGJwq','addEventListener','@univerjs-pro/collaboration-client-node','call','close','version','setConfig','5013900fESHgN','getConfig','_injector','default','toPrimitive','441603OukrkV','symbol','send'];_0x368d=function(){return _0x4f6d22;};return _0x368d();}function C(_0x53ce0e,_0x4ed079){return function(_0x39e76d,_0x1c35c5){_0x4ed079(_0x39e76d,_0x1c35c5,_0x53ce0e);};}function _0x3266(_0x2dcbc1,_0x3577ca){_0x2dcbc1=_0x2dcbc1-0x123;const _0x368d42=_0x368d();let _0x326666=_0x368d42[_0x2dcbc1];return _0x326666;}function w(_0xb4d894,_0x5eab17,_0x13d577,_0x48477d){const _0x549a3f=_0x2ff42c;var _0x2f5f13=arguments[_0x549a3f(0x140)],_0x3e6a58=_0x2f5f13<0x3?_0x5eab17:_0x48477d===null?_0x48477d=Object[_0x549a3f(0x143)](_0x5eab17,_0x13d577):_0x48477d,_0x2284df;if(typeof Reflect=='object'&&typeof Reflect[_0x549a3f(0x123)]==_0x549a3f(0x151))_0x3e6a58=Reflect[_0x549a3f(0x123)](_0xb4d894,_0x5eab17,_0x13d577,_0x48477d);else{for(var _0x21e445=_0xb4d894[_0x549a3f(0x140)]-0x1;_0x21e445>=0x0;_0x21e445--)(_0x2284df=_0xb4d894[_0x21e445])&&(_0x3e6a58=(_0x2f5f13<0x3?_0x2284df(_0x3e6a58):_0x2f5f13>0x3?_0x2284df(_0x5eab17,_0x13d577,_0x3e6a58):_0x2284df(_0x5eab17,_0x13d577))||_0x3e6a58);}return _0x2f5f13>0x3&&_0x3e6a58&&Object[_0x549a3f(0x129)](_0x5eab17,_0x13d577,_0x3e6a58),_0x3e6a58;}let T=class extends _0x2640ba{constructor(_0x4873fe){const _0x58aac5=_0x2ff42c;super(),this[_0x58aac5(0x147)]=_0x4873fe;}['createSocket'](_0x4b6683){const _0x39c799=_0x2ff42c;var _0x2b82f5;let _0x286d83=((_0x2b82f5=this[_0x39c799(0x147)][_0x39c799(0x139)](_0x8f4bbd))==null?void 0x0:_0x2b82f5[_0x39c799(0x141)])||{};try{let _0x64bd70=new _0x5f4de1(_0x4b6683,{'headers':{..._0x286d83}}),_0x82c0be=new _0x5b1e22();return{'URL':_0x4b6683,'close':(_0x34a887,_0x144349)=>{const _0x44cf8a=_0x39c799;_0x64bd70[_0x44cf8a(0x135)](_0x34a887,_0x144349),_0x82c0be[_0x44cf8a(0x146)]();},'send':_0x400fe0=>{const _0x477e26=_0x39c799;_0x64bd70[_0x477e26(0x13f)](_0x400fe0);},'open$':new _0x4197d8(_0x58b816=>{const _0xbac2c0=_0x39c799;let _0x8cb705=_0xacc260=>_0x58b816['next'](_0xacc260);_0x64bd70[_0xbac2c0(0x132)](_0xbac2c0(0x12b),_0x8cb705),_0x82c0be[_0xbac2c0(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener']('open',_0x8cb705)));})[_0x39c799(0x130)](_0x49beba()),'close$':new _0x4197d8(_0x3cb741=>{const _0x1afe75=_0x39c799;let _0x4614f9=_0xd14224=>_0x3cb741['next'](_0xd14224);_0x64bd70[_0x1afe75(0x132)](_0x1afe75(0x135),_0x4614f9),_0x82c0be[_0x1afe75(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener'](_0x1afe75(0x135),_0x4614f9)));})[_0x39c799(0x130)](_0x49beba()),'error$':new _0x4197d8(_0x5ea3b7=>{const _0x76a1c0=_0x39c799;let _0x532bed=_0x184cf3=>_0x5ea3b7[_0x76a1c0(0x142)](_0x184cf3);_0x64bd70[_0x76a1c0(0x132)](_0x76a1c0(0x12d),_0x532bed),_0x82c0be[_0x76a1c0(0x149)](_0xf7b8a6(()=>_0x64bd70[_0x76a1c0(0x14a)]('error',_0x532bed)));})[_0x39c799(0x130)](_0x49beba()),'message$':new _0x4197d8(_0x2b45f5=>{const _0xa8d019=_0x39c799;let _0x584297=_0x3e42d3=>_0x2b45f5[_0xa8d019(0x142)](_0x3e42d3);_0x64bd70['addEventListener'](_0xa8d019(0x14d),_0x584297),_0x82c0be['add'](_0xf7b8a6(()=>_0x64bd70[_0xa8d019(0x14a)](_0xa8d019(0x14d),_0x584297)));})[_0x39c799(0x130)](_0x49beba())};}catch(_0x59147d){return console[_0x39c799(0x12d)](_0x59147d),null;}}};T=w([C(0x0,_0x50c13a)],T);function E(_0x5e176b){'@babel/helpers - typeof';const _0x383a60=_0x2ff42c;return E=typeof Symbol==_0x383a60(0x151)&&typeof Symbol[_0x383a60(0x12a)]==_0x383a60(0x13e)?function(_0x19fa4f){return typeof _0x19fa4f;}:function(_0x5b8dd1){const _0x7dfc80=_0x383a60;return _0x5b8dd1&&typeof Symbol=='function'&&_0x5b8dd1['constructor']===Symbol&&_0x5b8dd1!==Symbol[_0x7dfc80(0x125)]?_0x7dfc80(0x13e):typeof _0x5b8dd1;},E(_0x5e176b);}function D(_0x24dc4a,_0x2da77e){const _0x393ca9=_0x2ff42c;if(E(_0x24dc4a)!='object'||!_0x24dc4a)return _0x24dc4a;var _0x4a049c=_0x24dc4a[Symbol[_0x393ca9(0x13c)]];if(_0x4a049c!==void 0x0){var _0x423195=_0x4a049c[_0x393ca9(0x134)](_0x24dc4a,_0x2da77e||_0x393ca9(0x13b));if(E(_0x423195)!=_0x393ca9(0x128))return _0x423195;throw TypeError(_0x393ca9(0x14b));}return(_0x2da77e===_0x393ca9(0x152)?String:Number)(_0x24dc4a);}function O(_0x176cc4){const _0x304180=_0x2ff42c;var _0x5b7396=D(_0x176cc4,'string');return E(_0x5b7396)==_0x304180(0x13e)?_0x5b7396:_0x5b7396+'';}function k(_0x4becc7,_0x488f9f,_0x393492){const _0x3f4fad=_0x2ff42c;return(_0x488f9f=O(_0x488f9f))in _0x4becc7?Object[_0x3f4fad(0x129)](_0x4becc7,_0x488f9f,{'value':_0x393492,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4becc7[_0x488f9f]=_0x393492,_0x4becc7;}let A=class extends _0xc671d8{constructor(_0x233305=b,_0x26f45d,_0x182f5b){const _0x46bf88=_0x2ff42c;super(),this['_configService']=_0x26f45d,this[_0x46bf88(0x13a)]=_0x182f5b,this['_configService'][_0x46bf88(0x137)](y,_0x233305);}[_0x2ff42c(0x150)](){const _0x4c9aac=_0x2ff42c;this[_0x4c9aac(0x126)]();}[_0x2ff42c(0x126)](){const _0x40c58e=_0x2ff42c;_0x29bcdc(this[_0x40c58e(0x13a)],[[_0x51c7d6,{'useClass':T}]]);}};k(A,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x2ff42c(0x148),x),k(A,_0x2ff42c(0x136),S),A=w([_0x3eeab3(_0x4e0740),C(0x1,_0x50c13a),C(0x2,_0x4f7324(_0x175a86))],A);let j=class extends _0x8a4bf2{constructor(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67){const _0x1707ff=_0x2ff42c;super(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67);let _0x2e1eb9=this[_0x1707ff(0x147)][_0x1707ff(0x139)](_0x8f4bbd);this[_0x1707ff(0x12f)][_0x1707ff(0x144)]({'interceptor':(_0x557bd8,_0x5d95c8)=>{const _0xcbc345=_0x1707ff;let _0x2ae030=_0x557bd8['headers'];if(_0x2e1eb9!=null&&_0x2e1eb9[_0xcbc345(0x141)]){for(let _0x3410b1 in _0x2e1eb9['customHeaders'])_0x2ae030['set'](_0x3410b1,_0x2e1eb9['customHeaders'][_0x3410b1]);}return _0x5d95c8(_0x557bd8);}});}async['createSocket'](_0x14f773){return this['_doCreateSocket'](_0x14f773);}};j=w([C(0x0,_0x4f7324(_0x175a86)),C(0x1,_0x4f7324(_0x1db5a9)),C(0x2,_0x50c13a),C(0x3,_0x1b5bba),C(0x4,_0x5df9f4)],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 _0x2ff42c=_0x3266;(function(_0x4eda03,_0x23a556){const _0x33c773=_0x3266,_0x17305f=_0x4eda03();while(!![]){try{const _0x5dc32e=parseInt(_0x33c773(0x12e))/0x1+-parseInt(_0x33c773(0x127))/0x2*(-parseInt(_0x33c773(0x13d))/0x3)+parseInt(_0x33c773(0x12c))/0x4*(-parseInt(_0x33c773(0x124))/0x5)+-parseInt(_0x33c773(0x145))/0x6*(parseInt(_0x33c773(0x14e))/0x7)+-parseInt(_0x33c773(0x131))/0x8+-parseInt(_0x33c773(0x138))/0x9+parseInt(_0x33c773(0x14f))/0xa;if(_0x5dc32e===_0x23a556)break;else _0x17305f['push'](_0x17305f['shift']());}catch(_0x1a60e8){_0x17305f['push'](_0x17305f['shift']());}}}(_0x368d,0x559a6));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f4bbd,CollaborationSocketService as _0x8a4bf2,UniverCollaborationClientPlugin as _0x4e0740}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x3eeab3,Disposable as _0x2640ba,DisposableCollection as _0x5b1e22,IConfigService as _0x50c13a,ILogService as _0x1b5bba,Inject as _0x4f7324,Injector as _0x175a86,Plugin as _0xc671d8,registerDependencies as _0x29bcdc,toDisposable as _0xf7b8a6}from'@univerjs/core';import{HTTPService as _0x1db5a9,ISocketService as _0x51c7d6}from'@univerjs/network';import{Observable as _0x4197d8,share as _0x49beba}from'rxjs';import{WebSocket as _0x5f4de1}from'ws';import{ISnapshotServerService as _0x5df9f4}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config',b={};var x=_0x2ff42c(0x133),S=_0x2ff42c(0x14c);function _0x368d(){const _0x4f6d22=['length','customHeaders','next','getOwnPropertyDescriptor','registerHTTPInterceptor','622014gjCGdJ','dispose','_configService','packageName','add','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.25.1','message','7iKVGWG','8645460HCEEXa','onStarting','function','string','decorate','344015KYxPjg','prototype','_registerDependencies','8rKozDD','object','defineProperty','iterator','open','36KKfvqB','error','384499XNjyLC','_httpService','pipe','1657784tXGJwq','addEventListener','@univerjs-pro/collaboration-client-node','call','close','version','setConfig','5013900fESHgN','getConfig','_injector','default','toPrimitive','441603OukrkV','symbol','send'];_0x368d=function(){return _0x4f6d22;};return _0x368d();}function C(_0x53ce0e,_0x4ed079){return function(_0x39e76d,_0x1c35c5){_0x4ed079(_0x39e76d,_0x1c35c5,_0x53ce0e);};}function _0x3266(_0x2dcbc1,_0x3577ca){_0x2dcbc1=_0x2dcbc1-0x123;const _0x368d42=_0x368d();let _0x326666=_0x368d42[_0x2dcbc1];return _0x326666;}function w(_0xb4d894,_0x5eab17,_0x13d577,_0x48477d){const _0x549a3f=_0x2ff42c;var _0x2f5f13=arguments[_0x549a3f(0x140)],_0x3e6a58=_0x2f5f13<0x3?_0x5eab17:_0x48477d===null?_0x48477d=Object[_0x549a3f(0x143)](_0x5eab17,_0x13d577):_0x48477d,_0x2284df;if(typeof Reflect=='object'&&typeof Reflect[_0x549a3f(0x123)]==_0x549a3f(0x151))_0x3e6a58=Reflect[_0x549a3f(0x123)](_0xb4d894,_0x5eab17,_0x13d577,_0x48477d);else{for(var _0x21e445=_0xb4d894[_0x549a3f(0x140)]-0x1;_0x21e445>=0x0;_0x21e445--)(_0x2284df=_0xb4d894[_0x21e445])&&(_0x3e6a58=(_0x2f5f13<0x3?_0x2284df(_0x3e6a58):_0x2f5f13>0x3?_0x2284df(_0x5eab17,_0x13d577,_0x3e6a58):_0x2284df(_0x5eab17,_0x13d577))||_0x3e6a58);}return _0x2f5f13>0x3&&_0x3e6a58&&Object[_0x549a3f(0x129)](_0x5eab17,_0x13d577,_0x3e6a58),_0x3e6a58;}let T=class extends _0x2640ba{constructor(_0x4873fe){const _0x58aac5=_0x2ff42c;super(),this[_0x58aac5(0x147)]=_0x4873fe;}['createSocket'](_0x4b6683){const _0x39c799=_0x2ff42c;var _0x2b82f5;let _0x286d83=((_0x2b82f5=this[_0x39c799(0x147)][_0x39c799(0x139)](_0x8f4bbd))==null?void 0x0:_0x2b82f5[_0x39c799(0x141)])||{};try{let _0x64bd70=new _0x5f4de1(_0x4b6683,{'headers':{..._0x286d83}}),_0x82c0be=new _0x5b1e22();return{'URL':_0x4b6683,'close':(_0x34a887,_0x144349)=>{const _0x44cf8a=_0x39c799;_0x64bd70[_0x44cf8a(0x135)](_0x34a887,_0x144349),_0x82c0be[_0x44cf8a(0x146)]();},'send':_0x400fe0=>{const _0x477e26=_0x39c799;_0x64bd70[_0x477e26(0x13f)](_0x400fe0);},'open$':new _0x4197d8(_0x58b816=>{const _0xbac2c0=_0x39c799;let _0x8cb705=_0xacc260=>_0x58b816['next'](_0xacc260);_0x64bd70[_0xbac2c0(0x132)](_0xbac2c0(0x12b),_0x8cb705),_0x82c0be[_0xbac2c0(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener']('open',_0x8cb705)));})[_0x39c799(0x130)](_0x49beba()),'close$':new _0x4197d8(_0x3cb741=>{const _0x1afe75=_0x39c799;let _0x4614f9=_0xd14224=>_0x3cb741['next'](_0xd14224);_0x64bd70[_0x1afe75(0x132)](_0x1afe75(0x135),_0x4614f9),_0x82c0be[_0x1afe75(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener'](_0x1afe75(0x135),_0x4614f9)));})[_0x39c799(0x130)](_0x49beba()),'error$':new _0x4197d8(_0x5ea3b7=>{const _0x76a1c0=_0x39c799;let _0x532bed=_0x184cf3=>_0x5ea3b7[_0x76a1c0(0x142)](_0x184cf3);_0x64bd70[_0x76a1c0(0x132)](_0x76a1c0(0x12d),_0x532bed),_0x82c0be[_0x76a1c0(0x149)](_0xf7b8a6(()=>_0x64bd70[_0x76a1c0(0x14a)]('error',_0x532bed)));})[_0x39c799(0x130)](_0x49beba()),'message$':new _0x4197d8(_0x2b45f5=>{const _0xa8d019=_0x39c799;let _0x584297=_0x3e42d3=>_0x2b45f5[_0xa8d019(0x142)](_0x3e42d3);_0x64bd70['addEventListener'](_0xa8d019(0x14d),_0x584297),_0x82c0be['add'](_0xf7b8a6(()=>_0x64bd70[_0xa8d019(0x14a)](_0xa8d019(0x14d),_0x584297)));})[_0x39c799(0x130)](_0x49beba())};}catch(_0x59147d){return console[_0x39c799(0x12d)](_0x59147d),null;}}};T=w([C(0x0,_0x50c13a)],T);function E(_0x5e176b){'@babel/helpers - typeof';const _0x383a60=_0x2ff42c;return E=typeof Symbol==_0x383a60(0x151)&&typeof Symbol[_0x383a60(0x12a)]==_0x383a60(0x13e)?function(_0x19fa4f){return typeof _0x19fa4f;}:function(_0x5b8dd1){const _0x7dfc80=_0x383a60;return _0x5b8dd1&&typeof Symbol=='function'&&_0x5b8dd1['constructor']===Symbol&&_0x5b8dd1!==Symbol[_0x7dfc80(0x125)]?_0x7dfc80(0x13e):typeof _0x5b8dd1;},E(_0x5e176b);}function D(_0x24dc4a,_0x2da77e){const _0x393ca9=_0x2ff42c;if(E(_0x24dc4a)!='object'||!_0x24dc4a)return _0x24dc4a;var _0x4a049c=_0x24dc4a[Symbol[_0x393ca9(0x13c)]];if(_0x4a049c!==void 0x0){var _0x423195=_0x4a049c[_0x393ca9(0x134)](_0x24dc4a,_0x2da77e||_0x393ca9(0x13b));if(E(_0x423195)!=_0x393ca9(0x128))return _0x423195;throw TypeError(_0x393ca9(0x14b));}return(_0x2da77e===_0x393ca9(0x152)?String:Number)(_0x24dc4a);}function O(_0x176cc4){const _0x304180=_0x2ff42c;var _0x5b7396=D(_0x176cc4,'string');return E(_0x5b7396)==_0x304180(0x13e)?_0x5b7396:_0x5b7396+'';}function k(_0x4becc7,_0x488f9f,_0x393492){const _0x3f4fad=_0x2ff42c;return(_0x488f9f=O(_0x488f9f))in _0x4becc7?Object[_0x3f4fad(0x129)](_0x4becc7,_0x488f9f,{'value':_0x393492,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4becc7[_0x488f9f]=_0x393492,_0x4becc7;}let A=class extends _0xc671d8{constructor(_0x233305=b,_0x26f45d,_0x182f5b){const _0x46bf88=_0x2ff42c;super(),this['_configService']=_0x26f45d,this[_0x46bf88(0x13a)]=_0x182f5b,this['_configService'][_0x46bf88(0x137)](y,_0x233305);}[_0x2ff42c(0x150)](){const _0x4c9aac=_0x2ff42c;this[_0x4c9aac(0x126)]();}[_0x2ff42c(0x126)](){const _0x40c58e=_0x2ff42c;_0x29bcdc(this[_0x40c58e(0x13a)],[[_0x51c7d6,{'useClass':T}]]);}};k(A,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x2ff42c(0x148),x),k(A,_0x2ff42c(0x136),S),A=w([_0x3eeab3(_0x4e0740),C(0x1,_0x50c13a),C(0x2,_0x4f7324(_0x175a86))],A);let j=class extends _0x8a4bf2{constructor(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67){const _0x1707ff=_0x2ff42c;super(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67);let _0x2e1eb9=this[_0x1707ff(0x147)][_0x1707ff(0x139)](_0x8f4bbd);this[_0x1707ff(0x12f)][_0x1707ff(0x144)]({'interceptor':(_0x557bd8,_0x5d95c8)=>{const _0xcbc345=_0x1707ff;let _0x2ae030=_0x557bd8['headers'];if(_0x2e1eb9!=null&&_0x2e1eb9[_0xcbc345(0x141)]){for(let _0x3410b1 in _0x2e1eb9['customHeaders'])_0x2ae030['set'](_0x3410b1,_0x2e1eb9['customHeaders'][_0x3410b1]);}return _0x5d95c8(_0x557bd8);}});}async['createSocket'](_0x14f773){return this['_doCreateSocket'](_0x14f773);}};j=w([C(0x0,_0x4f7324(_0x175a86)),C(0x1,_0x4f7324(_0x1db5a9)),C(0x2,_0x50c13a),C(0x3,_0x1b5bba),C(0x4,_0x5df9f4)],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 _0x29a2(_0x2aaa73,_0x56a39d){_0x2aaa73=_0x2aaa73-0xaf;const _0x29785e=_0x2978();let _0x29a28f=_0x29785e[_0x2aaa73];return _0x29a28f;}(function(_0x2218df,_0x124c92){const _0x8fccca=_0x29a2,_0x4d2659=_0x2218df();while(!![]){try{const _0x4b4c7a=parseInt(_0x8fccca(0xf9))/0x1*(-parseInt(_0x8fccca(0xfa))/0x2)+parseInt(_0x8fccca(0xc4))/0x3+-parseInt(_0x8fccca(0xf6))/0x4*(parseInt(_0x8fccca(0xdc))/0x5)+parseInt(_0x8fccca(0xfb))/0x6+-parseInt(_0x8fccca(0xb2))/0x7+-parseInt(_0x8fccca(0xbe))/0x8*(-parseInt(_0x8fccca(0xeb))/0x9)+parseInt(_0x8fccca(0xea))/0xa*(parseInt(_0x8fccca(0xbb))/0xb);if(_0x4b4c7a===_0x124c92)break;else _0x4d2659['push'](_0x4d2659['shift']());}catch(_0x7bfe7d){_0x4d2659['push'](_0x4d2659['shift']());}}}(_0x2978,0xd52f8),function(_0x7dbb74,_0x3485a6){const _0x11b1f7=_0x29a2;typeof exports==_0x11b1f7(0xf8)&&typeof module<'u'?_0x3485a6(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define['amd']?define([_0x11b1f7(0xcd),_0x11b1f7(0xd2),_0x11b1f7(0xc1),'@univerjs/network','rxjs','@univerjs-pro/collaboration'],_0x3485a6):(_0x7dbb74=typeof globalThis<'u'?globalThis:_0x7dbb74||self,_0x3485a6(_0x7dbb74[_0x11b1f7(0xf5)]={},_0x7dbb74[_0x11b1f7(0xe0)],_0x7dbb74[_0x11b1f7(0xaf)],_0x7dbb74[_0x11b1f7(0xca)],_0x7dbb74[_0x11b1f7(0xed)],_0x7dbb74['UniverProCollaboration']));}(this,function(_0x496b35,_0x2f698f,_0x5d39fe,_0x5d1c0a,_0xec7f7d,_0xe51902){const _0x410398=_0x29a2;Object[_0x410398(0xd7)](_0x496b35,Symbol[_0x410398(0xe9)],{'value':'Module'});var _0x23ba35=(_0x61bf04,_0x531f4f)=>()=>(_0x531f4f||(_0x61bf04((_0x531f4f={'exports':{}})[_0x410398(0xcd)],_0x531f4f),_0x61bf04=null),_0x531f4f[_0x410398(0xcd)]);let _0x2009ba='collaboration-client-node.config',_0x5b55de={};var _0x55c6f5=_0x410398(0xe1),_0x342a8e='0.25.0',_0x54662e=_0x23ba35((_0x27ad80,_0x55a3ae)=>{const _0x3522b0=_0x410398;_0x55a3ae[_0x3522b0(0xcd)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x2fc846(_0x983f74,_0x5c96fb){return function(_0x5c2ad2,_0x39c507){_0x5c96fb(_0x5c2ad2,_0x39c507,_0x983f74);};}function _0x2d46ed(_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca){const _0x38f6a8=_0x410398;var _0x273574=arguments['length'],_0x44dbc5=_0x273574<0x3?_0x324bcd:_0x14bcca===null?_0x14bcca=Object['getOwnPropertyDescriptor'](_0x324bcd,_0x2e91af):_0x14bcca,_0x7355ba;if(typeof Reflect==_0x38f6a8(0xf8)&&typeof Reflect[_0x38f6a8(0xf1)]=='function')_0x44dbc5=Reflect[_0x38f6a8(0xf1)](_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca);else{for(var _0x14e61e=_0x563c0a[_0x38f6a8(0xb4)]-0x1;_0x14e61e>=0x0;_0x14e61e--)(_0x7355ba=_0x563c0a[_0x14e61e])&&(_0x44dbc5=(_0x273574<0x3?_0x7355ba(_0x44dbc5):_0x273574>0x3?_0x7355ba(_0x324bcd,_0x2e91af,_0x44dbc5):_0x7355ba(_0x324bcd,_0x2e91af))||_0x44dbc5);}return _0x273574>0x3&&_0x44dbc5&&Object[_0x38f6a8(0xd7)](_0x324bcd,_0x2e91af,_0x44dbc5),_0x44dbc5;}let _0x38e9e6=class extends _0x5d39fe[_0x410398(0xee)]{constructor(_0x36c694){super(),this['_configService']=_0x36c694;}[_0x410398(0xb0)](_0x503e6c){const _0x9f98e=_0x410398;var _0x451dcb;let _0x2985e8=((_0x451dcb=this[_0x9f98e(0xce)][_0x9f98e(0xe6)](_0x2f698f[_0x9f98e(0xc8)]))==null?void 0x0:_0x451dcb[_0x9f98e(0xe3)])||{};try{let _0x2de4d7=new _0x54662e[(_0x9f98e(0xc6))](_0x503e6c,{'headers':{..._0x2985e8}}),_0x194d0e=new _0x5d39fe[(_0x9f98e(0xec))]();return{'URL':_0x503e6c,'close':(_0x2e89f9,_0x48190c)=>{const _0x283e14=_0x9f98e;_0x2de4d7[_0x283e14(0xe4)](_0x2e89f9,_0x48190c),_0x194d0e[_0x283e14(0xd9)]();},'send':_0x341d37=>{const _0x29bb87=_0x9f98e;_0x2de4d7[_0x29bb87(0xd5)](_0x341d37);},'open$':new _0xec7f7d['Observable'](_0x18a2bc=>{const _0x14c476=_0x9f98e;let _0x25bd4d=_0x347451=>_0x18a2bc[_0x14c476(0xd3)](_0x347451);_0x2de4d7[_0x14c476(0xda)](_0x14c476(0xde),_0x25bd4d),_0x194d0e['add']((0x0,_0x5d39fe[_0x14c476(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x14c476(0xde),_0x25bd4d)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d['share'])()),'close$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x449d21=>{const _0x569205=_0x9f98e;let _0x3a3136=_0x90c0ba=>_0x449d21[_0x569205(0xd3)](_0x90c0ba);_0x2de4d7[_0x569205(0xda)](_0x569205(0xe4),_0x3a3136),_0x194d0e[_0x569205(0xc0)]((0x0,_0x5d39fe[_0x569205(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x569205(0xe4),_0x3a3136)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d[_0x9f98e(0xb5)])()),'error$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x3de42b=>{const _0x5b627a=_0x9f98e;let _0x13d683=_0x3fb504=>_0x3de42b[_0x5b627a(0xd3)](_0x3fb504);_0x2de4d7[_0x5b627a(0xda)]('error',_0x13d683),_0x194d0e[_0x5b627a(0xc0)]((0x0,_0x5d39fe[_0x5b627a(0xb9)])(()=>_0x2de4d7[_0x5b627a(0xf0)]('error',_0x13d683)));})['pipe']((0x0,_0xec7f7d['share'])()),'message$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x236bcb=>{const _0x6134ac=_0x9f98e;let _0x53c5b6=_0x4ca64d=>_0x236bcb['next'](_0x4ca64d);_0x2de4d7[_0x6134ac(0xda)]('message',_0x53c5b6),_0x194d0e[_0x6134ac(0xc0)]((0x0,_0x5d39fe[_0x6134ac(0xb9)])(()=>_0x2de4d7[_0x6134ac(0xf0)](_0x6134ac(0xd4),_0x53c5b6)));})['pipe']((0x0,_0xec7f7d['share'])())};}catch(_0x2a71ef){return console['error'](_0x2a71ef),null;}}};_0x38e9e6=_0x2d46ed([_0x2fc846(0x0,_0x5d39fe['IConfigService'])],_0x38e9e6);function _0x26233e(_0x1bb8a7){'@babel/helpers - typeof';const _0x360573=_0x410398;return _0x26233e=typeof Symbol==_0x360573(0xe8)&&typeof Symbol[_0x360573(0xef)]==_0x360573(0xe5)?function(_0x50320a){return typeof _0x50320a;}:function(_0x4a24a6){const _0x34fa65=_0x360573;return _0x4a24a6&&typeof Symbol==_0x34fa65(0xe8)&&_0x4a24a6[_0x34fa65(0xc3)]===Symbol&&_0x4a24a6!==Symbol['prototype']?_0x34fa65(0xe5):typeof _0x4a24a6;},_0x26233e(_0x1bb8a7);}function _0x3ad854(_0x5b7c25,_0x1b1b5e){const _0xad2b5e=_0x410398;if(_0x26233e(_0x5b7c25)!=_0xad2b5e(0xf8)||!_0x5b7c25)return _0x5b7c25;var _0x2d23db=_0x5b7c25[Symbol[_0xad2b5e(0xfd)]];if(_0x2d23db!==void 0x0){var _0x53dee5=_0x2d23db['call'](_0x5b7c25,_0x1b1b5e||_0xad2b5e(0xc9));if(_0x26233e(_0x53dee5)!=_0xad2b5e(0xf8))return _0x53dee5;throw TypeError(_0xad2b5e(0xf2));}return(_0x1b1b5e===_0xad2b5e(0xdf)?String:Number)(_0x5b7c25);}function _0x2c88c1(_0x325b58){const _0x5994f0=_0x410398;var _0x44c561=_0x3ad854(_0x325b58,_0x5994f0(0xdf));return _0x26233e(_0x44c561)==_0x5994f0(0xe5)?_0x44c561:_0x44c561+'';}function _0x297232(_0x343b5b,_0x2bbbbb,_0x29d86d){return(_0x2bbbbb=_0x2c88c1(_0x2bbbbb))in _0x343b5b?Object['defineProperty'](_0x343b5b,_0x2bbbbb,{'value':_0x29d86d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x343b5b[_0x2bbbbb]=_0x29d86d,_0x343b5b;}let _0x1b5fae=class extends _0x5d39fe[_0x410398(0xf3)]{constructor(_0x1da237=_0x5b55de,_0x142269,_0x3345cd){const _0x4ffca8=_0x410398;super(),this[_0x4ffca8(0xce)]=_0x142269,this[_0x4ffca8(0xdd)]=_0x3345cd,this[_0x4ffca8(0xce)]['setConfig'](_0x2009ba,_0x1da237);}[_0x410398(0xb7)](){const _0x1585fd=_0x410398;this[_0x1585fd(0xb6)]();}[_0x410398(0xb6)](){const _0x2f9de1=_0x410398;(0x0,_0x5d39fe[_0x2f9de1(0xcf)])(this[_0x2f9de1(0xdd)],[[_0x5d1c0a[_0x2f9de1(0xe7)],{'useClass':_0x38e9e6}]]);}};_0x297232(_0x1b5fae,'pluginName',_0x410398(0xd0)),_0x297232(_0x1b5fae,_0x410398(0xf7),_0x55c6f5),_0x297232(_0x1b5fae,_0x410398(0xd8),_0x342a8e),_0x1b5fae=_0x2d46ed([(0x0,_0x5d39fe[_0x410398(0xc7)])(_0x2f698f[_0x410398(0xc5)]),_0x2fc846(0x1,_0x5d39fe['IConfigService']),_0x2fc846(0x2,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d39fe[_0x410398(0xbd)]))],_0x1b5fae);let _0x287f44=class extends _0x2f698f[_0x410398(0xd1)]{constructor(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8){const _0x173862=_0x410398;super(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8);let _0x27ac48=this[_0x173862(0xce)][_0x173862(0xe6)](_0x2f698f[_0x173862(0xc8)]);this[_0x173862(0xb8)][_0x173862(0xcc)]({'interceptor':(_0xcad9ac,_0x41c82a)=>{const _0x34c9f8=_0x173862;let _0x25af92=_0xcad9ac[_0x34c9f8(0xe2)];if(_0x27ac48!=null&&_0x27ac48['customHeaders']){for(let _0x872fdb in _0x27ac48[_0x34c9f8(0xe3)])_0x25af92[_0x34c9f8(0xdb)](_0x872fdb,_0x27ac48[_0x34c9f8(0xe3)][_0x872fdb]);}return _0x41c82a(_0xcad9ac);}});}async[_0x410398(0xb0)](_0x102a76){return this['_doCreateSocket'](_0x102a76);}};_0x287f44=_0x2d46ed([_0x2fc846(0x0,(0x0,_0x5d39fe['Inject'])(_0x5d39fe[_0x410398(0xbd)])),_0x2fc846(0x1,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d1c0a[_0x410398(0xfc)])),_0x2fc846(0x2,_0x5d39fe[_0x410398(0xf4)]),_0x2fc846(0x3,_0x5d39fe[_0x410398(0xcb)]),_0x2fc846(0x4,_0xe51902[_0x410398(0xb1)])],_0x287f44),_0x496b35[_0x410398(0xb3)]=_0x2009ba,Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xba),{'enumerable':!0x0,'get':function(){return _0x287f44;}}),Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xc2),{'enumerable':!0x0,'get':function(){return _0x1b5fae;}});}));function _0x2978(){const _0x216380=['registerHTTPInterceptor','exports','_configService','registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','@univerjs-pro/collaboration-client','next','message','send','pipe','defineProperty','version','dispose','addEventListener','set','760705riCMLy','_injector','open','string','UniverProCollaborationClient','@univerjs-pro/collaboration-client-node','headers','customHeaders','close','symbol','getConfig','ISocketService','function','toStringTag','127270Vhuzbu','10481994ksEOkF','DisposableCollection','rxjs','Disposable','iterator','removeEventListener','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Plugin','IConfigService','UniverProCollaborationClientNode','20lUkbTp','packageName','object','206zCbFFE','16094wgiDFr','1264830HUUpvQ','HTTPService','toPrimitive','UniverCore','createSocket','ISnapshotServerService','8590736gWDEcp','COLLABORATION_CLIENT_NODE_CONFIG_KEY','length','share','_registerDependencies','onStarting','_httpService','toDisposable','NodeCollaborationSocketService','2013piqGGt','Inject','Injector','8kysAyf','Observable','add','@univerjs/core','UniverCollaborationClientNodePlugin','constructor','2442993LJEHPi','UniverCollaborationClientPlugin','WebSocket','DependentOn','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','default','UniverNetwork','ILogService'];_0x2978=function(){return _0x216380;};return _0x2978();}
|
|
1
|
+
function _0x2b8a(){const _0x2808d5=['Observable','_configService','Module','customHeaders','777184ohqwdy','packageName','version','registerDependencies','pipe','1tUdNXh','collaboration-client-node.config','error','DisposableCollection','ISocketService','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2072250AZfkif','prototype','removeEventListener','iterator','close','toDisposable','next','send','onStarting','UniverProCollaborationClient','toPrimitive','_doCreateSocket','Inject','pluginName','defineProperty','91758JSpybE','8954DaSsBu','toStringTag','string','object','IConfigService','Disposable','constructor','getConfig','ILogService','dispose','getOwnPropertyDescriptor','UniverCollaborationClientPlugin','function','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','share','12340940mSfpXL','WebSocket','UniverProCollaborationClientNode','rxjs','add','_httpService','@univerjs/core','exports','setConfig','_registerDependencies','_injector','49EeThRX','78HeCGVy','@univerjs/network','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','@univerjs-pro/collaboration-client','2232358LQPZrX','@univerjs-pro/collaboration-client-node','15576kvPyRY','68twZjjU','UniverCore','DependentOn','95075yhTmga','call','symbol','set','headers','decorate','0.25.1','UniverCollaborationClientNodePlugin','open','createSocket','message'];_0x2b8a=function(){return _0x2808d5;};return _0x2b8a();}function _0x48d1(_0x2409ac,_0x4a809c){_0x2409ac=_0x2409ac-0x175;const _0x2b8a3a=_0x2b8a();let _0x48d15c=_0x2b8a3a[_0x2409ac];return _0x48d15c;}(function(_0x1e840d,_0x33e99d){const _0x16ac59=_0x48d1,_0x53aee1=_0x1e840d();while(!![]){try{const _0x46c327=parseInt(_0x16ac59(0x19f))/0x1*(parseInt(_0x16ac59(0x185))/0x2)+parseInt(_0x16ac59(0x1b5))/0x3*(-parseInt(_0x16ac59(0x188))/0x4)+parseInt(_0x16ac59(0x18b))/0x5*(-parseInt(_0x16ac59(0x180))/0x6)+parseInt(_0x16ac59(0x17f))/0x7*(parseInt(_0x16ac59(0x19a))/0x8)+-parseInt(_0x16ac59(0x1a6))/0x9+-parseInt(_0x16ac59(0x1c5))/0xa+-parseInt(_0x16ac59(0x1b6))/0xb*(-parseInt(_0x16ac59(0x187))/0xc);if(_0x46c327===_0x33e99d)break;else _0x53aee1['push'](_0x53aee1['shift']());}catch(_0x471322){_0x53aee1['push'](_0x53aee1['shift']());}}}(_0x2b8a,0x97ae6),function(_0x467703,_0x3a88ca){const _0x1f10a8=_0x48d1;typeof exports==_0x1f10a8(0x1b9)&&typeof module<'u'?_0x3a88ca(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x1f10a8(0x1c2)&&define['amd']?define([_0x1f10a8(0x17b),_0x1f10a8(0x184),_0x1f10a8(0x17a),_0x1f10a8(0x181),_0x1f10a8(0x177),'@univerjs-pro/collaboration'],_0x3a88ca):(_0x467703=typeof globalThis<'u'?globalThis:_0x467703||self,_0x3a88ca(_0x467703[_0x1f10a8(0x176)]={},_0x467703[_0x1f10a8(0x1af)],_0x467703[_0x1f10a8(0x189)],_0x467703['UniverNetwork'],_0x467703[_0x1f10a8(0x177)],_0x467703['UniverProCollaboration']));}(this,function(_0x15283b,_0x48e5fc,_0x3d655c,_0x22bdc2,_0x12ab82,_0x246997){const _0x22725e=_0x48d1;Object[_0x22725e(0x1b4)](_0x15283b,Symbol[_0x22725e(0x1b7)],{'value':_0x22725e(0x198)});var _0x304f78=(_0x47af92,_0x1e1e90)=>()=>(_0x1e1e90||(_0x47af92((_0x1e1e90={'exports':{}})[_0x22725e(0x17b)],_0x1e1e90),_0x47af92=null),_0x1e1e90[_0x22725e(0x17b)]);let _0x28337d=_0x22725e(0x1a0),_0x377983={};var _0x167d18=_0x22725e(0x186),_0x1bf2e6=_0x22725e(0x191),_0x563f41=_0x304f78((_0x18cd6f,_0x35b448)=>{_0x35b448['exports']=function(){const _0x5cf9e2=_0x48d1;throw Error(_0x5cf9e2(0x1c3));};})();function _0x5148e7(_0x2ddabe,_0x4b39a8){return function(_0x191ca1,_0xa3eb52){_0x4b39a8(_0x191ca1,_0xa3eb52,_0x2ddabe);};}function _0x27b414(_0x586d69,_0x43fc2a,_0x260e36,_0x483a72){const _0x1bf9e2=_0x22725e;var _0x5ee182=arguments[_0x1bf9e2(0x1a4)],_0x5ddf12=_0x5ee182<0x3?_0x43fc2a:_0x483a72===null?_0x483a72=Object[_0x1bf9e2(0x1c0)](_0x43fc2a,_0x260e36):_0x483a72,_0x44241c;if(typeof Reflect==_0x1bf9e2(0x1b9)&&typeof Reflect[_0x1bf9e2(0x190)]==_0x1bf9e2(0x1c2))_0x5ddf12=Reflect['decorate'](_0x586d69,_0x43fc2a,_0x260e36,_0x483a72);else{for(var _0x4aa83a=_0x586d69[_0x1bf9e2(0x1a4)]-0x1;_0x4aa83a>=0x0;_0x4aa83a--)(_0x44241c=_0x586d69[_0x4aa83a])&&(_0x5ddf12=(_0x5ee182<0x3?_0x44241c(_0x5ddf12):_0x5ee182>0x3?_0x44241c(_0x43fc2a,_0x260e36,_0x5ddf12):_0x44241c(_0x43fc2a,_0x260e36))||_0x5ddf12);}return _0x5ee182>0x3&&_0x5ddf12&&Object[_0x1bf9e2(0x1b4)](_0x43fc2a,_0x260e36,_0x5ddf12),_0x5ddf12;}let _0xe371de=class extends _0x3d655c[_0x22725e(0x1bb)]{constructor(_0x535e91){const _0x125f80=_0x22725e;super(),this[_0x125f80(0x197)]=_0x535e91;}[_0x22725e(0x194)](_0x4a9e36){const _0x31d1f0=_0x22725e;var _0x39be3b;let _0x3d688d=((_0x39be3b=this[_0x31d1f0(0x197)]['getConfig'](_0x48e5fc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x39be3b[_0x31d1f0(0x199)])||{};try{let _0x406098=new _0x563f41[(_0x31d1f0(0x175))](_0x4a9e36,{'headers':{..._0x3d688d}}),_0x2b2274=new _0x3d655c[(_0x31d1f0(0x1a2))]();return{'URL':_0x4a9e36,'close':(_0x4c61b9,_0x119371)=>{const _0x4e5e5a=_0x31d1f0;_0x406098[_0x4e5e5a(0x1aa)](_0x4c61b9,_0x119371),_0x2b2274[_0x4e5e5a(0x1bf)]();},'send':_0x1f0a37=>{const _0x2bb640=_0x31d1f0;_0x406098[_0x2bb640(0x1ad)](_0x1f0a37);},'open$':new _0x12ab82[(_0x31d1f0(0x196))](_0x2fde1f=>{const _0x3745c2=_0x31d1f0;let _0x50eba6=_0x38e848=>_0x2fde1f[_0x3745c2(0x1ac)](_0x38e848);_0x406098[_0x3745c2(0x182)](_0x3745c2(0x193),_0x50eba6),_0x2b2274[_0x3745c2(0x178)]((0x0,_0x3d655c[_0x3745c2(0x1ab)])(()=>_0x406098[_0x3745c2(0x1a8)](_0x3745c2(0x193),_0x50eba6)));})['pipe']((0x0,_0x12ab82[_0x31d1f0(0x1c4)])()),'close$':new _0x12ab82[(_0x31d1f0(0x196))](_0xe7ffa=>{const _0x55c304=_0x31d1f0;let _0x34fb96=_0x38ccd5=>_0xe7ffa[_0x55c304(0x1ac)](_0x38ccd5);_0x406098['addEventListener'](_0x55c304(0x1aa),_0x34fb96),_0x2b2274['add']((0x0,_0x3d655c[_0x55c304(0x1ab)])(()=>_0x406098[_0x55c304(0x1a8)](_0x55c304(0x1aa),_0x34fb96)));})['pipe']((0x0,_0x12ab82[_0x31d1f0(0x1c4)])()),'error$':new _0x12ab82[(_0x31d1f0(0x196))](_0x5b9195=>{const _0x48c73e=_0x31d1f0;let _0x42c0a6=_0x202681=>_0x5b9195[_0x48c73e(0x1ac)](_0x202681);_0x406098['addEventListener']('error',_0x42c0a6),_0x2b2274[_0x48c73e(0x178)]((0x0,_0x3d655c[_0x48c73e(0x1ab)])(()=>_0x406098[_0x48c73e(0x1a8)](_0x48c73e(0x1a1),_0x42c0a6)));})[_0x31d1f0(0x19e)]((0x0,_0x12ab82['share'])()),'message$':new _0x12ab82[(_0x31d1f0(0x196))](_0x1dc537=>{const _0x42b7d4=_0x31d1f0;let _0x592d92=_0x5052ba=>_0x1dc537[_0x42b7d4(0x1ac)](_0x5052ba);_0x406098[_0x42b7d4(0x182)](_0x42b7d4(0x195),_0x592d92),_0x2b2274[_0x42b7d4(0x178)]((0x0,_0x3d655c[_0x42b7d4(0x1ab)])(()=>_0x406098[_0x42b7d4(0x1a8)](_0x42b7d4(0x195),_0x592d92)));})[_0x31d1f0(0x19e)]((0x0,_0x12ab82[_0x31d1f0(0x1c4)])())};}catch(_0x267026){return console[_0x31d1f0(0x1a1)](_0x267026),null;}}};_0xe371de=_0x27b414([_0x5148e7(0x0,_0x3d655c[_0x22725e(0x1ba)])],_0xe371de);function _0x58f0c7(_0xaef784){'@babel/helpers - typeof';const _0x23fd38=_0x22725e;return _0x58f0c7=typeof Symbol=='function'&&typeof Symbol[_0x23fd38(0x1a9)]==_0x23fd38(0x18d)?function(_0x3113b5){return typeof _0x3113b5;}:function(_0x7612a8){const _0x8d7b2=_0x23fd38;return _0x7612a8&&typeof Symbol==_0x8d7b2(0x1c2)&&_0x7612a8[_0x8d7b2(0x1bc)]===Symbol&&_0x7612a8!==Symbol[_0x8d7b2(0x1a7)]?'symbol':typeof _0x7612a8;},_0x58f0c7(_0xaef784);}function _0x290c2c(_0x4a53cc,_0x23a520){const _0xa9e7d5=_0x22725e;if(_0x58f0c7(_0x4a53cc)!=_0xa9e7d5(0x1b9)||!_0x4a53cc)return _0x4a53cc;var _0x38214b=_0x4a53cc[Symbol[_0xa9e7d5(0x1b0)]];if(_0x38214b!==void 0x0){var _0x4b0134=_0x38214b[_0xa9e7d5(0x18c)](_0x4a53cc,_0x23a520||'default');if(_0x58f0c7(_0x4b0134)!=_0xa9e7d5(0x1b9))return _0x4b0134;throw TypeError(_0xa9e7d5(0x1a5));}return(_0x23a520===_0xa9e7d5(0x1b8)?String:Number)(_0x4a53cc);}function _0x274753(_0x3d52f3){const _0x230888=_0x22725e;var _0x23954c=_0x290c2c(_0x3d52f3,_0x230888(0x1b8));return _0x58f0c7(_0x23954c)==_0x230888(0x18d)?_0x23954c:_0x23954c+'';}function _0x4d2852(_0x1c714c,_0x12bb87,_0x37cb6c){return(_0x12bb87=_0x274753(_0x12bb87))in _0x1c714c?Object['defineProperty'](_0x1c714c,_0x12bb87,{'value':_0x37cb6c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c714c[_0x12bb87]=_0x37cb6c,_0x1c714c;}let _0x112177=class extends _0x3d655c['Plugin']{constructor(_0x46e35e=_0x377983,_0x554696,_0x2b5fa9){const _0x4ee512=_0x22725e;super(),this[_0x4ee512(0x197)]=_0x554696,this['_injector']=_0x2b5fa9,this['_configService'][_0x4ee512(0x17c)](_0x28337d,_0x46e35e);}[_0x22725e(0x1ae)](){const _0x2047b8=_0x22725e;this[_0x2047b8(0x17d)]();}['_registerDependencies'](){const _0x54984f=_0x22725e;(0x0,_0x3d655c[_0x54984f(0x19d)])(this[_0x54984f(0x17e)],[[_0x22bdc2[_0x54984f(0x1a3)],{'useClass':_0xe371de}]]);}};_0x4d2852(_0x112177,_0x22725e(0x1b3),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x4d2852(_0x112177,_0x22725e(0x19b),_0x167d18),_0x4d2852(_0x112177,_0x22725e(0x19c),_0x1bf2e6),_0x112177=_0x27b414([(0x0,_0x3d655c[_0x22725e(0x18a)])(_0x48e5fc[_0x22725e(0x1c1)]),_0x5148e7(0x1,_0x3d655c[_0x22725e(0x1ba)]),_0x5148e7(0x2,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x3d655c['Injector']))],_0x112177);let _0x3b5f94=class extends _0x48e5fc['CollaborationSocketService']{constructor(_0x4f0042,_0x32cb12,_0x324866,_0x106b05,_0x531cc3){const _0x3ad32b=_0x22725e;super(_0x4f0042,_0x32cb12,_0x324866,_0x106b05,_0x531cc3);let _0x47d723=this[_0x3ad32b(0x197)][_0x3ad32b(0x1bd)](_0x48e5fc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x3ad32b(0x179)]['registerHTTPInterceptor']({'interceptor':(_0x31b8a2,_0x5c3561)=>{const _0x1ecf12=_0x3ad32b;let _0x2fe1c8=_0x31b8a2[_0x1ecf12(0x18f)];if(_0x47d723!=null&&_0x47d723[_0x1ecf12(0x199)]){for(let _0x33d3a1 in _0x47d723['customHeaders'])_0x2fe1c8[_0x1ecf12(0x18e)](_0x33d3a1,_0x47d723[_0x1ecf12(0x199)][_0x33d3a1]);}return _0x5c3561(_0x31b8a2);}});}async[_0x22725e(0x194)](_0x3aa595){const _0x5d0584=_0x22725e;return this[_0x5d0584(0x1b1)](_0x3aa595);}};_0x3b5f94=_0x27b414([_0x5148e7(0x0,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x3d655c['Injector'])),_0x5148e7(0x1,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x22bdc2['HTTPService'])),_0x5148e7(0x2,_0x3d655c[_0x22725e(0x1ba)]),_0x5148e7(0x3,_0x3d655c[_0x22725e(0x1be)]),_0x5148e7(0x4,_0x246997['ISnapshotServerService'])],_0x3b5f94),_0x15283b[_0x22725e(0x183)]=_0x28337d,Object[_0x22725e(0x1b4)](_0x15283b,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x3b5f94;}}),Object[_0x22725e(0x1b4)](_0x15283b,_0x22725e(0x192),{'enumerable':!0x0,'get':function(){return _0x112177;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Node.js collaboration client plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"ws": "8.20.1",
|
|
55
|
-
"@univerjs-pro/collaboration": "0.25.
|
|
56
|
-
"@univerjs
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
55
|
+
"@univerjs-pro/collaboration": "0.25.1",
|
|
56
|
+
"@univerjs/core": "0.25.1",
|
|
57
|
+
"@univerjs/network": "0.25.1",
|
|
58
|
+
"@univerjs-pro/collaboration-client": "0.25.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/ws": "8.18.1",
|
|
62
62
|
"rxjs": "7.8.2",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
64
|
"vitest": "^4.1.6",
|
|
65
|
-
"@univerjs-infra/shared": "0.25.
|
|
65
|
+
"@univerjs-infra/shared": "0.25.1"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"test": "vitest run",
|