@hkdigital/lib-core 0.3.1 → 0.3.2

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,6 +1,6 @@
1
1
  # HKdigital's lib-core
2
2
 
3
- Core library that we use to power up our Sveltekit projects
3
+ Core library that we use to power up our SvelteKit projects
4
4
 
5
5
  This is a library for [SvelteKit](https://svelte.dev/) projects.
6
6
  It contains common code and components that we use to create our projects.
@@ -5,11 +5,11 @@
5
5
  *
6
6
  * @param {string} message - Additional message to prepend
7
7
  * @param {Error|string} error - Original error
8
- * @param {string|Object.<string, any>} details
8
+ * @param {string|Object.<string, any>|null} [details]
9
9
  *
10
10
  * @throws {DetailedError}
11
11
  * @returns {never} This function never returns
12
12
  */
13
- export function rethrow(message: string, error: Error | string, details: string | {
13
+ export function rethrow(message: string, error: Error | string, details?: string | {
14
14
  [x: string]: any;
15
- }): never;
15
+ } | null): never;
@@ -8,7 +8,7 @@ import { DetailedError } from "../../constants/errors/generic.js";
8
8
  *
9
9
  * @param {string} message - Additional message to prepend
10
10
  * @param {Error|string} error - Original error
11
- * @param {string|Object.<string, any>} details
11
+ * @param {string|Object.<string, any>|null} [details]
12
12
  *
13
13
  * @throws {DetailedError}
14
14
  * @returns {never} This function never returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"