nuxt-modules / turnstile

🔥 Cloudflare Turnstile integration for Nuxt
https://cloudflare.com/products/turnstile
MIT License
215 stars 17 forks source link

feat: nuxt-scripts integration #306

Open huang-julien opened 2 months ago

huang-julien commented 2 months ago

Hi :wave:

This PR implements @nuxt/scripts and force the constraint to nuxt 3 as there probably won't be any additionnal fixes for nuxt 2 (and it's reaching EOL)

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 34.32836% with 44 lines in your changes missing coverage. Please review.

Project coverage is 22.77%. Comparing base (dc164cc) to head (a921b0d). Report is 37 commits behind head on main.

Files Patch % Lines
src/runtime/composables/turnstile.ts 0.00% 22 Missing :warning:
src/runtime/components/NuxtTurnstile.vue 0.00% 16 Missing :warning:
src/module.ts 81.48% 5 Missing :warning:
src/runtime/types.ts 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #306 +/- ## ========================================== + Coverage 19.26% 22.77% +3.50% ========================================== Files 12 13 +1 Lines 493 483 -10 Branches 23 27 +4 ========================================== + Hits 95 110 +15 + Misses 398 373 -25 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.