avadev/AvaTax-REST-V2-JS-SDK

Resolve address throws error from BigInt

ryan-ju opened this issue · 1 comments

When resolving an address like this:

{
	"line1": "1510 Foster Circle",
	"line2": "Algonquin",
 	"textCase": "Mixed",
 	"city": "Illinois",
 	"region": "IL",
 	"country": "US",
 	"postalCode": "60102"
}

We get this error from the SDK.

SyntaxError: Cannot convert 42.144481999999996 to a BigInt
    at BigInt (<anonymous>)
    at number (/app/node_modules/json-bigint/lib/parse.js:215:15)
    at value (/app/node_modules/json-bigint/lib/parse.js:397:41)
    at object (/app/node_modules/json-bigint/lib/parse.js:367:27)

Update 1

This issue is related to this sidorares/json-bigint#49

This issue has been resolved. Please upgrade to the latest version of SDK and let us know if it is still an issue.
Thanks