Compare commits

..

6 Commits

Author SHA1 Message Date
semantic-release-bot b7b7d84a9e chore(release): 0.1.0-develop.8 [skip ci]
# [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](7d44208132))
* need to call swarm not peerDiscoveryRegistry ([27ba637](27ba637ac2))
* use message.data not message.data.data ([4a73a27](4a73a2779d))
2023-09-02 17:09:43 +00:00
Derrick Hammer 39497a6391
Merge remote-tracking branch 'origin/develop' into develop 2023-09-02 13:08:41 -04:00
Derrick Hammer 7d44208132
fix: missing return 2023-09-02 13:08:36 -04:00
Derrick Hammer 1c4da69806
dep: update module hashes 2023-09-02 13:08:24 -04:00
Derrick Hammer 4a73a2779d
fix: use message.data not message.data.data 2023-09-02 13:08:06 -04:00
Derrick Hammer 27ba637ac2
fix: need to call swarm not peerDiscoveryRegistry 2023-09-02 13:07:43 -04:00
6 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,12 @@
# [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.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",
"version": "0.1.0-develop.7",
"version": "0.1.0-develop.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/kernel",
"version": "0.1.0-develop.7",
"version": "0.1.0-develop.8",
"dependencies": {
"@lumeweb/libkernel": "0.1.0-develop.38"
},

View File

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

View File

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

View File

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

View File

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