@nosecone/sveltekit 1.12.0 → 1.14.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.
- package/dist/index.d.ts +5 -5
- package/package.json +7 -7
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
|
|
106
|
+
export declare function csp(options?: ContentSecurityPolicyConfig): SvelteKitCsp;
|
|
107
107
|
//#endregion
|
|
108
|
-
export {
|
|
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.
|
|
3
|
+
"version": "1.14.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.
|
|
62
|
+
"nosecone": "1.14.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@sveltejs/kit": "2.70.
|
|
65
|
+
"@sveltejs/kit": "2.70.3",
|
|
66
66
|
"@sveltejs/vite-plugin-svelte": "7.3.0",
|
|
67
|
-
"@types/node": "22.20.
|
|
68
|
-
"svelte": "5.
|
|
69
|
-
"tsdown": "0.
|
|
67
|
+
"@types/node": "22.20.4",
|
|
68
|
+
"svelte": "5.57.0",
|
|
69
|
+
"tsdown": "0.23.0",
|
|
70
70
|
"typescript": "6.0.3",
|
|
71
|
-
"vite": "8.
|
|
71
|
+
"vite": "8.3.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@sveltejs/kit": ">=2"
|