@candlerip/shared 0.0.70 → 0.0.72

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.
@@ -18,7 +18,7 @@ export const CustomErrorWorker = (props) => {
18
18
  _error = composeCustomErrorFunc(message);
19
19
  };
20
20
  const composeCustomError = (message, info) => composeCustomErrorFunc(message, info ?? _error?.info);
21
- const getCustomError = () => (_error ? { error: _error } : undefined);
21
+ const getCustomError = () => (_error ? { customError: _error } : undefined);
22
22
  const resetCustomError = () => {
23
23
  _error = undefined;
24
24
  };
@@ -14,6 +14,6 @@ export type AddCustomErrorInfo = (info: CustomErrorInfo) => void;
14
14
  export type AddCustomErrorMessage = (message: CustomErrorMessage) => void;
15
15
  export type ComposeCustomError = (message: CustomErrorMessage, info?: CustomErrorInfo) => CustomError;
16
16
  export type GetCustomError = () => {
17
- error: CustomError;
17
+ customError: CustomError;
18
18
  } | undefined;
19
19
  export type ResetCustomError = () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "=22.19.0"