@exodus/errors 1.2.0 → 1.3.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/CHANGELOG.md +6 -0
- package/lib/safe-error.d.ts +3 -3
- package/lib/safe-error.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/errors@1.2.0...@exodus/errors@1.3.0) (2025-02-17)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- feat: whitelist TimeoutError (#11443)
|
|
11
|
+
|
|
6
12
|
## [1.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/errors@1.1.1...@exodus/errors@1.2.0) (2025-02-12)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/lib/safe-error.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Frame } from './types.js';
|
|
2
2
|
type ReadonlySetValues<S> = S extends ReadonlySet<infer T> ? T : never;
|
|
3
|
-
declare const SAFE_NAMES_SET: ReadonlySet<"Error" | "AssertionError" | "TypeError" | "RangeError" | "UnknownError" | "SafeErrorFailedToParse">;
|
|
3
|
+
declare const SAFE_NAMES_SET: ReadonlySet<"Error" | "AssertionError" | "TypeError" | "RangeError" | "UnknownError" | "SafeErrorFailedToParse" | "TimeoutError">;
|
|
4
4
|
declare const SAFE_HINTS_SET: ReadonlySet<"broadcastTx" | "otherErr:broadcastTx" | "retry:broadcastTx" | "getNftArguments" | "ethCall" | "ethCall:executionReverted" | "failed to parse error">;
|
|
5
5
|
type SafeName = ReadonlySetValues<typeof SAFE_NAMES_SET>;
|
|
6
6
|
type SafeHint = ReadonlySetValues<typeof SAFE_HINTS_SET>;
|
|
@@ -33,7 +33,7 @@ export declare class SafeError {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
static from<T extends UnknownError>(err: T): SafeError;
|
|
36
|
-
get name(): "Error" | "AssertionError" | "TypeError" | "RangeError" | "UnknownError" | "SafeErrorFailedToParse";
|
|
36
|
+
get name(): "Error" | "AssertionError" | "TypeError" | "RangeError" | "UnknownError" | "SafeErrorFailedToParse" | "TimeoutError";
|
|
37
37
|
get code(): SafeCode | undefined;
|
|
38
38
|
get hint(): "broadcastTx" | "otherErr:broadcastTx" | "retry:broadcastTx" | "getNftArguments" | "ethCall" | "ethCall:executionReverted" | "failed to parse error" | undefined;
|
|
39
39
|
get stackFrames(): {
|
|
@@ -50,7 +50,7 @@ export declare class SafeError {
|
|
|
50
50
|
get timestamp(): number;
|
|
51
51
|
toJSON(): {
|
|
52
52
|
__proto__: null;
|
|
53
|
-
name: "Error" | "AssertionError" | "TypeError" | "RangeError" | "UnknownError" | "SafeErrorFailedToParse";
|
|
53
|
+
name: "Error" | "AssertionError" | "TypeError" | "RangeError" | "UnknownError" | "SafeErrorFailedToParse" | "TimeoutError";
|
|
54
54
|
code: SafeCode | undefined;
|
|
55
55
|
hint: "broadcastTx" | "otherErr:broadcastTx" | "retry:broadcastTx" | "getNftArguments" | "ethCall" | "ethCall:executionReverted" | "failed to parse error" | undefined;
|
|
56
56
|
stackFrames: {
|
package/lib/safe-error.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/errors",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "Utilities for error handling in client code, such as sanitization",
|
|
6
6
|
"author": "Exodus Movement, Inc.",
|
|
7
7
|
"repository": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "114da97a6c05a44949b90563201467852e48f069"
|
|
48
48
|
}
|