New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ioredis-mock

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ioredis-mock - npm Package Compare versions

Comparing version 5.2.1 to 5.2.2

23

lib/commands/zrange-command.common.js

@@ -12,25 +12,6 @@ "use strict";

function normalizeIndex(index, array) {
if (index < 0) {
return -index > array.length ? 0 : array.length + index;
}
return index;
function slice(arr, start, end) {
return arr.slice(start, end === -1 ? undefined : end + 1);
}
function slice(arr, s, e) {
const start = normalizeIndex(s, arr);
const end = normalizeIndex(e, arr);
if (end === -1) {
return [];
}
if (end - start < 0) {
return Array.from(arr).reverse().slice(start, end + 1);
}
return arr.slice(start, end + 1);
}
function normalizeCountToIndex(offset, count, array) {

@@ -37,0 +18,0 @@ if (count < 0) {

2

package.json

@@ -128,3 +128,3 @@ {

"runkitExampleFilename": "example.js",
"version": "5.2.1"
"version": "5.2.2"
}
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