@seidor-cloud-produtos/tax-core 0.0.89 → 0.0.91

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
@@ -57483,6 +57483,9 @@ var TaxRegisterGenerator = class _TaxRegisterGenerator {
57483
57483
  let result = "", decimalPart;
57484
57484
  [result, decimalPart] = value ? String(value).split(".") : "0";
57485
57485
  const onlyZeros = /^0+$/;
57486
+ if (metadata.required && value === void 0) {
57487
+ return "";
57488
+ }
57486
57489
  if (!metadata.required && onlyZeros.test(result) && !decimalPart) {
57487
57490
  return "";
57488
57491
  }