Skip to content

Commit

Permalink
DO-1530: remove unused test and code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
gowrizrh committed Sep 29, 2023
1 parent aef577f commit b425d2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"homepage": "https://github.com/aligent/aws-cdk-constructs#readme",
"scripts": {
"build": "tsc",
"prepublish": "tsc",
"prepublish": "npm run build",
"lint": "eslint --ignore-path .eslintignore --ext .ts .",
"lint:check": "npm run lint",
"lint:fix": "npm run lint --fix",
Expand Down
4 changes: 3 additions & 1 deletion packages/cloudfront-security-headers/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export class SecurityHeaderFunction extends Construct {
) {
super(scope, id);

const defineOptions: any = {};
const defineOptions: {
__CONTENT_SECURITY_POLICY__?: string
} = {};

if (props?.contentSecurityPolicy) {
defineOptions.__CONTENT_SECURITY_POLICY__ = JSON.stringify(
Expand Down

This file was deleted.

0 comments on commit b425d2a

Please sign in to comment.