@reown/appkit-common 1.8.16 → 1.8.17-05762b5280c09a1bf72bc5d7617df3119be653a4.0
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/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/utils/ErrorUtil.js +13 -2
- package/dist/esm/src/utils/ErrorUtil.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/src/utils/ErrorUtil.d.ts +7 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { ConstantsUtil } from './src/utils/ConstantsUtil.js';
|
|
|
10
10
|
export { Emitter } from './src/utils/EmitterUtil.js';
|
|
11
11
|
export { PresetsUtil } from './src/utils/PresetsUtil.js';
|
|
12
12
|
export { ParseUtil } from './src/utils/ParseUtil.js';
|
|
13
|
-
export { ErrorUtil, UserRejectedRequestError } from './src/utils/ErrorUtil.js';
|
|
13
|
+
export { ErrorUtil, UserRejectedRequestError, SendTransactionError } from './src/utils/ErrorUtil.js';
|
|
14
14
|
export { SafeLocalStorage, SafeLocalStorageKeys, isSafe, type SafeLocalStorageKey, getSafeConnectorIdKey } from './src/utils/SafeLocalStorage.js';
|
|
15
15
|
export { getW3mThemeVariables } from './src/utils/ThemeUtil.js';
|
|
16
16
|
export { isReownName } from './src/utils/NamesUtil.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ProviderRpcErrorCode = 4001 | 4100 | 4200 | 4900 | 4901 | 4902 | 5710 | 5002 | 5000;
|
|
1
|
+
export type ProviderRpcErrorCode = 4001 | 4100 | 4200 | 4900 | 4901 | 4902 | 5710 | 5002 | 5000 | 5001;
|
|
2
2
|
type RpcProviderError = {
|
|
3
3
|
message: string;
|
|
4
4
|
code: ProviderRpcErrorCode;
|
|
@@ -8,10 +8,12 @@ export declare const ErrorUtil: {
|
|
|
8
8
|
readonly USER_REJECTED_REQUEST: 4001;
|
|
9
9
|
readonly USER_REJECTED_METHODS: 5002;
|
|
10
10
|
readonly USER_REJECTED: 5000;
|
|
11
|
+
readonly SEND_TRANSACTION_ERROR: 5001;
|
|
11
12
|
};
|
|
12
13
|
PROVIDER_RPC_ERROR_NAME: {
|
|
13
14
|
PROVIDER_RPC: string;
|
|
14
15
|
USER_REJECTED_REQUEST: string;
|
|
16
|
+
SEND_TRANSACTION_ERROR: string;
|
|
15
17
|
};
|
|
16
18
|
isRpcProviderError(error: unknown): error is RpcProviderError;
|
|
17
19
|
isUserRejectedMessage(message: string): boolean;
|
|
@@ -26,4 +28,8 @@ export declare class UserRejectedRequestError extends ProviderRpcError {
|
|
|
26
28
|
name: string;
|
|
27
29
|
constructor(cause: unknown);
|
|
28
30
|
}
|
|
31
|
+
export declare class SendTransactionError extends ProviderRpcError {
|
|
32
|
+
name: string;
|
|
33
|
+
constructor(message: string);
|
|
34
|
+
}
|
|
29
35
|
export {};
|