Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update dependency prettier to v3.3.3 (#4686)
Openverse (Bot)49a6fcdedd44
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 4e7504aa1..7a11c9a26 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -61,9 +61,9 @@ repos:# Must include any plugins defined in prettier.config.js, along with TypeScript and Prettier themselves# Versions must be manually kept in sync with those in the pnpm-lock.yaml file to prevent drift.additional_dependencies:- repo: https://github.com/koalaman/shellcheck-precommitrev: v0.10.0diff --git a/frontend/src/components/VAudioTrack/VWaveform.vue b/frontend/src/components/VAudioTrack/VWaveform.vueindex 7a6021f86..dd07893f6 100644--- a/frontend/src/components/VAudioTrack/VWaveform.vue+++ b/frontend/src/components/VAudioTrack/VWaveform.vue@@ -357,7 +357,7 @@ export default defineComponent({/* Progress bar */const progressBarWidth = computed(() => {- const frac = isDragging.value ? seekFrac.value ?? 0 : currentFrac.value+ const frac = isDragging.value ? (seekFrac.value ?? 0) : currentFrac.valuereturn waveformDimens.value.width * frac})diff --git a/frontend/src/components/VHomeGallery/VHomeGallery.vue b/frontend/src/components/VHomeGallery/VHomeGallery.vueindex 949093e34..ab1303955 100644--- a/frontend/src/components/VHomeGallery/VHomeGallery.vue+++ b/frontend/src/components/VHomeGallery/VHomeGallery.vue@@ -106,8 +106,8 @@ export default defineComponent({const imageSet = computed(() =>props.set === "random"? imageInfo.sets[Math.floor(Math.random() * imageInfo.sets.length)]- : imageInfo.sets.find((item) => (item.key = props.set)) ??- imageInfo.sets[0]+ : (imageInfo.sets.find((item) => (item.key = props.set)) ??+ imageInfo.sets[0]))const imageList = computed(() => {return imageSet.value.images.map((image, idx) => ({diff --git a/frontend/src/composables/use-single-result-page-meta.ts b/frontend/src/composables/use-single-result-page-meta.tsindex 33c65defa..1ebf8d485 100644--- a/frontend/src/composables/use-single-result-page-meta.ts+++ b/frontend/src/composables/use-single-result-page-meta.ts@@ -36,7 +36,7 @@ export const useSingleResultPageMeta = (}return isSensitive.value? titles().sensitiveTitle- : media.value.title ?? titles().genericTitle+ : (media.value.title ?? titles().genericTitle)}const getPageTitle = () => `${getMediaTitle()} | Openverse`diff --git a/frontend/src/utils/decode-media-data.ts b/frontend/src/utils/decode-media-data.tsindex 6058450c6..8c1a6a8a2 100644--- a/frontend/src/utils/decode-media-data.ts+++ b/frontend/src/utils/decode-media-data.ts@@ -125,7 +125,7 @@ export const decodeMediaData = <T extends Media>(featureFlagStore.isOn("fake_sensitive") &&featureFlagStore.isOn("fetch_sensitive")? getFakeSensitivities(media.id)- : media[SENSITIVITY_RESPONSE_PARAM] ?? []+ : (media[SENSITIVITY_RESPONSE_PARAM] ?? [])sensitivity.sort()const isSensitive = sensitivity.length > 0diff --git a/package.json b/package.jsonindex 913521f3f..851723144 100644--- a/package.json+++ b/package.json@@ -21,7 +21,7 @@"devDependencies": {"@openverse/eslint-plugin": "workspace:*","bindings": "^1.5.0",- "prettier": "3.3.2",+ "prettier": "3.3.3","prettier-plugin-tailwindcss": "0.6.5","typescript": "5.5.4","vue-tsc": "2.0.29"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 38ac2894a..2df1912a1 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -21,11 +21,11 @@ importers:specifier: ^1.5.0version: 1.5.0prettier:- specifier: 3.3.2- version: 3.3.2+ specifier: 3.3.3+ version: 3.3.3prettier-plugin-tailwindcss:specifier: 0.6.5- version: 0.6.5([email protected])+ version: 0.6.5([email protected])typescript:specifier: 5.5.4version: 5.5.4@@ -122,7 +122,7 @@ importers:postcss-focus-visible:specifier: ^9.0.1- version: 9.0.1([email protected])+ version: 9.0.1([email protected])rfdc:specifier: ^1.4.1version: 1.4.1@@ -2301,27 +2301,15 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@vue/[email protected]':- resolution: {integrity: sha512-MoIREbkdPQlnGfSKDMgzTqzqx5nmEjIc0ydLVYlTACGBsfvOJ4tHSbZXKVF536n6fB+0eZaGEOqsGThPpdvF5A==}-'@vue/[email protected]':resolution: {integrity: sha512-gKp0zGoLnMYtw4uS/SJRRO7rsVggLjvot3mcctlMXunYNsX+aRJDqqw/lV5/gHK91nvaAAlWFgdVl020AW1Prg==}- '@vue/[email protected]':- resolution: {integrity: sha512-GzB8fxEHKw0gGet5BKlpfXEqoBnzSVWwMnT+dc25wE7pFEfrU/QsvjZMP9rD4iVXHBBoemTct8mN0GJEI6ZX5A==}-'@vue/[email protected]':resolution: {integrity: sha512-pWIZRL76/oE/VMhdv/ovZfmuooEni6JPG1BFe7oLk5DZRo/ImydXijoZl/4kh2406boRQ7lxTYzbZEEXEhj9NQ==}- '@vue/[email protected]':- resolution: {integrity: sha512-7rk7Vbkn21xMwIUpHQR4hCVejwE6nvhBOiDgoBcR03qvGqRKA7dCBSsHZhwhYUsmjlbJ7OtD5UFIyhP6BY+c8A==}-'@vue/[email protected]':resolution: {integrity: sha512-xacnRS/h/FCsjsMfxBkzjoNxyxEyKyZfBch/P4vkLRvYJwe5ChXmZZrj8Dsed/752H2Q3JE8kYu9Uyha9J6PgA==}- '@vue/[email protected]':- resolution: {integrity: sha512-0WveC9Ai+eT/1b6LCV5IfsufBZ0HP7pSSTdDjcuW302tTEgoBw8rHVHKPbGUtzGReUFCRXbv6zQDDgucnV2WzQ==}-'@vue/[email protected]':resolution: {integrity: sha512-7iynB+0KB1AAJKk/biENTV5cRGHRdbdaD7Mx3nWcm1W8bVD6QmnH3B4AHhQQ1qZHhqFwzEzMwiytXm3PX1e60A==}@@ -2362,9 +2350,6 @@ packages:peerDependencies:vue: 3.4.35- '@vue/[email protected]':- resolution: {integrity: sha512-aoRY0jQk3A/cuvdkodTrM4NMfxco8n55eG4H7ML/CRy7OryHfiqvug4xrCBBMbbN+dvXAetDDwZW9DXWWjBntA==}-'@vue/[email protected]':resolution: {integrity: sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ==}@@ -5382,10 +5367,6 @@ packages:resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}- resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==}- engines: {node: ^10 || ^12 || >=14}-resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==}engines: {node: ^10 || ^12 || >=14}@@ -5462,8 +5443,8 @@ packages:prettier-plugin-svelte:optional: true- resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==}+ resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}engines: {node: '>=14'}hasBin: true@@ -7481,7 +7462,7 @@ snapshots:'@intlify/shared': 9.13.1'@rollup/pluginutils': 5.1.0([email protected])- '@vue/compiler-sfc': 3.4.33+ '@vue/compiler-sfc': 3.4.35debug: 4.3.5fast-glob: 3.3.2js-yaml: 4.1.0@@ -7891,10 +7872,10 @@ snapshots:'@rollup/plugin-replace': 5.0.7([email protected])'@vitejs/plugin-vue': 5.0.5([email protected](@types/[email protected])([email protected]))([email protected]([email protected]))'@vitejs/plugin-vue-jsx': 4.0.0([email protected](@types/[email protected])([email protected]))([email protected]([email protected]))- autoprefixer: 10.4.19([email protected])+ autoprefixer: 10.4.19([email protected])clear: 0.1.0consola: 3.2.3- cssnano: 7.0.4([email protected])+ cssnano: 7.0.4([email protected])defu: 6.1.4esbuild: 0.23.0escape-string-regexp: 5.0.0@@ -7909,7 +7890,7 @@ snapshots:pathe: 1.1.2perfect-debounce: 1.0.0pkg-types: 1.1.3- postcss: 8.4.39+ postcss: 8.4.40rollup-plugin-visualizer: 5.12.0([email protected])std-env: 3.7.0strip-literal: 2.1.0@@ -7952,7 +7933,7 @@ snapshots:'@miyaneee/rollup-plugin-json5': 1.2.0([email protected])'@nuxt/kit': 3.12.4([email protected])([email protected])'@rollup/plugin-yaml': 4.1.2([email protected])- '@vue/compiler-sfc': 3.4.33+ '@vue/compiler-sfc': 3.4.35debug: 4.3.5defu: 6.1.4estree-walker: 3.0.3@@ -8033,13 +8014,13 @@ snapshots:dependencies:'@nuxt/kit': 3.12.4([email protected])([email protected])- autoprefixer: 10.4.19([email protected])+ autoprefixer: 10.4.19([email protected])consola: 3.2.3defu: 6.1.4h3: 1.12.0pathe: 1.1.2- postcss: 8.4.39- postcss-nesting: 12.1.5([email protected])+ postcss: 8.4.40+ postcss-nesting: 12.1.5([email protected])tailwind-config-viewer: 2.0.4([email protected])tailwindcss: 3.4.6ufo: 1.5.4@@ -9229,7 +9210,7 @@ snapshots:dependencies:'@babel/types': 7.24.9'@rollup/pluginutils': 5.1.0([email protected])- '@vue/compiler-sfc': 3.4.33+ '@vue/compiler-sfc': 3.4.35ast-kit: 0.12.1local-pkg: 0.5.0magic-string-ast: 0.6.2@@ -9265,15 +9246,7 @@ snapshots:'@babel/helper-module-imports': 7.22.15'@babel/helper-plugin-utils': 7.24.7'@babel/parser': 7.24.8- '@vue/compiler-sfc': 3.4.33-- '@vue/[email protected]':- dependencies:- '@babel/parser': 7.24.8- '@vue/shared': 3.4.33- entities: 4.5.0- estree-walker: 2.0.2- source-map-js: 1.2.0+ '@vue/compiler-sfc': 3.4.35'@vue/[email protected]':dependencies:@@ -9283,28 +9256,11 @@ snapshots:estree-walker: 2.0.2source-map-js: 1.2.0- '@vue/[email protected]':- dependencies:- '@vue/compiler-core': 3.4.33- '@vue/shared': 3.4.33-'@vue/[email protected]':dependencies:'@vue/compiler-core': 3.4.35'@vue/shared': 3.4.35- '@vue/[email protected]':- dependencies:- '@babel/parser': 7.24.8- '@vue/compiler-core': 3.4.33- '@vue/compiler-dom': 3.4.33- '@vue/compiler-ssr': 3.4.33- '@vue/shared': 3.4.33- estree-walker: 2.0.2- magic-string: 0.30.10- postcss: 8.4.39- source-map-js: 1.2.0-'@vue/[email protected]':dependencies:'@babel/parser': 7.24.8@@ -9317,11 +9273,6 @@ snapshots:postcss: 8.4.40source-map-js: 1.2.0- '@vue/[email protected]':- dependencies:- '@vue/compiler-dom': 3.4.33- '@vue/shared': 3.4.33-'@vue/[email protected]':dependencies:'@vue/compiler-dom': 3.4.35@@ -9394,8 +9345,6 @@ snapshots:'@vue/shared': 3.4.35vue: 3.4.35([email protected])- '@vue/[email protected]': {}-'@vue/[email protected]': {}'@vue/[email protected]':@@ -9643,14 +9592,14 @@ snapshots:dependencies:browserslist: 4.23.1caniuse-lite: 1.0.30001637fraction.js: 4.3.7normalize-range: 0.1.2picocolors: 1.0.1- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0@@ -10051,9 +10000,9 @@ snapshots:dependencies:- postcss: 8.4.39+ postcss: 8.4.40dependencies:@@ -10079,49 +10028,49 @@ snapshots:dependencies:browserslist: 4.23.1- css-declaration-sorter: 7.2.0([email protected])- cssnano-utils: 5.0.0([email protected])- postcss: 8.4.39- postcss-calc: 10.0.0([email protected])- postcss-colormin: 7.0.1([email protected])- postcss-convert-values: 7.0.2([email protected])- postcss-discard-comments: 7.0.1([email protected])- postcss-discard-duplicates: 7.0.0([email protected])- postcss-discard-empty: 7.0.0([email protected])- postcss-discard-overridden: 7.0.0([email protected])- postcss-merge-longhand: 7.0.2([email protected])- postcss-merge-rules: 7.0.2([email protected])- postcss-minify-font-values: 7.0.0([email protected])- postcss-minify-gradients: 7.0.0([email protected])- postcss-minify-params: 7.0.1([email protected])- postcss-minify-selectors: 7.0.2([email protected])- postcss-normalize-charset: 7.0.0([email protected])- postcss-normalize-display-values: 7.0.0([email protected])- postcss-normalize-positions: 7.0.0([email protected])- postcss-normalize-repeat-style: 7.0.0([email protected])- postcss-normalize-string: 7.0.0([email protected])- postcss-normalize-timing-functions: 7.0.0([email protected])- postcss-normalize-unicode: 7.0.1([email protected])- postcss-normalize-url: 7.0.0([email protected])- postcss-normalize-whitespace: 7.0.0([email protected])- postcss-ordered-values: 7.0.1([email protected])- postcss-reduce-initial: 7.0.1([email protected])- postcss-reduce-transforms: 7.0.0([email protected])- postcss-svgo: 7.0.1([email protected])- postcss-unique-selectors: 7.0.1([email protected])-- dependencies:- postcss: 8.4.39-- dependencies:- cssnano-preset-default: 7.0.4([email protected])+ css-declaration-sorter: 7.2.0([email protected])+ cssnano-utils: 5.0.0([email protected])+ postcss: 8.4.40+ postcss-calc: 10.0.0([email protected])+ postcss-colormin: 7.0.1([email protected])+ postcss-convert-values: 7.0.2([email protected])+ postcss-discard-comments: 7.0.1([email protected])+ postcss-discard-duplicates: 7.0.0([email protected])+ postcss-discard-empty: 7.0.0([email protected])+ postcss-discard-overridden: 7.0.0([email protected])+ postcss-merge-longhand: 7.0.2([email protected])+ postcss-merge-rules: 7.0.2([email protected])+ postcss-minify-font-values: 7.0.0([email protected])+ postcss-minify-gradients: 7.0.0([email protected])+ postcss-minify-params: 7.0.1([email protected])+ postcss-minify-selectors: 7.0.2([email protected])+ postcss-normalize-charset: 7.0.0([email protected])+ postcss-normalize-display-values: 7.0.0([email protected])+ postcss-normalize-positions: 7.0.0([email protected])+ postcss-normalize-repeat-style: 7.0.0([email protected])+ postcss-normalize-string: 7.0.0([email protected])+ postcss-normalize-timing-functions: 7.0.0([email protected])+ postcss-normalize-unicode: 7.0.1([email protected])+ postcss-normalize-url: 7.0.0([email protected])+ postcss-normalize-whitespace: 7.0.0([email protected])+ postcss-ordered-values: 7.0.1([email protected])+ postcss-reduce-initial: 7.0.1([email protected])+ postcss-reduce-transforms: 7.0.0([email protected])+ postcss-svgo: 7.0.1([email protected])+ postcss-unique-selectors: 7.0.1([email protected])++ dependencies:+ postcss: 8.4.40++ dependencies:+ cssnano-preset-default: 7.0.4([email protected])lilconfig: 3.1.2- postcss: 8.4.39+ postcss: 8.4.40dependencies:@@ -12349,7 +12298,7 @@ snapshots:'@unhead/dom': 1.9.16'@unhead/ssr': 1.9.16'@unhead/vue': 1.9.16([email protected]([email protected]))- '@vue/shared': 3.4.33+ '@vue/shared': 3.4.35acorn: 8.12.1c12: 1.11.1([email protected])chokidar: 3.6.0@@ -12727,178 +12676,178 @@ snapshots:dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0postcss-value-parser: 4.2.0dependencies:browserslist: 4.23.1caniuse-api: 3.0.0colord: 2.9.3- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:browserslist: 4.23.1- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40dependencies:- postcss: 8.4.39+ postcss: 8.4.40dependencies:- postcss: 8.4.39+ postcss: 8.4.40dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0read-cache: 1.0.0resolve: 1.22.8dependencies:camelcase-css: 2.0.1- postcss: 8.4.39+ postcss: 8.4.40dependencies:lilconfig: 3.1.2yaml: 2.4.5optionalDependencies:- postcss: 8.4.39+ postcss: 8.4.40dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0- stylehacks: 7.0.2([email protected])+ stylehacks: 7.0.2([email protected])dependencies:browserslist: 4.23.1caniuse-api: 3.0.0- cssnano-utils: 5.0.0([email protected])- postcss: 8.4.39+ cssnano-utils: 5.0.0([email protected])+ postcss: 8.4.40postcss-selector-parser: 6.1.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:colord: 2.9.3- cssnano-utils: 5.0.0([email protected])- postcss: 8.4.39+ cssnano-utils: 5.0.0([email protected])+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:browserslist: 4.23.1- cssnano-utils: 5.0.0([email protected])- postcss: 8.4.39+ cssnano-utils: 5.0.0([email protected])+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:cssesc: 3.0.0- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0dependencies:'@csstools/selector-resolve-nested': 1.1.0([email protected])'@csstools/selector-specificity': 3.1.1([email protected])- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:browserslist: 4.23.1- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:- cssnano-utils: 5.0.0([email protected])- postcss: 8.4.39+ cssnano-utils: 5.0.0([email protected])+ postcss: 8.4.40postcss-value-parser: 4.2.0dependencies:browserslist: 4.23.1caniuse-api: 3.0.0- postcss: 8.4.39+ postcss: 8.4.40dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0@@ -12911,25 +12860,19 @@ snapshots:cssesc: 3.0.0util-deprecate: 1.0.2dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-value-parser: 4.2.0svgo: 3.3.2dependencies:- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0- dependencies:- nanoid: 3.3.7- picocolors: 1.0.1- source-map-js: 1.2.0-dependencies:nanoid: 3.3.7@@ -12948,11 +12891,11 @@ snapshots:dependencies:- prettier: 3.3.2+ prettier: 3.3.3- [email protected]: {}+ [email protected]: {}@@ -13496,10 +13439,10 @@ snapshots:'@tokenizer/token': 0.3.0peek-readable: 5.0.0dependencies:browserslist: 4.23.1- postcss: 8.4.39+ postcss: 8.4.40postcss-selector-parser: 6.1.0@@ -13585,11 +13528,11 @@ snapshots:normalize-path: 3.0.0object-hash: 3.0.0picocolors: 1.0.1- postcss: 8.4.39- postcss-import: 15.1.0([email protected])- postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])- postcss-nested: 6.0.1([email protected])+ postcss: 8.4.40+ postcss-import: 15.1.0([email protected])+ postcss-js: 4.0.1([email protected])+ postcss-load-config: 4.0.2([email protected])+ postcss-nested: 6.0.1([email protected])postcss-selector-parser: 6.1.0resolve: 1.22.8sucrase: 3.35.0@@ -14046,7 +13989,7 @@ snapshots:'@babel/plugin-syntax-import-meta': 7.10.4(@babel/[email protected])'@babel/plugin-transform-typescript': 7.24.7(@babel/[email protected])'@vue/babel-plugin-jsx': 1.2.2(@babel/[email protected])- '@vue/compiler-dom': 3.4.33+ '@vue/compiler-dom': 3.4.35kolorist: 1.8.0magic-string: 0.30.10vite: 5.3.4(@types/[email protected])([email protected])@@ -14056,7 +13999,7 @@ snapshots:dependencies:esbuild: 0.21.5- postcss: 8.4.39+ postcss: 8.4.40rollup: 4.19.0optionalDependencies:'@types/node': 20.14.11