From 8e1462ae0205a28bafbc79f4380cb4c1203f5277 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 19 Mar 2024 22:28:18 -0400 Subject: [PATCH] Interesting --- commands/analyze/domain-available.js | 2 +- commands/analyze/is-it-down.js | 2 +- util/Util.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/analyze/domain-available.js b/commands/analyze/domain-available.js index e6f11366..4bc18fe8 100644 --- a/commands/analyze/domain-available.js +++ b/commands/analyze/domain-available.js @@ -1,6 +1,6 @@ const Command = require('../../framework/Command'); const request = require('node-superfetch'); -const { parseDomain, ParseResultType } = require('parse-domain'); +import { parseDomain, ParseResultType } from 'parse-domain'; const { GODADDY_KEY, GODADDY_SECRET } = process.env; module.exports = class DomainAvailableCommand extends Command { diff --git a/commands/analyze/is-it-down.js b/commands/analyze/is-it-down.js index 0b1a1dd0..5ec4e816 100644 --- a/commands/analyze/is-it-down.js +++ b/commands/analyze/is-it-down.js @@ -1,6 +1,6 @@ const Command = require('../../framework/Command'); const request = require('node-superfetch'); -const { parseDomain, ParseResultType } = require('parse-domain'); +import { parseDomain, ParseResultType } from 'parse-domain'; module.exports = class IsItDownCommand extends Command { constructor(client) { diff --git a/util/Util.js b/util/Util.js index 1b1b076e..cc0067c1 100644 --- a/util/Util.js +++ b/util/Util.js @@ -3,7 +3,7 @@ const crypto = require('crypto'); const request = require('node-superfetch'); const fs = require('fs'); const tf = require('@tensorflow/tfjs-node'); -const { parseDomain, ParseResultType } = require('parse-domain'); +import { parseDomain, ParseResultType } from 'parse-domain'; const { decode: decodeHTML } = require('html-entities'); const { stripIndents } = require('common-tags'); const { URL } = require('url');