@rpldy/shared
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -43,3 +43,5 @@ "use strict"; | ||
Object.defineProperty(batchItem, BISYM, { | ||
value: true | ||
value: true, | ||
//need writable to be able to keep prop when unwrapped from simple-state | ||
writable: true | ||
}); | ||
@@ -46,0 +48,0 @@ |
@@ -19,8 +19,10 @@ "use strict"; | ||
* @param obj | ||
* @param mergeFn the merge function to use (default: utils/merge) | ||
* @returns {Object} | ||
*/ | ||
var _default = function _default(obj) { | ||
return (0, _merge.isMergeObj)(obj) ? (0, _merge["default"])(Array.isArray(obj) ? [] : {}, obj) : obj; | ||
var mergeFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _merge["default"]; | ||
return (0, _merge.isMergeObj)(obj) ? mergeFn(Array.isArray(obj) ? [] : {}, obj) : obj; | ||
}; | ||
exports["default"] = _default; |
@@ -18,2 +18,7 @@ "use strict"; | ||
var getKeys = function getKeys(obj, options) { | ||
var keys = Object.keys(obj); | ||
return options.withSymbols ? keys.concat(Object.getOwnPropertySymbols(obj)) : keys; | ||
}; | ||
var getMerge = function getMerge() { | ||
@@ -30,3 +35,3 @@ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
if (source) { | ||
Object.keys(source).forEach(function (key) { | ||
getKeys(source, options).forEach(function (key) { | ||
var prop = source[key]; | ||
@@ -33,0 +38,0 @@ |
{ | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"name": "@rpldy/shared", | ||
@@ -29,3 +29,3 @@ "description": "internal set of utils+types for react-uploady", | ||
}, | ||
"gitHead": "855e4471317ca0bc82f168b217c43e3f74211364" | ||
"gitHead": "da9538afacc43e650a5e1b8bb61594277bcecea9" | ||
} |
Sorry, the diff of this file is not supported yet
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
49776
837