@scrypted/server 0.7.57 → 0.7.58
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.
Potentially problematic release.
This version of @scrypted/server might be problematic. Click here for more details.
- package/dist/rpc.d.ts +14 -1
- package/package.json +1 -1
- package/src/rpc.ts +3 -3
package/dist/rpc.d.ts
CHANGED
@@ -3,7 +3,20 @@ export declare function startPeriodicGarbageCollection(): NodeJS.Timer;
|
|
3
3
|
export interface RpcMessage {
|
4
4
|
type: 'apply' | 'result' | 'finalize' | 'param';
|
5
5
|
}
|
6
|
-
interface
|
6
|
+
export interface RpcParam extends RpcMessage {
|
7
|
+
type: 'param';
|
8
|
+
id: string;
|
9
|
+
param: string;
|
10
|
+
}
|
11
|
+
export interface RpcApply extends RpcMessage {
|
12
|
+
type: 'apply';
|
13
|
+
id: string | undefined;
|
14
|
+
proxyId: string;
|
15
|
+
args: any[];
|
16
|
+
method: string;
|
17
|
+
oneway?: boolean;
|
18
|
+
}
|
19
|
+
export interface RpcResult extends RpcMessage {
|
7
20
|
type: 'result';
|
8
21
|
id: string;
|
9
22
|
/**
|
package/package.json
CHANGED
package/src/rpc.ts
CHANGED
@@ -33,13 +33,13 @@ export interface RpcMessage {
|
|
33
33
|
type: 'apply' | 'result' | 'finalize' | 'param';
|
34
34
|
}
|
35
35
|
|
36
|
-
interface RpcParam extends RpcMessage {
|
36
|
+
export interface RpcParam extends RpcMessage {
|
37
37
|
type: 'param';
|
38
38
|
id: string;
|
39
39
|
param: string;
|
40
40
|
}
|
41
41
|
|
42
|
-
interface RpcApply extends RpcMessage {
|
42
|
+
export interface RpcApply extends RpcMessage {
|
43
43
|
type: 'apply';
|
44
44
|
id: string | undefined;
|
45
45
|
proxyId: string;
|
@@ -48,7 +48,7 @@ interface RpcApply extends RpcMessage {
|
|
48
48
|
oneway?: boolean;
|
49
49
|
}
|
50
50
|
|
51
|
-
interface RpcResult extends RpcMessage {
|
51
|
+
export interface RpcResult extends RpcMessage {
|
52
52
|
type: 'result';
|
53
53
|
id: string;
|
54
54
|
// TODO 3/2/2023
|