Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/error

Package Overview
Dependencies
Maintainers
3
Versions
21
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.3.1 to 1.4.0

6

CHANGELOG.md
# @pnpm/error
## 1.4.0
### Minor Changes
- 0c5f1bcc9: Every error object has an optional "attempts" field.
## 1.3.1

@@ -4,0 +10,0 @@

2

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

4

package.json
{
"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": {

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