@nosecone/sveltekit 1.0.0-alpha.29 → 1.0.0-alpha.30
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/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.ts +3 -0
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import nosecone from "nosecone";
|
|
1
|
+
import nosecone, { defaults } from "nosecone";
|
|
2
2
|
import type { CspDirectives, NoseconeOptions } from "nosecone";
|
|
3
3
|
import type { Handle, KitConfig } from "@sveltejs/kit";
|
|
4
|
+
export { defaults };
|
|
4
5
|
export default nosecone;
|
|
5
6
|
/**
|
|
6
7
|
* Create a SvelteKit hook that sets secure headers on every request.
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import nosecone, { defaults, CONTENT_SECURITY_POLICY_DIRECTIVES, NoseconeValidationError, QUOTED } from 'nosecone';
|
|
2
|
-
export { default } from 'nosecone';
|
|
2
|
+
export { default, defaults } from 'nosecone';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a SvelteKit hook that sets secure headers on every request.
|
package/index.ts
CHANGED
|
@@ -7,6 +7,9 @@ import nosecone, {
|
|
|
7
7
|
import type { CspDirectives, NoseconeOptions } from "nosecone";
|
|
8
8
|
import type { Handle, KitConfig } from "@sveltejs/kit";
|
|
9
9
|
|
|
10
|
+
// Re-exports the defaults for easier overrides
|
|
11
|
+
export { defaults };
|
|
12
|
+
|
|
10
13
|
// We export `nosecone` as the default so it can be used with `new Response()`
|
|
11
14
|
export default nosecone;
|
|
12
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nosecone/sveltekit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.30",
|
|
4
4
|
"description": "Protect your SvelteKit application with secure headers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://arcjet.com",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"test": "node --test"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"nosecone": "1.0.0-alpha.
|
|
43
|
+
"nosecone": "1.0.0-alpha.30"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@sveltejs/kit": ">=2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@arcjet/eslint-config": "1.0.0-alpha.
|
|
50
|
-
"@arcjet/rollup-config": "1.0.0-alpha.
|
|
51
|
-
"@arcjet/tsconfig": "1.0.0-alpha.
|
|
49
|
+
"@arcjet/eslint-config": "1.0.0-alpha.30",
|
|
50
|
+
"@arcjet/rollup-config": "1.0.0-alpha.30",
|
|
51
|
+
"@arcjet/tsconfig": "1.0.0-alpha.30",
|
|
52
52
|
"@rollup/wasm-node": "4.27.3",
|
|
53
53
|
"@sveltejs/kit": "^2.8.0",
|
|
54
54
|
"@types/node": "18.18.0",
|