Skip to content

Commit

Permalink
refactor(constants): remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Apr 11, 2023
1 parent 378b5ce commit a5840b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@

export const enum CSPHeader {
ContentSecurityPolicy = "content-security-policy",
ContentSecurityPolicyReportOnly = "content-security-policy-report-only",
ContentSecurityPolicyReportOnly =
`${CSPHeader.ContentSecurityPolicy}-report-only`,
}

const enum Abnf {
SerializedPolicyList = "<serialized-policy-list>",
DirectiveKey = "<directive-key>",
Vchar = "<VCHAR>",
}

export const enum Msg {
InvalidSerializedPolicyList = `invalid ${Abnf.SerializedPolicyList} format.`,
InvalidVcharWithout = `invalid ${Abnf.Vchar} without ";" and "," format.`,
InvalidDirectiveKey = `invalid ${Abnf.DirectiveKey} format.`,
RequiredDirective = "one or more directives are required.",
Expand Down

0 comments on commit a5840b2

Please sign in to comment.