diff --git a/src/claim.js b/src/claim.js index ab5c030..0340546 100644 --- a/src/claim.js +++ b/src/claim.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const validator = require('validator') +const validator = require('validator').default const validUrl = require('valid-url') const mergeOptions = require('merge-options') const proofs = require('./proofs') diff --git a/src/fetcher/activitypub.js b/src/fetcher/activitypub.js index c87a7c1..1389f36 100644 --- a/src/fetcher/activitypub.js +++ b/src/fetcher/activitypub.js @@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const axios = require('axios') -const validator = require('validator') +const axios = require('axios').default +const validator = require('validator').default const jsEnv = require('browser-or-node') /** diff --git a/src/fetcher/graphql.js b/src/fetcher/graphql.js index 8b14e6e..2313afd 100644 --- a/src/fetcher/graphql.js +++ b/src/fetcher/graphql.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const axios = require('axios') +const axios = require('axios').default /** * @module fetcher/graphql diff --git a/src/fetcher/http.js b/src/fetcher/http.js index 4baf7a8..331e5ab 100644 --- a/src/fetcher/http.js +++ b/src/fetcher/http.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const axios = require('axios') +const axios = require('axios').default const E = require('../enums') /** diff --git a/src/fetcher/irc.js b/src/fetcher/irc.js index 717b71f..e6fb573 100644 --- a/src/fetcher/irc.js +++ b/src/fetcher/irc.js @@ -27,7 +27,7 @@ module.exports.timeout = 20000 if (jsEnv.isNode) { const irc = require('irc-upd') - const validator = require('validator') + const validator = require('validator').default /** * Execute a fetch request diff --git a/src/fetcher/matrix.js b/src/fetcher/matrix.js index 9771c37..06a83e3 100644 --- a/src/fetcher/matrix.js +++ b/src/fetcher/matrix.js @@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const axios = require('axios') -const validator = require('validator') +const axios = require('axios').default +const validator = require('validator').default /** * @module fetcher/matrix diff --git a/src/fetcher/telegram.js b/src/fetcher/telegram.js index 7130f6a..45cf590 100644 --- a/src/fetcher/telegram.js +++ b/src/fetcher/telegram.js @@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const axios = require('axios') -const validator = require('validator') +const axios = require('axios').default +const validator = require('validator').default /** * @module fetcher/telegram diff --git a/src/fetcher/xmpp.js b/src/fetcher/xmpp.js index 86a05ef..5c60019 100644 --- a/src/fetcher/xmpp.js +++ b/src/fetcher/xmpp.js @@ -28,7 +28,7 @@ module.exports.timeout = 5000 if (jsEnv.isNode) { const { client, xml } = require('@xmpp/client') const debug = require('@xmpp/debug') - const validator = require('validator') + const validator = require('validator').default let xmpp = null let iqCaller = null diff --git a/src/keys.js b/src/keys.js index 12ee7d0..8866690 100644 --- a/src/keys.js +++ b/src/keys.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const axios = require('axios') +const axios = require('axios').default const validUrl = require('valid-url') const openpgp = require('openpgp') const HKP = require('@openpgp/hkp-client') diff --git a/src/utils.js b/src/utils.js index 9b945f0..adeb512 100644 --- a/src/utils.js +++ b/src/utils.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -const validator = require('validator') +const validator = require('validator').default const E = require('./enums') /**