Skip to content

Commit

Permalink
Merge pull request #997 from bitcoin-sv/SPV-869/GlobalThis
Browse files Browse the repository at this point in the history
feat(SPV-869): changed global to globalThis
  • Loading branch information
Nazarii-4chain authored Jun 11, 2024
2 parents dfb6a94 + b9a2f89 commit 163f3d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/httpclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 163f3d8

Please sign in to comment.