@dhedge/trading-widget 6.3.0 → 6.3.3
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/LICENSE +1 -1
- package/contract-error-log-CNIRNvc6.cjs +1 -0
- package/contract-error-log-CbE2J5kb.js +1016 -0
- package/core-kit/models/ondo-api-error.d.ts +5 -1
- package/core-kit/utils/contract-error-log.d.ts +1 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/index.cjs +1 -1
- package/index.js +2124 -2133
- package/package.json +1 -1
- package/utils.cjs +1 -1
- package/utils.js +34 -33
- package/dytm-D5O16WMt.js +0 -943
- package/dytm-wondvAJ2.cjs +0 -1
|
@@ -7,5 +7,9 @@ export declare class OndoApiError extends CustomError {
|
|
|
7
7
|
code?: string;
|
|
8
8
|
constructor({ message, code }: OndoApiErrorParams);
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes any Ondo request failure — HTTP error, network error or timeout —
|
|
12
|
+
* into an `OndoApiError`, preferring the API's own message over the fallback.
|
|
13
|
+
*/
|
|
14
|
+
export declare const throwOndoApiError: (cause: unknown, fallbackMessage: string) => Promise<never>;
|
|
11
15
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const logContractErrorOnce: (error?: Error | null) => void;
|