@univerjs-pro/collaboration-client-node 0.21.1 → 0.22.0-insiders.20260513-09bbeca
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/README.md +28 -8
- 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 +15 -9
package/README.md
CHANGED
|
@@ -1,16 +1,36 @@
|
|
|
1
|
-
# @univerjs/collaboration-client-node
|
|
1
|
+
# @univerjs-pro/collaboration-client-node
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.
|
|
4
|
-
[](https://npmjs.com/package/@univerjs-pro/collaboration-client-node)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/collaboration-client-node)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
`@univerjs-pro/collaboration-client-node` provides node.js collaboration client plugin for Univer Pro.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Package Overview
|
|
9
|
+
|
|
10
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
11
|
+
| --- | --- | :---: | :---: | :---: |
|
|
12
|
+
| `@univerjs-pro/collaboration-client-node` | `UniverProCollaborationClientNode` | No | No | No |
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
pnpm add @univerjs-pro/collaboration-client-node
|
|
18
|
+
# or
|
|
19
|
+
npm install @univerjs-pro/collaboration-client-node
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
9
23
|
|
|
10
24
|
## Usage
|
|
11
25
|
|
|
12
|
-
|
|
26
|
+
```ts
|
|
27
|
+
import { UniverCollaborationClientNodePlugin } from '@univerjs-pro/collaboration-client-node';
|
|
13
28
|
|
|
14
|
-
|
|
15
|
-
npm i @univerjs/collaboration-client-node
|
|
29
|
+
univer.registerPlugin(UniverCollaborationClientNodePlugin);
|
|
16
30
|
```
|
|
31
|
+
|
|
32
|
+
## Resources
|
|
33
|
+
|
|
34
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
35
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/collaboration-client-node)
|
|
36
|
+
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xbacc9c=_0x2944;(function(_0x28092f,_0x4ff11a){const _0x1005b7=_0x2944,_0x37d692=_0x28092f();while(!![]){try{const _0x3683a6=parseInt(_0x1005b7(0x84))/0x1*(-parseInt(_0x1005b7(0xa8))/0x2)+parseInt(_0x1005b7(0xa4))/0x3+parseInt(_0x1005b7(0xb4))/0x4*(-parseInt(_0x1005b7(0x7e))/0x5)+-parseInt(_0x1005b7(0xb1))/0x6+parseInt(_0x1005b7(0xac))/0x7*(parseInt(_0x1005b7(0x89))/0x8)+parseInt(_0x1005b7(0xb8))/0x9+parseInt(_0x1005b7(0x8c))/0xa;if(_0x3683a6===_0x4ff11a)break;else _0x37d692['push'](_0x37d692['shift']());}catch(_0x584736){_0x37d692['push'](_0x37d692['shift']());}}}(_0x133a,0xbef4d),Object[_0xbacc9c(0x81)](exports,Symbol[_0xbacc9c(0x7b)],{'value':_0xbacc9c(0xa2)}));let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core=require('@univerjs/core'),_univerjs_network=require('@univerjs/network'),rxjs=require('rxjs'),ws=require('ws'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration');const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0xbacc9c(0x90),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0xbacc9c(0xb3),version=_0xbacc9c(0x8e);function __decorateParam(_0x26aeeb,_0x4d5e4f){return function(_0x28e5a7,_0x271a5b){_0x4d5e4f(_0x28e5a7,_0x271a5b,_0x26aeeb);};}function _0x2944(_0x1d15b7,_0x1feffa){_0x1d15b7=_0x1d15b7-0x7a;const _0x133adc=_0x133a();let _0x29440e=_0x133adc[_0x1d15b7];return _0x29440e;}function __decorate(_0x32d15d,_0x2a4c61,_0x253907,_0x325a3b){const _0x2ac987=_0xbacc9c;var _0x21bee8=arguments[_0x2ac987(0x96)],_0x443371=_0x21bee8<0x3?_0x2a4c61:_0x325a3b===null?_0x325a3b=Object[_0x2ac987(0x87)](_0x2a4c61,_0x253907):_0x325a3b,_0x5e05a8;if(typeof Reflect==='object'&&typeof Reflect[_0x2ac987(0x91)]===_0x2ac987(0xbf))_0x443371=Reflect[_0x2ac987(0x91)](_0x32d15d,_0x2a4c61,_0x253907,_0x325a3b);else{for(var _0x4d1049=_0x32d15d['length']-0x1;_0x4d1049>=0x0;_0x4d1049--)if(_0x5e05a8=_0x32d15d[_0x4d1049])_0x443371=(_0x21bee8<0x3?_0x5e05a8(_0x443371):_0x21bee8>0x3?_0x5e05a8(_0x2a4c61,_0x253907,_0x443371):_0x5e05a8(_0x2a4c61,_0x253907))||_0x443371;}return _0x21bee8>0x3&&_0x443371&&Object[_0x2ac987(0x81)](_0x2a4c61,_0x253907,_0x443371),_0x443371;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0xbacc9c(0xc3)]{constructor(_0x1c617d){const _0x1ef332=_0xbacc9c;super(),this[_0x1ef332(0x8b)]=_0x1c617d;}[_0xbacc9c(0xab)](_0xab7147){const _0x50c9d7=_0xbacc9c;var _0xb77d8b;const _0x1e7e9e=((_0xb77d8b=this[_0x50c9d7(0x8b)]['getConfig'](_univerjs_pro_collaboration_client[_0x50c9d7(0xbd)]))===null||_0xb77d8b===void 0x0?void 0x0:_0xb77d8b[_0x50c9d7(0xb6)])||{};try{const _0x5978de=new ws[(_0x50c9d7(0xbc))](_0xab7147,{'headers':{..._0x1e7e9e}}),_0x19b272=new _univerjs_core[(_0x50c9d7(0x9a))]();return{'URL':_0xab7147,'close':(_0x51c38e,_0x42a951)=>{const _0x5cf40e=_0x50c9d7;_0x5978de[_0x5cf40e(0xb9)](_0x51c38e,_0x42a951),_0x19b272[_0x5cf40e(0x85)]();},'send':_0x33091a=>{const _0x4b060e=_0x50c9d7;_0x5978de[_0x4b060e(0x8f)](_0x33091a);},'open$':new rxjs[(_0x50c9d7(0x9f))](_0x296e3f=>{const _0x27502d=_0x50c9d7,_0x446f96=_0x5b60e0=>_0x296e3f[_0x27502d(0xae)](_0x5b60e0);_0x5978de[_0x27502d(0x7f)](_0x27502d(0x7a),_0x446f96),_0x19b272['add']((0x0,_univerjs_core[_0x27502d(0x7d)])(()=>_0x5978de['removeEventListener']('open',_0x446f96)));})[_0x50c9d7(0x8d)]((0x0,rxjs[_0x50c9d7(0xbb)])()),'close$':new rxjs[(_0x50c9d7(0x9f))](_0x22c406=>{const _0x5efac4=_0x50c9d7,_0x350260=_0x3a16d5=>_0x22c406[_0x5efac4(0xae)](_0x3a16d5);_0x5978de[_0x5efac4(0x7f)]('close',_0x350260),_0x19b272[_0x5efac4(0xa5)]((0x0,_univerjs_core['toDisposable'])(()=>_0x5978de['removeEventListener'](_0x5efac4(0xb9),_0x350260)));})[_0x50c9d7(0x8d)]((0x0,rxjs['share'])()),'error$':new rxjs[(_0x50c9d7(0x9f))](_0xcc3713=>{const _0x4463a2=_0x50c9d7,_0x424d56=_0x3e2916=>_0xcc3713[_0x4463a2(0xae)](_0x3e2916);_0x5978de[_0x4463a2(0x7f)](_0x4463a2(0xb0),_0x424d56),_0x19b272[_0x4463a2(0xa5)]((0x0,_univerjs_core[_0x4463a2(0x7d)])(()=>_0x5978de['removeEventListener'](_0x4463a2(0xb0),_0x424d56)));})[_0x50c9d7(0x8d)]((0x0,rxjs[_0x50c9d7(0xbb)])()),'message$':new rxjs[(_0x50c9d7(0x9f))](_0xb51679=>{const _0x4f7a22=_0x50c9d7,_0x15070a=_0x2c1304=>_0xb51679[_0x4f7a22(0xae)](_0x2c1304);_0x5978de['addEventListener'](_0x4f7a22(0x7c),_0x15070a),_0x19b272['add']((0x0,_univerjs_core[_0x4f7a22(0x7d)])(()=>_0x5978de[_0x4f7a22(0xa3)]('message',_0x15070a)));})['pipe']((0x0,rxjs[_0x50c9d7(0xbb)])())};}catch(_0x10be02){return console['error'](_0x10be02),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core['IConfigService'])],NodeWebSocketService);function _typeof(_0x4573a1){'@babel/helpers - typeof';const _0x469be0=_0xbacc9c;return _typeof='function'==typeof Symbol&&_0x469be0(0x9d)==typeof Symbol[_0x469be0(0x88)]?function(_0x44986d){return typeof _0x44986d;}:function(_0x2b26d8){const _0x1236d0=_0x469be0;return _0x2b26d8&&'function'==typeof Symbol&&_0x2b26d8[_0x1236d0(0xa0)]===Symbol&&_0x2b26d8!==Symbol[_0x1236d0(0x99)]?_0x1236d0(0x9d):typeof _0x2b26d8;},_typeof(_0x4573a1);}function toPrimitive(_0x4440eb,_0x555771){const _0x36abde=_0xbacc9c;if(_0x36abde(0xa9)!=_typeof(_0x4440eb)||!_0x4440eb)return _0x4440eb;var _0x2ea076=_0x4440eb[Symbol['toPrimitive']];if(void 0x0!==_0x2ea076){var _0x3c0c38=_0x2ea076[_0x36abde(0xa1)](_0x4440eb,_0x555771||_0x36abde(0x83));if(_0x36abde(0xa9)!=_typeof(_0x3c0c38))return _0x3c0c38;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x36abde(0xaf)===_0x555771?String:Number)(_0x4440eb);}function toPropertyKey(_0x1922d9){const _0x5637d9=_0xbacc9c;var _0x34d2bd=toPrimitive(_0x1922d9,_0x5637d9(0xaf));return _0x5637d9(0x9d)==_typeof(_0x34d2bd)?_0x34d2bd:_0x34d2bd+'';}function _defineProperty(_0x1f34c0,_0x4095d9,_0x7f9068){const _0x4e27d0=_0xbacc9c;return(_0x4095d9=toPropertyKey(_0x4095d9))in _0x1f34c0?Object[_0x4e27d0(0x81)](_0x1f34c0,_0x4095d9,{'value':_0x7f9068,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f34c0[_0x4095d9]=_0x7f9068,_0x1f34c0;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0xbacc9c(0xb5)]{constructor(_0x2026f8=defaultPluginConfig,_0x4f761e,_0x1ff548){const _0x1e224a=_0xbacc9c;super(),this['_configService']=_0x4f761e,this[_0x1e224a(0x92)]=_0x1ff548,this['_configService'][_0x1e224a(0x9b)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x2026f8);}[_0xbacc9c(0x82)](){this['_registerDependencies']();}[_0xbacc9c(0x98)](){(0x0,_univerjs_core['registerDependencies'])(this['_injector'],[[_univerjs_network['ISocketService'],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0xbacc9c(0xc2),_0xbacc9c(0x8a)),_defineProperty(UniverCollaborationClientNodePlugin,_0xbacc9c(0xb2),name),_defineProperty(UniverCollaborationClientNodePlugin,_0xbacc9c(0x80),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0xbacc9c(0xc4)])(_univerjs_pro_collaboration_client[_0xbacc9c(0x93)]),__decorateParam(0x1,_univerjs_core[_0xbacc9c(0x97)]),__decorateParam(0x2,(0x0,_univerjs_core[_0xbacc9c(0xa6)])(_univerjs_core[_0xbacc9c(0x95)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client[_0xbacc9c(0x86)]{constructor(_0x871437,_0x402506,_0xcda330,_0x41129f,_0x57d007){const _0x4de9f6=_0xbacc9c;super(_0x871437,_0x402506,_0xcda330,_0x41129f,_0x57d007);const _0x5e1cf9=this[_0x4de9f6(0x8b)][_0x4de9f6(0xbe)](_univerjs_pro_collaboration_client[_0x4de9f6(0xbd)]);this[_0x4de9f6(0xa7)]['registerHTTPInterceptor']({'interceptor':(_0x3dbb72,_0x25dde8)=>{const _0xeac0f5=_0x4de9f6,_0x2adfa6=_0x3dbb72[_0xeac0f5(0xad)];if(_0x5e1cf9===null||_0x5e1cf9===void 0x0?void 0x0:_0x5e1cf9[_0xeac0f5(0xb6)]){for(const _0x4f7e90 in _0x5e1cf9[_0xeac0f5(0xb6)])_0x2adfa6[_0xeac0f5(0xaa)](_0x4f7e90,_0x5e1cf9[_0xeac0f5(0xb6)][_0x4f7e90]);}return _0x25dde8(_0x3dbb72);}});}async[_0xbacc9c(0xab)](_0x2a1e3a){const _0x2442ff=_0xbacc9c;return this[_0x2442ff(0xba)](_0x2a1e3a);}};function _0x133a(){const _0x58b922=['1644249BuXHlP','add','Inject','_httpService','2188LjpvfU','object','set','createSocket','14mCUUPC','headers','next','string','error','8721066pEdVCA','packageName','@univerjs-pro/collaboration-client-node','4928964qsAOuA','Plugin','customHeaders','HTTPService','172170neHWKh','close','_doCreateSocket','share','WebSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getConfig','function','NodeCollaborationSocketService','ILogService','pluginName','Disposable','DependentOn','open','toStringTag','message','toDisposable','5ZpZDIS','addEventListener','version','defineProperty','onStarting','default','1424rcZOVc','dispose','CollaborationSocketService','getOwnPropertyDescriptor','iterator','5698312ZDwXoE','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_configService','30339740MZhUfX','pipe','0.21.1','send','collaboration-client-node.config','decorate','_injector','UniverCollaborationClientPlugin','ISnapshotServerService','Injector','length','IConfigService','_registerDependencies','prototype','DisposableCollection','setConfig','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol','UniverCollaborationClientNodePlugin','Observable','constructor','call','Module','removeEventListener'];_0x133a=function(){return _0x58b922;};return _0x133a();}NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xbacc9c(0xa6)])(_univerjs_core[_0xbacc9c(0x95)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_network[_0xbacc9c(0xb7)])),__decorateParam(0x2,_univerjs_core[_0xbacc9c(0x97)]),__decorateParam(0x3,_univerjs_core[_0xbacc9c(0xc1)]),__decorateParam(0x4,_univerjs_pro_collaboration[_0xbacc9c(0x94)])],NodeCollaborationSocketService),exports[_0xbacc9c(0x9c)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object['defineProperty'](exports,_0xbacc9c(0xc0),{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object['defineProperty'](exports,_0xbacc9c(0x9e),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
|
|
1
|
+
const _0x43cb48=_0xed07;(function(_0x72ae4d,_0x5f5931){const _0xc97a11=_0xed07,_0x536098=_0x72ae4d();while(!![]){try{const _0x251c9d=parseInt(_0xc97a11(0x1b9))/0x1*(-parseInt(_0xc97a11(0x1c2))/0x2)+-parseInt(_0xc97a11(0x1d4))/0x3+parseInt(_0xc97a11(0x1ce))/0x4*(-parseInt(_0xc97a11(0x1b2))/0x5)+-parseInt(_0xc97a11(0x1a7))/0x6+-parseInt(_0xc97a11(0x1c5))/0x7*(parseInt(_0xc97a11(0x1a0))/0x8)+-parseInt(_0xc97a11(0x1ba))/0x9+-parseInt(_0xc97a11(0x1c6))/0xa*(-parseInt(_0xc97a11(0x1d5))/0xb);if(_0x251c9d===_0x5f5931)break;else _0x536098['push'](_0x536098['shift']());}catch(_0x56f6e2){_0x536098['push'](_0x536098['shift']());}}}(_0x2bd4,0xaaac2),Object['defineProperty'](exports,Symbol[_0x43cb48(0x1a3)],{'value':'Module'}));let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core=require('@univerjs/core'),_univerjs_network=require('@univerjs/network'),rxjs=require('rxjs'),ws=require('ws'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration');const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x43cb48(0x19f),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x43cb48(0x199),version=_0x43cb48(0x1d7);function _0xed07(_0x33764a,_0x239292){_0x33764a=_0x33764a-0x191;const _0x2bd44d=_0x2bd4();let _0xed07c=_0x2bd44d[_0x33764a];return _0xed07c;}function __decorateParam(_0xf35c9b,_0x52cd42){return function(_0x294f06,_0x4b4252){_0x52cd42(_0x294f06,_0x4b4252,_0xf35c9b);};}function __decorate(_0x3a9dd5,_0x5de0ba,_0x187d0f,_0x36e54f){const _0x389d5e=_0x43cb48;var _0x26e797=arguments['length'],_0x329fd6=_0x26e797<0x3?_0x5de0ba:_0x36e54f===null?_0x36e54f=Object[_0x389d5e(0x1bf)](_0x5de0ba,_0x187d0f):_0x36e54f,_0x5232ec;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x389d5e(0x1ac))_0x329fd6=Reflect[_0x389d5e(0x1a9)](_0x3a9dd5,_0x5de0ba,_0x187d0f,_0x36e54f);else{for(var _0x149b8e=_0x3a9dd5[_0x389d5e(0x1b3)]-0x1;_0x149b8e>=0x0;_0x149b8e--)if(_0x5232ec=_0x3a9dd5[_0x149b8e])_0x329fd6=(_0x26e797<0x3?_0x5232ec(_0x329fd6):_0x26e797>0x3?_0x5232ec(_0x5de0ba,_0x187d0f,_0x329fd6):_0x5232ec(_0x5de0ba,_0x187d0f))||_0x329fd6;}return _0x26e797>0x3&&_0x329fd6&&Object[_0x389d5e(0x1a5)](_0x5de0ba,_0x187d0f,_0x329fd6),_0x329fd6;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x43cb48(0x1a6)]{constructor(_0x4bee79){const _0x31a470=_0x43cb48;super(),this[_0x31a470(0x1bb)]=_0x4bee79;}[_0x43cb48(0x197)](_0x232be3){const _0x1bc77d=_0x43cb48;var _0x43d03d;const _0x4b0f76=((_0x43d03d=this[_0x1bc77d(0x1bb)][_0x1bc77d(0x1cc)](_univerjs_pro_collaboration_client[_0x1bc77d(0x19e)]))===null||_0x43d03d===void 0x0?void 0x0:_0x43d03d[_0x1bc77d(0x1d0)])||{};try{const _0x26f4cd=new ws[(_0x1bc77d(0x1ab))](_0x232be3,{'headers':{..._0x4b0f76}}),_0x49bbb6=new _univerjs_core[(_0x1bc77d(0x1c1))]();return{'URL':_0x232be3,'close':(_0x1e9533,_0x53d8f9)=>{const _0x50fa3e=_0x1bc77d;_0x26f4cd[_0x50fa3e(0x1b7)](_0x1e9533,_0x53d8f9),_0x49bbb6['dispose']();},'send':_0x263401=>{const _0x19805e=_0x1bc77d;_0x26f4cd[_0x19805e(0x19d)](_0x263401);},'open$':new rxjs['Observable'](_0x3d75a1=>{const _0x5e9cf3=_0x1bc77d,_0x70cbe6=_0x549430=>_0x3d75a1['next'](_0x549430);_0x26f4cd['addEventListener'](_0x5e9cf3(0x1be),_0x70cbe6),_0x49bbb6[_0x5e9cf3(0x1a2)]((0x0,_univerjs_core[_0x5e9cf3(0x1a1)])(()=>_0x26f4cd[_0x5e9cf3(0x1a4)](_0x5e9cf3(0x1be),_0x70cbe6)));})[_0x1bc77d(0x1c9)]((0x0,rxjs[_0x1bc77d(0x1c4)])()),'close$':new rxjs[(_0x1bc77d(0x1c0))](_0x5bd30d=>{const _0x551ed3=_0x1bc77d,_0x34cd07=_0x266bbb=>_0x5bd30d[_0x551ed3(0x19b)](_0x266bbb);_0x26f4cd[_0x551ed3(0x193)](_0x551ed3(0x1b7),_0x34cd07),_0x49bbb6[_0x551ed3(0x1a2)]((0x0,_univerjs_core[_0x551ed3(0x1a1)])(()=>_0x26f4cd['removeEventListener'](_0x551ed3(0x1b7),_0x34cd07)));})[_0x1bc77d(0x1c9)]((0x0,rxjs[_0x1bc77d(0x1c4)])()),'error$':new rxjs[(_0x1bc77d(0x1c0))](_0x431ada=>{const _0x144bba=_0x1bc77d,_0x4cabd7=_0x2b12e9=>_0x431ada[_0x144bba(0x19b)](_0x2b12e9);_0x26f4cd['addEventListener'](_0x144bba(0x1b8),_0x4cabd7),_0x49bbb6['add']((0x0,_univerjs_core[_0x144bba(0x1a1)])(()=>_0x26f4cd[_0x144bba(0x1a4)](_0x144bba(0x1b8),_0x4cabd7)));})[_0x1bc77d(0x1c9)]((0x0,rxjs[_0x1bc77d(0x1c4)])()),'message$':new rxjs['Observable'](_0x50d696=>{const _0x555e99=_0x1bc77d,_0x4acb3e=_0x524533=>_0x50d696[_0x555e99(0x19b)](_0x524533);_0x26f4cd[_0x555e99(0x193)](_0x555e99(0x1d6),_0x4acb3e),_0x49bbb6[_0x555e99(0x1a2)]((0x0,_univerjs_core[_0x555e99(0x1a1)])(()=>_0x26f4cd[_0x555e99(0x1a4)](_0x555e99(0x1d6),_0x4acb3e)));})[_0x1bc77d(0x1c9)]((0x0,rxjs[_0x1bc77d(0x1c4)])())};}catch(_0x365db7){return console[_0x1bc77d(0x1b8)](_0x365db7),null;}}};function _0x2bd4(){const _0xfdb612=['add','toStringTag','removeEventListener','defineProperty','Disposable','5294046RqVRtE','IConfigService','decorate','iterator','WebSocket','function','UniverCollaborationClientPlugin','symbol','COLLABORATION_CLIENT_NODE_CONFIG_KEY','_injector','object','3538105yxxVcT','length','version','toPrimitive','prototype','close','error','2jkIGzq','2000952GPzYik','_configService','string','setConfig','open','getOwnPropertyDescriptor','Observable','DisposableCollection','59612ZxTWgP','constructor','share','666848RqfCGv','78950iBFgmb','DependentOn','HTTPService','pipe','Injector','Plugin','getConfig','pluginName','4gqWyzN','Inject','customHeaders','_registerDependencies','ISnapshotServerService','onStarting','2825325pIrkny','5027cbqcex','message','0.22.0-insiders.20260513-09bbeca','registerDependencies','registerHTTPInterceptor','addEventListener','call','_doCreateSocket','UniverCollaborationClientNodePlugin','createSocket','ISocketService','@univerjs-pro/collaboration-client-node','headers','next','default','send','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collaboration-client-node.config','8yfDrRM','toDisposable'];_0x2bd4=function(){return _0xfdb612;};return _0x2bd4();}NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core[_0x43cb48(0x1a8)])],NodeWebSocketService);function _typeof(_0x578261){'@babel/helpers - typeof';const _0x4cdac3=_0x43cb48;return _typeof=_0x4cdac3(0x1ac)==typeof Symbol&&'symbol'==typeof Symbol[_0x4cdac3(0x1aa)]?function(_0x44175e){return typeof _0x44175e;}:function(_0x2bd6ef){const _0xc15bfb=_0x4cdac3;return _0x2bd6ef&&_0xc15bfb(0x1ac)==typeof Symbol&&_0x2bd6ef[_0xc15bfb(0x1c3)]===Symbol&&_0x2bd6ef!==Symbol[_0xc15bfb(0x1b6)]?_0xc15bfb(0x1ae):typeof _0x2bd6ef;},_typeof(_0x578261);}function toPrimitive(_0x5b583e,_0x1cb980){const _0x5ab02b=_0x43cb48;if(_0x5ab02b(0x1b1)!=_typeof(_0x5b583e)||!_0x5b583e)return _0x5b583e;var _0x1a48fc=_0x5b583e[Symbol[_0x5ab02b(0x1b5)]];if(void 0x0!==_0x1a48fc){var _0x5ad2be=_0x1a48fc[_0x5ab02b(0x194)](_0x5b583e,_0x1cb980||_0x5ab02b(0x19c));if('object'!=_typeof(_0x5ad2be))return _0x5ad2be;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5ab02b(0x1bc)===_0x1cb980?String:Number)(_0x5b583e);}function toPropertyKey(_0x3fa5b5){var _0x3c8d17=toPrimitive(_0x3fa5b5,'string');return'symbol'==_typeof(_0x3c8d17)?_0x3c8d17:_0x3c8d17+'';}function _defineProperty(_0x4a57c5,_0x7883df,_0x35ee06){return(_0x7883df=toPropertyKey(_0x7883df))in _0x4a57c5?Object['defineProperty'](_0x4a57c5,_0x7883df,{'value':_0x35ee06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a57c5[_0x7883df]=_0x35ee06,_0x4a57c5;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0x43cb48(0x1cb)]{constructor(_0x525fa3=defaultPluginConfig,_0x471053,_0x4e3584){const _0x28a92e=_0x43cb48;super(),this[_0x28a92e(0x1bb)]=_0x471053,this[_0x28a92e(0x1b0)]=_0x4e3584,this[_0x28a92e(0x1bb)][_0x28a92e(0x1bd)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x525fa3);}[_0x43cb48(0x1d3)](){const _0x491af6=_0x43cb48;this[_0x491af6(0x1d1)]();}[_0x43cb48(0x1d1)](){const _0x160eac=_0x43cb48;(0x0,_univerjs_core[_0x160eac(0x191)])(this[_0x160eac(0x1b0)],[[_univerjs_network[_0x160eac(0x198)],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x43cb48(0x1cd),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x43cb48(0x1b4),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x43cb48(0x1c7)])(_univerjs_pro_collaboration_client[_0x43cb48(0x1ad)]),__decorateParam(0x1,_univerjs_core[_0x43cb48(0x1a8)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x43cb48(0x1cf)])(_univerjs_core[_0x43cb48(0x1ca)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client['CollaborationSocketService']{constructor(_0x1737f4,_0x49e480,_0x114343,_0x6e9a3b,_0x36502c){const _0x20f78b=_0x43cb48;super(_0x1737f4,_0x49e480,_0x114343,_0x6e9a3b,_0x36502c);const _0x20645a=this['_configService'][_0x20f78b(0x1cc)](_univerjs_pro_collaboration_client[_0x20f78b(0x19e)]);this['_httpService'][_0x20f78b(0x192)]({'interceptor':(_0x36da67,_0xb48cfe)=>{const _0x3315c8=_0x20f78b,_0x381b5d=_0x36da67[_0x3315c8(0x19a)];if(_0x20645a===null||_0x20645a===void 0x0?void 0x0:_0x20645a[_0x3315c8(0x1d0)]){for(const _0x310ee0 in _0x20645a[_0x3315c8(0x1d0)])_0x381b5d['set'](_0x310ee0,_0x20645a[_0x3315c8(0x1d0)][_0x310ee0]);}return _0xb48cfe(_0x36da67);}});}async[_0x43cb48(0x197)](_0x4ea0c5){const _0x4293b3=_0x43cb48;return this[_0x4293b3(0x195)](_0x4ea0c5);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x43cb48(0x1ca)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x43cb48(0x1cf)])(_univerjs_network[_0x43cb48(0x1c8)])),__decorateParam(0x2,_univerjs_core[_0x43cb48(0x1a8)]),__decorateParam(0x3,_univerjs_core['ILogService']),__decorateParam(0x4,_univerjs_pro_collaboration[_0x43cb48(0x1d2)])],NodeCollaborationSocketService),exports[_0x43cb48(0x1af)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object['defineProperty'](exports,'NodeCollaborationSocketService',{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object[_0x43cb48(0x1a5)](exports,_0x43cb48(0x196),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b3913=_0x132c;(function(_0x190512,_0x192237){const _0x16ce06=_0x132c,_0xfacd6=_0x190512();while(!![]){try{const _0x5ab259=-parseInt(_0x16ce06(0x151))/0x1+-parseInt(_0x16ce06(0x165))/0x2*(-parseInt(_0x16ce06(0x173))/0x3)+parseInt(_0x16ce06(0x16a))/0x4*(parseInt(_0x16ce06(0x158))/0x5)+parseInt(_0x16ce06(0x16f))/0x6+-parseInt(_0x16ce06(0x164))/0x7+parseInt(_0x16ce06(0x160))/0x8*(parseInt(_0x16ce06(0x175))/0x9)+-parseInt(_0x16ce06(0x17f))/0xa;if(_0x5ab259===_0x192237)break;else _0xfacd6['push'](_0xfacd6['shift']());}catch(_0x5f1186){_0xfacd6['push'](_0xfacd6['shift']());}}}(_0x3b3e,0xe9073));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x2b3913(0x14b),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2b3913(0x16d),version=_0x2b3913(0x162);function __decorateParam(_0x4799b3,_0x4e65d0){return function(_0x4d38e6,_0x45a5dd){_0x4e65d0(_0x4d38e6,_0x45a5dd,_0x4799b3);};}function __decorate(_0x3095b2,_0x3000e9,_0x2afe77,_0x4282b3){const _0x4e5c01=_0x2b3913;var _0x4ce544=arguments[_0x4e5c01(0x14c)],_0x1efff1=_0x4ce544<0x3?_0x3000e9:_0x4282b3===null?_0x4282b3=Object[_0x4e5c01(0x157)](_0x3000e9,_0x2afe77):_0x4282b3,_0x3b0dc0;if(typeof Reflect===_0x4e5c01(0x163)&&typeof Reflect[_0x4e5c01(0x14f)]===_0x4e5c01(0x15e))_0x1efff1=Reflect[_0x4e5c01(0x14f)](_0x3095b2,_0x3000e9,_0x2afe77,_0x4282b3);else{for(var _0x54b5f6=_0x3095b2[_0x4e5c01(0x14c)]-0x1;_0x54b5f6>=0x0;_0x54b5f6--)if(_0x3b0dc0=_0x3095b2[_0x54b5f6])_0x1efff1=(_0x4ce544<0x3?_0x3b0dc0(_0x1efff1):_0x4ce544>0x3?_0x3b0dc0(_0x3000e9,_0x2afe77,_0x1efff1):_0x3b0dc0(_0x3000e9,_0x2afe77))||_0x1efff1;}return _0x4ce544>0x3&&_0x1efff1&&Object[_0x4e5c01(0x169)](_0x3000e9,_0x2afe77,_0x1efff1),_0x1efff1;}function _0x132c(_0x1cb4c0,_0x990248){_0x1cb4c0=_0x1cb4c0-0x14a;const _0x3b3eaf=_0x3b3e();let _0x132c13=_0x3b3eaf[_0x1cb4c0];return _0x132c13;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x25a20c){const _0x5eeb89=_0x2b3913;super(),this[_0x5eeb89(0x15f)]=_0x25a20c;}['createSocket'](_0x33d0bc){const _0x4537d9=_0x2b3913;var _0x563056;const _0xc8d9b5=((_0x563056=this[_0x4537d9(0x15f)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x563056===void 0x0?void 0x0:_0x563056[_0x4537d9(0x17d)])||{};try{const _0x3e3f0a=new WebSocket(_0x33d0bc,{'headers':{..._0xc8d9b5}}),_0x4fca40=new DisposableCollection();return{'URL':_0x33d0bc,'close':(_0x27ddae,_0x4c1367)=>{const _0x461945=_0x4537d9;_0x3e3f0a['close'](_0x27ddae,_0x4c1367),_0x4fca40[_0x461945(0x153)]();},'send':_0x32def3=>{const _0x2c8b31=_0x4537d9;_0x3e3f0a[_0x2c8b31(0x152)](_0x32def3);},'open$':new Observable(_0x50e312=>{const _0x409eef=_0x4537d9,_0x38bbcc=_0x57be03=>_0x50e312[_0x409eef(0x17a)](_0x57be03);_0x3e3f0a[_0x409eef(0x17c)]('open',_0x38bbcc),_0x4fca40['add'](toDisposable(()=>_0x3e3f0a[_0x409eef(0x176)](_0x409eef(0x170),_0x38bbcc)));})['pipe'](share()),'close$':new Observable(_0x428c9c=>{const _0x4d755d=_0x4537d9,_0x19bcc9=_0x9011c7=>_0x428c9c[_0x4d755d(0x17a)](_0x9011c7);_0x3e3f0a[_0x4d755d(0x17c)](_0x4d755d(0x168),_0x19bcc9),_0x4fca40[_0x4d755d(0x15a)](toDisposable(()=>_0x3e3f0a[_0x4d755d(0x176)](_0x4d755d(0x168),_0x19bcc9)));})[_0x4537d9(0x14e)](share()),'error$':new Observable(_0x4b8968=>{const _0x1bbc51=_0x4537d9,_0x1ef7b6=_0x45201a=>_0x4b8968[_0x1bbc51(0x17a)](_0x45201a);_0x3e3f0a[_0x1bbc51(0x17c)](_0x1bbc51(0x172),_0x1ef7b6),_0x4fca40['add'](toDisposable(()=>_0x3e3f0a[_0x1bbc51(0x176)]('error',_0x1ef7b6)));})['pipe'](share()),'message$':new Observable(_0x1c157c=>{const _0x259bb8=_0x4537d9,_0x6b60b9=_0x12de08=>_0x1c157c[_0x259bb8(0x17a)](_0x12de08);_0x3e3f0a['addEventListener'](_0x259bb8(0x171),_0x6b60b9),_0x4fca40[_0x259bb8(0x15a)](toDisposable(()=>_0x3e3f0a[_0x259bb8(0x176)](_0x259bb8(0x171),_0x6b60b9)));})[_0x4537d9(0x14e)](share())};}catch(_0x11f948){return console[_0x4537d9(0x172)](_0x11f948),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x3e3880){'@babel/helpers - typeof';const _0x593112=_0x2b3913;return _typeof=_0x593112(0x15e)==typeof Symbol&&_0x593112(0x154)==typeof Symbol[_0x593112(0x16c)]?function(_0x167402){return typeof _0x167402;}:function(_0x5f22dd){const _0x118010=_0x593112;return _0x5f22dd&&_0x118010(0x15e)==typeof Symbol&&_0x5f22dd[_0x118010(0x150)]===Symbol&&_0x5f22dd!==Symbol[_0x118010(0x156)]?_0x118010(0x154):typeof _0x5f22dd;},_typeof(_0x3e3880);}function toPrimitive(_0x20bd7b,_0x91bb4c){const _0x56e52c=_0x2b3913;if(_0x56e52c(0x163)!=_typeof(_0x20bd7b)||!_0x20bd7b)return _0x20bd7b;var _0x7e55f6=_0x20bd7b[Symbol[_0x56e52c(0x15d)]];if(void 0x0!==_0x7e55f6){var _0x442088=_0x7e55f6['call'](_0x20bd7b,_0x91bb4c||_0x56e52c(0x16b));if(_0x56e52c(0x163)!=_typeof(_0x442088))return _0x442088;throw new TypeError(_0x56e52c(0x17e));}return(_0x56e52c(0x16e)===_0x91bb4c?String:Number)(_0x20bd7b);}function _0x3b3e(){const _0x5983af=['98535GkZVmK','set','add','setConfig','createSocket','toPrimitive','function','_configService','14298408GNsWFy','version','0.22.0-insiders.20260513-09bbeca','object','13118105nbNQGO','16NNrUAq','_httpService','_doCreateSocket','close','defineProperty','84UoXoNW','default','iterator','@univerjs-pro/collaboration-client-node','string','6088596dxjaUn','open','message','error','652263JkgfPl','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','9IlxYIZ','removeEventListener','pluginName','headers','registerHTTPInterceptor','next','_registerDependencies','addEventListener','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','18534900BAQUwd','onStarting','collaboration-client-node.config','length','packageName','pipe','decorate','constructor','273294BHLNaN','send','dispose','symbol','getConfig','prototype','getOwnPropertyDescriptor'];_0x3b3e=function(){return _0x5983af;};return _0x3b3e();}function toPropertyKey(_0x13cab8){const _0x22397f=_0x2b3913;var _0x54e2f3=toPrimitive(_0x13cab8,_0x22397f(0x16e));return _0x22397f(0x154)==_typeof(_0x54e2f3)?_0x54e2f3:_0x54e2f3+'';}function _defineProperty(_0xc97fc5,_0x439ef9,_0x3b8b7c){const _0x414bdc=_0x2b3913;return(_0x439ef9=toPropertyKey(_0x439ef9))in _0xc97fc5?Object[_0x414bdc(0x169)](_0xc97fc5,_0x439ef9,{'value':_0x3b8b7c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc97fc5[_0x439ef9]=_0x3b8b7c,_0xc97fc5;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x911c92=defaultPluginConfig,_0x292d01,_0x2f7c1c){const _0x22503a=_0x2b3913;super(),this[_0x22503a(0x15f)]=_0x292d01,this['_injector']=_0x2f7c1c,this['_configService'][_0x22503a(0x15b)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x911c92);}[_0x2b3913(0x14a)](){const _0xe9ff32=_0x2b3913;this[_0xe9ff32(0x17b)]();}[_0x2b3913(0x17b)](){registerDependencies(this['_injector'],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2b3913(0x177),_0x2b3913(0x174)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2b3913(0x14d),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2b3913(0x161),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x3f167b,_0xc1c109,_0x314180,_0x365d7c,_0xc36116){const _0xfa9d34=_0x2b3913;super(_0x3f167b,_0xc1c109,_0x314180,_0x365d7c,_0xc36116);const _0x10eb49=this['_configService'][_0xfa9d34(0x155)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0xfa9d34(0x166)][_0xfa9d34(0x179)]({'interceptor':(_0x1af5ff,_0x1151a6)=>{const _0x340681=_0xfa9d34,_0xd4ade2=_0x1af5ff[_0x340681(0x178)];if(_0x10eb49===null||_0x10eb49===void 0x0?void 0x0:_0x10eb49[_0x340681(0x17d)]){for(const _0x53e173 in _0x10eb49[_0x340681(0x17d)])_0xd4ade2[_0x340681(0x159)](_0x53e173,_0x10eb49['customHeaders'][_0x53e173]);}return _0x1151a6(_0x1af5ff);}});}async[_0x2b3913(0x15c)](_0x1b147a){const _0x106618=_0x2b3913;return this[_0x106618(0x167)](_0x1b147a);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b3913=_0x132c;(function(_0x190512,_0x192237){const _0x16ce06=_0x132c,_0xfacd6=_0x190512();while(!![]){try{const _0x5ab259=-parseInt(_0x16ce06(0x151))/0x1+-parseInt(_0x16ce06(0x165))/0x2*(-parseInt(_0x16ce06(0x173))/0x3)+parseInt(_0x16ce06(0x16a))/0x4*(parseInt(_0x16ce06(0x158))/0x5)+parseInt(_0x16ce06(0x16f))/0x6+-parseInt(_0x16ce06(0x164))/0x7+parseInt(_0x16ce06(0x160))/0x8*(parseInt(_0x16ce06(0x175))/0x9)+-parseInt(_0x16ce06(0x17f))/0xa;if(_0x5ab259===_0x192237)break;else _0xfacd6['push'](_0xfacd6['shift']());}catch(_0x5f1186){_0xfacd6['push'](_0xfacd6['shift']());}}}(_0x3b3e,0xe9073));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x2b3913(0x14b),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2b3913(0x16d),version=_0x2b3913(0x162);function __decorateParam(_0x4799b3,_0x4e65d0){return function(_0x4d38e6,_0x45a5dd){_0x4e65d0(_0x4d38e6,_0x45a5dd,_0x4799b3);};}function __decorate(_0x3095b2,_0x3000e9,_0x2afe77,_0x4282b3){const _0x4e5c01=_0x2b3913;var _0x4ce544=arguments[_0x4e5c01(0x14c)],_0x1efff1=_0x4ce544<0x3?_0x3000e9:_0x4282b3===null?_0x4282b3=Object[_0x4e5c01(0x157)](_0x3000e9,_0x2afe77):_0x4282b3,_0x3b0dc0;if(typeof Reflect===_0x4e5c01(0x163)&&typeof Reflect[_0x4e5c01(0x14f)]===_0x4e5c01(0x15e))_0x1efff1=Reflect[_0x4e5c01(0x14f)](_0x3095b2,_0x3000e9,_0x2afe77,_0x4282b3);else{for(var _0x54b5f6=_0x3095b2[_0x4e5c01(0x14c)]-0x1;_0x54b5f6>=0x0;_0x54b5f6--)if(_0x3b0dc0=_0x3095b2[_0x54b5f6])_0x1efff1=(_0x4ce544<0x3?_0x3b0dc0(_0x1efff1):_0x4ce544>0x3?_0x3b0dc0(_0x3000e9,_0x2afe77,_0x1efff1):_0x3b0dc0(_0x3000e9,_0x2afe77))||_0x1efff1;}return _0x4ce544>0x3&&_0x1efff1&&Object[_0x4e5c01(0x169)](_0x3000e9,_0x2afe77,_0x1efff1),_0x1efff1;}function _0x132c(_0x1cb4c0,_0x990248){_0x1cb4c0=_0x1cb4c0-0x14a;const _0x3b3eaf=_0x3b3e();let _0x132c13=_0x3b3eaf[_0x1cb4c0];return _0x132c13;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x25a20c){const _0x5eeb89=_0x2b3913;super(),this[_0x5eeb89(0x15f)]=_0x25a20c;}['createSocket'](_0x33d0bc){const _0x4537d9=_0x2b3913;var _0x563056;const _0xc8d9b5=((_0x563056=this[_0x4537d9(0x15f)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x563056===void 0x0?void 0x0:_0x563056[_0x4537d9(0x17d)])||{};try{const _0x3e3f0a=new WebSocket(_0x33d0bc,{'headers':{..._0xc8d9b5}}),_0x4fca40=new DisposableCollection();return{'URL':_0x33d0bc,'close':(_0x27ddae,_0x4c1367)=>{const _0x461945=_0x4537d9;_0x3e3f0a['close'](_0x27ddae,_0x4c1367),_0x4fca40[_0x461945(0x153)]();},'send':_0x32def3=>{const _0x2c8b31=_0x4537d9;_0x3e3f0a[_0x2c8b31(0x152)](_0x32def3);},'open$':new Observable(_0x50e312=>{const _0x409eef=_0x4537d9,_0x38bbcc=_0x57be03=>_0x50e312[_0x409eef(0x17a)](_0x57be03);_0x3e3f0a[_0x409eef(0x17c)]('open',_0x38bbcc),_0x4fca40['add'](toDisposable(()=>_0x3e3f0a[_0x409eef(0x176)](_0x409eef(0x170),_0x38bbcc)));})['pipe'](share()),'close$':new Observable(_0x428c9c=>{const _0x4d755d=_0x4537d9,_0x19bcc9=_0x9011c7=>_0x428c9c[_0x4d755d(0x17a)](_0x9011c7);_0x3e3f0a[_0x4d755d(0x17c)](_0x4d755d(0x168),_0x19bcc9),_0x4fca40[_0x4d755d(0x15a)](toDisposable(()=>_0x3e3f0a[_0x4d755d(0x176)](_0x4d755d(0x168),_0x19bcc9)));})[_0x4537d9(0x14e)](share()),'error$':new Observable(_0x4b8968=>{const _0x1bbc51=_0x4537d9,_0x1ef7b6=_0x45201a=>_0x4b8968[_0x1bbc51(0x17a)](_0x45201a);_0x3e3f0a[_0x1bbc51(0x17c)](_0x1bbc51(0x172),_0x1ef7b6),_0x4fca40['add'](toDisposable(()=>_0x3e3f0a[_0x1bbc51(0x176)]('error',_0x1ef7b6)));})['pipe'](share()),'message$':new Observable(_0x1c157c=>{const _0x259bb8=_0x4537d9,_0x6b60b9=_0x12de08=>_0x1c157c[_0x259bb8(0x17a)](_0x12de08);_0x3e3f0a['addEventListener'](_0x259bb8(0x171),_0x6b60b9),_0x4fca40[_0x259bb8(0x15a)](toDisposable(()=>_0x3e3f0a[_0x259bb8(0x176)](_0x259bb8(0x171),_0x6b60b9)));})[_0x4537d9(0x14e)](share())};}catch(_0x11f948){return console[_0x4537d9(0x172)](_0x11f948),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x3e3880){'@babel/helpers - typeof';const _0x593112=_0x2b3913;return _typeof=_0x593112(0x15e)==typeof Symbol&&_0x593112(0x154)==typeof Symbol[_0x593112(0x16c)]?function(_0x167402){return typeof _0x167402;}:function(_0x5f22dd){const _0x118010=_0x593112;return _0x5f22dd&&_0x118010(0x15e)==typeof Symbol&&_0x5f22dd[_0x118010(0x150)]===Symbol&&_0x5f22dd!==Symbol[_0x118010(0x156)]?_0x118010(0x154):typeof _0x5f22dd;},_typeof(_0x3e3880);}function toPrimitive(_0x20bd7b,_0x91bb4c){const _0x56e52c=_0x2b3913;if(_0x56e52c(0x163)!=_typeof(_0x20bd7b)||!_0x20bd7b)return _0x20bd7b;var _0x7e55f6=_0x20bd7b[Symbol[_0x56e52c(0x15d)]];if(void 0x0!==_0x7e55f6){var _0x442088=_0x7e55f6['call'](_0x20bd7b,_0x91bb4c||_0x56e52c(0x16b));if(_0x56e52c(0x163)!=_typeof(_0x442088))return _0x442088;throw new TypeError(_0x56e52c(0x17e));}return(_0x56e52c(0x16e)===_0x91bb4c?String:Number)(_0x20bd7b);}function _0x3b3e(){const _0x5983af=['98535GkZVmK','set','add','setConfig','createSocket','toPrimitive','function','_configService','14298408GNsWFy','version','0.22.0-insiders.20260513-09bbeca','object','13118105nbNQGO','16NNrUAq','_httpService','_doCreateSocket','close','defineProperty','84UoXoNW','default','iterator','@univerjs-pro/collaboration-client-node','string','6088596dxjaUn','open','message','error','652263JkgfPl','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','9IlxYIZ','removeEventListener','pluginName','headers','registerHTTPInterceptor','next','_registerDependencies','addEventListener','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','18534900BAQUwd','onStarting','collaboration-client-node.config','length','packageName','pipe','decorate','constructor','273294BHLNaN','send','dispose','symbol','getConfig','prototype','getOwnPropertyDescriptor'];_0x3b3e=function(){return _0x5983af;};return _0x3b3e();}function toPropertyKey(_0x13cab8){const _0x22397f=_0x2b3913;var _0x54e2f3=toPrimitive(_0x13cab8,_0x22397f(0x16e));return _0x22397f(0x154)==_typeof(_0x54e2f3)?_0x54e2f3:_0x54e2f3+'';}function _defineProperty(_0xc97fc5,_0x439ef9,_0x3b8b7c){const _0x414bdc=_0x2b3913;return(_0x439ef9=toPropertyKey(_0x439ef9))in _0xc97fc5?Object[_0x414bdc(0x169)](_0xc97fc5,_0x439ef9,{'value':_0x3b8b7c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc97fc5[_0x439ef9]=_0x3b8b7c,_0xc97fc5;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x911c92=defaultPluginConfig,_0x292d01,_0x2f7c1c){const _0x22503a=_0x2b3913;super(),this[_0x22503a(0x15f)]=_0x292d01,this['_injector']=_0x2f7c1c,this['_configService'][_0x22503a(0x15b)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x911c92);}[_0x2b3913(0x14a)](){const _0xe9ff32=_0x2b3913;this[_0xe9ff32(0x17b)]();}[_0x2b3913(0x17b)](){registerDependencies(this['_injector'],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2b3913(0x177),_0x2b3913(0x174)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2b3913(0x14d),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2b3913(0x161),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x3f167b,_0xc1c109,_0x314180,_0x365d7c,_0xc36116){const _0xfa9d34=_0x2b3913;super(_0x3f167b,_0xc1c109,_0x314180,_0x365d7c,_0xc36116);const _0x10eb49=this['_configService'][_0xfa9d34(0x155)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0xfa9d34(0x166)][_0xfa9d34(0x179)]({'interceptor':(_0x1af5ff,_0x1151a6)=>{const _0x340681=_0xfa9d34,_0xd4ade2=_0x1af5ff[_0x340681(0x178)];if(_0x10eb49===null||_0x10eb49===void 0x0?void 0x0:_0x10eb49[_0x340681(0x17d)]){for(const _0x53e173 in _0x10eb49[_0x340681(0x17d)])_0xd4ade2[_0x340681(0x159)](_0x53e173,_0x10eb49['customHeaders'][_0x53e173]);}return _0x1151a6(_0x1af5ff);}});}async[_0x2b3913(0x15c)](_0x1b147a){const _0x106618=_0x2b3913;return this[_0x106618(0x167)](_0x1b147a);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x440d5d,_0x1d523e){const _0x3929f3=_0x1c12,_0x4e2f9e=_0x440d5d();while(!![]){try{const _0x120067=parseInt(_0x3929f3(0x214))/0x1+-parseInt(_0x3929f3(0x210))/0x2+parseInt(_0x3929f3(0x21b))/0x3*(parseInt(_0x3929f3(0x1fc))/0x4)+-parseInt(_0x3929f3(0x20b))/0x5*(-parseInt(_0x3929f3(0x21e))/0x6)+-parseInt(_0x3929f3(0x201))/0x7*(-parseInt(_0x3929f3(0x23b))/0x8)+-parseInt(_0x3929f3(0x1ff))/0x9*(parseInt(_0x3929f3(0x23a))/0xa)+parseInt(_0x3929f3(0x217))/0xb*(parseInt(_0x3929f3(0x21d))/0xc);if(_0x120067===_0x1d523e)break;else _0x4e2f9e['push'](_0x4e2f9e['shift']());}catch(_0x86863d){_0x4e2f9e['push'](_0x4e2f9e['shift']());}}}(_0x35de,0x92352),function(_0x4d4e81,_0x35feba){const _0x33540f=_0x1c12;typeof exports=='object'&&typeof module<'u'?_0x35feba(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define[_0x33540f(0x1f4)]?define([_0x33540f(0x235),'@univerjs-pro/collaboration-client','@univerjs/core',_0x33540f(0x20a),'rxjs',_0x33540f(0x208)],_0x35feba):(_0x4d4e81=typeof globalThis<'u'?globalThis:_0x4d4e81||self,_0x35feba(_0x4d4e81[_0x33540f(0x1fb)]={},_0x4d4e81['UniverProCollaborationClient'],_0x4d4e81[_0x33540f(0x200)],_0x4d4e81[_0x33540f(0x207)],_0x4d4e81[_0x33540f(0x225)],_0x4d4e81['UniverProCollaboration']));}(this,function(_0x5001c6,_0x3b919e,_0x1975b9,_0x3afbd0,_0x2e6d63,_0x375af6){const _0x4cf1f9=_0x1c12;Object[_0x4cf1f9(0x224)](_0x5001c6,Symbol['toStringTag'],{'value':_0x4cf1f9(0x23d)});var _0x5d0f93=(_0x546a99,_0x1a0564)=>()=>(_0x1a0564||_0x546a99((_0x1a0564={'exports':{}})[_0x4cf1f9(0x235)],_0x1a0564),_0x1a0564[_0x4cf1f9(0x235)]);let _0xa8bf80='collaboration-client-node.config';Symbol(_0xa8bf80);let _0xcadcc2={};var _0x50b20b=_0x4cf1f9(0x215),_0x40facc=_0x4cf1f9(0x227),_0x206abd=_0x5d0f93((_0x3bf612,_0x1ea551)=>{const _0x27e266=_0x4cf1f9;_0x1ea551[_0x27e266(0x235)]=function(){const _0x480975=_0x27e266;throw Error(_0x480975(0x233));};})();function _0x3094f3(_0x1e5e1e,_0x30ddcd){return function(_0x31c4f7,_0x3d1aa7){_0x30ddcd(_0x31c4f7,_0x3d1aa7,_0x1e5e1e);};}function _0xa110b5(_0x20d047,_0x5c6ae6,_0x10305d,_0x18102e){const _0x569978=_0x4cf1f9;var _0x13bae5=arguments[_0x569978(0x1f3)],_0x191a2b=_0x13bae5<0x3?_0x5c6ae6:_0x18102e===null?_0x18102e=Object[_0x569978(0x1fa)](_0x5c6ae6,_0x10305d):_0x18102e,_0x2ecbc1;if(typeof Reflect==_0x569978(0x241)&&typeof Reflect[_0x569978(0x1f6)]==_0x569978(0x221))_0x191a2b=Reflect[_0x569978(0x1f6)](_0x20d047,_0x5c6ae6,_0x10305d,_0x18102e);else{for(var _0x4445dc=_0x20d047['length']-0x1;_0x4445dc>=0x0;_0x4445dc--)(_0x2ecbc1=_0x20d047[_0x4445dc])&&(_0x191a2b=(_0x13bae5<0x3?_0x2ecbc1(_0x191a2b):_0x13bae5>0x3?_0x2ecbc1(_0x5c6ae6,_0x10305d,_0x191a2b):_0x2ecbc1(_0x5c6ae6,_0x10305d))||_0x191a2b);}return _0x13bae5>0x3&&_0x191a2b&&Object[_0x569978(0x224)](_0x5c6ae6,_0x10305d,_0x191a2b),_0x191a2b;}let _0x32043b=class extends _0x1975b9[_0x4cf1f9(0x21a)]{constructor(_0x25c2b6){super(),this['_configService']=_0x25c2b6;}['createSocket'](_0x2233ae){const _0x1ca0c3=_0x4cf1f9;var _0x5c5ef3;let _0x1ea10f=((_0x5c5ef3=this[_0x1ca0c3(0x23e)]['getConfig'](_0x3b919e[_0x1ca0c3(0x1f5)]))==null?void 0x0:_0x5c5ef3[_0x1ca0c3(0x205)])||{};try{let _0x37828c=new _0x206abd[(_0x1ca0c3(0x239))](_0x2233ae,{'headers':{..._0x1ea10f}}),_0x5cc97a=new _0x1975b9[(_0x1ca0c3(0x231))]();return{'URL':_0x2233ae,'close':(_0xb72bcb,_0x2e8b52)=>{const _0x209de3=_0x1ca0c3;_0x37828c[_0x209de3(0x230)](_0xb72bcb,_0x2e8b52),_0x5cc97a['dispose']();},'send':_0x21651c=>{const _0x1546c5=_0x1ca0c3;_0x37828c[_0x1546c5(0x22f)](_0x21651c);},'open$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x4b41d9=>{const _0x312a90=_0x1ca0c3;let _0x26f2fa=_0x46cd4a=>_0x4b41d9['next'](_0x46cd4a);_0x37828c['addEventListener'](_0x312a90(0x228),_0x26f2fa),_0x5cc97a['add']((0x0,_0x1975b9[_0x312a90(0x21c)])(()=>_0x37828c[_0x312a90(0x23c)](_0x312a90(0x228),_0x26f2fa)));})[_0x1ca0c3(0x20e)]((0x0,_0x2e6d63[_0x1ca0c3(0x238)])()),'close$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x12a4c1=>{const _0x3a6e4b=_0x1ca0c3;let _0x10b5a0=_0xa49f48=>_0x12a4c1[_0x3a6e4b(0x22a)](_0xa49f48);_0x37828c[_0x3a6e4b(0x1fe)](_0x3a6e4b(0x230),_0x10b5a0),_0x5cc97a[_0x3a6e4b(0x234)]((0x0,_0x1975b9[_0x3a6e4b(0x21c)])(()=>_0x37828c[_0x3a6e4b(0x23c)](_0x3a6e4b(0x230),_0x10b5a0)));})[_0x1ca0c3(0x20e)]((0x0,_0x2e6d63['share'])()),'error$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x263e17=>{const _0x10fe8a=_0x1ca0c3;let _0x42d2b5=_0xd05164=>_0x263e17[_0x10fe8a(0x22a)](_0xd05164);_0x37828c[_0x10fe8a(0x1fe)]('error',_0x42d2b5),_0x5cc97a['add']((0x0,_0x1975b9[_0x10fe8a(0x21c)])(()=>_0x37828c[_0x10fe8a(0x23c)](_0x10fe8a(0x222),_0x42d2b5)));})['pipe']((0x0,_0x2e6d63['share'])()),'message$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x4bba5f=>{const _0x2b8f71=_0x1ca0c3;let _0x82575c=_0x5b9318=>_0x4bba5f['next'](_0x5b9318);_0x37828c['addEventListener'](_0x2b8f71(0x22d),_0x82575c),_0x5cc97a[_0x2b8f71(0x234)]((0x0,_0x1975b9[_0x2b8f71(0x21c)])(()=>_0x37828c['removeEventListener'](_0x2b8f71(0x22d),_0x82575c)));})['pipe']((0x0,_0x2e6d63[_0x1ca0c3(0x238)])())};}catch(_0x43a50f){return console[_0x1ca0c3(0x222)](_0x43a50f),null;}}};_0x32043b=_0xa110b5([_0x3094f3(0x0,_0x1975b9['IConfigService'])],_0x32043b);function _0xbc9cc1(_0x102b66){'@babel/helpers - typeof';const _0x13bea7=_0x4cf1f9;return _0xbc9cc1=typeof Symbol==_0x13bea7(0x221)&&typeof Symbol[_0x13bea7(0x20d)]==_0x13bea7(0x237)?function(_0x5b4b89){return typeof _0x5b4b89;}:function(_0x44cbc8){const _0x279137=_0x13bea7;return _0x44cbc8&&typeof Symbol==_0x279137(0x221)&&_0x44cbc8[_0x279137(0x219)]===Symbol&&_0x44cbc8!==Symbol[_0x279137(0x202)]?'symbol':typeof _0x44cbc8;},_0xbc9cc1(_0x102b66);}function _0xe0dac4(_0x20f3a5,_0x2a791d){const _0xa51290=_0x4cf1f9;if(_0xbc9cc1(_0x20f3a5)!='object'||!_0x20f3a5)return _0x20f3a5;var _0x584ad7=_0x20f3a5[Symbol[_0xa51290(0x223)]];if(_0x584ad7!==void 0x0){var _0x455131=_0x584ad7[_0xa51290(0x232)](_0x20f3a5,_0x2a791d||'default');if(_0xbc9cc1(_0x455131)!=_0xa51290(0x241))return _0x455131;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2a791d==='string'?String:Number)(_0x20f3a5);}function _0x1fc0a6(_0x2c0edf){const _0xda71d1=_0x4cf1f9;var _0x445c61=_0xe0dac4(_0x2c0edf,_0xda71d1(0x211));return _0xbc9cc1(_0x445c61)==_0xda71d1(0x237)?_0x445c61:_0x445c61+'';}function _0x2cfa03(_0xfc1343,_0x425b61,_0x375e2e){const _0x42e933=_0x4cf1f9;return(_0x425b61=_0x1fc0a6(_0x425b61))in _0xfc1343?Object[_0x42e933(0x224)](_0xfc1343,_0x425b61,{'value':_0x375e2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfc1343[_0x425b61]=_0x375e2e,_0xfc1343;}let _0x41f03b=class extends _0x1975b9[_0x4cf1f9(0x203)]{constructor(_0x19a3bc=_0xcadcc2,_0x1b5de4,_0x3042e9){const _0x3d33a3=_0x4cf1f9;super(),this['_configService']=_0x1b5de4,this[_0x3d33a3(0x1f2)]=_0x3042e9,this['_configService'][_0x3d33a3(0x22e)](_0xa8bf80,_0x19a3bc);}[_0x4cf1f9(0x204)](){const _0x1d2544=_0x4cf1f9;this[_0x1d2544(0x229)]();}[_0x4cf1f9(0x229)](){const _0x513e85=_0x4cf1f9;(0x0,_0x1975b9[_0x513e85(0x1fd)])(this[_0x513e85(0x1f2)],[[_0x3afbd0[_0x513e85(0x240)],{'useClass':_0x32043b}]]);}};_0x2cfa03(_0x41f03b,_0x4cf1f9(0x20c),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x2cfa03(_0x41f03b,'packageName',_0x50b20b),_0x2cfa03(_0x41f03b,_0x4cf1f9(0x1f8),_0x40facc),_0x41f03b=_0xa110b5([(0x0,_0x1975b9[_0x4cf1f9(0x1f7)])(_0x3b919e[_0x4cf1f9(0x23f)]),_0x3094f3(0x1,_0x1975b9[_0x4cf1f9(0x20f)]),_0x3094f3(0x2,(0x0,_0x1975b9['Inject'])(_0x1975b9[_0x4cf1f9(0x226)]))],_0x41f03b);let _0x51cfbe=class extends _0x3b919e[_0x4cf1f9(0x1f9)]{constructor(_0x13a94a,_0x31b0bb,_0x5a9885,_0x231f2e,_0x39635d){const _0x722343=_0x4cf1f9;super(_0x13a94a,_0x31b0bb,_0x5a9885,_0x231f2e,_0x39635d);let _0x2270be=this[_0x722343(0x23e)]['getConfig'](_0x3b919e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x722343(0x209)][_0x722343(0x212)]({'interceptor':(_0x5c0b19,_0x2f084d)=>{const _0x5880bf=_0x722343;let _0x595b97=_0x5c0b19[_0x5880bf(0x216)];if(_0x2270be!=null&&_0x2270be[_0x5880bf(0x205)]){for(let _0x579a24 in _0x2270be[_0x5880bf(0x205)])_0x595b97[_0x5880bf(0x213)](_0x579a24,_0x2270be['customHeaders'][_0x579a24]);}return _0x2f084d(_0x5c0b19);}});}async[_0x4cf1f9(0x236)](_0x22f9d6){return this['_doCreateSocket'](_0x22f9d6);}};_0x51cfbe=_0xa110b5([_0x3094f3(0x0,(0x0,_0x1975b9[_0x4cf1f9(0x22c)])(_0x1975b9[_0x4cf1f9(0x226)])),_0x3094f3(0x1,(0x0,_0x1975b9['Inject'])(_0x3afbd0['HTTPService'])),_0x3094f3(0x2,_0x1975b9['IConfigService']),_0x3094f3(0x3,_0x1975b9[_0x4cf1f9(0x220)]),_0x3094f3(0x4,_0x375af6['ISnapshotServerService'])],_0x51cfbe),_0x5001c6[_0x4cf1f9(0x218)]=_0xa8bf80,Object['defineProperty'](_0x5001c6,_0x4cf1f9(0x22b),{'enumerable':!0x0,'get':function(){return _0x51cfbe;}}),Object[_0x4cf1f9(0x224)](_0x5001c6,_0x4cf1f9(0x206),{'enumerable':!0x0,'get':function(){return _0x41f03b;}});}));function _0x1c12(_0x20a7f5,_0x546718){_0x20a7f5=_0x20a7f5-0x1f2;const _0x35dea1=_0x35de();let _0x1c12ae=_0x35dea1[_0x20a7f5];return _0x1c12ae;}function _0x35de(){const _0x2f631f=['315vCMKtr','UniverCore','2639sScPMt','prototype','Plugin','onStarting','customHeaders','UniverCollaborationClientNodePlugin','UniverNetwork','@univerjs-pro/collaboration','_httpService','@univerjs/network','327095sKHiHu','pluginName','iterator','pipe','IConfigService','2100914VwRdXN','string','registerHTTPInterceptor','set','834308diUyFa','@univerjs-pro/collaboration-client-node','headers','539HemhVu','COLLABORATION_CLIENT_NODE_CONFIG_KEY','constructor','Disposable','6tqrbHC','toDisposable','60972YXxHjb','18utLSdQ','Observable','ILogService','function','error','toPrimitive','defineProperty','rxjs','Injector','0.21.1','open','_registerDependencies','next','NodeCollaborationSocketService','Inject','message','setConfig','send','close','DisposableCollection','call','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','add','exports','createSocket','symbol','share','WebSocket','231460knRZoo','11784IABqbn','removeEventListener','Module','_configService','UniverCollaborationClientPlugin','ISocketService','object','_injector','length','amd','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','decorate','DependentOn','version','CollaborationSocketService','getOwnPropertyDescriptor','UniverProCollaborationClientNode','1249156DSTXBS','registerDependencies','addEventListener'];_0x35de=function(){return _0x2f631f;};return _0x35de();}
|
|
1
|
+
function _0x971d(_0x3d0f58,_0x79f401){_0x3d0f58=_0x3d0f58-0xfa;const _0x34d0dc=_0x34d0();let _0x971dc0=_0x34d0dc[_0x3d0f58];return _0x971dc0;}(function(_0x2de2d7,_0x1a29a6){const _0x5b2333=_0x971d,_0x58d16c=_0x2de2d7();while(!![]){try{const _0x1b9ed0=-parseInt(_0x5b2333(0x124))/0x1*(parseInt(_0x5b2333(0x108))/0x2)+parseInt(_0x5b2333(0x122))/0x3+-parseInt(_0x5b2333(0x10c))/0x4*(parseInt(_0x5b2333(0x114))/0x5)+-parseInt(_0x5b2333(0x11d))/0x6*(-parseInt(_0x5b2333(0x115))/0x7)+parseInt(_0x5b2333(0x137))/0x8*(-parseInt(_0x5b2333(0x14c))/0x9)+-parseInt(_0x5b2333(0xfa))/0xa+parseInt(_0x5b2333(0x12f))/0xb*(parseInt(_0x5b2333(0x126))/0xc);if(_0x1b9ed0===_0x1a29a6)break;else _0x58d16c['push'](_0x58d16c['shift']());}catch(_0x61a0d5){_0x58d16c['push'](_0x58d16c['shift']());}}}(_0x34d0,0x4cd93),function(_0x16e3d9,_0x4bb181){const _0x14bfc4=_0x971d;typeof exports==_0x14bfc4(0x121)&&typeof module<'u'?_0x4bb181(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define[_0x14bfc4(0x12b)]?define([_0x14bfc4(0x151),_0x14bfc4(0x13e),'@univerjs/core','@univerjs/network',_0x14bfc4(0x143),_0x14bfc4(0x148)],_0x4bb181):(_0x16e3d9=typeof globalThis<'u'?globalThis:_0x16e3d9||self,_0x4bb181(_0x16e3d9[_0x14bfc4(0x117)]={},_0x16e3d9[_0x14bfc4(0x134)],_0x16e3d9[_0x14bfc4(0x129)],_0x16e3d9[_0x14bfc4(0x14a)],_0x16e3d9[_0x14bfc4(0x143)],_0x16e3d9[_0x14bfc4(0x106)]));}(this,function(_0x16bbab,_0x2f49f5,_0x3341a4,_0x2fc7e7,_0x10fbd1,_0x46e47c){const _0x216728=_0x971d;Object[_0x216728(0x125)](_0x16bbab,Symbol[_0x216728(0x105)],{'value':_0x216728(0x11f)});var _0x23d69e=(_0x5b6626,_0x240aef)=>()=>(_0x240aef||(_0x5b6626((_0x240aef={'exports':{}})[_0x216728(0x151)],_0x240aef),_0x5b6626=null),_0x240aef[_0x216728(0x151)]);let _0x45459b=_0x216728(0x128);Symbol(_0x45459b);let _0x393ad1={};var _0x42546a=_0x216728(0x14d),_0x3dffdb=_0x216728(0x11c),_0x2354b9=_0x23d69e((_0x3019f8,_0x17f246)=>{_0x17f246['exports']=function(){const _0x34c68f=_0x971d;throw Error(_0x34c68f(0x130));};})();function _0x53d12b(_0x3c2e72,_0x572f9b){return function(_0x467508,_0x56ea3e){_0x572f9b(_0x467508,_0x56ea3e,_0x3c2e72);};}function _0x1b6aa4(_0x4d44d2,_0x3efad4,_0x208a62,_0x443832){const _0xa6b39a=_0x216728;var _0xe2fd6=arguments[_0xa6b39a(0x13d)],_0xf80a8a=_0xe2fd6<0x3?_0x3efad4:_0x443832===null?_0x443832=Object[_0xa6b39a(0x131)](_0x3efad4,_0x208a62):_0x443832,_0x123e21;if(typeof Reflect==_0xa6b39a(0x121)&&typeof Reflect[_0xa6b39a(0x132)]==_0xa6b39a(0x13f))_0xf80a8a=Reflect[_0xa6b39a(0x132)](_0x4d44d2,_0x3efad4,_0x208a62,_0x443832);else{for(var _0xa8e0ae=_0x4d44d2[_0xa6b39a(0x13d)]-0x1;_0xa8e0ae>=0x0;_0xa8e0ae--)(_0x123e21=_0x4d44d2[_0xa8e0ae])&&(_0xf80a8a=(_0xe2fd6<0x3?_0x123e21(_0xf80a8a):_0xe2fd6>0x3?_0x123e21(_0x3efad4,_0x208a62,_0xf80a8a):_0x123e21(_0x3efad4,_0x208a62))||_0xf80a8a);}return _0xe2fd6>0x3&&_0xf80a8a&&Object['defineProperty'](_0x3efad4,_0x208a62,_0xf80a8a),_0xf80a8a;}let _0x8f40ea=class extends _0x3341a4[_0x216728(0x118)]{constructor(_0x244120){const _0x1a37bc=_0x216728;super(),this[_0x1a37bc(0x113)]=_0x244120;}[_0x216728(0x149)](_0x3c47ac){const _0x1d1d9e=_0x216728;var _0x473e40;let _0x4885d3=((_0x473e40=this[_0x1d1d9e(0x113)][_0x1d1d9e(0x12e)](_0x2f49f5[_0x1d1d9e(0x14e)]))==null?void 0x0:_0x473e40[_0x1d1d9e(0x100)])||{};try{let _0x4604ac=new _0x2354b9[(_0x1d1d9e(0x10f))](_0x3c47ac,{'headers':{..._0x4885d3}}),_0x33c857=new _0x3341a4[(_0x1d1d9e(0x141))]();return{'URL':_0x3c47ac,'close':(_0x49c488,_0x125bcb)=>{const _0x165bd4=_0x1d1d9e;_0x4604ac[_0x165bd4(0x13c)](_0x49c488,_0x125bcb),_0x33c857['dispose']();},'send':_0x503dca=>{const _0x463904=_0x1d1d9e;_0x4604ac[_0x463904(0x10b)](_0x503dca);},'open$':new _0x10fbd1[(_0x1d1d9e(0x12c))](_0x58f078=>{const _0x4dc5e7=_0x1d1d9e;let _0x1b2df8=_0x17e198=>_0x58f078[_0x4dc5e7(0x136)](_0x17e198);_0x4604ac['addEventListener'](_0x4dc5e7(0x133),_0x1b2df8),_0x33c857[_0x4dc5e7(0x107)]((0x0,_0x3341a4[_0x4dc5e7(0x12d)])(()=>_0x4604ac[_0x4dc5e7(0x116)](_0x4dc5e7(0x133),_0x1b2df8)));})[_0x1d1d9e(0x10d)]((0x0,_0x10fbd1[_0x1d1d9e(0xfd)])()),'close$':new _0x10fbd1[(_0x1d1d9e(0x12c))](_0x39de0a=>{const _0x4fcabe=_0x1d1d9e;let _0x4274f5=_0x2ad773=>_0x39de0a[_0x4fcabe(0x136)](_0x2ad773);_0x4604ac[_0x4fcabe(0x150)](_0x4fcabe(0x13c),_0x4274f5),_0x33c857[_0x4fcabe(0x107)]((0x0,_0x3341a4['toDisposable'])(()=>_0x4604ac['removeEventListener'](_0x4fcabe(0x13c),_0x4274f5)));})['pipe']((0x0,_0x10fbd1['share'])()),'error$':new _0x10fbd1[(_0x1d1d9e(0x12c))](_0x1e32c2=>{const _0x548742=_0x1d1d9e;let _0x1fc710=_0x144a74=>_0x1e32c2[_0x548742(0x136)](_0x144a74);_0x4604ac[_0x548742(0x150)]('error',_0x1fc710),_0x33c857['add']((0x0,_0x3341a4[_0x548742(0x12d)])(()=>_0x4604ac[_0x548742(0x116)]('error',_0x1fc710)));})[_0x1d1d9e(0x10d)]((0x0,_0x10fbd1[_0x1d1d9e(0xfd)])()),'message$':new _0x10fbd1[(_0x1d1d9e(0x12c))](_0x1a7e50=>{const _0x2d8b74=_0x1d1d9e;let _0x5cdb18=_0x55126b=>_0x1a7e50['next'](_0x55126b);_0x4604ac[_0x2d8b74(0x150)](_0x2d8b74(0x110),_0x5cdb18),_0x33c857['add']((0x0,_0x3341a4['toDisposable'])(()=>_0x4604ac[_0x2d8b74(0x116)](_0x2d8b74(0x110),_0x5cdb18)));})['pipe']((0x0,_0x10fbd1[_0x1d1d9e(0xfd)])())};}catch(_0x13abf0){return console['error'](_0x13abf0),null;}}};_0x8f40ea=_0x1b6aa4([_0x53d12b(0x0,_0x3341a4[_0x216728(0x10e)])],_0x8f40ea);function _0x31f75f(_0x37638e){'@babel/helpers - typeof';const _0x2d1fb7=_0x216728;return _0x31f75f=typeof Symbol==_0x2d1fb7(0x13f)&&typeof Symbol['iterator']=='symbol'?function(_0x166002){return typeof _0x166002;}:function(_0x4e43ed){const _0x50580b=_0x2d1fb7;return _0x4e43ed&&typeof Symbol==_0x50580b(0x13f)&&_0x4e43ed[_0x50580b(0x123)]===Symbol&&_0x4e43ed!==Symbol[_0x50580b(0x139)]?_0x50580b(0x102):typeof _0x4e43ed;},_0x31f75f(_0x37638e);}function _0x1012ed(_0x140d27,_0x6b7b87){const _0x53e71b=_0x216728;if(_0x31f75f(_0x140d27)!=_0x53e71b(0x121)||!_0x140d27)return _0x140d27;var _0x2cf8b7=_0x140d27[Symbol[_0x53e71b(0x104)]];if(_0x2cf8b7!==void 0x0){var _0x4834fd=_0x2cf8b7[_0x53e71b(0x14b)](_0x140d27,_0x6b7b87||_0x53e71b(0x147));if(_0x31f75f(_0x4834fd)!=_0x53e71b(0x121))return _0x4834fd;throw TypeError(_0x53e71b(0x14f));}return(_0x6b7b87===_0x53e71b(0x135)?String:Number)(_0x140d27);}function _0x1fec30(_0x646c63){const _0x6f8656=_0x216728;var _0x717317=_0x1012ed(_0x646c63,_0x6f8656(0x135));return _0x31f75f(_0x717317)==_0x6f8656(0x102)?_0x717317:_0x717317+'';}function _0x450a9a(_0x51d2ee,_0x408cb1,_0x2c8165){const _0x1914b0=_0x216728;return(_0x408cb1=_0x1fec30(_0x408cb1))in _0x51d2ee?Object[_0x1914b0(0x125)](_0x51d2ee,_0x408cb1,{'value':_0x2c8165,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51d2ee[_0x408cb1]=_0x2c8165,_0x51d2ee;}let _0x68d12=class extends _0x3341a4[_0x216728(0x145)]{constructor(_0x2b6fee=_0x393ad1,_0x3caee9,_0x49c177){const _0x2284fc=_0x216728;super(),this[_0x2284fc(0x113)]=_0x3caee9,this['_injector']=_0x49c177,this['_configService'][_0x2284fc(0xfc)](_0x45459b,_0x2b6fee);}[_0x216728(0x109)](){const _0x30167c=_0x216728;this[_0x30167c(0x103)]();}[_0x216728(0x103)](){const _0x7b6ee6=_0x216728;(0x0,_0x3341a4[_0x7b6ee6(0xfb)])(this[_0x7b6ee6(0x11b)],[[_0x2fc7e7[_0x7b6ee6(0x146)],{'useClass':_0x8f40ea}]]);}};_0x450a9a(_0x68d12,_0x216728(0x142),_0x216728(0x140)),_0x450a9a(_0x68d12,_0x216728(0x10a),_0x42546a),_0x450a9a(_0x68d12,_0x216728(0x144),_0x3dffdb),_0x68d12=_0x1b6aa4([(0x0,_0x3341a4['DependentOn'])(_0x2f49f5[_0x216728(0x119)]),_0x53d12b(0x1,_0x3341a4['IConfigService']),_0x53d12b(0x2,(0x0,_0x3341a4['Inject'])(_0x3341a4[_0x216728(0x101)]))],_0x68d12);let _0x21f504=class extends _0x2f49f5[_0x216728(0xff)]{constructor(_0xa560cf,_0x2979b9,_0x1d302a,_0x10790d,_0x1400c5){const _0x2fae6c=_0x216728;super(_0xa560cf,_0x2979b9,_0x1d302a,_0x10790d,_0x1400c5);let _0x2e8332=this[_0x2fae6c(0x113)]['getConfig'](_0x2f49f5[_0x2fae6c(0x14e)]);this[_0x2fae6c(0x138)][_0x2fae6c(0x127)]({'interceptor':(_0x24171d,_0x47bee5)=>{const _0x1fed23=_0x2fae6c;let _0x2c6613=_0x24171d[_0x1fed23(0x11a)];if(_0x2e8332!=null&&_0x2e8332[_0x1fed23(0x100)]){for(let _0x4e884c in _0x2e8332[_0x1fed23(0x100)])_0x2c6613['set'](_0x4e884c,_0x2e8332[_0x1fed23(0x100)][_0x4e884c]);}return _0x47bee5(_0x24171d);}});}async[_0x216728(0x149)](_0x52b641){const _0x52963c=_0x216728;return this[_0x52963c(0x120)](_0x52b641);}};_0x21f504=_0x1b6aa4([_0x53d12b(0x0,(0x0,_0x3341a4[_0x216728(0x13a)])(_0x3341a4[_0x216728(0x101)])),_0x53d12b(0x1,(0x0,_0x3341a4[_0x216728(0x13a)])(_0x2fc7e7[_0x216728(0x111)])),_0x53d12b(0x2,_0x3341a4[_0x216728(0x10e)]),_0x53d12b(0x3,_0x3341a4[_0x216728(0xfe)]),_0x53d12b(0x4,_0x46e47c[_0x216728(0x13b)])],_0x21f504),_0x16bbab[_0x216728(0x11e)]=_0x45459b,Object[_0x216728(0x125)](_0x16bbab,_0x216728(0x112),{'enumerable':!0x0,'get':function(){return _0x21f504;}}),Object[_0x216728(0x125)](_0x16bbab,_0x216728(0x12a),{'enumerable':!0x0,'get':function(){return _0x68d12;}});}));function _0x34d0(){const _0x4c6630=['registerHTTPInterceptor','collaboration-client-node.config','UniverCore','UniverCollaborationClientNodePlugin','amd','Observable','toDisposable','getConfig','5346znAOQt','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','getOwnPropertyDescriptor','decorate','open','UniverProCollaborationClient','string','next','2503192XjsuYf','_httpService','prototype','Inject','ISnapshotServerService','close','length','@univerjs-pro/collaboration-client','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','DisposableCollection','pluginName','rxjs','version','Plugin','ISocketService','default','@univerjs-pro/collaboration','createSocket','UniverNetwork','call','18iyJwqG','@univerjs-pro/collaboration-client-node','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','addEventListener','exports','3530120GIabTr','registerDependencies','setConfig','share','ILogService','CollaborationSocketService','customHeaders','Injector','symbol','_registerDependencies','toPrimitive','toStringTag','UniverProCollaboration','add','18XBjmAN','onStarting','packageName','send','628RLjFTU','pipe','IConfigService','WebSocket','message','HTTPService','NodeCollaborationSocketService','_configService','10465Vfwjbg','106190JyeboN','removeEventListener','UniverProCollaborationClientNode','Disposable','UniverCollaborationClientPlugin','headers','_injector','0.22.0-insiders.20260513-09bbeca','30BegZbi','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Module','_doCreateSocket','object','756045IqPtMb','constructor','21751YeeekH','defineProperty','36792KYrmsg'];_0x34d0=function(){return _0x4c6630;};return _0x34d0();}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0-insiders.20260513-09bbeca",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "",
|
|
6
|
-
"author": "DreamNum <developer@univer.ai>",
|
|
5
|
+
"description": "Node.js collaboration client plugin for Univer Pro.",
|
|
6
|
+
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
7
7
|
"funding": {
|
|
8
8
|
"type": "opencollective",
|
|
9
9
|
"url": "https://opencollective.com/univer"
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/dream-num/univer/issues"
|
|
18
18
|
},
|
|
19
|
-
"keywords": [
|
|
19
|
+
"keywords": [
|
|
20
|
+
"univer",
|
|
21
|
+
"univer-pro",
|
|
22
|
+
"collaboration",
|
|
23
|
+
"nodejs",
|
|
24
|
+
"client"
|
|
25
|
+
],
|
|
20
26
|
"exports": {
|
|
21
27
|
".": {
|
|
22
28
|
"import": "./lib/es/index.js",
|
|
@@ -46,17 +52,17 @@
|
|
|
46
52
|
},
|
|
47
53
|
"dependencies": {
|
|
48
54
|
"ws": "8.20.0",
|
|
49
|
-
"@univerjs-pro/collaboration": "0.
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
55
|
+
"@univerjs-pro/collaboration": "0.22.0-insiders.20260513-09bbeca",
|
|
56
|
+
"@univerjs-pro/collaboration-client": "0.22.0-insiders.20260513-09bbeca",
|
|
57
|
+
"@univerjs/network": "0.22.0-insiders.20260513-09bbeca",
|
|
58
|
+
"@univerjs/core": "0.22.0-insiders.20260513-09bbeca"
|
|
53
59
|
},
|
|
54
60
|
"devDependencies": {
|
|
55
61
|
"@types/ws": "8.18.1",
|
|
56
62
|
"rxjs": "7.8.2",
|
|
57
63
|
"typescript": "^6.0.3",
|
|
58
64
|
"vitest": "^4.1.4",
|
|
59
|
-
"@univerjs-infra/shared": "0.
|
|
65
|
+
"@univerjs-infra/shared": "0.22.0"
|
|
60
66
|
},
|
|
61
67
|
"scripts": {
|
|
62
68
|
"test": "vitest run",
|