From 655096d4af2c160d4dde03a9f86e1b01a3a7312b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 19 Mar 2024 22:30:47 -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 4bc18fe8..cf3a87af 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'); -import { parseDomain, ParseResultType } from 'parse-domain'; +const { parseDomain, ParseResultType } = import('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 5ec4e816..4c52b5ec 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'); -import { parseDomain, ParseResultType } from 'parse-domain'; +const { parseDomain, ParseResultType } = import('parse-domain'); module.exports = class IsItDownCommand extends Command { constructor(client) { diff --git a/util/Util.js b/util/Util.js index cc0067c1..bcf1814d 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'); -import { parseDomain, ParseResultType } from 'parse-domain'; +const { parseDomain, ParseResultType } = import('parse-domain'); const { decode: decodeHTML } = require('html-entities'); const { stripIndents } = require('common-tags'); const { URL } = require('url');