Releases: johndc7/node-directadmin
Releases · johndc7/node-directadmin
1.2.9
What's Changed
- Bump follow-redirects from 1.15.2 to 1.15.6 by @dependabot in #18
Full Changelog: 1.2.8...1.2.9
1.2.8
What's Changed
- Bump axios from 0.21.4 to 1.5.0 by @dependabot in #2
- Bump nanoid and mocha by @dependabot in #1
- Bump chai from 4.3.7 to 4.3.8 by @dependabot in #4
- Bump chai from 4.3.8 to 4.3.10 by @dependabot in #5
- Bump axios from 1.5.0 to 1.6.2 by @dependabot in #9
New Contributors
- @dependabot made their first contribution in #2
Full Changelog: 1.2.7...1.2.8
1.2.7
- 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.