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.
- package/package.json +1 -1
- package/src/util.mjs +2 -1
package/package.json
CHANGED
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
|
|
296
|
+
if(typeof(value) === "string" && hint.normalizeValue) {
|
|
296
297
|
return value.replace(new RegExp(hint.normalizeValue), "");
|
|
297
298
|
}
|
|
298
299
|
return value;
|