@netlify/plugin-csp-nonce 1.3.3-alpha.1 → 1.3.4-alpha.1
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.js +12 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -92,4 +92,15 @@ export const onPreBuild = async ({
|
|
|
92
92
|
console.log(` Done.`);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
export const onPreDev =
|
|
95
|
+
export const onPreDev = async ({ inputs, netlifyConfig, utils, constants }) => {
|
|
96
|
+
if (!process.env.RUN_NETLIFY_CSP_NONCE_PLUGIN_TESTS) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return onPreBuild({
|
|
101
|
+
inputs,
|
|
102
|
+
netlifyConfig,
|
|
103
|
+
utils,
|
|
104
|
+
constants,
|
|
105
|
+
});
|
|
106
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@netlify/plugin-csp-nonce",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4-alpha.1",
|
|
5
5
|
"description": "Use a nonce for the script-src and style-src directives of your Content Security Policy.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"repository": {
|