Compare commits

..

5 Commits

Author SHA1 Message Date
semantic-release-bot 449838ce83 chore(release): 0.1.0-develop.3 [skip ci]
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-08-21)

### Bug Fixes

* if we have data, set dummy header response, parse data to a uint8array and process as a chunk ([326d382](326d38275d))
* sdk patch needs to use options object ([9259e67](9259e6723c))
2023-08-21 00:11:01 +00:00
Derrick Hammer 37baedf27e
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	npm-shrinkwrap.json
2023-08-20 20:08:55 -04:00
Derrick Hammer 326d38275d
fix: if we have data, set dummy header response, parse data to a uint8array and process as a chunk 2023-08-20 20:08:31 -04:00
Derrick Hammer 3e28aa782a
ci: add missing scripts 2023-08-20 20:07:14 -04:00
Derrick Hammer 9259e6723c
fix: sdk patch needs to use options object 2023-08-20 20:06:53 -04:00
5 changed files with 22 additions and 7 deletions

View File

@ -1,3 +1,11 @@
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-08-21)
### Bug Fixes
* if we have data, set dummy header response, parse data to a uint8array and process as a chunk ([326d382](https://git.lumeweb.com/LumeWeb/kernel-lavanet/commit/326d38275da7a46534ac600bce5b7df6e6be7648))
* sdk patch needs to use options object ([9259e67](https://git.lumeweb.com/LumeWeb/kernel-lavanet/commit/9259e6723cfeec4ba1a130b6a594b72240c81fd9))
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-08-20) # [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-08-20)
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.0.1...v0.1.0-develop.1) (2023-08-20) # [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-lavanet/compare/v0.0.1...v0.1.0-develop.1) (2023-08-20)

5
npm-shrinkwrap.json generated
View File

@ -1,12 +1,13 @@
{ {
"name": "@lumeweb/kernel-lavanet", "name": "@lumeweb/kernel-lavanet",
"version": "0.1.0-develop.2", "version": "0.1.0-develop.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-lavanet", "name": "@lumeweb/kernel-lavanet",
"version": "0.1.0-develop.2", "version": "0.1.0-develop.3",
"hasInstallScript": true,
"dependencies": { "dependencies": {
"@lavanet/lava-sdk": "^0.21.1", "@lavanet/lava-sdk": "^0.21.1",
"@lumeweb/kernel-rpc-client": "^0.0.2-develop.13", "@lumeweb/kernel-rpc-client": "^0.0.2-develop.13",

View File

@ -1,7 +1,7 @@
{ {
"name": "@lumeweb/kernel-lavanet", "name": "@lumeweb/kernel-lavanet",
"type": "module", "type": "module",
"version": "0.1.0-develop.2", "version": "0.1.0-develop.3",
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"repository": { "repository": {
"type": "git", "type": "git",
@ -10,7 +10,8 @@
"scripts": { "scripts": {
"prepare": "presetter bootstrap", "prepare": "presetter bootstrap",
"build": "run build", "build": "run build",
"semantic-release": "semantic-release" "semantic-release": "semantic-release",
"postinstall": "patch-package"
}, },
"dependencies": { "dependencies": {
"@lavanet/lava-sdk": "^0.21.1", "@lavanet/lava-sdk": "^0.21.1",

View File

@ -1,12 +1,12 @@
diff --git a/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js b/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js diff --git a/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js b/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js
index 0c3063a..5e9cd0c 100644 index 0c3063a..b989837 100644
--- a/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js --- a/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js
+++ b/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js +++ b/node_modules/@lavanet/lava-sdk/bin/src/badge/fetchBadge.js
@@ -24,6 +24,7 @@ class BadgeManager { @@ -24,6 +24,7 @@ class BadgeManager {
this.badgeServerAddress = ""; this.badgeServerAddress = "";
this.projectId = ""; this.projectId = "";
this.active = true; this.active = true;
+ this.transport = transport; + this.transport = options?.transport;
if (!options) { if (!options) {
this.active = false; this.active = false;
return; return;

View File

@ -32,7 +32,12 @@ class HyperTransport implements grpc.Transport {
return; return;
} }
if (ret.data) {
this.options.onHeaders(new grpc.Metadata(), 200);
ret.data = new Uint8Array(Object.values(ret.data));
this.options.onChunk(ret.data); this.options.onChunk(ret.data);
}
this.options.onEnd(); this.options.onEnd();
} }