Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bfchain/bnrtc2-client-typings

Package Overview
Dependencies
Maintainers
6
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bfchain/bnrtc2-client-typings - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

15

build/@types.d.ts

@@ -6,4 +6,4 @@ /// <reference lib="dom" />

}
interface Bnrtc2DwebServiceConfig {
port: number;
interface Bnrtc2ServiceInfo {
[key: string]: any;
}

@@ -19,7 +19,10 @@ type RESULT_CODE = import("./const").RESULT_CODE;

connectAddress(address: string): Promise<boolean>;
getServerConfig(): Promise<Bnrtc2.Bnrtc2ServerConfig | undefined>;
getServiceInfo(name: string): Promise<Bnrtc2.Bnrtc2ServiceInfo | undefined>;
}
interface Bnrtc2Client {
onOpen: import('@bfcs/util-evt').StatefulAttacher<boolean>;
onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>;
onError: import('@bfcs/util-evt').Attacher<Error>;
readonly onOpen: import('@bfcs/util-evt').StatefulAttacher<boolean>;
readonly onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>;
readonly onError: import('@bfcs/util-evt').Attacher<Error>;
readonly controller: Bnrtc2ControllerInterface;
close(code?: number, reason?: string): void;

@@ -31,4 +34,2 @@ send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array, devid?: string, src?: string): Promise<RESULT_CODE>;

offData(dport: string, handler?: Bnrtc2DataHandler): Promise<RESULT_CODE>;
getServerConfig(): Promise<Bnrtc2.Bnrtc2ServerConfig | undefined>;
getDwebServiceConfig(): Promise<Bnrtc2.Bnrtc2DwebServiceConfig | undefined>;
}

@@ -35,0 +36,0 @@ type Bnrtc2DataHandler = (data: Bnrtc2Data) => void;

{
"name": "@bfchain/bnrtc2-client-typings",
"version": "2.0.7",
"version": "2.0.8",
"main": "./build/index.js",

@@ -8,3 +8,3 @@ "types": "./build/index.d.ts",

"dependencies": {
"@bfchain/bnrtc2-buffer-typings": "^2.0.7",
"@bfchain/bnrtc2-buffer-typings": "^2.0.8",
"@bfcs/util-evt": "^0.0.1-alpha.2"

@@ -11,0 +11,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc