🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

sort-keys

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-keys - npm Package Compare versions

Comparing version
6.0.0
to
6.0.1
+4
-3
index.js

@@ -65,2 +65,3 @@ import isPlainObject from 'is-plain-obj';

const itemPath = buildPath(currentPath, indexKey);
const contextDepth = currentDepth + 1;
const context = {

@@ -70,3 +71,3 @@ key: indexKey,

path: itemPath,
depth: currentDepth + 1,
depth: contextDepth,
};

@@ -76,3 +77,3 @@

result[index] = shouldProcessDeep(context)
? deepSortArray(item, itemPath, currentDepth + 1)
? deepSortArray(item, itemPath, contextDepth)
: item;

@@ -84,3 +85,3 @@ continue;

result[index] = shouldProcessDeep(context)
? _sortKeys(item, itemPath, currentDepth + 1)
? _sortKeys(item, itemPath, contextDepth + 1)
: item;

@@ -87,0 +88,0 @@ continue;

{
"name": "sort-keys",
"version": "6.0.0",
"version": "6.0.1",
"description": "Sort the keys of an object",

@@ -5,0 +5,0 @@ "license": "MIT",