@ionic/cli-framework
Advanced tools
Comparing version 5.1.6 to 5.1.7
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.1.7](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.6...@ionic/cli-framework@5.1.7) (2023-11-08) | ||
### Reverts | ||
* use native ES2022 error cause ([#5060](https://github.com/ionic-team/ionic-cli/issues/5060)) ([1e64a1a](https://github.com/ionic-team/ionic-cli/commit/1e64a1ada60545adf8e7c99fbd1f8766cf2416f9)) | ||
## [5.1.6](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.5...@ionic/cli-framework@5.1.6) (2023-11-07) | ||
@@ -8,0 +19,0 @@ |
@@ -8,4 +8,8 @@ import { ValidationError } from './definitions'; | ||
abstract readonly name: string; | ||
message: string; | ||
stack: string; | ||
code?: string; | ||
error?: Error; | ||
exitCode?: number; | ||
constructor(message: string); | ||
toString(): string; | ||
@@ -12,0 +16,0 @@ inspect(): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IPCError = exports.CommandNotFoundError = exports.InputValidationError = exports.BaseError = exports.ERROR_IPC_UNKNOWN_PROCEDURE = exports.ERROR_IPC_MODULE_INACCESSIBLE = exports.ERROR_COMMAND_NOT_FOUND = exports.ERROR_INPUT_VALIDATION = void 0; | ||
const lodash = require("lodash"); | ||
const util = require("util"); | ||
@@ -10,4 +11,11 @@ exports.ERROR_INPUT_VALIDATION = 'ERR_ICF_INPUT_VALIDATION'; | ||
class BaseError extends Error { | ||
constructor(message) { | ||
super(message); | ||
this.message = message; | ||
this.stack = (new Error()).stack || ''; | ||
} | ||
toString() { | ||
return util.inspect(this); | ||
const repr = lodash.pick(this, lodash.pull(lodash.keys(this), 'error')); | ||
return (`${this.name}: ${this.message} ${util.inspect(repr, { breakLength: Infinity })} ${this.stack} ` + | ||
`${this.error ? `\nWrapped: ${this.error.stack ? this.error.stack : this.error}` : ''}`); | ||
} | ||
@@ -14,0 +22,0 @@ inspect() { |
{ | ||
"name": "@ionic/cli-framework", | ||
"version": "5.1.6", | ||
"version": "5.1.7", | ||
"description": "The foundation framework of the Ionic CLI", | ||
@@ -35,3 +35,3 @@ "homepage": "https://ionicframework.com/", | ||
"@ionic/utils-stream": "3.1.6", | ||
"@ionic/utils-subprocess": "2.1.13", | ||
"@ionic/utils-subprocess": "2.1.14", | ||
"@ionic/utils-terminal": "2.3.4", | ||
@@ -38,0 +38,0 @@ "chalk": "^4.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143031
2705
+ Added@ionic/utils-subprocess@2.1.14(transitive)
- Removed@ionic/utils-subprocess@2.1.13(transitive)