@nosecone/sveltekit 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -5
  2. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { Handle, KitConfig } from "@sveltejs/kit";
4
4
  /**
5
5
  * Nosecone SvelteKit defaults.
6
6
  */
7
- declare const defaults: {
7
+ export declare const defaults: {
8
8
  readonly contentSecurityPolicy: {
9
9
  readonly directives: {
10
10
  readonly baseUri: readonly ["'none'"];
@@ -80,12 +80,12 @@ declare const defaults: {
80
80
  * @returns
81
81
  * SvelteKit hook that sets secure headers.
82
82
  */
83
- declare function createHook(options?: Options$1): Handle;
83
+ export declare function createHook(options?: Options$1): Handle;
84
84
  type SvelteKitCsp = Exclude<KitConfig["csp"], undefined>;
85
85
  /**
86
86
  * Content Security Policy configuration for SvelteKit.
87
87
  */
88
- type ContentSecurityPolicyConfig = {
88
+ export type ContentSecurityPolicyConfig = {
89
89
  /**
90
90
  * Mode of the `Content-Security-Policy` header.
91
91
  */
@@ -103,6 +103,6 @@ type ContentSecurityPolicyConfig = {
103
103
  * @returns
104
104
  * SvelteKit Content Security Policy configuration.
105
105
  */
106
- declare function csp(options?: ContentSecurityPolicyConfig | undefined): SvelteKitCsp;
106
+ export declare function csp(options?: ContentSecurityPolicyConfig): SvelteKitCsp;
107
107
  //#endregion
108
- export { ContentSecurityPolicyConfig, type NoseconeOptions, type Options, createHook, csp, nosecone as default, nosecone, defaults, withVercelToolbar };
108
+ export { type NoseconeOptions, type Options, nosecone as default, nosecone, withVercelToolbar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosecone/sveltekit",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Protect your SvelteKit application with secure headers",
5
5
  "keywords": [
6
6
  "arcjet",
@@ -59,16 +59,16 @@
59
59
  "test": "npm run build && npm run test-coverage"
60
60
  },
61
61
  "dependencies": {
62
- "nosecone": "1.12.0"
62
+ "nosecone": "1.13.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@sveltejs/kit": "2.70.2",
65
+ "@sveltejs/kit": "2.70.3",
66
66
  "@sveltejs/vite-plugin-svelte": "7.3.0",
67
67
  "@types/node": "22.20.1",
68
- "svelte": "5.56.9",
69
- "tsdown": "0.22.14",
68
+ "svelte": "5.57.0",
69
+ "tsdown": "0.23.0",
70
70
  "typescript": "6.0.3",
71
- "vite": "8.2.1"
71
+ "vite": "8.2.2"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@sveltejs/kit": ">=2"