bruce-models 5.1.0 → 5.1.2

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.
@@ -4423,6 +4423,22 @@
4423
4423
  if (mapValue == eValue) {
4424
4424
  return option.appliedValue;
4425
4425
  }
4426
+ // Case where Entity value is a boolean but the mapping value is a string.
4427
+ // Common as mapping value is typically a user-entered string.
4428
+ else if (typeof eValue === "boolean" && typeof mapValue === "string") {
4429
+ const eValueStr = eValue ? "true" : "false";
4430
+ if (mapValue == eValueStr) {
4431
+ return option.appliedValue;
4432
+ }
4433
+ }
4434
+ // Handling possible case where the opposite is true.
4435
+ // Have not seen this happen yet, but preparing for any future cases.
4436
+ else if (typeof mapValue === "boolean" && typeof eValue === "string") {
4437
+ const mapValueStr = mapValue ? "true" : "false";
4438
+ if (mapValueStr == eValue) {
4439
+ return option.appliedValue;
4440
+ }
4441
+ }
4426
4442
  }
4427
4443
  }
4428
4444
  }
@@ -14199,7 +14215,7 @@
14199
14215
  })(exports.DataSource || (exports.DataSource = {}));
14200
14216
 
14201
14217
  // This is updated with the package.json version on build.
14202
- const VERSION = "5.1.0";
14218
+ const VERSION = "5.1.2";
14203
14219
 
14204
14220
  exports.VERSION = VERSION;
14205
14221
  exports.AbstractApi = AbstractApi;