-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
39 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,3 @@ yarn-error.log | |
|
||
/dist/ | ||
/output/ | ||
/yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import {ApiMethod, IpcMainApiService} from "electron-rpc-api"; | ||
import {ApiMethod, ApiMethodNoArgument, IpcMainApiService} from "electron-rpc-api"; | ||
|
||
export interface IpcMainApi { | ||
ping: ApiMethod<{ domain: string, times: number }, { domain: string, value: number }>; | ||
quitApp: ApiMethod<undefined, never>; | ||
quitApp: ApiMethodNoArgument<never>; | ||
} | ||
|
||
export const IPC_MAIN_API_SERVICE = new IpcMainApiService<IpcMainApi>({channel: "some-ipcMain-channel"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1798,11 +1798,11 @@ [email protected]: | |
lazy-val "^1.0.3" | ||
mime "^2.3.1" | ||
|
||
electron-rpc-api@^0.1.0: | ||
version "0.1.0" | ||
resolved "https://registry.yarnpkg.com/electron-rpc-api/-/electron-rpc-api-0.1.0.tgz#37c523e5b686ce0ad2a5fcdc62c1e47c0c2703a6" | ||
electron-rpc-api@^0.2.0: | ||
version "0.2.0" | ||
resolved "https://registry.yarnpkg.com/electron-rpc-api/-/electron-rpc-api-0.2.0.tgz#0e534d6bbad892d525818068bee989d24374dc14" | ||
dependencies: | ||
pubsub-to-stream-api "^0.1.0" | ||
pubsub-to-stream-api "^0.2.0" | ||
tslib "^1.9.2" | ||
|
||
electron-to-chromium@^1.2.7: | ||
|
@@ -4577,9 +4577,9 @@ public-encrypt@^4.0.0: | |
parse-asn1 "^5.0.0" | ||
randombytes "^2.0.1" | ||
|
||
pubsub-to-stream-api@^0.1.0: | ||
version "0.1.0" | ||
resolved "https://registry.yarnpkg.com/pubsub-to-stream-api/-/pubsub-to-stream-api-0.1.0.tgz#84b282cf56f2b52453c590044e17d597750fdecd" | ||
pubsub-to-stream-api@^0.2.0: | ||
version "0.2.0" | ||
resolved "https://registry.yarnpkg.com/pubsub-to-stream-api/-/pubsub-to-stream-api-0.2.0.tgz#6950d57b4547d166b22106bc876bb3a72bd6437e" | ||
dependencies: | ||
deserialize-error "^0.0.3" | ||
rxjs "^6.2.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "electron-rpc-api", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Wrapper around the Electron's IPC for building type-safe API based RPC-like interactions", | ||
"author": "Vladimir Yakovlev <[email protected]> (https://github.com/vladimiry)", | ||
"license": "MIT", | ||
|
@@ -33,7 +33,7 @@ | |
] | ||
}, | ||
"dependencies": { | ||
"pubsub-to-stream-api": "^0.1.0", | ||
"pubsub-to-stream-api": "^0.2.0", | ||
"tslib": "^1.9.2" | ||
}, | ||
"devDependencies": { | ||
|
@@ -45,7 +45,7 @@ | |
"npm-run-all": "^4.1.3", | ||
"rewiremock": "^3.7.2", | ||
"rimraf": "^2.6.2", | ||
"sinon": "^6.0.0", | ||
"sinon": "^6.0.1", | ||
"ts-node": "^7.0.0", | ||
"tslint": "^5.10.0", | ||
"tslint-rules-bunch": "^0.0.4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import {Model} from "pubsub-to-stream-api"; | ||
|
||
import {ApiMethod, ApiMethodNoArgument} from "./model"; | ||
|
||
export * from "./ipc-main-api-service"; | ||
export * from "./webview-api-service"; | ||
|
||
export type ApiMethod<I, O> = Model.Action<I, O>; | ||
export { | ||
ApiMethod, | ||
ApiMethodNoArgument, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters