Merge pull request #1668 from Revincx/master

fix: axios is not a function when using ES module
This commit is contained in:
binaryify 2023-01-08 18:18:05 +08:00 committed by GitHub
commit 7872d77d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

18
package-lock.json generated
View File

@ -1,15 +1,15 @@
{
"name": "NeteaseCloudMusicApi",
"version": "4.8.2",
"version": "4.8.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "NeteaseCloudMusicApi",
"version": "4.8.2",
"version": "4.8.7",
"license": "MIT",
"dependencies": {
"axios": "^1.0.0",
"axios": "^1.2.2",
"express": "^4.17.1",
"express-fileupload": "^1.1.9",
"md5": "^2.3.0",
@ -830,9 +830,9 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/axios": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz",
"integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==",
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/axios/-/axios-1.2.2.tgz",
"integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==",
"dependencies": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@ -6464,9 +6464,9 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"axios": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz",
"integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==",
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/axios/-/axios-1.2.2.tgz",
"integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==",
"requires": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",

View File

@ -51,7 +51,7 @@
"public"
],
"dependencies": {
"axios": "^1.0.0",
"axios": "^1.2.2",
"express": "^4.17.1",
"express-fileupload": "^1.1.9",
"md5": "^2.3.0",

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')