Skip to content

Commit

Permalink
fix(nosecone): Re-export default configuration from adapters (#2285)
Browse files Browse the repository at this point in the history
This re-exports the `defaults` object to make merging defaults and custom settings easier.
  • Loading branch information
blaine-arcjet authored Nov 20, 2024
1 parent 2e66f84 commit 8b19f65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nosecone-next/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import nosecone, { defaults } from "nosecone";
import type { CspDirectives, NoseconeOptions } from "nosecone";

// Re-exports the defaults for easier overrides
export { defaults };

// We export `nosecone` as the default so it can be used with `new Response()`
export default nosecone;

Expand Down
3 changes: 3 additions & 0 deletions nosecone-sveltekit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import nosecone, {
import type { CspDirectives, NoseconeOptions } from "nosecone";
import type { Handle, KitConfig } from "@sveltejs/kit";

// Re-exports the defaults for easier overrides
export { defaults };

// We export `nosecone` as the default so it can be used with `new Response()`
export default nosecone;

Expand Down

0 comments on commit 8b19f65

Please sign in to comment.