@pnpm/error
Advanced tools
Comparing version 1.1.0 to 1.2.0
export default class PnpmError extends Error { | ||
readonly code: string; | ||
readonly hint?: string; | ||
pkgsStack?: Array<{ | ||
@@ -8,3 +9,5 @@ id: string; | ||
}>; | ||
constructor(code: string, message: string); | ||
constructor(code: string, message: string, opts?: { | ||
hint: string; | ||
}); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class PnpmError extends Error { | ||
constructor(code, message) { | ||
constructor(code, message, opts) { | ||
super(message); | ||
this.code = `ERR_PNPM_${code}`; | ||
this.hint = opts === null || opts === void 0 ? void 0 : opts.hint; | ||
} | ||
} | ||
exports.default = PnpmError; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/error", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "An error class for pnpm errors", | ||
@@ -8,12 +8,13 @@ "main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"!*.map" | ||
], | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=10.13" | ||
}, | ||
"scripts": { | ||
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", | ||
"tsc": "rimraf lib && tsc", | ||
"test": "pnpm run tsc", | ||
"prepublishOnly": "pnpm run tsc" | ||
"test": "pnpm run compile", | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build" | ||
}, | ||
@@ -30,3 +31,3 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/error", | ||
}, | ||
"homepage": "https://pnpm.js.org" | ||
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/error#readme" | ||
} |
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
3146
22