@resolveio/server-lib 20.8.6 → 20.9.0

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.
@@ -3467,7 +3467,15 @@ var MongoManagerCollection = /** @class */ (function () {
3467
3467
  isEmptyUpdate = !update.$set && !update.$unset && !update.$inc && !update.$setOnInsert && !update.$push && !update.$pull && !update.$addToSet && !update.$min && !update.$max && !update.$currentDate && !update.$mul && !update.$rename;
3468
3468
  allEmpty = isEmptyUpdate ||
3469
3469
  Object.values(update).every(function (op) {
3470
- return !op || JSON.stringify(op) === '{}';
3470
+ if (!op) {
3471
+ return true;
3472
+ }
3473
+ for (var key in op) {
3474
+ if (Object.prototype.hasOwnProperty.call(op, key)) {
3475
+ return false;
3476
+ }
3477
+ }
3478
+ return true;
3471
3479
  });
3472
3480
  if (allEmpty) {
3473
3481
  return [2 /*return*/, {
@@ -3642,7 +3650,15 @@ var MongoManagerCollection = /** @class */ (function () {
3642
3650
  isEmptyUpdate = !update.$set && !update.$unset && !update.$inc && !update.$setOnInsert && !update.$push && !update.$pull && !update.$addToSet && !update.$min && !update.$max && !update.$currentDate && !update.$mul && !update.$rename;
3643
3651
  allEmpty = isEmptyUpdate ||
3644
3652
  Object.values(update).every(function (op) {
3645
- return !op || JSON.stringify(op) === '{}';
3653
+ if (!op) {
3654
+ return true;
3655
+ }
3656
+ for (var key in op) {
3657
+ if (Object.prototype.hasOwnProperty.call(op, key)) {
3658
+ return false;
3659
+ }
3660
+ }
3661
+ return true;
3646
3662
  });
3647
3663
  if (allEmpty) {
3648
3664
  return [2 /*return*/, {