unjs / c12

⚙️ Smart Configuration Loader
MIT License
541 stars 19 forks source link

feat: allow disabling remote extend with `giget: false` #181

Closed web-dev-sam closed 2 months ago

web-dev-sam commented 3 months ago

resolves #180

When loading in user configs we don't always want to import remote non-trusted code in code-based config files (.js, .ts, ...). This PR adds the option to disable remote extending while still supporting extensions of local config files.

web-dev-sam commented 3 months ago

@pi0 Hey, I don't want to annoy you if you're busy. I would be really happy if you could give a quick feedback on this and if or how it could be merged. There is also another PR open for a while, just a quick comment would let us know that it has been seen and if it has a chance of being merged. This is a really valuable package and thank you for maintaining it with many other packages 🫡.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.75%. Comparing base (42d9697) to head (820dbf9). Report is 66 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #181 +/- ## ========================================== - Coverage 76.92% 71.75% -5.17% ========================================== Files 7 8 +1 Lines 806 616 -190 Branches 80 105 +25 ========================================== - Hits 620 442 -178 + Misses 184 172 -12 Partials 2 2 ```

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