Compare commits
3 Commits
v0.0.1
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
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,6 @@
|
||||||
|
# [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.1",
|
||||||
|
"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.20"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"lib"
|
||||||
|
],
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { Client, factory } from "@lumeweb/libkernel/module";
|
||||||
|
|
||||||
|
const MODULE = "zduFYRFUur1hBiW1u18dqQsn2w7AiQhBmgd7PiXsX71AtAJHykhNXsUUpw";
|
||||||
|
|
||||||
|
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(module: string) {
|
||||||
|
const bag = this.getBound(module);
|
||||||
|
|
||||||
|
const ret = await bag.callModule("register");
|
||||||
|
this.handleError(ret);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const createClient = factory<NetworkRegistryClient>(
|
||||||
|
NetworkRegistryClient,
|
||||||
|
MODULE,
|
||||||
|
);
|
Loading…
Reference in New Issue