Commit dcc5560 1 parent 8ba52bd commit dcc5560 Copy full SHA for dcc5560
File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 32
32
"@types/node" : " ^16.10.2" ,
33
33
"@types/postcss-import" : " ^12.0.1" ,
34
34
"@types/react-table" : " ^7.7.5" ,
35
+ "@types/url-join" : " ^4.0.1" ,
35
36
"@types/webpack" : " ^4" ,
36
37
"autoprefixer" : " ^10.3.6" ,
37
38
"css-loader" : " ^5" ,
70
71
"react-use" : " ^17.3.1" ,
71
72
"recoil" : " ^0.4.1" ,
72
73
"reconnecting-websocket" : " ^4.4.0" ,
74
+ "url-join" : " ^4.0.1" ,
73
75
"yaml" : " ^1.10.2"
74
76
},
75
77
"peerDependencies" : {
Original file line number Diff line number Diff line change 1
1
import axios from "axios"
2
+ import urljoin from "url-join"
2
3
import type { EPGSProgramRecord , EPGSChannel } from "./types"
3
4
4
5
export class EPGStationAPI {
@@ -104,6 +105,6 @@ export class EPGStationAPI {
104
105
return data . records
105
106
}
106
107
getVideoUrl ( { videoId } : { videoId : number } ) {
107
- return ` ${ this . baseUrl . href } / api/videos/${ videoId } `
108
+ return urljoin ( this . baseUrl . href , ` api/videos/${ videoId } `)
108
109
}
109
110
}
Original file line number Diff line number Diff line change 1126
1126
dependencies :
1127
1127
source-map "^0.6.1"
1128
1128
1129
+ " @types/url-join@^4.0.1 " :
1130
+ version "4.0.1"
1131
+ resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.1.tgz#4989c97f969464647a8586c7252d97b449cdc045"
1132
+ integrity sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ==
1133
+
1129
1134
" @types/webpack-sources@* " :
1130
1135
version "3.2.0"
1131
1136
resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-3.2.0.tgz#16d759ba096c289034b26553d2df1bf45248d38b"
@@ -7671,6 +7676,11 @@ urix@^0.1.0:
7671
7676
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
7672
7677
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=
7673
7678
7679
+ url-join@^4.0.1 :
7680
+ version "4.0.1"
7681
+ resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7"
7682
+ integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==
7683
+
7674
7684
url-parse-lax@^3.0.0 :
7675
7685
version "3.0.0"
7676
7686
resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c"
You can’t perform that action at this time.
0 commit comments