@pnpm/error
Advanced tools
Comparing version 1.3.1 to 1.4.0
# @pnpm/error | ||
## 1.4.0 | ||
### Minor Changes | ||
- 0c5f1bcc9: Every error object has an optional "attempts" field. | ||
## 1.3.1 | ||
@@ -4,0 +10,0 @@ |
export default class PnpmError extends Error { | ||
readonly code: string; | ||
readonly hint?: string; | ||
attempts?: number; | ||
pkgsStack?: Array<{ | ||
@@ -10,2 +11,3 @@ id: string; | ||
constructor(code: string, message: string, opts?: { | ||
attempts?: number; | ||
hint?: string; | ||
@@ -12,0 +14,0 @@ }); |
@@ -9,2 +9,3 @@ "use strict"; | ||
this.hint = opts === null || opts === void 0 ? void 0 : opts.hint; | ||
this.attempts = opts === null || opts === void 0 ? void 0 : opts.attempts; | ||
} | ||
@@ -11,0 +12,0 @@ } |
{ | ||
"name": "@pnpm/error", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "An error class for pnpm errors", | ||
@@ -12,3 +12,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=10.13" | ||
"node": ">=10.16" | ||
}, | ||
@@ -15,0 +15,0 @@ "scripts": { |
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
5283
65