From 5d007b99d9a55d7cdf9c1b7cd9d4fdde66433945 Mon Sep 17 00:00:00 2001 From: Nazarii-4chain Date: Tue, 11 Jun 2024 10:42:35 +0300 Subject: [PATCH 1/2] feat(SPV-869): changed global to globalThis --- src/httpclient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpclient.ts b/src/httpclient.ts index c4debfc4..183eebde 100644 --- a/src/httpclient.ts +++ b/src/httpclient.ts @@ -60,7 +60,7 @@ export class HttpClient { headers[AuthHeader] = this.xPubString; } - const res = await global.fetch(this.prepareUrl(path), { + const res = await globalThis.fetch(this.prepareUrl(path), { method, headers, body: json, From b9a2f892852877290f70809fa568865a93e0a4fe Mon Sep 17 00:00:00 2001 From: Nazarii-4chain Date: Tue, 11 Jun 2024 15:20:52 +0300 Subject: [PATCH 2/2] feat(SPV-869): bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 35f809b0..51b46020 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bsv/spv-wallet-js-client", - "version": "1.0.0-beta.7", + "version": "1.0.0-beta.8", "description": "TypeScript library for connecting to a SPV Wallet server", "repository": { "type": "git",