cafe-utility 10.8.0 → 10.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -536,7 +536,11 @@ function deepMergeInPlace(target, source) {
536
536
  deepMergeInPlace(target[key], source[key])
537
537
  } else if (Array.isArray(source[key])) {
538
538
  target[key] = [...source[key]]
539
- } else {
539
+ } else if (
540
+ (source[key] !== null && source[key] !== undefined) ||
541
+ target[key] === null ||
542
+ target[key] === undefined
543
+ ) {
540
544
  target[key] = source[key]
541
545
  }
542
546
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cafe-utility",
3
- "version": "10.8.0",
3
+ "version": "10.8.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "exports": {