@bgd-labs/toolbox 0.0.35 → 0.0.37

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/dist/index.js CHANGED
@@ -33442,7 +33442,10 @@ function getObjectDiff(obj1, obj2) {
33442
33442
  const diff = { before: {}, after: {} };
33443
33443
  if (typeof obj1 !== "object" || typeof obj2 !== "object")
33444
33444
  return { before: obj1, after: obj2 };
33445
- const allKeys = /* @__PURE__ */ new Set([...Object.keys(obj1), ...Object.keys(obj2)]);
33445
+ const allKeys = /* @__PURE__ */ new Set([
33446
+ ...Object.keys(obj1 || {}),
33447
+ ...Object.keys(obj2 || {})
33448
+ ]);
33446
33449
  for (const key of allKeys) {
33447
33450
  const val1 = obj1[key];
33448
33451
  const val2 = obj2[key];
@@ -33497,7 +33500,10 @@ function deepDiff({
33497
33500
 
33498
33501
  `;
33499
33502
  } else {
33500
- const allKeys = /* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(after)]);
33503
+ const allKeys = /* @__PURE__ */ new Set([
33504
+ ...Object.keys(before || {}),
33505
+ ...Object.keys(after || {})
33506
+ ]);
33501
33507
  for (const pathKey of allKeys) {
33502
33508
  diff += deepDiff({
33503
33509
  name,