diff --git a/package-lock.json b/package-lock.json index 5c0ea08..fbc3d5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 2201c25..a855974 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/util/request.js b/util/request.js index 2791eb6..cb62067 100644 --- a/util/request.js +++ b/util/request.js @@ -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')