libdns / porkbun

MIT License
3 stars 1 forks source link

fix: correctly format record names to ensure matching coordinates #2

Closed Niallfitzy1 closed 1 year ago

Niallfitzy1 commented 1 year ago

Fixes https://github.com/libdns/porkbun/issues/1

The Record.name value from Porkbun doesn't have a trailing ., while libdns always formats with one. Appending the . lets us match reliably.

Improves the test to ensure the record counts are as expected

Performs some refactoring to improve error handling & reduce repetition when calling the API