Socket
Socket
Sign inDemoInstall

@ledgerhq/errors

Package Overview
Dependencies
Maintainers
7
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/errors - npm Package Compare versions

Comparing version 6.16.1 to 6.16.2-nightly.0

6

CHANGELOG.md
# @ledgerhq/errors
## 6.16.2-nightly.0
### Patch Changes
- [#6107](https://github.com/LedgerHQ/ledger-live/pull/6107) [`f456d69`](https://github.com/LedgerHQ/ledger-live/commit/f456d69a2f64b6a217d3c1d9c6a531f31c2817a8) Thanks [@jdabbech-ledger](https://github.com/jdabbech-ledger)! - Set prototype of locked device error in order to fix 'instanceof' check of an error
## 6.16.1

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

2

lib-es/index.js

@@ -248,2 +248,3 @@ import { serializeError, deserializeError, createCustomErrorClass, addCustomErrorDeserializer, } from "./helpers";

this.statusText = statusText;
Object.setPrototypeOf(this, TransportStatusError.prototype);
// Maps to a LockedDeviceError

@@ -262,2 +263,3 @@ if (canBeMappedToChildError && statusCode === StatusCodes.LOCKED_DEVICE) {

this.name = "LockedDeviceError";
Object.setPrototypeOf(this, LockedDeviceError.prototype);
}

@@ -264,0 +266,0 @@ }

@@ -259,2 +259,3 @@ "use strict";

this.statusText = statusText;
Object.setPrototypeOf(this, TransportStatusError.prototype);
// Maps to a LockedDeviceError

@@ -274,2 +275,3 @@ if (canBeMappedToChildError && statusCode === exports.StatusCodes.LOCKED_DEVICE) {

this.name = "LockedDeviceError";
Object.setPrototypeOf(this, LockedDeviceError.prototype);
}

@@ -276,0 +278,0 @@ }

2

package.json
{
"name": "@ledgerhq/errors",
"version": "6.16.1",
"version": "6.16.2-nightly.0",
"description": "Ledger common errors",

@@ -5,0 +5,0 @@ "keywords": [

@@ -321,2 +321,4 @@ import {

Object.setPrototypeOf(this, TransportStatusError.prototype);
// Maps to a LockedDeviceError

@@ -336,2 +338,3 @@ if (canBeMappedToChildError && statusCode === StatusCodes.LOCKED_DEVICE) {

this.name = "LockedDeviceError";
Object.setPrototypeOf(this, LockedDeviceError.prototype);
}

@@ -338,0 +341,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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