Skip to content

perf: avoid cheerio in favor of regex #655

perf: avoid cheerio in favor of regex

perf: avoid cheerio in favor of regex #655

Triggered via pull request May 10, 2024 14:39
Status Failure
Total duration 1m 34s
Artifacts

ci.yml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 6 warnings
test/ssgHashes.test.ts > [nuxt-security] SSG support of CSP > sets style-src for external stylesheets: test/ssgHashes.test.ts#L140
AssertionError: expected +0 to be 1 // Object.is equality - Expected + Received - 1 + 0 ❯ test/ssgHashes.test.ts:140:33
ci (ubuntu-latest, 18)
Process completed with exit code 1.
ci (ubuntu-latest, 18)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ci (ubuntu-latest, 18): src/runtime/nitro/plugins/10-preprocessHtml.ts#L2
'cheerio' is defined but never used
ci (ubuntu-latest, 18): src/runtime/nitro/plugins/30-cspSsgHashes.ts#L1
'setResponseHeader' is defined but never used
ci (ubuntu-latest, 18): src/runtime/nitro/plugins/30-cspSsgHashes.ts#L2
'cheerio' is defined but never used
ci (ubuntu-latest, 18): src/runtime/nitro/plugins/30-cspSsgHashes.ts#L3
'ContentSecurityPolicyValue' is defined but never used
ci (ubuntu-latest, 18): src/runtime/nitro/plugins/30-cspSsgHashes.ts#L4
'headerStringFromObject' is defined but never used