@reown/appkit-common-react-native 0.0.0-fix-fetch-error-improvements-20241114125438 → 0.0.0-fix-ethers-type-error-20241219132823

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.
@@ -11,7 +11,6 @@ var _exportNames = {
11
11
  NetworkUtil: true,
12
12
  NumberUtil: true,
13
13
  StringUtil: true,
14
- LoggerUtil: true,
15
14
  ErrorUtil: true,
16
15
  erc20ABI: true
17
16
  };
@@ -39,12 +38,6 @@ Object.defineProperty(exports, "ErrorUtil", {
39
38
  return _ErrorUtil.ErrorUtil;
40
39
  }
41
40
  });
42
- Object.defineProperty(exports, "LoggerUtil", {
43
- enumerable: true,
44
- get: function () {
45
- return _LoggerUtil.LoggerUtil;
46
- }
47
- });
48
41
  Object.defineProperty(exports, "NamesUtil", {
49
42
  enumerable: true,
50
43
  get: function () {
@@ -82,7 +75,6 @@ var _NamesUtil = require("./utils/NamesUtil");
82
75
  var _NetworkUtil = require("./utils/NetworkUtil");
83
76
  var _NumberUtil = require("./utils/NumberUtil");
84
77
  var _StringUtil = require("./utils/StringUtil");
85
- var _LoggerUtil = require("./utils/LoggerUtil");
86
78
  var _ErrorUtil = require("./utils/ErrorUtil");
87
79
  var _erc = require("./contracts/erc20");
88
80
  var _TypeUtil = require("./utils/TypeUtil");
@@ -1 +1 @@
1
- {"version":3,"names":["_ConstantsUtil","require","_ContractUtil","_DateUtil","_NamesUtil","_NetworkUtil","_NumberUtil","_StringUtil","_LoggerUtil","_ErrorUtil","_erc","_TypeUtil","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,IAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AAAAW,MAAA,CAAAC,IAAA,CAAAF,SAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,SAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,SAAA,CAAAI,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":["_ConstantsUtil","require","_ContractUtil","_DateUtil","_NamesUtil","_NetworkUtil","_NumberUtil","_StringUtil","_ErrorUtil","_erc","_TypeUtil","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,IAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAAAU,MAAA,CAAAC,IAAA,CAAAF,SAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,SAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,SAAA,CAAAI,GAAA;IAAA;EAAA;AAAA"}
@@ -22,11 +22,11 @@ const ErrorUtil = exports.ErrorUtil = {
22
22
  ALERT_ERRORS: {
23
23
  INVALID_APP_CONFIGURATION: {
24
24
  shortMessage: 'Invalid App Configuration',
25
- longMessage: `Bundle ID not found on Allowlist - Please verify that your bundle ID is allowed at cloud.reown.com`
25
+ longMessage: `Bundle ID not found on Allowlist - Please verify that your bundle ID is allowed at https://cloud.reown.com`
26
26
  },
27
27
  SOCIALS_TIMEOUT: {
28
28
  shortMessage: 'Invalid App Configuration',
29
- longMessage: 'There was an issue loading the embedded wallet. Please verify that your bundle ID is allowed at cloud.reown.com'
29
+ longMessage: 'There was an issue loading the embedded wallet. Please verify that your bundle ID is allowed at https://cloud.reown.com'
30
30
  },
31
31
  JWT_TOKEN_NOT_VALID: {
32
32
  shortMessage: 'Session Expired',
@@ -5,7 +5,6 @@ export { NamesUtil } from './utils/NamesUtil';
5
5
  export { NetworkUtil } from './utils/NetworkUtil';
6
6
  export { NumberUtil } from './utils/NumberUtil';
7
7
  export { StringUtil } from './utils/StringUtil';
8
- export { LoggerUtil } from './utils/LoggerUtil';
9
8
  export { ErrorUtil } from './utils/ErrorUtil';
10
9
  export { erc20ABI } from './contracts/erc20';
11
10
  export * from './utils/TypeUtil';
@@ -1 +1 @@
1
- {"version":3,"names":["ConstantsUtil","ContractUtil","DateUtil","NamesUtil","NetworkUtil","NumberUtil","StringUtil","LoggerUtil","ErrorUtil","erc20ABI"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,WAAW,QAAQ,qBAAqB;AACjD,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,cAAc,kBAAkB"}
1
+ {"version":3,"names":["ConstantsUtil","ContractUtil","DateUtil","NamesUtil","NetworkUtil","NumberUtil","StringUtil","ErrorUtil","erc20ABI"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,WAAW,QAAQ,qBAAqB;AACjD,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,cAAc,kBAAkB"}
@@ -16,11 +16,11 @@ export const ErrorUtil = {
16
16
  ALERT_ERRORS: {
17
17
  INVALID_APP_CONFIGURATION: {
18
18
  shortMessage: 'Invalid App Configuration',
19
- longMessage: `Bundle ID not found on Allowlist - Please verify that your bundle ID is allowed at cloud.reown.com`
19
+ longMessage: `Bundle ID not found on Allowlist - Please verify that your bundle ID is allowed at https://cloud.reown.com`
20
20
  },
21
21
  SOCIALS_TIMEOUT: {
22
22
  shortMessage: 'Invalid App Configuration',
23
- longMessage: 'There was an issue loading the embedded wallet. Please verify that your bundle ID is allowed at cloud.reown.com'
23
+ longMessage: 'There was an issue loading the embedded wallet. Please verify that your bundle ID is allowed at https://cloud.reown.com'
24
24
  },
25
25
  JWT_TOKEN_NOT_VALID: {
26
26
  shortMessage: 'Session Expired',
@@ -5,7 +5,6 @@ export { NamesUtil } from './utils/NamesUtil';
5
5
  export { NetworkUtil } from './utils/NetworkUtil';
6
6
  export { NumberUtil } from './utils/NumberUtil';
7
7
  export { StringUtil } from './utils/StringUtil';
8
- export { LoggerUtil } from './utils/LoggerUtil';
9
8
  export { ErrorUtil } from './utils/ErrorUtil';
10
9
  export { erc20ABI } from './contracts/erc20';
11
10
  export * from './utils/TypeUtil';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-common-react-native",
3
- "version": "0.0.0-fix-fetch-error-improvements-20241114125438",
3
+ "version": "0.0.0-fix-ethers-type-error-20241219132823",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "types": "lib/typescript/index.d.ts",
6
6
  "module": "lib/module/index.js",
package/src/index.ts CHANGED
@@ -5,7 +5,6 @@ export { NamesUtil } from './utils/NamesUtil';
5
5
  export { NetworkUtil } from './utils/NetworkUtil';
6
6
  export { NumberUtil } from './utils/NumberUtil';
7
7
  export { StringUtil } from './utils/StringUtil';
8
- export { LoggerUtil } from './utils/LoggerUtil';
9
8
  export { ErrorUtil } from './utils/ErrorUtil';
10
9
  export { erc20ABI } from './contracts/erc20';
11
10
  export * from './utils/TypeUtil';
@@ -16,12 +16,12 @@ export const ErrorUtil = {
16
16
  ALERT_ERRORS: {
17
17
  INVALID_APP_CONFIGURATION: {
18
18
  shortMessage: 'Invalid App Configuration',
19
- longMessage: `Bundle ID not found on Allowlist - Please verify that your bundle ID is allowed at cloud.reown.com`
19
+ longMessage: `Bundle ID not found on Allowlist - Please verify that your bundle ID is allowed at https://cloud.reown.com`
20
20
  },
21
21
  SOCIALS_TIMEOUT: {
22
22
  shortMessage: 'Invalid App Configuration',
23
23
  longMessage:
24
- 'There was an issue loading the embedded wallet. Please verify that your bundle ID is allowed at cloud.reown.com'
24
+ 'There was an issue loading the embedded wallet. Please verify that your bundle ID is allowed at https://cloud.reown.com'
25
25
  },
26
26
  JWT_TOKEN_NOT_VALID: {
27
27
  shortMessage: 'Session Expired',
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.LoggerUtil = void 0;
7
- var _logger = require("@walletconnect/logger");
8
- const LoggerUtil = exports.LoggerUtil = {
9
- createLogger(onError, level = 'error') {
10
- const loggerOptions = (0, _logger.getDefaultLoggerOptions)({
11
- level
12
- });
13
- const {
14
- logger
15
- } = (0, _logger.generatePlatformLogger)({
16
- opts: loggerOptions
17
- });
18
- logger.error = (...args) => {
19
- for (const arg of args) {
20
- if (arg instanceof Error) {
21
- onError(arg, ...args);
22
- return;
23
- }
24
- }
25
- onError(undefined, ...args);
26
- };
27
- return logger;
28
- }
29
- };
30
- //# sourceMappingURL=LoggerUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_logger","require","LoggerUtil","exports","createLogger","onError","level","loggerOptions","getDefaultLoggerOptions","logger","generatePlatformLogger","opts","error","args","arg","Error","undefined"],"sourceRoot":"../../../src","sources":["utils/LoggerUtil.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,YAAYA,CAACC,OAAoD,EAAEC,KAAK,GAAG,OAAO,EAAE;IAClF,MAAMC,aAAa,GAAG,IAAAC,+BAAuB,EAAC;MAC5CF;IACF,CAAC,CAAC;IAEF,MAAM;MAAEG;IAAO,CAAC,GAAG,IAAAC,8BAAsB,EAAC;MACxCC,IAAI,EAAEJ;IACR,CAAC,CAAC;IAEFE,MAAM,CAACG,KAAK,GAAG,CAAC,GAAGC,IAAe,KAAK;MACrC,KAAK,MAAMC,GAAG,IAAID,IAAI,EAAE;QACtB,IAAIC,GAAG,YAAYC,KAAK,EAAE;UACxBV,OAAO,CAACS,GAAG,EAAE,GAAGD,IAAI,CAAC;UAErB;QACF;MACF;MAEAR,OAAO,CAACW,SAAS,EAAE,GAAGH,IAAI,CAAC;IAC7B,CAAC;IAED,OAAOJ,MAAM;EACf;AACF,CAAC"}
@@ -1,24 +0,0 @@
1
- import { generatePlatformLogger, getDefaultLoggerOptions } from '@walletconnect/logger';
2
- export const LoggerUtil = {
3
- createLogger(onError, level = 'error') {
4
- const loggerOptions = getDefaultLoggerOptions({
5
- level
6
- });
7
- const {
8
- logger
9
- } = generatePlatformLogger({
10
- opts: loggerOptions
11
- });
12
- logger.error = (...args) => {
13
- for (const arg of args) {
14
- if (arg instanceof Error) {
15
- onError(arg, ...args);
16
- return;
17
- }
18
- }
19
- onError(undefined, ...args);
20
- };
21
- return logger;
22
- }
23
- };
24
- //# sourceMappingURL=LoggerUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["generatePlatformLogger","getDefaultLoggerOptions","LoggerUtil","createLogger","onError","level","loggerOptions","logger","opts","error","args","arg","Error","undefined"],"sourceRoot":"../../../src","sources":["utils/LoggerUtil.ts"],"mappings":"AAAA,SAASA,sBAAsB,EAAEC,uBAAuB,QAAQ,uBAAuB;AAEvF,OAAO,MAAMC,UAAU,GAAG;EACxBC,YAAYA,CAACC,OAAoD,EAAEC,KAAK,GAAG,OAAO,EAAE;IAClF,MAAMC,aAAa,GAAGL,uBAAuB,CAAC;MAC5CI;IACF,CAAC,CAAC;IAEF,MAAM;MAAEE;IAAO,CAAC,GAAGP,sBAAsB,CAAC;MACxCQ,IAAI,EAAEF;IACR,CAAC,CAAC;IAEFC,MAAM,CAACE,KAAK,GAAG,CAAC,GAAGC,IAAe,KAAK;MACrC,KAAK,MAAMC,GAAG,IAAID,IAAI,EAAE;QACtB,IAAIC,GAAG,YAAYC,KAAK,EAAE;UACxBR,OAAO,CAACO,GAAG,EAAE,GAAGD,IAAI,CAAC;UAErB;QACF;MACF;MAEAN,OAAO,CAACS,SAAS,EAAE,GAAGH,IAAI,CAAC;IAC7B,CAAC;IAED,OAAOH,MAAM;EACf;AACF,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const LoggerUtil: {
2
- createLogger(onError: (error?: Error, ...args: unknown[]) => void, level?: string): import("pino").Logger<any>;
3
- };
4
- //# sourceMappingURL=LoggerUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoggerUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/LoggerUtil.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;mCACU,KAAK,WAAW,OAAO,EAAE,KAAK,IAAI;CAuBlE,CAAC"}
@@ -1,27 +0,0 @@
1
- import { generatePlatformLogger, getDefaultLoggerOptions } from '@walletconnect/logger';
2
-
3
- export const LoggerUtil = {
4
- createLogger(onError: (error?: Error, ...args: unknown[]) => void, level = 'error') {
5
- const loggerOptions = getDefaultLoggerOptions({
6
- level
7
- });
8
-
9
- const { logger } = generatePlatformLogger({
10
- opts: loggerOptions
11
- });
12
-
13
- logger.error = (...args: unknown[]) => {
14
- for (const arg of args) {
15
- if (arg instanceof Error) {
16
- onError(arg, ...args);
17
-
18
- return;
19
- }
20
- }
21
-
22
- onError(undefined, ...args);
23
- };
24
-
25
- return logger;
26
- }
27
- };