hinted-tree-merger 6.2.4 → 6.2.6

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 +2 -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.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/util.mjs CHANGED
@@ -274,6 +274,7 @@ export function isScalar(a) {
274
274
  scalarTypes.has(typeof a) ||
275
275
  a instanceof String ||
276
276
  a instanceof Number ||
277
+ a instanceof BigInt ||
277
278
  a instanceof Function ||
278
279
  a === null
279
280
  );
@@ -292,7 +293,7 @@ export function indexFor(b, i, a) {
292
293
  }
293
294
 
294
295
  function normalizeValue(value, hint) {
295
- if (value !== undefined && value !== null && hint.normalizeValue) {
296
+ if(typeof(value) === "string" && hint.normalizeValue) {
296
297
  return value.replace(new RegExp(hint.normalizeValue), "");
297
298
  }
298
299
  return value;