@0xsequence/relayer 1.10.10 → 1.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -968,7 +968,7 @@ const FAILED_STATUSES = [ETHTxnStatus.DROPPED, ETHTxnStatus.PARTIALLY_FAILED, ET
968
968
  function isRpcRelayerOptions(obj) {
969
969
  return obj.url !== undefined && typeof obj.url === 'string' && obj.provider !== undefined && ethers.ethers.providers.Provider.isProvider(obj.provider);
970
970
  }
971
- const fetch = typeof global === 'object' ? global.fetch : window.fetch;
971
+ const fetch = globalThis.fetch;
972
972
 
973
973
  // TODO: rename to SequenceRelayer
974
974
  class RpcRelayer {
@@ -968,7 +968,7 @@ const FAILED_STATUSES = [ETHTxnStatus.DROPPED, ETHTxnStatus.PARTIALLY_FAILED, ET
968
968
  function isRpcRelayerOptions(obj) {
969
969
  return obj.url !== undefined && typeof obj.url === 'string' && obj.provider !== undefined && ethers.ethers.providers.Provider.isProvider(obj.provider);
970
970
  }
971
- const fetch = typeof global === 'object' ? global.fetch : window.fetch;
971
+ const fetch = globalThis.fetch;
972
972
 
973
973
  // TODO: rename to SequenceRelayer
974
974
  class RpcRelayer {
@@ -964,7 +964,7 @@ const FAILED_STATUSES = [ETHTxnStatus.DROPPED, ETHTxnStatus.PARTIALLY_FAILED, ET
964
964
  function isRpcRelayerOptions(obj) {
965
965
  return obj.url !== undefined && typeof obj.url === 'string' && obj.provider !== undefined && ethers.providers.Provider.isProvider(obj.provider);
966
966
  }
967
- const fetch = typeof global === 'object' ? global.fetch : window.fetch;
967
+ const fetch = globalThis.fetch;
968
968
 
969
969
  // TODO: rename to SequenceRelayer
970
970
  class RpcRelayer {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/relayer",
3
- "version": "1.10.10",
3
+ "version": "1.10.12",
4
4
  "description": "relayer sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer",
6
6
  "source": "src/index.ts",
@@ -9,9 +9,9 @@
9
9
  "author": "Horizon Blockchain Games",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
- "@0xsequence/abi": "1.10.10",
13
- "@0xsequence/core": "1.10.10",
14
- "@0xsequence/utils": "1.10.10"
12
+ "@0xsequence/abi": "1.10.12",
13
+ "@0xsequence/core": "1.10.12",
14
+ "@0xsequence/utils": "1.10.12"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "ethers": ">=5.5 < 6"
@@ -19,8 +19,8 @@
19
19
  "devDependencies": {
20
20
  "@0xsequence/wallet-contracts": "^1.10.0",
21
21
  "ethers": "^5.7.2",
22
- "@0xsequence/signhub": "1.10.10",
23
- "@0xsequence/tests": "1.10.10"
22
+ "@0xsequence/signhub": "1.10.12",
23
+ "@0xsequence/tests": "1.10.12"
24
24
  },
25
25
  "files": [
26
26
  "src",
@@ -31,7 +31,7 @@ export function isRpcRelayerOptions(obj: any): obj is RpcRelayerOptions {
31
31
  )
32
32
  }
33
33
 
34
- const fetch = typeof global === 'object' ? global.fetch : window.fetch
34
+ const fetch = globalThis.fetch
35
35
 
36
36
  // TODO: rename to SequenceRelayer
37
37
  export class RpcRelayer implements Relayer {