Merge pull request #49275 from nextcloud/chore/drop-skjnldsv/sanitize-svg

This commit is contained in:
Kate 2024-11-14 14:28:52 +01:00 committed by GitHub
commit c3c6a75dc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 5 additions and 42 deletions

View file

@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { sanitizeSVG } from '@skjnldsv/sanitize-svg'
import DOMPurify from 'dompurify'
export default class Tab {
@ -80,10 +80,7 @@ export default class Tab {
this._scrollBottomReached = scrollBottomReached
if (typeof iconSvg === 'string') {
sanitizeSVG(iconSvg)
.then(sanitizedSvg => {
this._iconSvgSanitized = sanitizedSvg
})
this._iconSvgSanitized = DOMPurify.sanitize(iconSvg)
}
}

File diff suppressed because one or more lines are too long

View file

@ -18,7 +18,6 @@ SPDX-FileCopyrightText: Tobias Koppers @sokra
SPDX-FileCopyrightText: Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)
SPDX-FileCopyrightText: Thorsten Lünborg
SPDX-FileCopyrightText: T. Jameson Little <t.jameson.little@gmail.com>
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Roman Shtylman <shtylman@gmail.com>
SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Raynos <raynos2@gmail.com>
@ -129,9 +128,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 8.17.1
- license: AGPL-3.0-or-later
- is-svg
- version: 4.4.0
- license: MIT
- @vueuse/components
- version: 11.1.0
- license: MIT

File diff suppressed because one or more lines are too long

29
package-lock.json generated
View file

@ -32,7 +32,6 @@
"@nextcloud/upload": "^1.7.0",
"@nextcloud/vue": "^8.17.1",
"@simplewebauthn/browser": "^10.0.0",
"@skjnldsv/sanitize-svg": "^1.0.2",
"@vueuse/components": "^11.1.0",
"@vueuse/core": "^11.0.1",
"@vueuse/integrations": "^11.1.0",
@ -4991,34 +4990,6 @@
"dev": true,
"license": "(Unlicense OR Apache-2.0)"
},
"node_modules/@skjnldsv/sanitize-svg": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@skjnldsv/sanitize-svg/-/sanitize-svg-1.0.2.tgz",
"integrity": "sha512-blfdQZ9jr4K9IOhifF0FVhKf9LCFH0L8wWR/vEgdA53q8DGNEbjUGMNo4VU1QugglaoQdFy65O2abODRFflsSg==",
"license": "MIT",
"dependencies": {
"is-svg": "^4.3.2"
},
"engines": {
"node": "^14.0.0",
"npm": "^7.0.0"
}
},
"node_modules/@skjnldsv/sanitize-svg/node_modules/is-svg": {
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/is-svg/-/is-svg-4.4.0.tgz",
"integrity": "sha512-v+AgVwiK5DsGtT9ng+m4mClp6zDAmwrW8nZi6Gg15qzvBnRWWdfWA1TGaXyCDnWq5g5asofIgMVl3PjKxvk1ug==",
"license": "MIT",
"dependencies": {
"fast-xml-parser": "^4.1.3"
},
"engines": {
"node": ">=6"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/@socket.io/component-emitter": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz",

View file

@ -63,7 +63,6 @@
"@nextcloud/upload": "^1.7.0",
"@nextcloud/vue": "^8.17.1",
"@simplewebauthn/browser": "^10.0.0",
"@skjnldsv/sanitize-svg": "^1.0.2",
"@vueuse/components": "^11.1.0",
"@vueuse/core": "^11.0.1",
"@vueuse/integrations": "^11.1.0",