Socket
Socket
Sign inDemoInstall

sort-keys

Package Overview
Dependencies
Maintainers
1
Versions
12
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 4.1.0 to 4.2.0

11

index.js

@@ -54,9 +54,14 @@ 'use strict';

const value = object[key];
let newValue;
if (deep && Array.isArray(value)) {
result[key] = deepSortArray(value);
continue;
newValue = deepSortArray(value);
} else {
newValue = deep && isPlainObject(value) ? sortKeys(value) : value;
}
result[key] = deep && isPlainObject(value) ? sortKeys(value) : value;
Object.defineProperty(result, key, {
...Object.getOwnPropertyDescriptor(object, key),
value: newValue
});
}

@@ -63,0 +68,0 @@

{
"name": "sort-keys",
"version": "4.1.0",
"version": "4.2.0",
"description": "Sort the keys of an object",

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

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