webpeerjs 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/esm/webpeerjs.js +333 -43035
- package/dist/umd/webpeerjs.js +16352 -13273
- package/package.json +3 -6
- package/src/config.js +4 -254
- package/src/peer.js +64 -0
- package/src/utils.js +15 -9
- package/src/webpeerjs.js +85 -31
- package/src/config.d.ts +0 -22
- package/src/package.json +0 -1
- package/src/utils.d.ts +0 -8
- /package/{src → dist/esm}/webpeerjs.d.ts +0 -0
package/src/config.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const CONFIG_PREFIX: "webpeerjs";
|
|
2
|
-
export const CONFIG_BLOCKSTORE_PATH: string;
|
|
3
|
-
export const CONFIG_DATASTORE_PATH: string;
|
|
4
|
-
export const CONFIG_DBSTORE_PATH: string;
|
|
5
|
-
export const CONFIG_MAX_CONNECTIONS: 50;
|
|
6
|
-
export const CONFIG_MIN_CONNECTIONS: 0;
|
|
7
|
-
export const CONFIG_DISCOVER_RELAYS: 2;
|
|
8
|
-
export const CONFIG_PEER_DISCOVERY_UNIVERSAL_CONNECTIVITY: "universal-connectivity-browser-peer-discovery";
|
|
9
|
-
export const CONFIG_PUBSUB_PEER_DISCOVERY: string[];
|
|
10
|
-
export const CONFIG_PUPSUB_TOPIC: string;
|
|
11
|
-
export const CONFIG_DELEGATED_API: "https://delegated-ipfs.dev";
|
|
12
|
-
export const CONFIG_DNS_RESOLVER: "https://dns.google/resolve";
|
|
13
|
-
export const CONFIG_KNOWN_BOOTSTRAP_DNS: "_dnsaddr.bootstrap.libp2p.io";
|
|
14
|
-
export const CONFIG_JOIN_ROOM_VERSION: 1;
|
|
15
|
-
export const CONFIG_KNOWN_BOOTSTRAP_PEERS_ADDRS: {
|
|
16
|
-
Peers: {
|
|
17
|
-
Addrs: string[];
|
|
18
|
-
ID: string;
|
|
19
|
-
Schema: string;
|
|
20
|
-
}[];
|
|
21
|
-
}[];
|
|
22
|
-
export const CONFIG_KNOWN_BOOTSTRAP_PEER_IDS: string[];
|
package/src/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type": "module"}
|
package/src/utils.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export function uint8ArrayToString(uint8Array: any): string;
|
|
2
|
-
export function uint8ArrayFromString(string: any): Uint8Array;
|
|
3
|
-
export function first(farr: any): Promise<any>;
|
|
4
|
-
export function msgIdFnStrictNoSign(msg: any): Promise<Uint8Array>;
|
|
5
|
-
export function metrics(data: any): boolean | undefined;
|
|
6
|
-
export function mkErr(msg: any): Error;
|
|
7
|
-
import { Key } from 'interface-datastore';
|
|
8
|
-
export { PBPeer, Key };
|
|
File without changes
|