@ledgerhq/errors
Advanced tools
Comparing version 6.16.1 to 6.16.2-new-wc.0
# @ledgerhq/errors | ||
## 6.16.2-new-wc.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 @@ |
@@ -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 @@ } |
{ | ||
"name": "@ledgerhq/errors", | ||
"version": "6.16.1", | ||
"version": "6.16.2-new-wc.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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
188919
2637
1