Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 17b6aa5cc8 chore(release): 0.1.0-develop.4 [skip ci]
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-network-registry/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-07-19)

### Bug Fixes

* inconsistent input use on handleGetNetworksByType ([c5dd605](c5dd605571))
2023-07-19 17:19:32 +00:00
Derrick Hammer 2a30fd69f0
Merge remote-tracking branch 'origin/develop' into develop 2023-07-19 13:18:28 -04:00
Derrick Hammer c5dd605571
fix: inconsistent input use on handleGetNetworksByType 2023-07-19 13:17:52 -04:00
4 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-network-registry/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-07-19)
### Bug Fixes
* inconsistent input use on handleGetNetworksByType ([c5dd605](https://git.lumeweb.com/LumeWeb/kernel-network-registry/commit/c5dd60557129586fc0c0afb1a0f2c93e28deebcf))
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-network-registry/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-19)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/kernel-network-registry",
"version": "0.1.0-develop.3",
"version": "0.1.0-develop.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/kernel-network-registry",
"version": "0.1.0-develop.3",
"version": "0.1.0-develop.4",
"dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.20"
},

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/kernel-network-registry",
"version": "0.1.0-develop.3",
"version": "0.1.0-develop.4",
"type": "module",
"readme": "ERROR: No README data found!",
"repository": {

View File

@ -63,7 +63,7 @@ function handleGetNetworksByType(aq: ActiveQuery) {
return;
}
if (!types.has(aq.callerInput)) {
if (!types.has(aq.callerInput.type)) {
aq.reject("type not registered");
return;
}
@ -71,7 +71,7 @@ function handleGetNetworksByType(aq: ActiveQuery) {
aq.respond(
[...networks.entries()]
.filter((item) => {
return item[1].has(aq.callerInput);
return item[1].has(aq.callerInput.type);
})
.map((item) => item[0]),
);