@pactflow/openapi-pact-comparator 1.12.0 → 1.12.1

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.mjs CHANGED
@@ -13931,13 +13931,13 @@ function requireDataType () {
13931
13931
  case "number":
13932
13932
  gen
13933
13933
  .elseIf((0, codegen_1._) `${dataType} == "boolean" || ${data} === null
13934
- || (${dataType} == "string" && ${data} && ${data} == +${data})`)
13934
+ || (${dataType} == "string" && ${data} && ${data}.trim() && ${data} == +${data})`)
13935
13935
  .assign(coerced, (0, codegen_1._) `+${data}`);
13936
13936
  return;
13937
13937
  case "integer":
13938
13938
  gen
13939
13939
  .elseIf((0, codegen_1._) `${dataType} === "boolean" || ${data} === null
13940
- || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`)
13940
+ || (${dataType} === "string" && ${data} && ${data}.trim() && ${data} == +${data} && !(${data} % 1))`)
13941
13941
  .assign(coerced, (0, codegen_1._) `+${data}`);
13942
13942
  return;
13943
13943
  case "boolean":