modality-kit 0.2.2 → 0.2.4

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/dist/index.js CHANGED
@@ -226,6 +226,7 @@ var getLoggerInstance = ModalityLogger.getInstance.bind(ModalityLogger);
226
226
  var logger = getLoggerInstance("General Error");
227
227
 
228
228
  class ErrorCode extends Error {
229
+ cause;
229
230
  constructor(message, originalError) {
230
231
  super(message);
231
232
  this.name = this.constructor.name;
@@ -3,7 +3,8 @@
3
3
  */
4
4
  export declare abstract class ErrorCode extends Error {
5
5
  abstract readonly code: string;
6
- constructor(message: string, originalError?: Error);
6
+ cause?: Error;
7
+ constructor(message: string, originalError?: unknown);
7
8
  }
8
9
  /**
9
10
  * Wrapper for any functions that adds consistent error handling
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.2",
2
+ "version": "0.2.4",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",