@delight-rpc/electron 4.0.4 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/client.d.ts +4 -4
- package/package.json +16 -15
package/README.md
CHANGED
|
@@ -199,7 +199,7 @@ function createClientInMain<IAPI extends object>(
|
|
|
199
199
|
port: Electron.MessagePortMain
|
|
200
200
|
, options?: {
|
|
201
201
|
parameterValidators?: DelightRPC.ParameterValidators<IAPI>
|
|
202
|
-
expectedVersion?:
|
|
202
|
+
expectedVersion?: string
|
|
203
203
|
channel?: string
|
|
204
204
|
}
|
|
205
205
|
): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
|
|
@@ -211,7 +211,7 @@ function createClientInRenderer<IAPI extends object>(
|
|
|
211
211
|
port: MessagePort
|
|
212
212
|
, options?: {
|
|
213
213
|
parameterValidators?: DelightRPC.ParameterValidators<IAPI>
|
|
214
|
-
expectedVersion?:
|
|
214
|
+
expectedVersion?: string
|
|
215
215
|
channel?: string
|
|
216
216
|
}
|
|
217
217
|
): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
|
|
@@ -222,7 +222,7 @@ function createClientInRenderer<IAPI extends object>(
|
|
|
222
222
|
function createBatchClientInMain(
|
|
223
223
|
port: Electron.MessagePortMain
|
|
224
224
|
, options?: {
|
|
225
|
-
expectedVersion?:
|
|
225
|
+
expectedVersion?: string
|
|
226
226
|
channel?: string
|
|
227
227
|
}
|
|
228
228
|
): [client: DelightRPC.BatchClient, close: () => void]
|
|
@@ -233,7 +233,7 @@ function createBatchClientInMain(
|
|
|
233
233
|
function createBatchClientInRenderer(
|
|
234
234
|
port: MessagePort
|
|
235
235
|
, options?: {
|
|
236
|
-
expectedVersion?:
|
|
236
|
+
expectedVersion?: string
|
|
237
237
|
channel?: string
|
|
238
238
|
}
|
|
239
239
|
): [client: DelightRPC.BatchClient, close: () => void]
|
package/lib/client.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ import Electron from 'electron';
|
|
|
3
3
|
import { CustomError } from '@blackglory/errors';
|
|
4
4
|
export declare function createClientInMain<IAPI extends object>(port: Electron.MessagePortMain, { parameterValidators, expectedVersion, channel }?: {
|
|
5
5
|
parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
|
|
6
|
-
expectedVersion?:
|
|
6
|
+
expectedVersion?: string;
|
|
7
7
|
channel?: string;
|
|
8
8
|
}): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
|
|
9
9
|
export declare function createClientInRenderer<IAPI extends object>(port: MessagePort, { parameterValidators, expectedVersion, channel }?: {
|
|
10
10
|
parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
|
|
11
|
-
expectedVersion?:
|
|
11
|
+
expectedVersion?: string;
|
|
12
12
|
channel?: string;
|
|
13
13
|
}): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
|
|
14
14
|
export declare function createBatchClientInMain(port: Electron.MessagePortMain, { expectedVersion, channel }?: {
|
|
15
|
-
expectedVersion?:
|
|
15
|
+
expectedVersion?: string;
|
|
16
16
|
channel?: string;
|
|
17
17
|
}): [client: DelightRPC.BatchClient, close: () => void];
|
|
18
18
|
export declare function createBatchClientInRenderer(port: MessagePort, { expectedVersion, channel }?: {
|
|
19
|
-
expectedVersion?:
|
|
19
|
+
expectedVersion?: string;
|
|
20
20
|
channel?: string;
|
|
21
21
|
}): [client: DelightRPC.BatchClient, close: () => void];
|
|
22
22
|
export declare class ClientClosed extends CustomError {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delight-rpc/electron",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"files": [
|
|
@@ -31,32 +31,33 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@blackglory/jest-matchers": "^0.
|
|
35
|
-
"@commitlint/cli": "^17.0
|
|
36
|
-
"@commitlint/config-conventional": "^17.0
|
|
37
|
-
"@types/jest": "^
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
39
|
-
"@typescript-eslint/parser": "^5.
|
|
34
|
+
"@blackglory/jest-matchers": "^0.5.0",
|
|
35
|
+
"@commitlint/cli": "^17.3.0",
|
|
36
|
+
"@commitlint/config-conventional": "^17.3.0",
|
|
37
|
+
"@types/jest": "^29.2.4",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
|
39
|
+
"@typescript-eslint/parser": "^5.46.1",
|
|
40
40
|
"cross-env": "^7.0.3",
|
|
41
|
+
"delight-rpc": "^5.0.0",
|
|
41
42
|
"electron": "^16.0.7",
|
|
42
|
-
"eslint": "8.
|
|
43
|
+
"eslint": "8.29.0",
|
|
43
44
|
"husky": "4",
|
|
44
|
-
"jest": "^
|
|
45
|
+
"jest": "^29.3.1",
|
|
45
46
|
"npm-run-all": "^4.1.5",
|
|
46
47
|
"rimraf": "^3.0.2",
|
|
47
48
|
"standard-version": "^9.5.0",
|
|
48
|
-
"ts-jest": "^
|
|
49
|
+
"ts-jest": "^29.0.3",
|
|
49
50
|
"tscpaths": "^0.0.9",
|
|
50
51
|
"typescript": "^4.7.4"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@blackglory/errors": "^2.
|
|
54
|
-
"@blackglory/prelude": "^0.1.
|
|
55
|
-
"@delight-rpc/protocol": "^
|
|
56
|
-
"
|
|
57
|
-
"extra-promise": "^2.2.0"
|
|
54
|
+
"@blackglory/errors": "^2.3.0",
|
|
55
|
+
"@blackglory/prelude": "^0.1.8",
|
|
56
|
+
"@delight-rpc/protocol": "^3.0.0",
|
|
57
|
+
"extra-promise": "^4.4.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
+
"delight-rpc": "^5.0.0",
|
|
60
61
|
"electron": "^16.0.1"
|
|
61
62
|
}
|
|
62
63
|
}
|