Skip to content

Commit 9870a7c

Browse files
committed
feat: v5.3.1
1 parent 00179d1 commit 9870a7c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "surmon.me",
3-
"version": "5.3.0",
3+
"version": "5.3.1",
44
"description": "Surmon.me blog",
55
"author": "Surmon",
66
"license": "MIT",

src/server/getters/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { VALUABLE_LINKS } from '@/configs/app.config'
99

1010
export const fetchGitHubStatisticJSON = async <T = any>(fileName: string): Promise<T> => {
1111
const url = `${VALUABLE_LINKS.GITHUB_STATISTIC_JSON_URL}${fileName}`
12-
const response = await axios.get<T>(url, { timeout: 6000 })
12+
const response = await axios.get<T>(url, { timeout: 8000 })
1313
return response.data
1414
}
1515

src/server/getters/gtag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import { getGaScriptURL } from '@/transforms/gtag'
1010

1111
export const getGTagScript = async () => {
1212
const url = getGaScriptURL(IDENTITIES.GOOGLE_ANALYTICS_MEASUREMENT_ID)
13-
const response = await axios.get<string>(url, { timeout: 6000 })
13+
const response = await axios.get<string>(url, { timeout: 8000 })
1414
return response.data
1515
}

src/server/getters/my-google-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ export const getMyGoogleMap = () => {
1616
})
1717

1818
return axios
19-
.get<any>(VALUABLE_LINKS.GOOGLE_MY_MAP_KML_URL, { timeout: 6000 })
19+
.get<any>(VALUABLE_LINKS.GOOGLE_MY_MAP_KML_URL, { timeout: 8000 })
2020
.then((response) => xmlParser.parse(response.data).kml.Document)
2121
}

src/server/getters/netease-music.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const PLAY_LIST_LIMIT = 168
2222
export const getSongList = async (): Promise<Array<Song>> => {
2323
// https://github.com/Binaryify/NeteaseCloudMusicApi/blob/a0500ec648f22a1dd20fc7b529126f813aa26935/module/playlist_track_all.js
2424
const playlistURL = `https://music.163.com/api/v6/playlist/detail?id=${IDENTITIES.MUSIC_163_BGM_ALBUM_ID}`
25-
const playlistDetail = await axios.get<any>(playlistURL, { timeout: 6000 })
25+
const playlistDetail = await axios.get<any>(playlistURL, { timeout: 8000 })
2626
if (playlistDetail.data.code < 0) {
2727
throw new Error(playlistDetail.data.message)
2828
}
@@ -33,7 +33,7 @@ export const getSongList = async (): Promise<Array<Song>> => {
3333
.map((id) => `{id:${id.id}}`)
3434
.join(',')
3535
const songListURL = `https://music.163.com/api/v3/song/detail?c=[${idsParams}]`
36-
const songListDetail = await axios.get<any>(songListURL, { timeout: 6000 })
36+
const songListDetail = await axios.get<any>(songListURL, { timeout: 8000 })
3737
if (!songListDetail.data.songs) {
3838
throw new Error(songListDetail.data)
3939
}

0 commit comments

Comments
 (0)