diff --git a/config/vite/plugin-mastodon-themes.ts b/config/vite/plugin-mastodon-themes.ts index 9789d9078a8..84642ce81db 100644 --- a/config/vite/plugin-mastodon-themes.ts +++ b/config/vite/plugin-mastodon-themes.ts @@ -4,7 +4,7 @@ import fs from 'node:fs/promises'; import path from 'node:path'; -import yaml from 'js-yaml'; +import * as yaml from 'js-yaml'; import type { Plugin } from 'vite'; type Themes = Record; diff --git a/package.json b/package.json index 5637423135f..f29d2ba6f8d 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "idb": "^8.0.3", "immutable": "^4.3.0", "intl-messageformat": "^11.0.0", - "js-yaml": "^4.1.0", + "js-yaml": "^5.2.1", "lande": "^1.0.10", "lodash": "^4.17.21", "marky": "^1.2.5", diff --git a/yarn.lock b/yarn.lock index e7bbd446218..9520fe6c336 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3010,7 +3010,7 @@ __metadata: idb: "npm:^8.0.3" immutable: "npm:^4.3.0" intl-messageformat: "npm:^11.0.0" - js-yaml: "npm:^4.1.0" + js-yaml: "npm:^5.2.1" lande: "npm:^1.0.10" lint-staged: "npm:^17.0.0" lodash: "npm:^4.17.21" @@ -9461,6 +9461,17 @@ __metadata: languageName: node linkType: hard +"js-yaml@npm:^5.2.1": + version: 5.2.1 + resolution: "js-yaml@npm:5.2.1" + dependencies: + argparse: "npm:^2.0.1" + bin: + js-yaml: bin/js-yaml.mjs + checksum: 10c0/8eadf08efc738a656c2838f6617b0cc508944f66f568eb4d435e858261b889a6806d98f44fb6ffdba21a0c68e4bdff1ac35516724882e1dab8fc2cc59150c881 + languageName: node + linkType: hard + "jsdoc-type-pratt-parser@npm:~7.2.0": version: 7.2.0 resolution: "jsdoc-type-pratt-parser@npm:7.2.0"