Compare commits

...

34 Commits

Author SHA1 Message Date
semantic-release-bot fe26f681d8 chore(release): 0.1.0-develop.10 [skip ci]
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-10-09)

### Bug Fixes

* explicitly define subscribeToUpdates return type ([c7dcb27](c7dcb2786a))

### Features

* add subscribeToUpdates method ([dc51de2](dc51de20a7))
2023-10-09 03:43:54 +00:00
Derrick Hammer 0f3d57cda9
dep: update module hash 2023-10-08 23:42:33 -04:00
Derrick Hammer c7dcb2786a
fix: explicitly define subscribeToUpdates return type 2023-10-08 23:42:20 -04:00
Derrick Hammer e3eb1b35f9
dep: update libkernel 2023-10-08 23:40:21 -04:00
Derrick Hammer dc51de20a7
feat: add subscribeToUpdates method 2023-10-08 23:39:12 -04:00
semantic-release-bot 3564a0f7b9 chore(release): 0.1.0-develop.9 [skip ci]
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-09-09)
2023-09-09 17:33:15 +00:00
Derrick Hammer 24168f1516
Merge remote-tracking branch 'origin/develop' into develop 2023-09-09 13:32:21 -04:00
Derrick Hammer 34bbfbd113
dep: update module hash 2023-09-09 13:32:16 -04:00
semantic-release-bot 04631cc7b2 chore(release): 0.1.0-develop.8 [skip ci]
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-09-09)
2023-09-09 13:33:36 +00:00
Derrick Hammer faaf5a44f3
Merge remote-tracking branch 'origin/develop' into develop 2023-09-09 09:32:41 -04:00
Derrick Hammer 118727c6b5
dep: update module hash 2023-09-09 09:31:56 -04:00
semantic-release-bot 6b73fb77be chore(release): 0.1.0-develop.7 [skip ci]
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-03)
2023-09-03 05:06:56 +00:00
Derrick Hammer 02c5a5d44a
Merge remote-tracking branch 'origin/develop' into develop 2023-09-03 01:05:58 -04:00
Derrick Hammer adf5286fba
dep: update module hash 2023-09-03 01:05:53 -04:00
Derrick Hammer a2cfd3eea4
dep: update libkernel 2023-09-03 01:05:20 -04:00
semantic-release-bot d903f6ec5c chore(release): 0.1.0-develop.6 [skip ci]
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-09-02)
2023-09-02 17:33:48 +00:00
Derrick Hammer b8ad01c617
Merge remote-tracking branch 'origin/develop' into develop 2023-09-02 13:32:57 -04:00
Derrick Hammer a07715d033
dep: update libkernel 2023-09-02 13:32:53 -04:00
Derrick Hammer 9bd87e52a4
dep: update module hash 2023-09-02 13:32:03 -04:00
semantic-release-bot 89aa3a07e6 chore(release): 0.1.0-develop.5 [skip ci]
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-07-23)
2023-07-23 00:50:56 +00:00
Derrick Hammer 5a6cca8aa7
Merge remote-tracking branch 'origin/develop' into develop 2023-07-22 20:49:54 -04:00
Derrick Hammer 1882d5dd8f
dep: update module hash 2023-07-22 20:49:51 -04:00
semantic-release-bot 729d6a96f4 chore(release): 0.1.0-develop.4 [skip ci]
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-07-21)
2023-07-21 17:28:33 +00:00
Derrick Hammer 2a86ad6ab5
Merge remote-tracking branch 'origin/develop' into develop 2023-07-21 13:27:32 -04:00
Derrick Hammer 2eb1a1a6d0
dep: update module hash 2023-07-21 13:27:27 -04:00
semantic-release-bot 7792d71eed chore(release): 0.1.0-develop.3 [skip ci]
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-19)

### Features

