hinted-tree-merger 6.2.4 → 6.2.5

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/package.json +1 -1
  2. package/src/util.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hinted-tree-merger",
3
- "version": "6.2.4",
3
+ "version": "6.2.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
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 && value !== null && hint.normalizeValue) {
295
+ if(typeof(value) === "string" && hint.normalizeValue) {
296
296
  return value.replace(new RegExp(hint.normalizeValue), "");
297
297
  }
298
298
  return value;