fix: axios is not a function when using ES module

This commit is contained in:
Revincx
2023-01-06 18:51:47 +08:00
parent 985a054658
commit 372883c35f
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
const encrypt = require('./crypto')
const crypto = require('crypto')
const axios = require('axios')
const { default: axios } = require('axios')
const PacProxyAgent = require('pac-proxy-agent')
const http = require('http')
const https = require('https')