node-namecheap icon indicating copy to clipboard operation
node-namecheap copied to clipboard

`namecheap.domains.dns.getHosts` doesnt return the correct response

Open phenax opened this issue 5 years ago • 1 comments

namecheap.domains.dns.getHosts returns 'namecheap.domains.dns.getHosts' as a string instead of the full response. The problem seems to be a line in instance.command function (Line 597)

phenax avatar Oct 04 '20 12:10 phenax

You should change line 596 from namecheap.js from res = res ? res[Object.keys(res)[0]] : undefined; to res = res ? res[Object.keys(res)[1]] : undefined;

marcpujolapps avatar May 25 '22 22:05 marcpujolapps