Socket
Socket
Sign inDemoInstall

@pnpm/error

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/error - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

lib/index.d.ts
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;
});
}

4

lib/index.js
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc