@0xsequence/provider 2.2.6 → 2.2.8

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.
@@ -1365,7 +1365,7 @@ function overrideLogs(side) {
1365
1365
  }
1366
1366
  }
1367
1367
  function stringify(things) {
1368
- return things.map(a => typeof a === 'object' ? a instanceof Error ? a.message : JSON.stringify(a) : String(a)).join(' ');
1368
+ return things.map(a => typeof a === 'object' ? a instanceof Error ? a.message : JSON.stringify(a, utils.bigintReplacer) : String(a)).join(' ');
1369
1369
  }
1370
1370
 
1371
1371
  let registeredUnrealMessageProvider;
@@ -1365,7 +1365,7 @@ function overrideLogs(side) {
1365
1365
  }
1366
1366
  }
1367
1367
  function stringify(things) {
1368
- return things.map(a => typeof a === 'object' ? a instanceof Error ? a.message : JSON.stringify(a) : String(a)).join(' ');
1368
+ return things.map(a => typeof a === 'object' ? a instanceof Error ? a.message : JSON.stringify(a, utils.bigintReplacer) : String(a)).join(' ');
1369
1369
  }
1370
1370
 
1371
1371
  let registeredUnrealMessageProvider;
@@ -2,7 +2,7 @@ import { walletContracts } from '@0xsequence/abi';
2
2
  import { commons, VERSION } from '@0xsequence/core';
3
3
  import { ethers } from 'ethers';
4
4
  import { EventEmitter2 } from 'eventemitter2';
5
- import { logger, encodeMessageDigest, encodeTypedDataDigest, sanitizeNumberString, sanitizeHost, sanitizeAlphanumeric, base64EncodeObject, bigintReplacer, base64DecodeObject, bigintReviver, toHexString } from '@0xsequence/utils';
5
+ import { logger, encodeMessageDigest, encodeTypedDataDigest, sanitizeNumberString, sanitizeHost, sanitizeAlphanumeric, bigintReplacer, base64EncodeObject, base64DecodeObject, bigintReviver, toHexString } from '@0xsequence/utils';
6
6
  import { findSupportedNetwork, ChainId, findNetworkConfig, allNetworks, JsonRpcProvider, loggingProviderMiddleware, exceptionProviderMiddleware, CachedProvider } from '@0xsequence/network';
7
7
  import { signAuthorization } from '@0xsequence/auth';
8
8
  import { Databeat, isBrowser } from '@databeat/tracker';
@@ -1361,7 +1361,7 @@ function overrideLogs(side) {
1361
1361
  }
1362
1362
  }
1363
1363
  function stringify(things) {
1364
- return things.map(a => typeof a === 'object' ? a instanceof Error ? a.message : JSON.stringify(a) : String(a)).join(' ');
1364
+ return things.map(a => typeof a === 'object' ? a instanceof Error ? a.message : JSON.stringify(a, bigintReplacer) : String(a)).join(' ');
1365
1365
  }
1366
1366
 
1367
1367
  let registeredUnrealMessageProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/provider",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "provider sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
6
6
  "source": "src/index.ts",
@@ -15,15 +15,15 @@
15
15
  "@databeat/tracker": "^0.9.3",
16
16
  "eventemitter2": "^6.4.5",
17
17
  "webextension-polyfill": "^0.10.0",
18
- "@0xsequence/abi": "2.2.6",
19
- "@0xsequence/account": "2.2.6",
20
- "@0xsequence/auth": "2.2.6",
21
- "@0xsequence/core": "2.2.6",
22
- "@0xsequence/migration": "2.2.6",
23
- "@0xsequence/network": "2.2.6",
24
- "@0xsequence/relayer": "2.2.6",
25
- "@0xsequence/wallet": "2.2.6",
26
- "@0xsequence/utils": "2.2.6"
18
+ "@0xsequence/auth": "2.2.8",
19
+ "@0xsequence/relayer": "2.2.8",
20
+ "@0xsequence/utils": "2.2.8",
21
+ "@0xsequence/wallet": "2.2.8",
22
+ "@0xsequence/migration": "2.2.8",
23
+ "@0xsequence/abi": "2.2.8",
24
+ "@0xsequence/network": "2.2.8",
25
+ "@0xsequence/account": "2.2.8",
26
+ "@0xsequence/core": "2.2.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/webextension-polyfill": "^0.10.0",
@@ -1,3 +1,5 @@
1
+ import { bigintReplacer } from '@0xsequence/utils'
2
+
1
3
  interface UnrealInjectedWindow {
2
4
  ue?: {
3
5
  sequencewallettransport?: {
@@ -30,5 +32,7 @@ export function overrideLogs(side: 'dapp' | 'wallet') {
30
32
  }
31
33
 
32
34
  function stringify(things: unknown[]): string {
33
- return things.map(a => (typeof a === 'object' ? (a instanceof Error ? a.message : JSON.stringify(a)) : String(a))).join(' ')
35
+ return things
36
+ .map(a => (typeof a === 'object' ? (a instanceof Error ? a.message : JSON.stringify(a, bigintReplacer)) : String(a)))
37
+ .join(' ')
34
38
  }