Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 1.1.0 to 1.1.1

8

index.js
'use strict';
var isObj = require('is-obj');
var isPlainObj = require('is-plain-obj');
module.exports = function (obj, opts) {
if (!isObj(obj)) {
throw new TypeError('Expected an object');
if (!isPlainObj(obj)) {
throw new TypeError('Expected a plain object');
}

@@ -26,3 +26,3 @@

ret[key] = deep && val !== x && isObj(val) ? sortKeys(val) : val;
ret[key] = deep && val !== x && isPlainObj(val) ? sortKeys(val) : val;
}

@@ -29,0 +29,0 @@

{
"name": "sort-keys",
"version": "1.1.0",
"version": "1.1.1",
"description": "Sort the keys of an object",

@@ -34,3 +34,3 @@ "license": "MIT",

"dependencies": {
"is-obj": "^1.0.0"
"is-plain-obj": "^1.0.0"
},

@@ -37,0 +37,0 @@ "devDependencies": {

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