@cloudgaming/rpc
Advanced tools
Comparing version 0.8.2 to 1.0.0-alpha.0
@@ -29,1 +29,2 @@ import { RpcClientObject, FunctionName, FunctionPayload, FunctionResult } from './types'; | ||
export {}; | ||
//# sourceMappingURL=Client.d.ts.map |
@@ -151,9 +151,3 @@ "use strict"; | ||
if (!this.skipAuth) { | ||
try { | ||
await this.Auth({ token: this.authToken }); | ||
} | ||
catch (e) { | ||
this.handleError(e); | ||
return; | ||
} | ||
await this.Auth({ token: this.authToken }); | ||
} | ||
@@ -160,0 +154,0 @@ this.websocket.addEventListener('error', this.handleError); |
@@ -5,1 +5,2 @@ export * from './types'; | ||
export * from './RpcError'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,1 +6,2 @@ export declare class RpcError extends Error { | ||
} | ||
//# sourceMappingURL=RpcError.d.ts.map |
@@ -17,2 +17,4 @@ /// <reference types="node" /> | ||
DoStartGame = "dsg", | ||
/** client->server, renew game */ | ||
RenewGame = "rg", | ||
/** client->server, set display grade */ | ||
@@ -64,7 +66,7 @@ SetDisplayGrade = "sdg", | ||
/** server name */ | ||
serverName: string; | ||
serverId: number; | ||
}; | ||
[FunctionName.CanStartGame]: { | ||
/** server name */ | ||
serverName: string; | ||
serverId: number; | ||
}; | ||
@@ -85,2 +87,8 @@ [FunctionName.DoStartGame]: { | ||
}; | ||
[FunctionName.RenewGame]: { | ||
/** server name */ | ||
serverId: number; | ||
/** renew token */ | ||
renewToken: string; | ||
}; | ||
[FunctionName.SetDisplayGrade]: { | ||
@@ -154,2 +162,5 @@ displayGrade: number; | ||
[FunctionName.CanStartGame]: void; | ||
[FunctionName.RenewGame]: { | ||
deadline: number; | ||
}; | ||
[FunctionName.DoStartGame]: { | ||
@@ -204,1 +215,2 @@ data: any; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -20,2 +20,4 @@ "use strict"; | ||
FunctionName["DoStartGame"] = "dsg"; | ||
/** client->server, renew game */ | ||
FunctionName["RenewGame"] = "rg"; | ||
/** client->server, set display grade */ | ||
@@ -22,0 +24,0 @@ FunctionName["SetDisplayGrade"] = "sdg"; |
@@ -12,1 +12,2 @@ import { FunctionName, FunctionPayload, IFunctionRequest, IFunctionResponse, FunctionResult } from './types'; | ||
}; | ||
//# sourceMappingURL=wrap.d.ts.map |
{ | ||
"name": "@cloudgaming/rpc", | ||
"version": "0.8.2", | ||
"version": "1.0.0-alpha.0", | ||
"main": "dist/index.js", | ||
"type": "commonjs", | ||
"types": "dist/index.d.ts", | ||
@@ -16,3 +17,4 @@ "license": "UNLICENSED", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", | ||
"clean": "rimraf dist" | ||
"clean": "rimraf dist", | ||
"publicpublish": "yarn publish --registry=https://registry.npmjs.org --access=public" | ||
}, | ||
@@ -19,0 +21,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38629
21
600