Comparing version 4.27.3 to 4.27.4
@@ -104,3 +104,3 @@ "use strict"; | ||
this.reject = (err) => { | ||
reject(utils_1.optimizeErrorStack(err, this.errorStack, __dirname)); | ||
reject(utils_1.optimizeErrorStack(err, this.errorStack.stack, __dirname)); | ||
}; | ||
@@ -107,0 +107,0 @@ } |
@@ -113,5 +113,3 @@ "use strict"; | ||
const options = { | ||
errorStack: this.options.showFriendlyErrorStack | ||
? new Error().stack | ||
: undefined, | ||
errorStack: this.options.showFriendlyErrorStack ? new Error() : undefined, | ||
keyPrefix: this.options.keyPrefix, | ||
@@ -157,3 +155,3 @@ replyEncoding: _encoding, | ||
if (this.options.showFriendlyErrorStack) { | ||
options.errorStack = new Error().stack; | ||
options.errorStack = new Error(); | ||
} | ||
@@ -160,0 +158,0 @@ // No auto pipeline, use regular command sending |
@@ -0,1 +1,8 @@ | ||
## [4.27.4](https://github.com/luin/ioredis/compare/v4.27.3...v4.27.4) (2021-06-04) | ||
### Performance Improvements | ||
* Serialize error stack only when needed ([#1359](https://github.com/luin/ioredis/issues/1359)) ([62b6a64](https://github.com/luin/ioredis/commit/62b6a648910eccc3d83a3acd2db873704fd2080a)) | ||
## [4.27.3](https://github.com/luin/ioredis/compare/v4.27.2...v4.27.3) (2021-05-22) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "ioredis", | ||
"version": "4.27.3", | ||
"version": "4.27.4", | ||
"description": "A robust, performance-focused and full-featured Redis client for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "built/index.js", |
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
289844
4806