hinted-tree-merger 6.2.2 → 6.2.4

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": "hinted-tree-merger",
3
- "version": "6.2.2",
3
+ "version": "6.2.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -40,15 +40,15 @@
40
40
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
41
41
  },
42
42
  "devDependencies": {
43
- "ava": "^6.1.2",
44
- "browser-ava": "^2.2.8",
45
- "c8": "^9.1.0",
43
+ "ava": "^6.1.3",
44
+ "browser-ava": "^2.2.26",
45
+ "c8": "^10.1.2",
46
46
  "documentation": "^14.0.3",
47
- "semantic-release": "^23.0.8",
48
- "typescript": "^5.4.5"
47
+ "semantic-release": "^24.0.0",
48
+ "typescript": "^5.5.4"
49
49
  },
50
50
  "engines": {
51
- "node": ">=20.12.1"
51
+ "node": ">=22.5.1"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",
package/src/util.mjs CHANGED
@@ -292,7 +292,7 @@ export function indexFor(b, i, a) {
292
292
  }
293
293
 
294
294
  function normalizeValue(value, hint) {
295
- if (value !== undefined && hint.normalizeValue) {
295
+ if (value !== undefined && value !== null && hint.normalizeValue) {
296
296
  return value.replace(new RegExp(hint.normalizeValue), "");
297
297
  }
298
298
  return value;
package/src/versions.mjs CHANGED
@@ -119,6 +119,8 @@ export function composeVersion(decomposed) {
119
119
  * @returns {number}
120
120
  */
121
121
  function cmp(a, b) {
122
+ if(b === undefined) { return 1; }
123
+
122
124
  for (const i in a) {
123
125
  // @ts-ignore
124
126
  if (i >= b.length) {