更新依赖

pull/1255/head
lyswhut 2023-03-17 14:40:56 +08:00
parent 37ad2f522a
commit 19286ef99d
9 changed files with 314 additions and 259 deletions

539
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -205,8 +205,8 @@
},
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/eslint-parser": "^7.19.1",
"@babel/core": "^7.21.3",
"@babel/eslint-parser": "^7.21.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-umd": "^7.18.6",
@ -216,28 +216,28 @@
"@types/better-sqlite3": "^7.6.3",
"@types/needle": "^3.2.0",
"@types/tunnel": "^0.0.3",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@volar/vue-language-plugin-pug": "^1.2.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"chalk": "^4.1.2",
"changelog-parser": "^3.0.1",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.29.0",
"core-js": "^3.29.1",
"cross-env": "^7.0.3",
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^4.2.2",
"del": "^6.1.1",
"electron": "^22.3.2",
"electron": "^22.3.3",
"electron-builder": "^24.0.0",
"electron-debug": "^3.2.0",
"electron-devtools-installer": "^3.2.0",
"electron-to-chromium": "^1.4.328",
"electron-to-chromium": "^1.4.332",
"electron-updater": "^6.0.0",
"eslint": "^8.36.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-with-typescript": "^34.0.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-formatter-friendly": "github:lyswhut/eslint-friendly-formatter#2170d1320e2fad13615a9dcf229669f0bb473a53",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.27.5",
@ -248,10 +248,10 @@
"html-webpack-plugin": "^5.5.0",
"less": "^4.1.3",
"less-loader": "^11.1.0",
"mini-css-extract-plugin": "^2.7.3",
"mini-css-extract-plugin": "^2.7.5",
"node-loader": "^2.0.0",
"postcss": "^8.4.21",
"postcss-loader": "^7.0.2",
"postcss-loader": "^7.1.0",
"postcss-pxtorem": "^6.0.0",
"pug": "^3.0.2",
"pug-plain-loader": "^1.1.0",
@ -263,13 +263,13 @@
"terser": "^5.16.6",
"terser-webpack-plugin": "^5.3.7",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"typescript": "^5.0.2",
"vue-eslint-parser": "^9.1.0",
"vue-loader": "^17.0.1",
"vue-template-compiler": "^2.7.14",
"webpack": "^5.76.1",
"webpack": "^5.76.2",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1",
"webpack-dev-server": "^4.12.0",
"webpack-hot-middleware": "github:lyswhut/webpack-hot-middleware#329c4375134b89d39da23a56a94db651247c74a1",
"webpack-merge": "^5.8.0"
},

View File

@ -61,6 +61,7 @@ const codeAuth = async(urlInfo: LX.Sync.Client.UrlInfo, serverId: string, authCo
const keyAuth = async(urlInfo: LX.Sync.Client.UrlInfo, keyInfo: LX.Sync.ClientKeyInfo) => {
const msg = aesEncrypt(SYNC_CODE.authMsg + getComputerName(), keyInfo.key)
// eslint-disable-next-line @typescript-eslint/promise-function-async
return request(`${urlInfo.httpProtocol}//${urlInfo.hostPath}/ah`, { headers: { i: keyInfo.clientId, m: msg } }).then(({ text, code }) => {
if (code != 200) throw new Error(SYNC_CODE.authFailed)

View File

@ -358,6 +358,7 @@ export const getOnlineOtherSourceLyricInfo = async({ musicInfos, onToggleSource,
reqPromise = Promise.reject(err)
}
retryedSource.includes(musicInfo.source)
// eslint-disable-next-line @typescript-eslint/promise-function-async
return reqPromise.then((lyricInfo: LX.Music.LyricInfo) => {
return existTimeExp.test(lyricInfo.lyric) ? {
lyricInfo,
@ -392,6 +393,7 @@ export const handleGetOnlineLyricInfo = async({ musicInfo, onToggleSource, isRef
} catch (err) {
reqPromise = Promise.reject(err)
}
// eslint-disable-next-line @typescript-eslint/promise-function-async
return reqPromise.then((lyricInfo: LX.Music.LyricInfo) => {
return existTimeExp.test(lyricInfo.lyric) ? {
musicInfo,

View File

@ -72,6 +72,7 @@ const getMusicPlayUrl = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListIt
if (window.lx.isPlayedStop || diffCurrentMusicInfo(musicInfo)) return null
return url
// eslint-disable-next-line @typescript-eslint/promise-function-async
}).catch(err => {
// console.log('err', err.message)
if (window.lx.isPlayedStop ||

View File

@ -42,6 +42,7 @@ export default () => {
musicInfo: songInfo,
},
},
// eslint-disable-next-line @typescript-eslint/promise-function-async
}).then(res => {
// console.log(res)
if (!/^https?:/.test(res.data.url)) return Promise.reject(new Error('Get url failed'))

View File

@ -95,6 +95,7 @@ export default () => {
versionInfoPromise = handleGetVersionInfo()
}
} else versionInfoPromise = handleGetVersionInfo()
// eslint-disable-next-line @typescript-eslint/promise-function-async
void versionInfoPromise.then((result) => {
versionInfo.reCheck = false

View File

@ -80,6 +80,7 @@ export const getListDetailAll = async(id: string, isRefresh = false): Promise<LX
return result
}) ?? Promise.reject(new Error('source not found' + source))
}
// eslint-disable-next-line @typescript-eslint/promise-function-async
return await loadData(bangId, 1).then((result: ListDetailInfo) => {
if (result.total <= result.limit) return result.list

View File

@ -158,6 +158,7 @@ export const getListDetailAll = async(id: string, source: LX.OnlineSource, isRef
return result
}) ?? Promise.reject(new Error('source not found' + source))
}
// eslint-disable-next-line @typescript-eslint/promise-function-async
return await loadData(id, 1).then((result: ListDetailInfo) => {
if (result.total <= result.limit) return result.list