@ionic/cli-framework
Advanced tools
Comparing version 5.1.7 to 6.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [6.0.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.7...@ionic/cli-framework@6.0.0) (2023-11-08) | ||
### Bug Fixes | ||
* use native ES2022 error cause ([#5010](https://github.com/ionic-team/ionic-cli/issues/5010)) ([a97ba2b](https://github.com/ionic-team/ionic-cli/commit/a97ba2bcac4556017ba010692f71fed2bef3f77b)) | ||
### BREAKING CHANGES | ||
* `message`, `stack`, and `error` properties removed from `BaseError` and `SubprocessError` | ||
## [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) | ||
@@ -8,0 +24,0 @@ |
@@ -8,8 +8,4 @@ import { ValidationError } from './definitions'; | ||
abstract readonly name: string; | ||
message: string; | ||
stack: string; | ||
code?: string; | ||
error?: Error; | ||
exitCode?: number; | ||
constructor(message: string); | ||
toString(): string; | ||
@@ -16,0 +12,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"); | ||
@@ -11,11 +10,4 @@ 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() { | ||
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}` : ''}`); | ||
return util.inspect(this); | ||
} | ||
@@ -22,0 +14,0 @@ inspect() { |
{ | ||
"name": "@ionic/cli-framework", | ||
"version": "5.1.7", | ||
"version": "6.0.0", | ||
"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.14", | ||
"@ionic/utils-subprocess": "3.0.0", | ||
"@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
142966
2693
+ Added@ionic/utils-subprocess@3.0.0(transitive)
- Removed@ionic/utils-subprocess@2.1.14(transitive)