@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/node.mjs CHANGED
@@ -33342,7 +33342,10 @@ function getObjectDiff(obj1, obj2) {
33342
33342
  const diff = { before: {}, after: {} };
33343
33343
  if (typeof obj1 !== "object" || typeof obj2 !== "object")
33344
33344
  return { before: obj1, after: obj2 };
33345
- const allKeys = /* @__PURE__ */ new Set([...Object.keys(obj1), ...Object.keys(obj2)]);
33345
+ const allKeys = /* @__PURE__ */ new Set([
33346
+ ...Object.keys(obj1 || {}),
33347
+ ...Object.keys(obj2 || {})
33348
+ ]);
33346
33349
  for (const key of allKeys) {
33347
33350
  const val1 = obj1[key];
33348
33351
  const val2 = obj2[key];
@@ -33397,7 +33400,10 @@ function deepDiff({
33397
33400
 
33398
33401
  `;
33399
33402
  } else {
33400
- const allKeys = /* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(after)]);
33403
+ const allKeys = /* @__PURE__ */ new Set([
33404
+ ...Object.keys(before || {}),
33405
+ ...Object.keys(after || {})
33406
+ ]);
33401
33407
  for (const pathKey of allKeys) {
33402
33408
  diff += deepDiff({
33403
33409
  name,