LayeredStudio / whoiser

🌍 Easy to use WHOIS info for domains, TLDs and IPs
MIT License
202 stars 29 forks source link

using whoiser with 'use strict' fails #99

Closed sduc closed 1 year ago

sduc commented 1 year ago
Q A
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT

Imported the library in a code which enforce use strict. Without this PR I get the following error:

ReferenceError: key is not defined
    at /usr/app/dist/index.js:127446:16
    at Array.forEach (<anonymous>)
    at parseSimpleWhois (/usr/app/dist/index.js:127427:61)
    at whoisTld (/usr/app/dist/index.js:127876:20)
    at async whoisDomain (/usr/app/dist/index.js:127900:21)

You can ignore the line numbers since it was bundled with esbuild.

AndreiIgna commented 1 year ago

hey @sduc thanks for fixing this. It will included in the next release on npm, in a few hours