From e1b1bc2df4cfc0548528b7588de28499927abcfc Mon Sep 17 00:00:00 2001 From: Bartek Wrona Date: Mon, 1 Sep 2025 18:39:35 +0200 Subject: [PATCH 1/2] Updated wax dependency to adjust hb-auth to public interface changes. --- package.json | 2 +- pnpm-lock.yaml | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 3dd6472..d116ebd 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "typescript": "^5.4.5" }, "dependencies": { - "@hiveio/wax": "1.27.6-rc10-stable.250718075612", + "@hiveio/wax": "1.27.6-rc10-stable.250901172848", "comlink": "^4.4.1" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b1d685..4ac8cde 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@hiveio/wax': - specifier: 1.27.6-rc10-stable.250718075612 - version: 1.27.6-rc10-stable.250718075612 + specifier: 1.27.6-rc10-stable.250901172848 + version: 1.27.6-rc10-stable.250901172848 comlink: specifier: ^4.4.1 version: 4.4.1 @@ -877,8 +877,8 @@ packages: resolution: {integrity: sha1-0v2gSYFhN5MLQzBHIYikUyksu/k=, tarball: https://gitlab.syncad.com/api/v4/projects/198/packages/npm/@hiveio/beekeeper/-/@hiveio/beekeeper-1.27.11.tgz} engines: {node: ^20.11 || >= 21.2} - '@hiveio/wax@1.27.6-rc10-stable.250718075612': - resolution: {integrity: sha1-TYKUMQ158pF6HL+KoE1ze7dYQ/M=, tarball: https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-1.27.6-rc10-stable.250718075612.tgz} + '@hiveio/wax@1.27.6-rc10-stable.250901172848': + resolution: {integrity: sha1-WjDM3uVlzdeemHvc4ofnlPrQW3g=, tarball: https://gitlab.syncad.com/api/v4/projects/419/packages/npm/@hiveio/wax/-/@hiveio/wax-1.27.6-rc10-stable.250901172848.tgz} engines: {node: ^20.11 || >= 21.2} '@humanwhocodes/config-array@0.11.14': @@ -2075,9 +2075,6 @@ packages: lodash.startcase@4.4.0: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} - long@5.2.3: - resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==} - longest-streak@2.0.4: resolution: {integrity: sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==} @@ -3676,10 +3673,9 @@ snapshots: '@hiveio/beekeeper@1.27.11': {} - '@hiveio/wax@1.27.6-rc10-stable.250718075612': + '@hiveio/wax@1.27.6-rc10-stable.250901172848': dependencies: events: 3.3.0 - long: 5.2.3 '@humanwhocodes/config-array@0.11.14': dependencies: @@ -4997,8 +4993,6 @@ snapshots: lodash.startcase@4.4.0: {} - long@5.2.3: {} - longest-streak@2.0.4: {} lru-cache@5.1.1: -- GitLab From 1c55fc12eb82f363542f48e487e948064cfc9c09 Mon Sep 17 00:00:00 2001 From: Bartek Wrona Date: Mon, 1 Sep 2025 18:40:37 +0200 Subject: [PATCH 2/2] hb-auth code adjusted to wax interface changes --- src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index 53b61d3..30f3821 100644 --- a/src/client.ts +++ b/src/client.ts @@ -282,7 +282,7 @@ abstract class Client { strict, ); - txBuilder.sign(signature); + txBuilder.addSignature(signature); const authenticated = await this.authorize( username, @@ -330,7 +330,7 @@ abstract class Client { txBuilder.sigDigest, ); - txBuilder.sign(signature); + txBuilder.addSignature(signature); const authenticated = await this.authorize( username, txBuilder, -- GitLab