Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompile doT.js templates #413

Merged
merged 1 commit into from Oct 28, 2019
Merged

Precompile doT.js templates #413

merged 1 commit into from Oct 28, 2019

Conversation

OsamaSayegh
Copy link
Collaborator

This PR adds a build step that pre-compiles our doT.js templates. This is needed because doT.js uses eval which prevents us from disallowing unsafe-eval in CSP.

@codecov-io
Copy link

codecov-io commented Oct 25, 2019

Codecov Report

Merging #413 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #413   +/-   ##
=======================================
  Coverage   88.29%   88.29%           
=======================================
  Files          21       21           
  Lines        1247     1247           
=======================================
  Hits         1101     1101           
  Misses        146      146
Impacted Files Coverage Δ
lib/mini_profiler/asset_version.rb 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 548ad31...48543cf. Read the comment docs.

Copy link
Contributor

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OsamaSayegh thanks for taking care of this 🙏🙏. I can confirm rack-mini-profiler now works without unsafe-eval in the CSP. Wonderful addition! Also great to move pretty-print.js outside of the main JS source 👍.

@SamSaffron
Copy link
Member

Awesome change ... going to push out another release now!

@SamSaffron SamSaffron merged commit 6f31b1b into MiniProfiler:master Oct 28, 2019
@OsamaSayegh OsamaSayegh deleted the precompile-templates branch October 28, 2019 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants