This commit is contained in:
micah 2019-06-02 14:47:57 -04:00
parent d6cd63b201
commit 957522e4d9
4 changed files with 546 additions and 770 deletions

12
dist/rage-rpc.d.ts vendored
View File

@ -10,6 +10,16 @@ export function callBrowsers<T = any>(player: Player, name: string, args?: any,
export function callBrowsers<T = any>(name: string, args?: any, options: CallOptions = {}): Promise<T>;
export function callBrowser<T = any>(browser: Browser, name: string, args?: any, options: CallOptions = {}): Promise<T>;
export function on(name: string, cb: ProcedureListener): void;
export function off(name: string, cb: ProcedureListener): void;
export function trigger(name: string, args?: any): void;
export function triggerServer(name: string, args?: any): void;
export function triggerClient(player: Player, name: string, args?: any): void;
export function triggerClient(name: string, args?: any): void;
export function triggerBrowsers(player: Player, name: string, args?: any): void;
export function triggerBrowsers(name: string, args?: any): void;
export function triggerBrowser(browser: Browser, name: string, args?: any): void;
export interface Player {
call: (eventName: string, args?: any[]) => void;
[property: string]: any;
@ -31,4 +41,4 @@ export interface CallOptions {
noRet?: boolean;
}
export type ProcedureListener = (args: any, info: ProcedureListenerInfo) => any;
export type ProcedureListener = (args: any, info: ProcedureListenerInfo) => any;

136
dist/rage-rpc.min.js vendored

File diff suppressed because one or more lines are too long

1154
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "rage-rpc",
"version": "0.2.1",
"version": "0.3.0",
"description": "An asynchronous RPC implementation for RAGE Multiplayer",
"main": "dist/rage-rpc.min.js",
"types": "dist/rage-rpc.d.ts",
@ -24,13 +24,13 @@
"homepage": "https://github.com/micaww/rage-rpc#readme",
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-typescript": "^7.3.3",
"babel-loader": "^8.0.5",
"babel-loader": "^8.0.6",
"replace-in-file-webpack-plugin": "^1.0.6",
"typescript": "^3.3.3333",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
"typescript": "^3.5.1",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2"
}
}