* add getNetworksByType ([2ec79e3](2ec79e3242))
2023-07-19 17:22:35 +00:00
Derrick Hammer 2ec79e3242
feat: add getNetworksByType 2023-07-19 13:21:29 -04:00
Derrick Hammer 9da6535b58
dep: update module hash 2023-07-19 13:20:57 -04:00
semantic-release-bot 3080630daa chore(release): 0.1.0-develop.2 [skip ci]
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-19)
2023-07-19 16:11:55 +00:00
Derrick Hammer ee8ef79565
Merge remote-tracking branch 'origin/develop' into develop 2023-07-19 12:11:02 -04:00
Derrick Hammer bd3cfa3e7a
refactor: have registerNetwork just call the module directly and have the network modules call it 2023-07-19 12:10:49 -04:00
semantic-release-bot 5c4e146c72 chore(release): 0.1.0-develop.1 [skip ci]
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.0.1...v0.1.0-develop.1) (2023-07-19)

### Features

* initial version ([8dab108](8dab108187))
2023-07-19 15:38:05 +00:00
Derrick Hammer 8d98d36770
ci: setup 2023-07-19 11:36:05 -04:00
Derrick Hammer 8dab108187
feat: initial version 2023-07-19 11:35:52 -04:00
6 changed files with 18514 additions and 0 deletions

13
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Build/Publish
on:
push:
branches:
- master
- develop
- develop-*
jobs:
main:
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
secrets: inherit

5
.presetterrc.json Normal file
View File

@ -0,0 +1,5 @@
{
"preset": [
"@lumeweb/node-library-preset"
]
}

39
CHANGELOG.md Normal file
View File

@ -0,0 +1,39 @@
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-10-09)
### Bug Fixes
* explicitly define subscribeToUpdates return type ([c7dcb27](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/commit/c7dcb2786a32df094a39ac9614ab6c723af74585))
### Features
* add subscribeToUpdates method ([dc51de2](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/commit/dc51de20a7b6003085b97ff72d5a1c9e868210ba))
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-09-09)
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-09-09)
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-03)
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-09-02)
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-07-23)
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-07-21)
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-19)
### Features
* add getNetworksByType ([2ec79e3](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/commit/2ec79e3242f1fd580973c5d18dab2c2b19d1eece))
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-19)
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/compare/v0.0.1...v0.1.0-develop.1) (2023-07-19)
### Features
* initial version ([8dab108](https://git.lumeweb.com/LumeWeb/kernel-network-registry-client/commit/8dab108187930bc8077252f3fc10c94a5b1bac10))

18392
npm-shrinkwrap.json generated Normal file

File diff suppressed because it is too large Load Diff

29
package.json Normal file
View File

@ -0,0 +1,29 @@
{
"name": "@lumeweb/kernel-network-registry-client",
"version": "0.1.0-develop.10",
"type": "module",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "gitea@git.lumeweb.com:LumeWeb/kernel-network-registry-client.git"
},
"devDependencies": {
"@lumeweb/node-library-preset": "^0.2.7",
"presetter": "*"
},
"readme": "ERROR: No README data found!",
"scripts": {
"prepare": "presetter bootstrap",
"build": "run build",
"semantic-release": "semantic-release"
},
"dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.64"
},
"files": [
"lib"
],
"publishConfig": {
"access": "public"
}
}

36
src/index.ts Normal file
View File

@ -0,0 +1,36 @@
import { Client, factory } from "@lumeweb/libkernel/module";
import type { DataFn } from "@lumeweb/libkernel";
const MODULE = "zrjTCwTcK5Vco1h7cdUQKzs6yzeqm7vC5u5Lo9y1uhTyxnv";
export class NetworkRegistryClient extends Client {
public async registerType(name: string) {
return this.callModuleReturn("registerType", name);
}
public async getTypes() {
return this.callModuleReturn("getTypes");
}
public async getNetworkTypes(module: string) {
return this.callModuleReturn("getNetworkTypes", { module });
}
public async registerNetwork(types: string[]) {
return this.callModuleReturn("registerNetwork", { types });
}
public async getNetworksByType(type: string) {
return this.callModuleReturn("getNetworksByType", { type });
}
public subscribeToUpdates(cb: () => void): DataFn {
const [stop] = this.connectModule("subscribeToUpdates", undefined, cb);
return stop;
}
}
export const createClient = factory<NetworkRegistryClient>(
NetworkRegistryClient,
MODULE,
);