@bscotch/utility
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -9,3 +9,4 @@ "use strict"; | ||
typeof something == 'object' && | ||
((_a = something === null || something === void 0 ? void 0 : something.toString) === null || _a === void 0 ? void 0 : _a.call(something)) == '[object Object]'; | ||
(!something.toString || | ||
((_a = something.toString) === null || _a === void 0 ? void 0 : _a.call(something)) == '[object Object]'); | ||
} | ||
@@ -130,3 +131,3 @@ exports.isPlainObject = isPlainObject; | ||
function transformValueByPath(object, path, transformer) { | ||
if (!isPlainObjectOrArray) { | ||
if (!isPlainObjectOrArray(object)) { | ||
return object; | ||
@@ -133,0 +134,0 @@ } |
@@ -0,1 +1,10 @@ | ||
## [0.8.1](https://github.com/bscotch/node-util/compare/v0.8.0...v0.8.1) (2020-11-17) | ||
### Bug Fixes | ||
* isPlainObject now returns true for objects without a toString() function. ([412c697](https://github.com/bscotch/node-util/commit/412c697fd9e9052512dd20763e9a084d91b1c615)) | ||
# [0.8.0](https://github.com/bscotch/node-util/compare/v0.7.1...v0.8.0) (2020-11-17) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "@bscotch/utility", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Bscotch Utilities: Methods for common Node.js needs.", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
43708
511