@ditojs/utils 2.25.0 → 2.26.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/utils",
3
- "version": "2.25.0",
3
+ "version": "2.26.1",
4
4
  "type": "module",
5
5
  "description": "Dito.js Utility Functions – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/utils",
@@ -29,10 +29,10 @@
29
29
  "punycode": "^2.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "typescript": "^5.3.3"
32
+ "typescript": "^5.4.5"
33
33
  },
34
34
  "types": "types",
35
- "gitHead": "888c84b30ad53c2a44ce50174f7ffb851454cec2",
35
+ "gitHead": "8f2e07e3774d0e03b24ee78cffe60c5edacb93ae",
36
36
  "scripts": {
37
37
  "types": "tsc --noEmit types/index.d.ts"
38
38
  },
@@ -31,7 +31,9 @@ function mergeValues(target, source, root, concat) {
31
31
  return mergeIteratively(target, source, root, concat, false)
32
32
  }
33
33
  }
34
- return root ? source ?? target : source
34
+ return root // Don't override values with nullish at root level
35
+ ? source ?? target
36
+ : source
35
37
  }
36
38
 
37
39
  function mergeIteratively(target, source, root, concat, toArray) {