@bfchain/bnrtc2-client
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -0,4 +1,6 @@ | ||
import { ServiceInfo } from "@bfchain/bnrtc2-client-api"; | ||
export declare class Bnrtc2Controller implements Bnrtc2.Bnrtc2ControllerInterface { | ||
private readonly _api; | ||
constructor(apiHost?: string, apiPort?: number); | ||
registService(serviceInfo: ServiceInfo): Promise<boolean>; | ||
bindAddress(address: string): Promise<boolean>; | ||
@@ -14,4 +16,5 @@ unbindAddress(address: string): Promise<boolean>; | ||
getServiceInfo(name: string): Promise<Bnrtc2.Bnrtc2ServiceInfo | undefined>; | ||
getAddressInfo(address: string): Promise<Bnrtc2.AddressInfo | undefined>; | ||
} | ||
export declare const bnrtc2Controller: Bnrtc2Controller; | ||
//# sourceMappingURL=bnrtc2Controller.d.ts.map |
@@ -18,2 +18,5 @@ "use strict"; | ||
} | ||
registService(serviceInfo) { | ||
return this._api.registService(serviceInfo); | ||
} | ||
bindAddress(address) { | ||
@@ -69,4 +72,9 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
getAddressInfo(address) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this._api.getAddressInfo(address); | ||
}); | ||
} | ||
} | ||
exports.Bnrtc2Controller = Bnrtc2Controller; | ||
exports.bnrtc2Controller = new Bnrtc2Controller(); |
{ | ||
"name": "@bfchain/bnrtc2-client", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"main": "./build/index.js", | ||
@@ -8,5 +8,5 @@ "types": "./build/index.d.ts", | ||
"dependencies": { | ||
"@bfchain/bnrtc2-buffer": "^2.0.9", | ||
"@bfchain/bnrtc2-client-typings": "^2.0.9", | ||
"@bfchain/bnrtc2-client-api": "^2.0.9", | ||
"@bfchain/bnrtc2-buffer": "^2.0.10", | ||
"@bfchain/bnrtc2-client-typings": "^2.0.10", | ||
"@bfchain/bnrtc2-client-api": "^2.0.10", | ||
"@bfcs/util-evt": "^0.0.1-alpha.2" | ||
@@ -13,0 +13,0 @@ }, |
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
18253
427