Skip to content

Releases: johndc7/node-directadmin

1.2.9

17 Oct 01:59
cdde081
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.2.8...1.2.9

1.2.8

29 Nov 20:54
c80318a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.2.7...1.2.8

1.2.7

02 Sep 17:52
Compare
Choose a tag to compare
  • Changed CMD_API_POP to GET instead of POST. It doesn't seem to work with POST requests for some reason. The DA documentation says GET is allowed as well and it works fine that way.
  • Uses axios authentication parameter for basic auth instead of doing it the hard way.
  • If the method type is GET, the body parameter gets used for the query. This should make it easier to implement more API functions in the future.
  • POST requests do not use querystring for the body. Was there a reason for this? Either way seems to work fine.
  • Added Promise support
  • Added a forceJsonRequests option to constructor. I found out that there is a json=yes query parameter that exists but makes the data return in a slightly different (and easier to work with in some cases) format. I added this option for backwards compatibility.
  • Added da.server.getDnsRecords(). This will only work with a json=yes query parameter (and yes it has to be in the query even on post requests for some reason). This is the bigger reason I added the JSON stuff.