@tracktor/shared-module 1.0.8 → 1.0.10

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 CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v1.0.8
4
- - **[fix]** : fix and improvement
3
+ ## v1.0.10
4
+ - **[fix]** : useResponseError dependency removed
@@ -1,4 +1,4 @@
1
- import { c as o } from "./main-DWJHWlv8.js";
1
+ import { c as o } from "./main-Kjk_MFFV.js";
2
2
  var a = { exports: {} };
3
3
  (function(t, _) {
4
4
  (function(r, e) {
@@ -1,4 +1,4 @@
1
- import { c as m } from "./main-DWJHWlv8.js";
1
+ import { c as m } from "./main-Kjk_MFFV.js";
2
2
  import o from "dayjs";
3
3
  var i = { exports: {} };
4
4
  (function(n, s) {
@@ -11,17 +11,10 @@ export interface ResponseError {
11
11
  }[];
12
12
  };
13
13
  }
14
- export interface useResponseErrorParams {
15
- /**
16
- * Translation key returned for the unknown error
17
- */
18
- unknownErrorTranslationKey?: string;
19
- }
20
14
  /**
21
15
  * This hook is used to print error messages from the API
22
- * @param params
23
16
  */
24
- export declare const useResponseError: <T = ResponseError>(params?: useResponseErrorParams) => {
17
+ export declare const useResponseError: <T = ResponseError>() => {
25
18
  getErrorCode: (error?: any) => string;
26
19
  printError: (error?: any) => string;
27
20
  };