Skip to content

Commit

Permalink
Updated - changelog & version number
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiIgna committed Jun 25, 2021
1 parent 41c548a commit 9583654
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Whoiser change log

#### 1.13.0 - 25 June 2021

- Updated - TypeScript Types [#41](https://github.com/LayeredStudio/whoiser/pull/41)
- Updated - Cache more TLD WHOIS servers (.ai, .app, .io, .nyc)
- Updated - Detect & remove more redacted whois text

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whoiser",
"version": "1.12.0",
"version": "1.13.0",
"description": "Whois info for TLDs, domains and IPs",
"types": "./index.d.ts",
"typings": "./index.d.ts",
Expand Down
10 changes: 5 additions & 5 deletions src/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,7 @@ const parseDomainWhois = (domain, whois) => {
'terms',
]

const basicColonFormat = ': '
const uaColonFormat = ':'

let colon = basicColonFormat
let colon = ': '
let text = []
let data = {
'Domain Status': [],
Expand All @@ -264,13 +261,16 @@ const parseDomainWhois = (domain, whois) => {
.split('\n')
.map((line) => line.replace('\t', ' '))


// Parse WHOIS info for specific TLDs

if (domain.endsWith('.uk') || domain.endsWith('.be') || domain.endsWith('.nl') || domain.endsWith('.eu') || domain.endsWith('.ly') || domain.endsWith('.mx')) {
lines = handleMultiLines(lines)
}

if (domain.endsWith('.ua')) {
lines = handleDotUa(lines)
colon = uaColonFormat
colon = ':'
}

if (domain.endsWith('.jp')) {
Expand Down

0 comments on commit 9583654

Please sign in to comment.