@leofcoin/peernet 1.1.33 → 1.1.35
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/exports/browser/{client-4d80940e.js → client-c3673dc8.js} +2 -2
- package/exports/browser/{index-4464b87e.js → index-f2f8db5e.js} +1 -1
- package/exports/browser/{messages-27279443.js → messages-fc7c059d.js} +1 -1
- package/exports/browser/{peernet-d2274ccd.js → peernet-2d11823c.js} +4 -4
- package/exports/browser/peernet.js +1 -1
- package/exports/peernet.js +1 -1
- package/package.json +1 -1
- package/src/peernet.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-
|
|
1
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-2d11823c.js';
|
|
2
2
|
import './value-157ab062.js';
|
|
3
3
|
|
|
4
4
|
function commonjsRequire(path) {
|
|
@@ -41044,7 +41044,7 @@ class P2PTClient extends P2PT {
|
|
|
41044
41044
|
let promises = Object.entries(peers).map(async ([id, peer]) => {
|
|
41045
41045
|
const hasPeer = this.#discovered[id];
|
|
41046
41046
|
if (!hasPeer) this.#discovered[id] = await new P2PTPeer(peer, this);
|
|
41047
|
-
if (this.#discovered[id].connected) pubsub.publish('peer:discovered', this.#discovered[id]);
|
|
41047
|
+
if (!hasPeer && this.#discovered[id].connected) pubsub.publish('peer:discovered', this.#discovered[id]);
|
|
41048
41048
|
});
|
|
41049
41049
|
promises = await Promise.allSettled(promises);
|
|
41050
41050
|
pubsub.publish('star:connected', tracker);
|
|
@@ -20183,7 +20183,7 @@ class Identity {
|
|
|
20183
20183
|
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
20184
20184
|
}
|
|
20185
20185
|
else {
|
|
20186
|
-
const importee = await import(/* webpackChunkName: "generate-account" */ './index-
|
|
20186
|
+
const importee = await import(/* webpackChunkName: "generate-account" */ './index-f2f8db5e.js');
|
|
20187
20187
|
const { identity, accounts } = await importee.default(password, this.network);
|
|
20188
20188
|
await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
|
|
20189
20189
|
await globalThis.walletStore.put('version', String(1));
|
|
@@ -20224,7 +20224,7 @@ class Identity {
|
|
|
20224
20224
|
globalThis.LeofcoinStorage = LeofcoinStorage;
|
|
20225
20225
|
globalThis.leofcoin = globalThis.leofcoin || {};
|
|
20226
20226
|
globalThis.pubsub = globalThis.pubsub || new LittlePubSub();
|
|
20227
|
-
globalThis.globalSub = globalThis.globalSub || new LittlePubSub(
|
|
20227
|
+
globalThis.globalSub = globalThis.globalSub || new LittlePubSub();
|
|
20228
20228
|
/**
|
|
20229
20229
|
* @access public
|
|
20230
20230
|
* @example
|
|
@@ -20354,7 +20354,7 @@ class Peernet {
|
|
|
20354
20354
|
this.root = options.root;
|
|
20355
20355
|
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
|
|
20356
20356
|
// FolderMessageResponse
|
|
20357
|
-
} = await import(/* webpackChunkName: "messages" */ './messages-
|
|
20357
|
+
} = await import(/* webpackChunkName: "messages" */ './messages-fc7c059d.js');
|
|
20358
20358
|
/**
|
|
20359
20359
|
* proto Object containing protos
|
|
20360
20360
|
* @type {Object}
|
|
@@ -20433,7 +20433,7 @@ class Peernet {
|
|
|
20433
20433
|
if (this.#starting || this.#started)
|
|
20434
20434
|
return;
|
|
20435
20435
|
this.#starting = true;
|
|
20436
|
-
const importee = await import('./client-
|
|
20436
|
+
const importee = await import('./client-c3673dc8.js');
|
|
20437
20437
|
/**
|
|
20438
20438
|
* @access public
|
|
20439
20439
|
* @type {PeernetClient}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as default } from './peernet-
|
|
1
|
+
export { P as default } from './peernet-2d11823c.js';
|
|
2
2
|
import './value-157ab062.js';
|
package/exports/peernet.js
CHANGED
|
@@ -382,7 +382,7 @@ class Identity {
|
|
|
382
382
|
globalThis.LeofcoinStorage = LeofcoinStorage;
|
|
383
383
|
globalThis.leofcoin = globalThis.leofcoin || {};
|
|
384
384
|
globalThis.pubsub = globalThis.pubsub || new PubSub();
|
|
385
|
-
globalThis.globalSub = globalThis.globalSub || new PubSub(
|
|
385
|
+
globalThis.globalSub = globalThis.globalSub || new PubSub();
|
|
386
386
|
/**
|
|
387
387
|
* @access public
|
|
388
388
|
* @example
|
package/package.json
CHANGED
package/src/peernet.ts
CHANGED
|
@@ -15,7 +15,7 @@ globalThis.LeofcoinStorage = LeofcoinStorage
|
|
|
15
15
|
|
|
16
16
|
globalThis.leofcoin = globalThis.leofcoin || {}
|
|
17
17
|
globalThis.pubsub = globalThis.pubsub || new PubSub()
|
|
18
|
-
globalThis.globalSub = globalThis.globalSub || new PubSub(
|
|
18
|
+
globalThis.globalSub = globalThis.globalSub || new PubSub()
|
|
19
19
|
/**
|
|
20
20
|
* @access public
|
|
21
21
|
* @example
|