@candlerip/shared3 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/error/custom-error/domains/index.d.ts +6 -0
- package/src/error/custom-error/domains/index.js +1 -0
- package/src/error/custom-error/index.d.ts +2 -0
- package/src/error/custom-error/index.js +2 -0
- package/src/error/custom-error/utils/console-custom-error/index.d.ts +2 -0
- package/src/error/custom-error/utils/console-custom-error/index.js +12 -0
- package/src/error/custom-error/utils/console-custom-error/types.d.ts +2 -0
- package/src/error/custom-error/utils/console-custom-error/types.js +1 -0
- package/src/error/custom-error/utils/index.d.ts +1 -0
- package/src/error/custom-error/utils/index.js +1 -0
- package/src/error/index.d.ts +1 -0
- package/src/error/index.js +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export const consoleCustomError = (customError) => {
|
2
|
+
console.error('***ERROR***:', customError.message);
|
3
|
+
if (customError.err) {
|
4
|
+
console.error('err:', JSON.stringify(customError.err));
|
5
|
+
}
|
6
|
+
if (customError.info) {
|
7
|
+
console.error('info:', customError.info);
|
8
|
+
}
|
9
|
+
if (customError.props) {
|
10
|
+
console.error('props:', customError.props);
|
11
|
+
}
|
12
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './console-custom-error/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './console-custom-error/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './custom-error/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './custom-error/index.js';
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED