Skip to content

Commit

Permalink
✨ Feature: update piclist core
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Aug 30, 2023
1 parent ea61614 commit 0eb7bac
Show file tree
Hide file tree
Showing 3 changed files with 588 additions and 579 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"ncu": "node ./scripts/check-dep.js"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.388.0",
"@aws-sdk/lib-storage": "^3.388.0",
"@aws-sdk/s3-request-presigner": "^3.388.0",
"@aws-sdk/client-s3": "^3.400.0",
"@aws-sdk/lib-storage": "^3.400.0",
"@aws-sdk/s3-request-presigner": "^3.400.0",
"@element-plus/icons-vue": "^2.1.0",
"@highlightjs/vue-plugin": "^2.1.0",
"@nodelib/fs.walk": "^2.0.0",
Expand Down Expand Up @@ -68,7 +68,7 @@
"mitt": "^3.0.1",
"node-ssh-no-cpu-features": "^1.0.1",
"nodejs-file-downloader": "^4.12.1",
"piclist": "^0.9.1",
"piclist": "^1.0.0",
"pinia": "^2.1.6",
"pinia-plugin-persistedstate": "^3.2.0",
"qiniu": "^7.9.0",
Expand Down Expand Up @@ -102,8 +102,8 @@
"@types/upyun": "^3.4.0",
"@types/uuid": "^9.0.2",
"@types/write-file-atomic": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-plugin-eslint": "^5.0.8",
"@vue/cli-plugin-router": "^5.0.8",
Expand Down
7 changes: 2 additions & 5 deletions src/renderer/apis/imgur.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ export default class ImgurApi {
private static async makeRequest (
method: 'delete',
url: string,
config: IConfig,
logError: boolean = true
config: IConfig
): Promise<boolean> {
try {
const response: AxiosResponse = await axios[method](url, config)
return response.status === 200
} catch (error) {
if (logError) {
console.error(error)
}
console.error(error)
return false
}
}
Expand Down
Loading

0 comments on commit 0eb7bac

Please sign in to comment.