Comparing version 4.16.2 to 4.16.3
@@ -227,2 +227,3 @@ "use strict"; | ||
const scripts = []; | ||
const addedScriptHashes = {}; | ||
for (let i = 0; i < this._queue.length; ++i) { | ||
@@ -238,6 +239,7 @@ const item = this._queue[i]; | ||
const script = this._shaToScript[item.args[0]]; | ||
if (!script) { | ||
if (!script || addedScriptHashes[script.sha]) { | ||
continue; | ||
} | ||
scripts.push(script); | ||
addedScriptHashes[script.sha] = true; | ||
} | ||
@@ -249,3 +251,3 @@ const _this = this; | ||
return this.redis | ||
.script("exists", Array.from(new Set(scripts.map(({ sha }) => sha)))) | ||
.script("exists", scripts.map(({ sha }) => sha)) | ||
.then(function (results) { | ||
@@ -252,0 +254,0 @@ const pending = []; |
@@ -0,1 +1,8 @@ | ||
## [4.16.3](https://github.com/luin/ioredis/compare/v4.16.2...v4.16.3) (2020-04-21) | ||
### Bug Fixes | ||
* scripts may not be loaded correctly in pipeline ([#1107](https://github.com/luin/ioredis/issues/1107)) ([072d460](https://github.com/luin/ioredis/commit/072d4604113e5562171d689b37c3cf73dcee18ad)) | ||
## [4.16.2](https://github.com/luin/ioredis/compare/v4.16.1...v4.16.2) (2020-04-11) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "ioredis", | ||
"version": "4.16.2", | ||
"version": "4.16.3", | ||
"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
247223
4280