+4
-3
@@ -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; |
+1
-1
| { | ||
| "name": "sort-keys", | ||
| "version": "6.0.0", | ||
| "version": "6.0.1", | ||
| "description": "Sort the keys of an object", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
16592
0.21%286
0.35%0
-100%