diff --git a/package-lock.json b/package-lock.json index b28ff49c..c8b3665d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@types/marked": "^5.0.1", "@vueuse/head": "^1.1.26", + "@xmldom/xmldom": "^0.8.10", "compression": "^1.7.4", "express": "^4.19.2", "express-rate-limit": "^7.4.0", @@ -18,9 +19,9 @@ "prettier": "^3.3.3", "sirv": "^2.0.4", "slugify": "^1.6.6", + "unhead": "^1.9.16", "vue": "^3.2.47", - "vue-router": "^4.1.6", - "xmldom": "^0.6.0" + "vue-router": "^4.1.6" }, "devDependencies": { "@types/node": "^18.17.0", @@ -567,6 +568,21 @@ "vue": ">=2.7 || >=3" } }, + "node_modules/@unhead/vue/node_modules/unhead": { + "version": "1.9.14", + "resolved": "https://registry.npmjs.org/unhead/-/unhead-1.9.14.tgz", + "integrity": "sha512-npdYu6CfasX/IhB8OO27e3u4A1zhAY77T1FwWDIIUaJvugYTte5hjsolPX0/fG5jmjnWTFTuIkmbCSfj7bfIkg==", + "license": "MIT", + "dependencies": { + "@unhead/dom": "1.9.14", + "@unhead/schema": "1.9.14", + "@unhead/shared": "1.9.14", + "hookable": "^5.5.3" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, "node_modules/@vitejs/plugin-vue": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.6.2.tgz", @@ -757,6 +773,15 @@ "vue": ">=2.7 || >=3" } }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -3431,19 +3456,58 @@ "dev": true }, "node_modules/unhead": { - "version": "1.9.14", - "resolved": "https://registry.npmjs.org/unhead/-/unhead-1.9.14.tgz", - "integrity": "sha512-npdYu6CfasX/IhB8OO27e3u4A1zhAY77T1FwWDIIUaJvugYTte5hjsolPX0/fG5jmjnWTFTuIkmbCSfj7bfIkg==", + "version": "1.9.16", + "resolved": "https://registry.npmjs.org/unhead/-/unhead-1.9.16.tgz", + "integrity": "sha512-FOoXkuRNDwt7PUaNE0LXNCb6RCz4vTpkGymz4tJ8rcaG5uUJ0lxGK536hzCFwFw3Xkp3n+tkt2yCcbAZE/FOvA==", + "license": "MIT", "dependencies": { - "@unhead/dom": "1.9.14", - "@unhead/schema": "1.9.14", - "@unhead/shared": "1.9.14", + "@unhead/dom": "1.9.16", + "@unhead/schema": "1.9.16", + "@unhead/shared": "1.9.16", "hookable": "^5.5.3" }, "funding": { "url": "https://github.com/sponsors/harlan-zw" } }, + "node_modules/unhead/node_modules/@unhead/dom": { + "version": "1.9.16", + "resolved": "https://registry.npmjs.org/@unhead/dom/-/dom-1.9.16.tgz", + "integrity": "sha512-aZIAnnc89Csi1vV4mtlHYI765B7m1yuaXUuQiYHwr6glE9FLyy2X87CzEci4yPH/YbkKm0bGQRfcxXq6Eq0W7g==", + "license": "MIT", + "dependencies": { + "@unhead/schema": "1.9.16", + "@unhead/shared": "1.9.16" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, + "node_modules/unhead/node_modules/@unhead/schema": { + "version": "1.9.16", + "resolved": "https://registry.npmjs.org/@unhead/schema/-/schema-1.9.16.tgz", + "integrity": "sha512-V2BshX+I6D2wN4ys5so8RQDUgsggsxW9FVBiuQi4h8oPWtHclogxzDiHa5BH2TgvNIoUxLnLYNAShMGipmVuUw==", + "license": "MIT", + "dependencies": { + "hookable": "^5.5.3", + "zhead": "^2.2.4" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, + "node_modules/unhead/node_modules/@unhead/shared": { + "version": "1.9.16", + "resolved": "https://registry.npmjs.org/@unhead/shared/-/shared-1.9.16.tgz", + "integrity": "sha512-pfJnArULCY+GBr7OtYyyxihRiQLkT31TpyK6nUKIwyax4oNOGyhNfk0RFzNq16BwLg60d1lrc5bd5mZGbfClMA==", + "license": "MIT", + "dependencies": { + "@unhead/schema": "1.9.16" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -3783,15 +3847,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/xmldom": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", - "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", diff --git a/package.json b/package.json index 47e829d8..e8780144 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dependencies": { "@types/marked": "^5.0.1", "@vueuse/head": "^1.1.26", + "@xmldom/xmldom": "^0.8.10", "compression": "^1.7.4", "express": "^4.19.2", "express-rate-limit": "^7.4.0", @@ -25,8 +26,7 @@ "slugify": "^1.6.6", "unhead": "^1.9.16", "vue": "^3.2.47", - "vue-router": "^4.1.6", - "xmldom": "^0.6.0" + "vue-router": "^4.1.6" }, "devDependencies": { "@types/node": "^18.17.0", diff --git a/scripts/generateArticlesJson.cjs b/scripts/generateArticlesJson.cjs index 7d7b9ccb..68bdf809 100644 --- a/scripts/generateArticlesJson.cjs +++ b/scripts/generateArticlesJson.cjs @@ -3,7 +3,7 @@ const path = require("path"); const glob = require("glob"); const yaml = require("js-yaml"); const { marked } = require("marked"); -const { DOMParser, XMLSerializer } = require("xmldom"); +const { DOMParser, XMLSerializer } = require("@xmldom/xmldom"); function cleanArticlesDir(articlesDir) { console.log(`Cleaning articles directory: ${articlesDir}`);