mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-08 21:38:13 -05:00
✨ Feature: update piclist core
This commit is contained in:
parent
ea61614ddd
commit
0eb7bacb84
12
package.json
12
package.json
@ -33,9 +33,9 @@
|
|||||||
"ncu": "node ./scripts/check-dep.js"
|
"ncu": "node ./scripts/check-dep.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.388.0",
|
"@aws-sdk/client-s3": "^3.400.0",
|
||||||
"@aws-sdk/lib-storage": "^3.388.0",
|
"@aws-sdk/lib-storage": "^3.400.0",
|
||||||
"@aws-sdk/s3-request-presigner": "^3.388.0",
|
"@aws-sdk/s3-request-presigner": "^3.400.0",
|
||||||
"@element-plus/icons-vue": "^2.1.0",
|
"@element-plus/icons-vue": "^2.1.0",
|
||||||
"@highlightjs/vue-plugin": "^2.1.0",
|
"@highlightjs/vue-plugin": "^2.1.0",
|
||||||
"@nodelib/fs.walk": "^2.0.0",
|
"@nodelib/fs.walk": "^2.0.0",
|
||||||
@ -68,7 +68,7 @@
|
|||||||
"mitt": "^3.0.1",
|
"mitt": "^3.0.1",
|
||||||
"node-ssh-no-cpu-features": "^1.0.1",
|
"node-ssh-no-cpu-features": "^1.0.1",
|
||||||
"nodejs-file-downloader": "^4.12.1",
|
"nodejs-file-downloader": "^4.12.1",
|
||||||
"piclist": "^0.9.1",
|
"piclist": "^1.0.0",
|
||||||
"pinia": "^2.1.6",
|
"pinia": "^2.1.6",
|
||||||
"pinia-plugin-persistedstate": "^3.2.0",
|
"pinia-plugin-persistedstate": "^3.2.0",
|
||||||
"qiniu": "^7.9.0",
|
"qiniu": "^7.9.0",
|
||||||
@ -102,8 +102,8 @@
|
|||||||
"@types/upyun": "^3.4.0",
|
"@types/upyun": "^3.4.0",
|
||||||
"@types/uuid": "^9.0.2",
|
"@types/uuid": "^9.0.2",
|
||||||
"@types/write-file-atomic": "^4.0.0",
|
"@types/write-file-atomic": "^4.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
||||||
"@typescript-eslint/parser": "^6.4.1",
|
"@typescript-eslint/parser": "^6.5.0",
|
||||||
"@vue/cli-plugin-babel": "^5.0.8",
|
"@vue/cli-plugin-babel": "^5.0.8",
|
||||||
"@vue/cli-plugin-eslint": "^5.0.8",
|
"@vue/cli-plugin-eslint": "^5.0.8",
|
||||||
"@vue/cli-plugin-router": "^5.0.8",
|
"@vue/cli-plugin-router": "^5.0.8",
|
||||||
|
@ -21,16 +21,13 @@ export default class ImgurApi {
|
|||||||
private static async makeRequest (
|
private static async makeRequest (
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
url: string,
|
url: string,
|
||||||
config: IConfig,
|
config: IConfig
|
||||||
logError: boolean = true
|
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
const response: AxiosResponse = await axios[method](url, config)
|
const response: AxiosResponse = await axios[method](url, config)
|
||||||
return response.status === 200
|
return response.status === 200
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (logError) {
|
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user