fix(helmet): correct CSP creation detail#44228
fix(helmet): correct CSP creation detail#44228elibarzilay merged 1 commit intoDefinitelyTyped:masterfrom
Conversation
the `options` here are required in `helmet-csp` types, at runtime this throws exception: https://github.com/helmetjs/csp/blob/master/index.ts#L10 https://github.com/helmetjs/csp/blob/8bf3360019b61be93b8cf18a1bad8fe9fe43578f/lib/check-options/index.ts#L12 - maintainer added - test amended Thanks!
|
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
|
@peterblazejewicz Thank you for submitting this PR! 🔔 @cyrilschumacher @EvanHahn @BlueHatbRit @chdanielmueller - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
EvanHahn
left a comment
There was a problem hiding this comment.
Looks good.
IHelmetContentSecurityPolicyConfiguration should also mark directives as required, but that could be done in a followup.
|
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
The `helmet-csp` throws an error at runtime if that property is missing. Marking this as required, see author's comment: DefinitelyTyped#44228 (review) Thanks!
The `helmet-csp` throws an error at runtime if that property is missing. Marking this as required, see author's comment: DefinitelyTyped#44228 (review) Thanks!
…red by @peterblazejewicz * feat(helmet): make `directives` of CSP config reuqired The `helmet-csp` throws an error at runtime if that property is missing. Marking this as required, see author's comment: #44228 (review) Thanks! * Remove non-related Prettier pragma Fixing PR comment
…SP config required by @peterblazejewicz * feat(helmet): make `directives` of CSP config reuqired The `helmet-csp` throws an error at runtime if that property is missing. Marking this as required, see author's comment: DefinitelyTyped#44228 (review) Thanks! * Remove non-related Prettier pragma Fixing PR comment
the `options` here are required in `helmet-csp` types, at runtime this throws exception: https://github.com/helmetjs/csp/blob/master/index.ts#L10 https://github.com/helmetjs/csp/blob/8bf3360019b61be93b8cf18a1bad8fe9fe43578f/lib/check-options/index.ts#L12 - maintainer added - test amended Thanks!
…SP config required by @peterblazejewicz * feat(helmet): make `directives` of CSP config reuqired The `helmet-csp` throws an error at runtime if that property is missing. Marking this as required, see author's comment: DefinitelyTyped#44228 (review) Thanks! * Remove non-related Prettier pragma Fixing PR comment
the
optionshere are required inhelmet-csptypes, at runtime thisthrows exception:
https://github.com/helmetjs/csp/blob/master/index.ts#L15
https://github.com/helmetjs/csp/blob/8bf3360019b61be93b8cf18a1bad8fe9fe43578f/lib/check-options/index.ts#L12
Thanks!
Please fill in this template.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).