@reown/appkit-utils 1.2.1 → 1.3.1
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.
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/ErrorUtil.js +16 -5
- package/dist/esm/src/ErrorUtil.js.map +1 -1
- package/dist/esm/src/LoggerUtil.js +2 -2
- package/dist/esm/src/LoggerUtil.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/ErrorUtil.d.ts +13 -2
- package/dist/types/src/LoggerUtil.d.ts +1 -1
- package/package.json +5 -5
package/dist/esm/package.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export const ErrorUtil = {
|
|
2
2
|
UniversalProviderErrors: {
|
|
3
|
-
UNAUTHORIZED_DOMAIN_NOT_ALLOWED:
|
|
3
|
+
UNAUTHORIZED_DOMAIN_NOT_ALLOWED: {
|
|
4
|
+
message: 'Unauthorized: origin not allowed',
|
|
5
|
+
alertErrorKey: 'INVALID_APP_CONFIGURATION'
|
|
6
|
+
},
|
|
7
|
+
JWT_VALIDATION_ERROR: {
|
|
8
|
+
message: 'JWT validation error: JWT Token is not yet valid',
|
|
9
|
+
alertErrorKey: 'JWT_TOKEN_NOT_VALID'
|
|
10
|
+
}
|
|
4
11
|
},
|
|
5
12
|
ALERT_ERRORS: {
|
|
6
13
|
SWITCH_NETWORK_NOT_FOUND: {
|
|
@@ -9,15 +16,19 @@ export const ErrorUtil = {
|
|
|
9
16
|
},
|
|
10
17
|
INVALID_APP_CONFIGURATION: {
|
|
11
18
|
shortMessage: 'Invalid App Configuration',
|
|
12
|
-
longMessage: () => `Origin ${isSafe() ? window.origin : 'unknown'} not found on Allowlist - update configuration`
|
|
19
|
+
longMessage: () => `Origin ${isSafe() ? window.origin : 'unknown'} not found on Allowlist - update configuration on cloud.reown.com`
|
|
13
20
|
},
|
|
14
|
-
|
|
21
|
+
SOCIALS_TIMEOUT: {
|
|
15
22
|
shortMessage: 'Invalid App Configuration',
|
|
16
|
-
longMessage: () =>
|
|
23
|
+
longMessage: () => 'There was an issue loading the embedded wallet. Please verify that your domain is allowed at cloud.reown.com'
|
|
24
|
+
},
|
|
25
|
+
JWT_TOKEN_NOT_VALID: {
|
|
26
|
+
shortMessage: 'Session Expired',
|
|
27
|
+
longMessage: 'Invalid session found on UniversalProvider - please check your time settings and connect again'
|
|
17
28
|
},
|
|
18
29
|
PROJECT_ID_NOT_CONFIGURED: {
|
|
19
30
|
shortMessage: 'Project ID Not Configured',
|
|
20
|
-
longMessage: 'Project ID Not Configured - update configuration'
|
|
31
|
+
longMessage: 'Project ID Not Configured - update configuration on cloud.reown.com'
|
|
21
32
|
}
|
|
22
33
|
}
|
|
23
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorUtil.js","sourceRoot":"","sources":["../../../src/ErrorUtil.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,uBAAuB,EAAE;QACvB,+BAA+B,EAAE,kCAAkC;
|
|
1
|
+
{"version":3,"file":"ErrorUtil.js","sourceRoot":"","sources":["../../../src/ErrorUtil.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,uBAAuB,EAAE;QACvB,+BAA+B,EAAE;YAC/B,OAAO,EAAE,kCAAkC;YAC3C,aAAa,EAAE,2BAA2B;SAC3C;QACD,oBAAoB,EAAE;YACpB,OAAO,EAAE,kDAAkD;YAC3D,aAAa,EAAE,qBAAqB;SACrC;KACF;IACD,YAAY,EAAE;QACZ,wBAAwB,EAAE;YACxB,YAAY,EAAE,mBAAmB;YACjC,WAAW,EACT,kGAAkG;SACrG;QACD,yBAAyB,EAAE;YACzB,YAAY,EAAE,2BAA2B;YACzC,WAAW,EAAE,GAAG,EAAE,CAChB,UACE,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAC7B,mEAAmE;SACtE;QACD,eAAe,EAAE;YACf,YAAY,EAAE,2BAA2B;YACzC,WAAW,EAAE,GAAG,EAAE,CAChB,8GAA8G;SACjH;QACD,mBAAmB,EAAE;YACnB,YAAY,EAAE,iBAAiB;YAC/B,WAAW,EACT,gGAAgG;SACnG;QACD,yBAAyB,EAAE;YACzB,YAAY,EAAE,2BAA2B;YACzC,WAAW,EAAE,qEAAqE;SACnF;KACF;CACF,CAAA;AAED,SAAS,MAAM;IACb,OAAO,OAAO,MAAM,KAAK,WAAW,CAAA;AACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerUtil.js","sourceRoot":"","sources":["../../../src/LoggerUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"LoggerUtil.js","sourceRoot":"","sources":["../../../src/LoggerUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,YAAY,CAAC,OAAoD,EAAE,KAAK,GAAG,OAAO;QAChF,MAAM,aAAa,GAAG,uBAAuB,CAAC;YAC5C,KAAK;SACN,CAAC,CAAA;QAEF,MAAM,EAAE,MAAM,EAAE,GAAG,sBAAsB,CAAC;YACxC,IAAI,EAAE,aAAa;SACpB,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE;YACpC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACvB,IAAI,GAAG,YAAY,KAAK,EAAE,CAAC;oBACzB,OAAO,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;oBAErB,OAAM;gBACR,CAAC;YACH,CAAC;YAED,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAA;QAC7B,CAAC,CAAA;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA"}
|