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