@jakubmazanec/error 2.0.3 → 3.0.0-next.7a1e391
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/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/CustomError.ts"],"sourcesContent":["import {type UNKNOWN_ERROR} from '../constants.js';\n\n/**\n * Type representing custom error.\n */\nexport type CustomError<ErrorCode extends string> = Error & {\n /** String that is used to quickly determine the nature of the error and why it could have occurred. */\n code: ErrorCode | typeof UNKNOWN_ERROR;\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/CustomError.ts"],"sourcesContent":["import {type UNKNOWN_ERROR} from '../constants.js';\n\n/**\n * Type representing custom error.\n */\nexport type CustomError<ErrorCode extends string> = Error & {\n /** String that is used to quickly determine the nature of the error and why it could have occurred. */\n code: ErrorCode | typeof UNKNOWN_ERROR;\n};\n"],"names":[],"mappings":"AAEA;;CAEC,GACD,WAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/CustomErrorWithData.ts"],"sourcesContent":["import type {UNKNOWN_ERROR} from '../constants.js';\n\n/**\n * Type representing custom error that can have an arbitrary data attached.\n */\nexport type CustomErrorWithData<ErrorCode extends string, ErrorData> = Error & {\n /** String that is used to quickly determine the nature of the error and why it could have occurred. */\n code: ErrorCode | typeof UNKNOWN_ERROR;\n\n /** Data related to the error that can be used during the error handling process to gain more information or take an action. */\n data?: ErrorData;\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/CustomErrorWithData.ts"],"sourcesContent":["import type {UNKNOWN_ERROR} from '../constants.js';\n\n/**\n * Type representing custom error that can have an arbitrary data attached.\n */\nexport type CustomErrorWithData<ErrorCode extends string, ErrorData> = Error & {\n /** String that is used to quickly determine the nature of the error and why it could have occurred. */\n code: ErrorCode | typeof UNKNOWN_ERROR;\n\n /** Data related to the error that can be used during the error handling process to gain more information or take an action. */\n data?: ErrorData;\n};\n"],"names":[],"mappings":"AAEA;;CAEC,GACD,WAME"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jakubmazanec/error",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.7a1e391",
|
|
4
4
|
"description": "Collection of utilities for creating and handling errors.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
"zod": "^3.21.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@jest/globals": "^29.5.0"
|
|
32
|
+
"@jest/globals": "^29.5.0",
|
|
33
|
+
"@types/node": "^20.8.5"
|
|
33
34
|
},
|
|
34
|
-
"packageManager": "npm@
|
|
35
|
+
"packageManager": "npm@10.1.0",
|
|
35
36
|
"engines": {
|
|
36
|
-
"node": "
|
|
37
|
+
"node": "^20.8.0"
|
|
37
38
|
}
|
|
38
39
|
}
|