Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72aa835

Browse files
committed
Upgrade client dependencies
1 parent 2e1e4af commit 72aa835

File tree

7 files changed

+1046
-1450
lines changed

7 files changed

+1046
-1450
lines changed

client/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@angular/router": "^11.1.1",
4545
"@angular/service-worker": "^11.1.1",
4646
"@neos21/bootstrap3-glyphicons": "^1.0.1",
47-
"@ng-bootstrap/ng-bootstrap": "^8.0.0",
48-
"@ng-select/ng-select": "^5.0.11",
47+
"@ng-bootstrap/ng-bootstrap": "^9.0.2",
48+
"@ng-select/ng-select": "^6.0.0",
4949
"@ngx-i18nsupport/ngx-i18nsupport": "^1.1.6",
5050
"@ngx-i18nsupport/tooling": "^8.0.3",
5151
"@ngx-loading-bar/core": "^5.0.0",
@@ -61,14 +61,14 @@
6161
"@types/jschannel": "^1.0.0",
6262
"@types/linkifyjs": "^2.1.2",
6363
"@types/lodash-es": "^4.17.0",
64-
"@types/markdown-it": "^10.0.1",
64+
"@types/markdown-it": "^12.0.1",
6565
"@types/node": "^14.0.14",
66-
"@types/sanitize-html": "1.27.0",
66+
"@types/sanitize-html": "1.27.1",
6767
"@types/sha.js": "^2.4.0",
6868
"@types/video.js": "^7.3.8",
6969
"@types/webtorrent": "^0.109.0",
7070
"angular2-hotkeys": "^2.1.2",
71-
"angularx-qrcode": "10.0.11",
71+
"angularx-qrcode": "11.0.0",
7272
"bootstrap": "^4.1.3",
7373
"buffer": "^6.0.2",
7474
"cache-chunk-store": "^3.0.0",
@@ -87,14 +87,14 @@
8787
"jasmine-core": "~3.6.0",
8888
"jasmine-spec-reporter": "~6.0.0",
8989
"jschannel": "^1.0.2",
90-
"karma": "~5.2.3",
90+
"karma": "~6.1.0",
9191
"karma-chrome-launcher": "~3.1.0",
9292
"karma-coverage-istanbul-reporter": "~3.0.2",
9393
"karma-jasmine": "~4.0.1",
9494
"karma-jasmine-html-reporter": "^1.5.0",
9595
"linkifyjs": "^2.1.5",
9696
"lodash-es": "^4.17.4",
97-
"markdown-it": "12.0.2",
97+
"markdown-it": "12.0.4",
9898
"mini-css-extract-plugin": "^1.3.1",
9999
"p2p-media-loader-hlsjs": "^0.6.2",
100100
"path-browserify": "^1.0.0",
@@ -107,19 +107,19 @@
107107
"sanitize-html": "^2.1.2",
108108
"sass": "^1.29.0",
109109
"sass-lint": "^1.13.1",
110-
"sass-loader": "10.1.0",
110+
"sass-loader": "10.1.1",
111111
"sass-resources-loader": "^2.0.0",
112112
"sha.js": "^2.4.11",
113113
"socket.io-client": "^3.0.3",
114114
"stream-browserify": "^3.0.0",
115115
"stream-http": "^3.0.0",
116116
"terser-webpack-plugin": "^4",
117-
"ts-loader": "^8.0.2",
117+
"ts-loader": "^8.0.14",
118118
"tslib": "^2.0.0",
119119
"tslint": "~6.1.0",
120120
"tslint-angular": "^3.0.2",
121121
"tslint-config-standard": "^9.0.0",
122-
"typescript": "~4.0.5",
122+
"typescript": "~4.1.3",
123123
"video.js": "^7",
124124
"videojs-contextmenu-ui": "^5.0.0",
125125
"videojs-contrib-quality-levels": "^2.0.9",
@@ -128,8 +128,8 @@
128128
"videostream": "~3.2.1",
129129
"webpack-bundle-analyzer": "^4.1.0",
130130
"webpack-cli": "^4.2.0",
131-
"webtorrent": "^0.111.0",
131+
"webtorrent": "^0.112.3",
132132
"whatwg-fetch": "^3.0.0",
133133
"zone.js": "~0.11.3"
134134
}
135-
}
135+
}

client/src/app/helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function populateAsyncUserVideoChannels (
2424
authService: AuthService,
2525
channel: SelectChannelItem[]
2626
) {
27-
return new Promise(res => {
27+
return new Promise<void>(res => {
2828
authService.userInformationLoaded
2929
.subscribe(
3030
() => {

client/src/root-helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function importModule (path: string) {
5757
}
5858

5959
function wait (ms: number) {
60-
return new Promise(res => {
60+
return new Promise<void>(res => {
6161
setTimeout(() => res(), ms)
6262
})
6363
}

client/src/sass/include/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $main-color: hsl(24, 90%, 50%);
1919
$main-hover-color: lighten($main-color, 5%);
2020
$main-color-lighter: lighten($main-color, 10%);
2121
$main-color-lightest: lighten($main-color, 40%);
22-
$secondary-color: hsl(187, 77, 34);
22+
$secondary-color: hsl(187, 77%, 34%);
2323

2424
$support-button: inherit;
2525
$support-button-heart: #e83e8c;

client/src/standalone/videos/embed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class PeerTubeEmbed {
8888
.then((res: Response) => {
8989
if (res.status !== HttpStatusCode.UNAUTHORIZED_401) return res
9090

91-
const refreshingTokenPromise = new Promise((resolve, reject) => {
91+
const refreshingTokenPromise = new Promise<void>((resolve, reject) => {
9292
const clientId: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_ID)
9393
const clientSecret: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_SECRET)
9494

client/webpack/webpack.video-embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function () {
2222
*/
2323
extensions: [ '.ts', '.js', '.json', '.scss' ],
2424

25-
modules: [ helpers.root('src'), helpers.root('node_modules') ],
25+
modules: [ helpers.root('src'), 'node_modules' ],
2626

2727
alias: {
2828
'video.js$': path.resolve('node_modules/video.js/core.js'),

0 commit comments

Comments
 (0)