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", 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,