@magicdima/vite-plugin-csp 0.1.5 → 0.1.7
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/README.md +0 -4
- package/package.json +14 -7
package/README.md
CHANGED
|
@@ -64,10 +64,6 @@ Whether to enable CSP injection. Defaults to `true`.
|
|
|
64
64
|
|
|
65
65
|
When disabled, the plugin will not inject CSP meta tag.
|
|
66
66
|
|
|
67
|
-
### `policy`
|
|
68
|
-
|
|
69
|
-
An additional CSP policy string to append to the generated policy. Useful for complex policies that don't fit the directive object structure.
|
|
70
|
-
|
|
71
67
|
## How it works
|
|
72
68
|
|
|
73
69
|
The plugin injects a `<meta http-equiv="Content-Security-Policy">` tag into the HTML head at build time.
|
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicdima/vite-plugin-csp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"homepage": "https://github.com/dmshvetsov/vite-plugin-csp#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/dmshvetsov/vite-plugin-csp/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/dmshvetsov/vite-plugin-csp.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "ISC",
|
|
5
15
|
"main": "./dist/index.js",
|
|
6
16
|
"types": "./dist/index.d.ts",
|
|
7
17
|
"files": [
|
|
@@ -11,15 +21,12 @@
|
|
|
11
21
|
"scripts": {
|
|
12
22
|
"build": "tsc"
|
|
13
23
|
},
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
16
|
-
},
|
|
17
24
|
"devDependencies": {
|
|
18
25
|
"typescript": "^5.9.3",
|
|
19
26
|
"vite": "^7.3.0"
|
|
20
27
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
30
|
+
},
|
|
24
31
|
"packageManager": "pnpm@10.17.1"
|
|
25
32
|
}
|