Socket
Socket
Sign inDemoInstall

sort-keys

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc