@jakubmazanec/error 2.0.3-next.121ef1e → 3.0.0-next.7305494

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
@@ -19,7 +19,7 @@ It cannot be required from a CommonJS module.
19
19
 
20
20
  #### Prerequisites
21
21
 
22
- - Node.js 16 or later
22
+ - Node.js 20 or later
23
23
  - TypeScript 5 or later
24
24
 
25
25
  ## Usage
@@ -1,3 +1,5 @@
1
- export { };
1
+ /**
2
+ * Type representing custom error.
3
+ */ export { };
2
4
 
3
5
  //# sourceMappingURL=CustomError.js.map
@@ -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":"AAAA,WAQE"}
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,3 +1,5 @@
1
- export { };
1
+ /**
2
+ * Type representing custom error that can have an arbitrary data attached.
3
+ */ export { };
2
4
 
3
5
  //# sourceMappingURL=CustomErrorWithData.js.map
@@ -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":"AAAA,WAWE"}
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": "2.0.3-next.121ef1e",
3
+ "version": "3.0.0-next.7305494",
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@8.19.4",
35
+ "packageManager": "npm@10.1.0",
35
36
  "engines": {
36
- "node": ">=16.20.0"
37
+ "node": "^20.8.0"
37
38
  }
38
39
  }