Compare commits

..

No commits in common. "v0.1.0-develop.8" and "v0.1.0-develop.7" have entirely different histories.

6 changed files with 13 additions and 18 deletions

View File

@ -1,12 +1,3 @@
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-09-02)
### Bug Fixes
* missing return ([7d44208](https://git.lumeweb.com/LumeWeb/kernel/commit/7d442081322aad0bab186fa57476ab15fc07e30c))
* need to call swarm not peerDiscoveryRegistry ([27ba637](https://git.lumeweb.com/LumeWeb/kernel/commit/27ba637ac224bcac76635bc8659d76d0472f342d))
* use message.data not message.data.data ([4a73a27](https://git.lumeweb.com/LumeWeb/kernel/commit/4a73a2779d3a8020f06f0d8d75c386abf66e15b1))
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-02) # [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-02)
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-09-02) # [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-09-02)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0-develop.8", "version": "0.1.0-develop.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0-develop.8", "version": "0.1.0-develop.7",
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "0.1.0-develop.38" "@lumeweb/libkernel": "0.1.0-develop.38"
}, },

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0-develop.8", "version": "0.1.0-develop.7",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -21,7 +21,11 @@ export async function networkReady() {
return false; return false;
} }
} }
const resolvers = await internalModuleCall(CORE_MODULES.swarm, "getRelays");
const resolvers = await internalModuleCall(
CORE_MODULES.peerDiscoveryRegistry,
"getRelays",
);
return resolvers.length > 0; return resolvers.length > 0;
} }

View File

@ -729,7 +729,7 @@ export async function internalModuleCall(
callDefer.reject(message.err); callDefer.reject(message.err);
return; return;
} }
callDefer.resolve(message.data); callDefer.resolve(message.data.data);
}, },
); );

View File

@ -2,16 +2,16 @@ const DEFAULT_MODULE_REGISTRY = new Map<string, string>(
Object.entries({ Object.entries({
// swarm // swarm
z3o47ar8NBrnaEneBVzZD7QuMRMXjDtQDCpt4xP6mhsdw1cjnJ8mQKfNKGv3: z3o47ar8NBrnaEneBVzZD7QuMRMXjDtQDCpt4xP6mhsdw1cjnJ8mQKfNKGv3:
"zduTR1y921Erd52dYq1DKLpA9J6sw8g8KPfUdbkqmwdXDGKCjQKL4SHvDd", "zduKEY6Z4xJ4mraWy3hCbx1TmBxueCtHCFdnjjoiX7fGJdrZAcJHTyJmbu",
// peerDiscoveryRegistry // peerDiscoveryRegistry
z3o47aaLSspwrXzmu5mjuHPwaq3gRbyYQ3jL9RM1ammuHGB7uxSFBK2dRjqR: z3o47aaLSspwrXzmu5mjuHPwaq3gRbyYQ3jL9RM1ammuHGB7uxSFBK2dRjqR:
"zduJceGhVmwR6wf2xUhJp9juU6rabynbi8mFwmBcKEaP8nc1mXyrDyRMmy", "z3o47aaLSspwrXzmu5mjuHPwaq3gRbyYQ3jL9RM1ammuHGB7uxSFBK2dRjqR",
// ircPeerDiscovery // ircPeerDiscovery
z3o47admQjBj2QUrwHhvTB3nV1cBwQ5ZaKF7P5WELXeRyzzvBZr33QMJWTLs: z3o47admQjBj2QUrwHhvTB3nV1cBwQ5ZaKF7P5WELXeRyzzvBZr33QMJWTLs:
"zduLx8mxrSWBPpTby1n9GtvxmCu6DwK9bsu26AgxesJmeEcWrVAF4NX7QK", "zduLx8mxrSWBPpTby1n9GtvxmCu6DwK9bsu26AgxesJmeEcWrVAF4NX7QK",
// s5 // s5
z3o47hB2zLuvBMFaWa55SmbFQe3u97dWUG4fssXXTEcT4ZvnPkPaRF14b1EF: z3o47hB2zLuvBMFaWa55SmbFQe3u97dWUG4fssXXTEcT4ZvnPkPaRF14b1EF:
"zduTZ7NBNtGxQxbAaDNcp7d1xta7y2MXKnjvVA3m29ohwBeeLHL1GieTPd", "zduPehBQc2edPXDBsxo9CM6pTnS6bpDx1MBS92GH5wLAqMnErsVKhnobD1",
}), }),
); );
const REGISTRY_ITEM_ID = "registry"; const REGISTRY_ITEM_ID = "registry";
@ -28,7 +28,7 @@ export function getSavedRegistryEntry(pubkey: string) {
} }
if (DEFAULT_MODULE_REGISTRY.has(pubkey)) { if (DEFAULT_MODULE_REGISTRY.has(pubkey)) {
return DEFAULT_MODULE_REGISTRY.get(pubkey) as string; DEFAULT_MODULE_REGISTRY.get(pubkey) as string;
} }
return null; return null;