Comparing version 1.1.0 to 1.1.1
'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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3411
+ Addedis-plain-obj@^1.0.0
+ Addedis-plain-obj@1.1.0(transitive)
- Removedis-obj@^1.0.0
- Removedis-obj@1.0.1(transitive)