@univerjs/rpc-node 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805
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/es/index.js +7 -7
- package/lib/index.js +7 -7
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var j = (r, e, o) => e in r ? O(r, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var c = (r, e, o) => j(r, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import { fork as U } from "node:child_process";
|
|
5
5
|
import l from "node:process";
|
|
6
|
-
import { Inject as P, Injector as v,
|
|
6
|
+
import { Inject as P, Injector as v, Plugin as C, merge as R, ILogService as k, IConfigService as S } from "@univerjs/core";
|
|
7
7
|
import { IRPCChannelService as N, ChannelService as I, DataSyncPrimaryController as h, IRemoteSyncService as D, RemoteSyncPrimaryService as W, DataSyncReplicaController as _, IRemoteInstanceService as G, WebWorkerRemoteInstanceService as x } from "@univerjs/rpc";
|
|
8
8
|
import { Observable as w, shareReplay as E } from "rxjs";
|
|
9
9
|
const F = "rpc-node.main-thread.config", f = {}, L = "rpc-node.worker-thread.config", p = {};
|
|
@@ -12,12 +12,12 @@ var b = Object.getOwnPropertyDescriptor, y = (r, e, o, n) => {
|
|
|
12
12
|
(s = r[t]) && (i = s(i) || i);
|
|
13
13
|
return i;
|
|
14
14
|
}, a = (r, e) => (o, n) => e(o, n, r), g;
|
|
15
|
-
let u = (g = class extends
|
|
15
|
+
let u = (g = class extends C {
|
|
16
16
|
constructor(e = f, o, n) {
|
|
17
17
|
super();
|
|
18
18
|
c(this, "_child", null);
|
|
19
19
|
this._config = e, this._injector = o, this._configService = n;
|
|
20
|
-
const { ...i } =
|
|
20
|
+
const { ...i } = R(
|
|
21
21
|
{},
|
|
22
22
|
f,
|
|
23
23
|
this._config
|
|
@@ -50,13 +50,13 @@ let u = (g = class extends R {
|
|
|
50
50
|
}, c(g, "pluginName", "UNIVER_RPC_NODE_MAIN_PLUGIN"), g);
|
|
51
51
|
u = y([
|
|
52
52
|
a(1, P(v)),
|
|
53
|
-
a(2,
|
|
53
|
+
a(2, S)
|
|
54
54
|
], u);
|
|
55
55
|
var d;
|
|
56
|
-
let m = (d = class extends
|
|
56
|
+
let m = (d = class extends C {
|
|
57
57
|
constructor(r = p, e, o) {
|
|
58
58
|
super(), this._config = r, this._injector = e, this._configService = o;
|
|
59
|
-
const { ...n } =
|
|
59
|
+
const { ...n } = R(
|
|
60
60
|
{},
|
|
61
61
|
p,
|
|
62
62
|
this._config
|
|
@@ -75,7 +75,7 @@ let m = (d = class extends R {
|
|
|
75
75
|
}, c(d, "pluginName", "UNIVER_RPC_NODE_WORKER_PLUGIN"), d);
|
|
76
76
|
m = y([
|
|
77
77
|
a(1, P(v)),
|
|
78
|
-
a(2,
|
|
78
|
+
a(2, S)
|
|
79
79
|
], m);
|
|
80
80
|
function A(r, e) {
|
|
81
81
|
const o = r.get(k), n = U(e);
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var j = (r, e, o) => e in r ? O(r, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var c = (r, e, o) => j(r, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import { fork as U } from "node:child_process";
|
|
5
5
|
import l from "node:process";
|
|
6
|
-
import { Inject as P, Injector as v,
|
|
6
|
+
import { Inject as P, Injector as v, Plugin as C, merge as R, ILogService as k, IConfigService as S } from "@univerjs/core";
|
|
7
7
|
import { IRPCChannelService as N, ChannelService as I, DataSyncPrimaryController as h, IRemoteSyncService as D, RemoteSyncPrimaryService as W, DataSyncReplicaController as _, IRemoteInstanceService as G, WebWorkerRemoteInstanceService as x } from "@univerjs/rpc";
|
|
8
8
|
import { Observable as w, shareReplay as E } from "rxjs";
|
|
9
9
|
const F = "rpc-node.main-thread.config", f = {}, L = "rpc-node.worker-thread.config", p = {};
|
|
@@ -12,12 +12,12 @@ var b = Object.getOwnPropertyDescriptor, y = (r, e, o, n) => {
|
|
|
12
12
|
(s = r[t]) && (i = s(i) || i);
|
|
13
13
|
return i;
|
|
14
14
|
}, a = (r, e) => (o, n) => e(o, n, r), g;
|
|
15
|
-
let u = (g = class extends
|
|
15
|
+
let u = (g = class extends C {
|
|
16
16
|
constructor(e = f, o, n) {
|
|
17
17
|
super();
|
|
18
18
|
c(this, "_child", null);
|
|
19
19
|
this._config = e, this._injector = o, this._configService = n;
|
|
20
|
-
const { ...i } =
|
|
20
|
+
const { ...i } = R(
|
|
21
21
|
{},
|
|
22
22
|
f,
|
|
23
23
|
this._config
|
|
@@ -50,13 +50,13 @@ let u = (g = class extends R {
|
|
|
50
50
|
}, c(g, "pluginName", "UNIVER_RPC_NODE_MAIN_PLUGIN"), g);
|
|
51
51
|
u = y([
|
|
52
52
|
a(1, P(v)),
|
|
53
|
-
a(2,
|
|
53
|
+
a(2, S)
|
|
54
54
|
], u);
|
|
55
55
|
var d;
|
|
56
|
-
let m = (d = class extends
|
|
56
|
+
let m = (d = class extends C {
|
|
57
57
|
constructor(r = p, e, o) {
|
|
58
58
|
super(), this._config = r, this._injector = e, this._configService = o;
|
|
59
|
-
const { ...n } =
|
|
59
|
+
const { ...n } = R(
|
|
60
60
|
{},
|
|
61
61
|
p,
|
|
62
62
|
this._config
|
|
@@ -75,7 +75,7 @@ let m = (d = class extends R {
|
|
|
75
75
|
}, c(d, "pluginName", "UNIVER_RPC_NODE_WORKER_PLUGIN"), d);
|
|
76
76
|
m = y([
|
|
77
77
|
a(1, P(v)),
|
|
78
|
-
a(2,
|
|
78
|
+
a(2, S)
|
|
79
79
|
], m);
|
|
80
80
|
function A(r, e) {
|
|
81
81
|
const o = r.get(k), n = U(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/rpc-node",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3-insiders.20260131-b9b8805",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/core": "0.15.
|
|
50
|
-
"@univerjs/rpc": "0.15.
|
|
49
|
+
"@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
|
|
50
|
+
"@univerjs/rpc": "0.15.3-insiders.20260131-b9b8805"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"rxjs": "^7.8.2",
|
|
54
54
|
"typescript": "^5.9.3",
|
|
55
55
|
"vite": "^7.3.1",
|
|
56
|
-
"vitest": "^4.0.
|
|
57
|
-
"@univerjs-infra/shared": "0.15.
|
|
56
|
+
"vitest": "^4.0.18",
|
|
57
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test": "vitest run",
|