@seald-io/binary-search-tree
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -9,2 +9,9 @@ # Changelog | ||
## [1.0.3] - 2023-01-19 | ||
### Changed | ||
- Correctly log object keys [#1](https://github.com/seald/node-binary-search-tree/pull/1) | ||
## [1.0.2] - 2021-05-19 | ||
@@ -11,0 +18,0 @@ |
@@ -261,3 +261,3 @@ /** | ||
if (currentNode.unique) { | ||
const err = new Error(`Can't insert key ${key}, it violates the unique constraint`) | ||
const err = new Error(`Can't insert key ${JSON.stringify(key)}, it violates the unique constraint`) | ||
err.key = key | ||
@@ -264,0 +264,0 @@ err.errorType = 'uniqueViolated' |
@@ -182,3 +182,3 @@ /** | ||
if (this.unique) { | ||
const err = new Error(`Can't insert key ${key}, it violates the unique constraint`) | ||
const err = new Error(`Can't insert key ${JSON.stringify(key)}, it violates the unique constraint`) | ||
err.key = key | ||
@@ -185,0 +185,0 @@ err.errorType = 'uniqueViolated' |
{ | ||
"name": "@seald-io/binary-search-tree", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Timothée Rebours", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35311
0