@leofcoin/peernet 1.1.63 → 1.1.64
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/{index-d76c4d54.js → index-20ad607b.js} +1 -1
- package/exports/browser/{messages-87375bf7.js → messages-29f5675b.js} +1 -1
- package/exports/browser/{peernet-5c083379.js → peernet-8bfe60c5.js} +3 -3
- package/exports/browser/peernet.js +1 -1
- package/exports/peernet.js +1 -1
- package/package.json +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -12450,7 +12450,7 @@ const BufferToUint8Array = (data) => {
|
|
|
12450
12450
|
|
|
12451
12451
|
const protoFor = (message) => {
|
|
12452
12452
|
const codec = new Codec(message);
|
|
12453
|
-
if (!codec.name) throw new Error(
|
|
12453
|
+
if (!codec.name) throw new Error(`proto not found ${message}`)
|
|
12454
12454
|
const Proto = globalThis.peernet.protos[codec.name];
|
|
12455
12455
|
if (!Proto) throw new Error(`No proto defined for ${codec.name}`)
|
|
12456
12456
|
return new Proto(message)
|
|
@@ -27083,7 +27083,7 @@ class Identity {
|
|
|
27083
27083
|
this.selectedAccount = new TextDecoder().decode(selected);
|
|
27084
27084
|
}
|
|
27085
27085
|
else {
|
|
27086
|
-
const importee = await import(/* webpackChunkName: "generate-account" */ './index-
|
|
27086
|
+
const importee = await import(/* webpackChunkName: "generate-account" */ './index-20ad607b.js');
|
|
27087
27087
|
const { identity, accounts } = await importee.default(password, this.network);
|
|
27088
27088
|
await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
|
|
27089
27089
|
await globalThis.walletStore.put('version', String(1));
|
|
@@ -27275,7 +27275,7 @@ class Peernet {
|
|
|
27275
27275
|
this.root = options.root;
|
|
27276
27276
|
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
|
|
27277
27277
|
// FolderMessageResponse
|
|
27278
|
-
} = await import(/* webpackChunkName: "messages" */ './messages-
|
|
27278
|
+
} = await import(/* webpackChunkName: "messages" */ './messages-29f5675b.js');
|
|
27279
27279
|
/**
|
|
27280
27280
|
* proto Object containing protos
|
|
27281
27281
|
* @type {Object}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as default } from './peernet-
|
|
1
|
+
export { P as default } from './peernet-8bfe60c5.js';
|
|
2
2
|
import './value-4e80eeeb.js';
|
package/exports/peernet.js
CHANGED
|
@@ -18,7 +18,7 @@ const BufferToUint8Array = (data) => {
|
|
|
18
18
|
|
|
19
19
|
const protoFor = (message) => {
|
|
20
20
|
const codec = new Codec(message);
|
|
21
|
-
if (!codec.name) throw new Error(
|
|
21
|
+
if (!codec.name) throw new Error(`proto not found ${message}`)
|
|
22
22
|
const Proto = globalThis.peernet.protos[codec.name];
|
|
23
23
|
if (!Proto) throw new Error(`No proto defined for ${codec.name}`)
|
|
24
24
|
return new Proto(message)
|
package/package.json
CHANGED
package/src/utils/utils.js
CHANGED
|
@@ -23,7 +23,7 @@ export const expected = (expected, actual) => {
|
|
|
23
23
|
|
|
24
24
|
export const protoFor = (message) => {
|
|
25
25
|
const codec = new Codec(message)
|
|
26
|
-
if (!codec.name) throw new Error(
|
|
26
|
+
if (!codec.name) throw new Error(`proto not found ${message}`)
|
|
27
27
|
const Proto = globalThis.peernet.protos[codec.name]
|
|
28
28
|
if (!Proto) throw new Error(`No proto defined for ${codec.name}`)
|
|
29
29
|
return new Proto(message)
|