@cleandns/whois-rdap 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114,7 +114,6 @@ export async function whois(domain, options = { fetch: fetch }) {
|
|
|
114
114
|
var _a, _b;
|
|
115
115
|
const aDate = ((_a = a.events.find((ev) => ev.eventAction === "registration")) === null || _a === void 0 ? void 0 : _a.eventDate) || 0;
|
|
116
116
|
const bDate = ((_b = b.events.find((ev) => ev.eventAction === "registration")) === null || _b === void 0 ? void 0 : _b.eventDate) || 0;
|
|
117
|
-
console.log({ aDate, bDate });
|
|
118
117
|
return new Date(bDate.replace(/\+0000Z$/, 'Z')).valueOf() - new Date(aDate.replace(/\+0000Z$/, 'Z')).valueOf();
|
|
119
118
|
})[0] || { id: 0, name: "" };
|
|
120
119
|
response.registrar = registrar;
|
|
@@ -173,4 +172,6 @@ function findTimestamps(values) {
|
|
|
173
172
|
}
|
|
174
173
|
return ts;
|
|
175
174
|
}
|
|
176
|
-
await whois(process.argv[2]).then((r) =>
|
|
175
|
+
// await whois(process.argv[2]).then((r) =>
|
|
176
|
+
// console.log(JSON.stringify(r, null, 2))
|
|
177
|
+
// );
|