-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Content Security Policy class.
• Rename `CSP` to `CSPBuilder`. • Introduce runtime-based type safety. • Refactor `#string2object` and `.merge` methods to use `Array` methods than loops. • Do not store `string` value in the class. • Implement changing class value with getter/setter. • Store CSP string instead of class in the cache. • Add JSDoc comments to class/methods.
- Loading branch information
1 parent
5e8614b
commit b53339c
Showing
2 changed files
with
95 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters