Skip to content

Commit

Permalink
Merge pull request #1 from tiptophelmet/v0.1.1
Browse files Browse the repository at this point in the history
Release v0.1.1
  • Loading branch information
tiptophelmet authored Sep 12, 2023
2 parents 7a6bf48 + ef41508 commit e8498ba
Show file tree
Hide file tree
Showing 70 changed files with 2 additions and 73 deletions.
3 changes: 1 addition & 2 deletions cspolicy.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Content-Security-Policy package.
// Provides functions to produce a valid Content-Security-Policy HTTP header value.
// User-friendly API to build your Content-Security-Policy HTTP header.
package cspolicy

import (
Expand Down
1 change: 0 additions & 1 deletion directives/baseUri_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/childSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/childSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/connectSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/connectSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
3 changes: 1 addition & 2 deletions directives/defaultSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand All @@ -8,7 +7,7 @@ import (
)

// Constructs the CSP 'default-src' directive.
// The 'default-src' directive sets a default source list for a number of directives.
// The 'default-src' directive sets a default source list for a number of directives.
// If those directives do not have an explicit source list, they will fall back to using this default list.
// See: [CSP.Directives.default-src].
//
Expand Down
1 change: 0 additions & 1 deletion directives/defaultSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/fontSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/fontSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/formAction.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/formAction_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/frameAncestors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/frameAncestors_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/frameSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/frameSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/imgSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/imgSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/manifestSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/manifestSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/mediaSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/mediaSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/objectSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/objectSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/reportTo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/reportTo_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/sandbox.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/sandbox_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/scriptSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/scriptSrcAttr.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/scriptSrcAttr_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/scriptSrcElem.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/scriptSrcElem_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/scriptSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/styleSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/styleSrcAttr.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/styleSrcAttr_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/styleSrcElem.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/styleSrcElem_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/styleSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/upgradeInsecureRequests.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

// Constructs the CSP 'upgrade-insecure-requests' directive.
Expand Down
1 change: 0 additions & 1 deletion directives/upgradeInsecureRequests_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/workerSrc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion directives/workerSrc_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Directives for Content-Security-Policy headers.
package directives

import (
Expand Down
1 change: 0 additions & 1 deletion src/hashAlgBase64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/hashAlgBase64_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/host.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/host_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/nonceBase64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/nonceBase64_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
2 changes: 0 additions & 2 deletions src/none.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Sources for Content-Security-Policy directives.
package src


// NoneVal represents the CSP 'none' source.
// The 'none' source ensures that no content can be loaded from any source.
// See: [CSP.Sources.none].
Expand Down
1 change: 0 additions & 1 deletion src/none_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/reportSample.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// ReportSampleVal represents the CSP 'report-sample' source.
Expand Down
1 change: 0 additions & 1 deletion src/reportSample_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/scheme.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/scheme_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/self.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// SelfVal represents the CSP 'self' source.
Expand Down
1 change: 0 additions & 1 deletion src/self_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/strictDynamic.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// StrictDynamicVal represents the CSP 'strict-dynamic' source.
Expand Down
1 change: 0 additions & 1 deletion src/strictDynamic_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/unsafeEval.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// UnsafeEvalVal represents the CSP 'unsafe-eval' source.
Expand Down
1 change: 0 additions & 1 deletion src/unsafeEval_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/unsafeHashes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// UnsafeHashesVal represents the CSP 'unsafe-hashes' source.
Expand Down
1 change: 0 additions & 1 deletion src/unsafeHashes_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/unsafeInline.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// UnsafeInlineVal represents the CSP 'unsafe-inline' source.
Expand Down
1 change: 0 additions & 1 deletion src/unsafeInline_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import (
Expand Down
1 change: 0 additions & 1 deletion src/util_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down
1 change: 0 additions & 1 deletion src/wasmUnsafeEval.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

// WasmUnsafeEvalVal represents the CSP 'wasm-unsafe-eval' source.
Expand Down
1 change: 0 additions & 1 deletion src/wasmUnsafeEval_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Sources for Content-Security-Policy directives.
package src

import "testing"
Expand Down

0 comments on commit e8498ba

Please sign in to comment.