diff options
| author | Leitwolf11 | 2026-10-23 06:07:01 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-23 06:07:01 +0300 |
| commit | 1a82704248753633d1d546e59a21efda9d07e96b (patch) | |
| tree | ed362587d598fffa02f208854230981d54f4f7f8 | |
| parent | c2787446c019458d635a152e113dc0f265c31f52 (diff) | |
| download | website-ops/real-404.tar.gz | |
Update vite and launch-editor for the npm audit and format the route testops/real-404
npm audit fix moves the development dependencies vite to 7.3.7 and
launch-editor past GHSA-698v-4r3x-3vcv, GHSA-r825-w8mm-5pxw and
GHSA-587h-7wmj-h5pm; the frontend audit gate failed on them. Prettier
formats tests/site-integrity.test.mjs, which the format check flagged.
| -rw-r--r-- | frontend/package-lock.json | 6 | ||||
| -rw-r--r-- | frontend/tests/site-integrity.test.mjs | 16 |
2 files changed, 17 insertions, 5 deletions
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 32fbef4..f6fc691 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -2007,9 +2007,9 @@ } }, "node_modules/vite": { - "version": "7.3.6", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz", - "integrity": "sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==", + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.7.tgz", + "integrity": "sha512-AHEzTORMbi7/7aXp7w7KZ5+DCUdSeLsJz0grY8xHpc9DHdYb0vQu6DqJfm2tOw3gDExNgPgnJTXxM6syYFHaCA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/frontend/tests/site-integrity.test.mjs b/frontend/tests/site-integrity.test.mjs index 2785a67..21e4ed2 100644 --- a/frontend/tests/site-integrity.test.mjs +++ b/frontend/tests/site-integrity.test.mjs @@ -166,14 +166,26 @@ test("only the routes of the application get the app shell; other paths answer 4 const patterns = [...live.matchAll(/if \(\$uri !~ "([^"]+)"\)/g)].map((match) => match[1]); assert.equal(new Set(patterns).size, 1, "the three sites must accept the same routes"); const route = new RegExp(patterns[0]); - const pages = ["public/sitemap.xml", "public/hosts/talac/sitemap.xml", "public/hosts/tazel/sitemap.xml"] + const pages = [ + "public/sitemap.xml", + "public/hosts/talac/sitemap.xml", + "public/hosts/tazel/sitemap.xml", + ] .flatMap(locations) .map((url) => new URL(url).pathname); assert.ok(pages.length > 3); for (const path of pages) { assert.match(path, route, `${path} is in a sitemap but would answer 404`); } - for (const path of ["/wp-login.php", "/wp-admin/install.php", "/docs", "/docs/", "/docs/a/b", "/.env", "/a"]) { + for (const path of [ + "/wp-login.php", + "/wp-admin/install.php", + "/docs", + "/docs/", + "/docs/a/b", + "/.env", + "/a", + ]) { assert.doesNotMatch(path, route, `${path} would be served as a page`); } }); |