@sap-ux/inquirer-common 0.11.0 → 0.11.1

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.
@@ -187,6 +187,10 @@ export declare class ErrorHandler {
187
187
  * @returns The error message
188
188
  */
189
189
  getErrorMsg(error?: any, reset?: boolean, fallback?: ERROR_TYPE): string | undefined;
190
+ /**
191
+ * Reset the current error state.
192
+ */
193
+ resetErrorState(): void;
190
194
  /**
191
195
  * Used by validate functions to report in-line user friendly errors messages with help links.
192
196
  * If the error type is unknown, this will find a mapped error type and return the help (ValidationLink) if it exists.
@@ -435,6 +435,13 @@ class ErrorHandler {
435
435
  }
436
436
  return errorMsg;
437
437
  }
438
+ /**
439
+ * Reset the current error state.
440
+ */
441
+ resetErrorState() {
442
+ this.currentErrorMsg = null;
443
+ this.currentErrorType = null;
444
+ }
438
445
  /**
439
446
  * Used by validate functions to report in-line user friendly errors messages with help links.
440
447
  * If the error type is unknown, this will find a mapped error type and return the help (ValidationLink) if it exists.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/inquirer-common",
3
3
  "description": "Commonly used shared functionality and types to support inquirer modules.",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",