@sprucelabs/error 5.0.539 → 5.0.541
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorOptions, SpruceErrorOptions } from './error.options';
|
|
2
|
-
|
|
2
|
+
type MyInstanceType<T extends {
|
|
3
3
|
prototype: any;
|
|
4
4
|
}> = T['prototype'];
|
|
5
5
|
export default abstract class AbstractSpruceError<T extends ErrorOptions = SpruceErrorOptions> extends Error {
|
package/build/error.options.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface ErrorOptions {
|
|
|
3
3
|
friendlyMessage?: string;
|
|
4
4
|
originalError?: Error;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type SpruceErrorOptions = SpruceErrorUnknownError | SpruceErrorMissingParameters | SpruceErrorInvalidParameters;
|
|
7
7
|
export interface SpruceErrorUnknownError extends ErrorOptions {
|
|
8
8
|
/** * We aren't sure what happened */
|
|
9
9
|
code: 'UNKNOWN_ERROR';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorOptions, SpruceErrorOptions } from './error.options';
|
|
2
|
-
|
|
2
|
+
type MyInstanceType<T extends {
|
|
3
3
|
prototype: any;
|
|
4
4
|
}> = T['prototype'];
|
|
5
5
|
export default abstract class AbstractSpruceError<T extends ErrorOptions = SpruceErrorOptions> extends Error {
|
|
@@ -3,7 +3,7 @@ export interface ErrorOptions {
|
|
|
3
3
|
friendlyMessage?: string;
|
|
4
4
|
originalError?: Error;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type SpruceErrorOptions = SpruceErrorUnknownError | SpruceErrorMissingParameters | SpruceErrorInvalidParameters;
|
|
7
7
|
export interface SpruceErrorUnknownError extends ErrorOptions {
|
|
8
8
|
/** * We aren't sure what happened */
|
|
9
9
|
code: 'UNKNOWN_ERROR';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "5.0.
|
|
6
|
+
"version": "5.0.541",
|
|
7
7
|
"skill": {
|
|
8
8
|
"namespace": "spruce-error",
|
|
9
9
|
"upgradeIgnoreList": [
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@sprucelabs/esm-postbuild": "^2.0.22",
|
|
71
71
|
"@sprucelabs/jest-json-reporter": "^6.0.512",
|
|
72
72
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
73
|
-
"@sprucelabs/test": "^7.7.
|
|
73
|
+
"@sprucelabs/test": "^7.7.387",
|
|
74
74
|
"chokidar-cli": "^3.0.0",
|
|
75
75
|
"concurrently": "^7.5.0",
|
|
76
76
|
"eslint": "^8.27.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"jest-circus": "^29.3.1",
|
|
80
80
|
"prettier": "^2.7.1",
|
|
81
81
|
"tsc-watch": "^5.0.3",
|
|
82
|
-
"typescript": "^4.
|
|
82
|
+
"typescript": "^4.9.3"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {},
|
|
85
85
|
"dependencies": {},
|