Compare commits

..

No commits in common. "v0.0.2-develop.12" and "v0.0.2-develop.11" have entirely different histories.

4 changed files with 29 additions and 25 deletions

View File

@ -1,5 +1,3 @@
## [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.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.10](https://git.lumeweb.com/LumeWeb/kernel-handshake-client/compare/v0.0.2-develop.9...v0.0.2-develop.10) (2023-07-23)

33
npm-shrinkwrap.json generated
View File

@ -1,14 +1,14 @@
{ {
"name": "@lumeweb/kernel-handshake-client", "name": "@lumeweb/kernel-handshake-client",
"version": "0.0.2-develop.12", "version": "0.0.2-develop.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-handshake-client", "name": "@lumeweb/kernel-handshake-client",
"version": "0.0.2-develop.12", "version": "0.0.2-develop.11",
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.27" "@lumeweb/libkernel": "^0.1.0-develop.16"
}, },
"devDependencies": { "devDependencies": {
"@lumeweb/node-library-preset": "^0.2.7", "@lumeweb/node-library-preset": "^0.2.7",
@ -1660,13 +1660,12 @@
} }
}, },
"node_modules/@lumeweb/libkernel": { "node_modules/@lumeweb/libkernel": {
"version": "0.1.0-develop.27", "version": "0.1.0-develop.16",
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.27.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.16.tgz",
"integrity": "sha512-XkO16wzr2k1j9CrraVrL5vm5ysY+wJGwfJf9/PAknpLGko8j8Z/TbO5h/Q43iNjYjLlwBL2cGngX8orCZBWVDA==", "integrity": "sha512-wYAgWl/FW8QgMfd9byuvd/DZSIouhGHhOXBay12Koqwf/nxXjYysxagQp9c4WWS2ZDAsUx9jK9bKPlT4t6sSlw==",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.27", "@lumeweb/libweb": "0.2.0-develop.22",
"emittery": "^1.0.1", "emittery": "^1.0.1"
"p-defer": "^4.0.0"
} }
}, },
"node_modules/@lumeweb/libkernel/node_modules/emittery": { "node_modules/@lumeweb/libkernel/node_modules/emittery": {
@ -1681,9 +1680,9 @@
} }
}, },
"node_modules/@lumeweb/libportal": { "node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.16", "version": "0.2.0-develop.12",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.16.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.12.tgz",
"integrity": "sha512-wyzza/ttvU6I1gIs4tnYSkcT6s7MIBnUdJSNAbe6k6NsQ1w4bhBVJhEKbBru/lAEASO/PAhHGBwaOCv20rZZfA==", "integrity": "sha512-FKdMzeOvi8viXwFbKLeD7c4SadLDaz/ZvSLaAumuyXiJCKk0gVM0aPO8mTkibDtJG5JfeFHef0jI9aOSMYWfXw==",
"dependencies": { "dependencies": {
"@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git", "@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
@ -1715,13 +1714,13 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.27", "version": "0.2.0-develop.22",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.27.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.22.tgz",
"integrity": "sha512-obS4a6mcHJNoWXy5fCDuGAIVMee0ivK8q/q0semqoS3v0PS7t7sUmRX5ajyCwGbACXYqEdq3vU7RwzxhUkuNGg==", "integrity": "sha512-HKh0csOCC82vXqc0Keszymt4Mnu/xgD9GaBjarLclNkCK4mxxBmOuU9OmuOkANndQjl2dhMnmYJHT0bmseBj9Q==",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "^0.2.0-develop.16", "@lumeweb/libportal": "^0.2.0-develop.12",
"@lumeweb/node-library-preset": "0.2.7", "@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1" "@noble/hashes": "^1.3.1"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel-handshake-client", "name": "@lumeweb/kernel-handshake-client",
"version": "0.0.2-develop.12", "version": "0.0.2-develop.11",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {
@ -18,7 +18,7 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.27" "@lumeweb/libkernel": "^0.1.0-develop.16"
}, },
"files": [ "files": [
"lib" "lib"

View File

@ -1,7 +1,6 @@
import { factory, NetworkClient } from "@lumeweb/libkernel/module"; import { Client, factory } from "@lumeweb/libkernel/module";
export const MODULE = export const MODULE = "zduS4q1t6q5tLtANmRaUuAJNDqTggfwtV9hhK6wMRg1v891z5ts7iyobnw";
"zduS4q1t6q5tLtANmRaUuAJNDqTggfwtV9hhK6wMRg1v891z5ts7iyobnw";
export interface Response { export interface Response {
id?: number; id?: number;
@ -9,10 +8,18 @@ export interface Response {
result: any; 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> { public async query(method: string, params: any): Promise<Response> {
return this.callModuleReturn("query", { method, params }); return this.callModuleReturn("query", { method, params });
} }
public async register(){
return this.callModuleReturn("register");
}
} }
export const createClient = factory<HandshakeClient>(HandshakeClient, MODULE); export const createClient = factory<HandshakeClient>(HandshakeClient, MODULE);