Compare commits

..

4 Commits

4 changed files with 35 additions and 28 deletions

View File

@ -1,3 +1,5 @@
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-rpc-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-rpc-client/compare/v0.0.1...v0.0.2-develop.1) (2023-07-05) ## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/kernel-rpc-client/compare/v0.0.1...v0.0.2-develop.1) (2023-07-05)

44
npm-shrinkwrap.json generated
View File

@ -1,15 +1,15 @@
{ {
"name": "@lumeweb/kernel-rpc-client", "name": "@lumeweb/kernel-rpc-client",
"version": "0.0.2-develop.1", "version": "0.0.2-develop.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-rpc-client", "name": "@lumeweb/kernel-rpc-client",
"version": "0.0.2-develop.1", "version": "0.0.2-develop.2",
"dependencies": { "dependencies": {
"@lumeweb/interface-relay": "^0.0.2-develop.1", "@lumeweb/interface-relay": "^0.0.2-develop.3",
"@lumeweb/libkernel": "^0.1.0-develop.14", "@lumeweb/libkernel": "^0.1.0-develop.15",
"@lumeweb/rpc-client": "^0.0.2-develop.4" "@lumeweb/rpc-client": "^0.0.2-develop.4"
}, },
"devDependencies": { "devDependencies": {
@ -1662,19 +1662,19 @@
} }
}, },
"node_modules/@lumeweb/interface-relay": { "node_modules/@lumeweb/interface-relay": {
"version": "0.0.2-develop.1", "version": "0.0.2-develop.3",
"resolved": "https://registry.npmjs.org/@lumeweb/interface-relay/-/interface-relay-0.0.2-develop.1.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/interface-relay/-/interface-relay-0.0.2-develop.3.tgz",
"integrity": "sha512-mlsOW4Wg6t4NhZJEWT+fr9gyswY7c6MAAz6/VpHE+5WnuvoFAwezw1JrnOYp8iFpmgtm7QbX2w3hHVOdvwMMhw==", "integrity": "sha512-whA528oFHlOmw7sUIHvyLP45d6HpNQTjKWl4bGvh8lDx1/Qv8SxXbJFo3UutkJIOtu68bYva0fPvBaOmKO0mnA==",
"dependencies": { "dependencies": {
"@lumeweb/relay-cfg": "0.1.9" "@lumeweb/relay-cfg": "0.1.9"
} }
}, },
"node_modules/@lumeweb/libkernel": { "node_modules/@lumeweb/libkernel": {
"version": "0.1.0-develop.14", "version": "0.1.0-develop.15",
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.14.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.15.tgz",
"integrity": "sha512-qp1g28lyO2Kt/0DtHAY/BX3ESmxTB9TNuZ+8wTKDjEbLM+hW0aCPdZFV+L3xXpd5fickcWMAAwuezvcAK5WD7Q==", "integrity": "sha512-nyMGYJPomCBlfXpUr65sWZxTKcH+gR9NehLAMeK5Hl01R4aTJcZqYbYA/rQVATGzrjJ6ZPoJojJovvk9fh/I1w==",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.21", "@lumeweb/libweb": "0.2.0-develop.22",
"emittery": "^1.0.1" "emittery": "^1.0.1"
} }
}, },
@ -1690,9 +1690,9 @@
} }
}, },
"node_modules/@lumeweb/libportal": { "node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.11", "version": "0.2.0-develop.12",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.11.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.12.tgz",
"integrity": "sha512-+/45DTu03KMbCkwv4vtKv6snD+r9EZPx4+RuInXyu39QZ6D7pcDosUqzCc5eY5AxzjztIMdVtV9w7qtvK5Oovw==", "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",
@ -1724,12 +1724,12 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.21", "version": "0.2.0-develop.22",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.21.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.22.tgz",
"integrity": "sha512-YJLSGPq1TdRzjX1/e+65PJQ5Kzizk+ADskEMesCdONJR5vctP5pRdc16Cpl1bAETsPX2wpBtWCmbI2Rt3mna3A==", "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.11", "@lumeweb/libportal": "^0.2.0-develop.12",
"@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",
"@noble/hashes": "^1.3.1" "@noble/hashes": "^1.3.1"
@ -1779,6 +1779,14 @@
"json-stringify-deterministic": "^1.0.8" "json-stringify-deterministic": "^1.0.8"
} }
}, },
"node_modules/@lumeweb/rpc-client/node_modules/@lumeweb/interface-relay": {
"version": "0.0.2-develop.1",
"resolved": "https://registry.npmjs.org/@lumeweb/interface-relay/-/interface-relay-0.0.2-develop.1.tgz",
"integrity": "sha512-mlsOW4Wg6t4NhZJEWT+fr9gyswY7c6MAAz6/VpHE+5WnuvoFAwezw1JrnOYp8iFpmgtm7QbX2w3hHVOdvwMMhw==",
"dependencies": {
"@lumeweb/relay-cfg": "0.1.9"
}
},
"node_modules/@nicolo-ribaudo/semver-v6": { "node_modules/@nicolo-ribaudo/semver-v6": {
"version": "6.3.3", "version": "6.3.3",
"resolved": "https://registry.npmjs.org/@nicolo-ribaudo/semver-v6/-/semver-v6-6.3.3.tgz", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/semver-v6/-/semver-v6-6.3.3.tgz",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel-rpc-client", "name": "@lumeweb/kernel-rpc-client",
"version": "0.0.2-develop.1", "version": "0.0.2-develop.2",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {
@ -18,8 +18,8 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"@lumeweb/interface-relay": "^0.0.2-develop.1", "@lumeweb/interface-relay": "^0.0.2-develop.3",
"@lumeweb/libkernel": "^0.1.0-develop.14", "@lumeweb/libkernel": "^0.1.0-develop.15",
"@lumeweb/rpc-client": "^0.0.2-develop.4" "@lumeweb/rpc-client": "^0.0.2-develop.4"
}, },
"files": [ "files": [

View File

@ -8,7 +8,7 @@ import { RpcQueryOptions } from "@lumeweb/rpc-client";
import { Buffer } from "buffer"; import { Buffer } from "buffer";
import { Client, factory } from "@lumeweb/libkernel/module"; import { Client, factory } from "@lumeweb/libkernel/module";
const RPC_MODULE = "fAAKlPuoD2FgKq27nhNILSmf7nTYmI9mMmOfTujwXma-1g"; const MODULE = "zduP1ZfjVbyTrNuJ6aCsRVSNkd4G26BEdZ9RpThBjcmfKfM2pG2YWLVubD-1g";
export class RpcNetwork extends Client { export class RpcNetwork extends Client {
private _def: boolean; private _def: boolean;
@ -29,7 +29,7 @@ export class RpcNetwork extends Client {
this._networkId = 1; this._networkId = 1;
} else { } else {
Promise.resolve() Promise.resolve()
.then(() => this.callModuleReturn(RPC_MODULE, "createNetwork")) .then(() => this.callModuleReturn(MODULE, "createNetwork"))
.then((ret: ErrTuple) => (this._networkId = ret[0])); .then((ret: ErrTuple) => (this._networkId = ret[0]));
} }
@ -131,8 +131,5 @@ export class SimpleRpcQuery extends RpcQueryBase {
} }
} }
export const createClient = factory<RpcNetwork>(RpcNetwork, RPC_MODULE); export const createClient = factory<RpcNetwork>(RpcNetwork, MODULE);
const createSimpleRpcQuery = factory<SimpleRpcQuery>( const createSimpleRpcQuery = factory<SimpleRpcQuery>(SimpleRpcQuery, MODULE);
SimpleRpcQuery,
RPC_MODULE,
);