Compare commits
No commits in common. "develop" and "master" have entirely different histories.
|
@ -1,13 +0,0 @@
|
|||
name: Build/Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- develop-*
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
|
||||
secrets: inherit
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"preset": [
|
||||
"@lumeweb/node-library-preset"
|
||||
]
|
||||
}
|
70
CHANGELOG.md
70
CHANGELOG.md
|
@ -1,70 +0,0 @@
|
|||
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-10-12)
|
||||
|
||||
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-handshake-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-handshake-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-handshake-client/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-09-03)
|
||||
|
||||
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-09-02)
|
||||
|
||||
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-08-04)
|
||||
|
||||
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-08-03)
|
||||
|
||||
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-08-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* queryDns needs to be dnsQuery ([1558d45](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/commit/1558d458cc193242ccfb96df0443c67fc950adb4))
|
||||
|
||||
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.19...v0.1.0-develop.1) (2023-08-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add queryDns method ([0ef0d1c](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/commit/0ef0d1cb8e5ade43d62203a1bba776f16d111e68))
|
||||
|
||||
## [0.0.2-develop.19](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.18...v0.0.2-develop.19) (2023-08-02)
|
||||
|
||||
## [0.0.2-develop.18](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.17...v0.0.2-develop.18) (2023-07-31)
|
||||
|
||||
## [0.0.2-develop.17](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.16...v0.0.2-develop.17) (2023-07-29)
|
||||
|
||||
## [0.0.2-develop.16](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.15...v0.0.2-develop.16) (2023-07-29)
|
||||
|
||||
## [0.0.2-develop.15](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.14...v0.0.2-develop.15) (2023-07-29)
|
||||
|
||||
## [0.0.2-develop.14](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.13...v0.0.2-develop.14) (2023-07-24)
|
||||
|
||||
## [0.0.2-develop.13](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.12...v0.0.2-develop.13) (2023-07-23)
|
||||
|
||||
## [0.0.2-develop.12](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.11...v0.0.2-develop.12) (2023-07-23)
|
||||
|
||||
## [0.0.2-develop.11](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.10...v0.0.2-develop.11) (2023-07-23)
|
||||
|
||||
## [0.0.2-develop.10](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.9...v0.0.2-develop.10) (2023-07-23)
|
||||
|
||||
## [0.0.2-develop.9](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.8...v0.0.2-develop.9) (2023-07-22)
|
||||
|
||||
## [0.0.2-develop.8](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.7...v0.0.2-develop.8) (2023-07-21)
|
||||
|
||||
## [0.0.2-develop.7](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.6...v0.0.2-develop.7) (2023-07-19)
|
||||
|
||||
## [0.0.2-develop.6](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.5...v0.0.2-develop.6) (2023-07-19)
|
||||
|
||||
## [0.0.2-develop.5](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.4...v0.0.2-develop.5) (2023-07-19)
|
||||
|
||||
## [0.0.2-develop.4](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.3...v0.0.2-develop.4) (2023-07-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix package.json main ([8477c2b](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/commit/8477c2bef03a50a91d4bb0c87aae5cafe9ab1c7b))
|
||||
|
||||
## [0.0.2-develop.3](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.2...v0.0.2-develop.3) (2023-07-14)
|
||||
|
||||
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-08)
|
||||
|
||||
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.1...v0.0.2-develop.1) (2023-07-05)
|
|
@ -0,0 +1,12 @@
|
|||
import { Client } from "@lumeweb/libkernel-universal";
|
||||
export interface Response {
|
||||
id?: number;
|
||||
error?: string;
|
||||
result: any;
|
||||
}
|
||||
export declare class HandshakeClient extends Client {
|
||||
ready(): Promise<void>;
|
||||
query(method: string, params: any): Promise<Response>;
|
||||
}
|
||||
export declare const createClient: (...args: any) => HandshakeClient;
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAI/D,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,CAAC;CACb;AAED,qBAAa,eAAgB,SAAQ,MAAM;IAC5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC;CAGnE;AAED,eAAO,MAAM,YAAY,mCAAoD,CAAC"}
|
|
@ -0,0 +1,11 @@
|
|||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||
const MODULE = "AABCDWpcbyCkTWy5ZP6qZWZ5eiFe--CRJSMKxRYLE4usfQ";
|
||||
export class HandshakeClient extends Client {
|
||||
async ready() {
|
||||
return this.callModuleReturn("ready");
|
||||
}
|
||||
async query(method, params) {
|
||||
return this.callModuleReturn("query", { method, params });
|
||||
}
|
||||
}
|
||||
export const createClient = factory(HandshakeClient, MODULE);
|
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
|
@ -1,29 +1,19 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-handshake-client",
|
||||
"version": "0.1.0-develop.9",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "gitea@git.lumeweb.com:LumeWeb/kernel-handshake-client.git"
|
||||
"main": "dist/index.js",
|
||||
"dependencies": {
|
||||
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
|
||||
"@noble/hashes": "^1.2.0",
|
||||
"@siaweb/libweb": "git+https://git.lumeweb.com/LumeWeb/libsiaweb.git",
|
||||
"backoff.js": "^1.0.4",
|
||||
"eventemitter3": "^5.0.0"
|
||||
},
|
||||
"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.39"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
"@types/node": "^18.13.0",
|
||||
"prettier": "^2.8.4",
|
||||
"pretty": "^2.0.0",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
}
|
||||
|
|
13
src/index.ts
13
src/index.ts
|
@ -1,6 +1,6 @@
|
|||
import { factory, NetworkClient } from "@lumeweb/libkernel/module";
|
||||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||
|
||||
export const MODULE = "zrjGvTrdxGEsNZiHBQisebuEDYzHPkuq9L8GBRB5AZ2iwQf";
|
||||
const MODULE = "AABCDWpcbyCkTWy5ZP6qZWZ5eiFe--CRJSMKxRYLE4usfQ";
|
||||
|
||||
export interface Response {
|
||||
id?: number;
|
||||
|
@ -8,13 +8,14 @@ export interface Response {
|
|||
result: any;
|
||||
}
|
||||
|
||||
export class HandshakeClient extends NetworkClient {
|
||||
export class HandshakeClient extends Client {
|
||||
public async ready(): Promise<void> {
|
||||
return this.callModuleReturn("ready");
|
||||
}
|
||||
|
||||
public async query(method: string, params: any): Promise<Response> {
|
||||
return this.callModuleReturn("query", { method, params });
|
||||
}
|
||||
public async dnsQuery(fqdn: string, type: string): Promise<Response> {
|
||||
return this.callModuleReturn("dnsQuery", { fqdn, type });
|
||||
}
|
||||
}
|
||||
|
||||
export const createClient = factory<HandshakeClient>(HandshakeClient, MODULE);
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"module": "esnext",
|
||||
"target": "esnext",
|
||||
"esModuleInterop": true,
|
||||
"sourceMap": false,
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"typeRoots": [
|
||||
"node_modules/@types",
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"declarationMap": true,
|
||||
"declarationDir": "dist",
|
||||
"emitDeclarationOnly": false,
|
||||
"allowJs": true
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue