Merge pull request #1064 from nextcloud/renovate/screenfull-6.x

fix(deps): update dependency screenfull to v6
This commit is contained in:
Alexander Piskun 2023-06-04 15:04:28 +03:00 коммит произвёл GitHub
Родитель c61d8859fe c42d6296c5
Коммит d5666a408d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1,4 +1,4 @@
import * as screenfull from 'screenfull'; import screenfull from 'screenfull';
import {fetchDescription} from '../../api/Api'; import {fetchDescription} from '../../api/Api';
import { import {
getMetaValueOrThrow, id, idOrThrow, queryOrThrow, ready, getMetaValueOrThrow, id, idOrThrow, queryOrThrow, ready,
@ -46,7 +46,7 @@ ready.then(() => {
item.addEventListener('click', () => { item.addEventListener('click', () => {
if (screenfull && screenfull.isEnabled) { if (screenfull && screenfull.isEnabled) {
item.classList.toggle('fullscreen'); item.classList.toggle('fullscreen');
screenfull.toggle(gallery); screenfull?.toggle(gallery);
} }
}); });
}); });

10
package-lock.json сгенерированный
Просмотреть файл

@ -14,7 +14,7 @@
"bootstrap.native": "^2.0.19", "bootstrap.native": "^2.0.19",
"highlight.js": "^10.4.1", "highlight.js": "^10.4.1",
"markdown-it": "^13.0.0", "markdown-it": "^13.0.0",
"screenfull": "^5.0.0" "screenfull": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/blazy": "^1.5.30", "@types/blazy": "^1.5.30",
@ -2769,11 +2769,11 @@
} }
}, },
"node_modules/screenfull": { "node_modules/screenfull": {
"version": "5.2.0", "version": "6.0.2",
"resolved": "https://registry.npmjs.org/screenfull/-/screenfull-5.2.0.tgz", "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-6.0.2.tgz",
"integrity": "sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==", "integrity": "sha512-AQdy8s4WhNvUZ6P8F6PB21tSPIYKniic+Ogx0AacBMjKP1GUHN2E9URxQHtCusiwxudnCKkdy4GrHXPPJSkCCw==",
"engines": { "engines": {
"node": ">=0.10.0" "node": "^14.13.1 || >=16.0.0"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"

Просмотреть файл

@ -12,7 +12,7 @@
"bootstrap.native": "^2.0.19", "bootstrap.native": "^2.0.19",
"highlight.js": "^10.4.1", "highlight.js": "^10.4.1",
"markdown-it": "^13.0.0", "markdown-it": "^13.0.0",
"screenfull": "^5.0.0" "screenfull": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/blazy": "^1.5.30", "@types/blazy": "^1.5.30",