Compare commits
34 Commits
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | fe26f681d8 | |
Derrick Hammer | 0f3d57cda9 | |
Derrick Hammer | c7dcb2786a | |
Derrick Hammer | e3eb1b35f9 | |
Derrick Hammer | dc51de20a7 | |
semantic-release-bot | 3564a0f7b9 | |
Derrick Hammer | 24168f1516 | |
Derrick Hammer | 34bbfbd113 | |
semantic-release-bot | 04631cc7b2 | |
Derrick Hammer | faaf5a44f3 | |
Derrick Hammer | 118727c6b5 | |
semantic-release-bot | 6b73fb77be | |
Derrick Hammer | 02c5a5d44a | |
Derrick Hammer | adf5286fba | |
Derrick Hammer | a2cfd3eea4 | |
semantic-release-bot | d903f6ec5c | |
Derrick Hammer | b8ad01c617 | |
Derrick Hammer | a07715d033 | |
Derrick Hammer | 9bd87e52a4 | |
semantic-release-bot | 89aa3a07e6 | |
Derrick Hammer | 5a6cca8aa7 | |
Derrick Hammer | 1882d5dd8f | |
semantic-release-bot | 729d6a96f4 | |
Derrick Hammer | 2a86ad6ab5 | |
Derrick Hammer | 2eb1a1a6d0 | |
semantic-release-bot | 7792d71eed | |
Derrick Hammer | 2ec79e3242 | |
Derrick Hammer | 9da6535b58 | |
semantic-release-bot | 3080630daa | |
Derrick Hammer | ee8ef79565 | |
Derrick Hammer | bd3cfa3e7a | |
semantic-release-bot | 5c4e146c72 | |
Derrick Hammer | 8d98d36770 | |
Derrick Hammer | 8dab108187 |
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"preset": [
|
||||||
|
"@lumeweb/node-library-preset"
|
||||||
|
]
|
||||||
|
}
|
|
@ -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))
|
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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,
|
||||||
|
);
|
Loading…
Reference in New Issue