Socket
Socket
Sign inDemoInstall

keydir

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.1.1

2

keydir.js

@@ -92,3 +92,3 @@ var ltgt = require('ltgt')

if (options.limit && options.limit !== -1) {
if (typeof(options.limit) === 'number' && options.limit !== -1) {
if (options.reverse) {

@@ -95,0 +95,0 @@ fromIdx = Math.max(toIdx - options.limit, fromIdx)

{
"name": "keydir",
"version": "2.1.0",
"version": "2.1.1",
"description": "A sorted list of keys with support for level-* ranges",

@@ -5,0 +5,0 @@ "main": "keydir.js",

@@ -178,2 +178,7 @@ var test = require('tape')

t.deepEqual(
dir.range({ limit: 0 })
, []
)
t.end()

@@ -180,0 +185,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc