@netlify/plugin-csp-nonce 1.0.3 → 1.0.4

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 CHANGED
@@ -1,8 +1,8 @@
1
+ /* eslint-disable no-console */
1
2
  import fs, { copyFileSync } from "fs";
2
3
 
3
4
  const SITE_ID = "321a7119-6008-49a8-9d2f-e20602b1b349";
4
5
 
5
- /* eslint-disable no-console */
6
6
  export const onPreBuild = async ({ inputs, netlifyConfig, utils }) => {
7
7
  console.log(` Current working directory: ${process.cwd()}`);
8
8
  const config = JSON.stringify(inputs, null, 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/plugin-csp-nonce",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Use a nonce for the script-src and style-src directives of your Content Security Policy.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -1,5 +1,4 @@
1
- /* eslint-disable import/extensions */
2
- /* eslint-disable import/no-unresolved */
1
+ /* eslint-disable */
3
2
  // @ts-expect-error
4
3
  import { cryptoRandomString } from "https://deno.land/x/crypto_random_string@1.0.0/mod.ts";
5
4
  // @ts-expect-error
@@ -1,8 +1,8 @@
1
+ /* eslint-disable */
1
2
  const handler = async (event) => {
2
3
  try {
3
4
  const { "csp-report": cspReport } = JSON.parse(event.body);
4
5
  if (cspReport) {
5
- // eslint-disable-next-line no-console
6
6
  console.log(JSON.stringify(cspReport));
7
7
  }
8
8
  } catch (err) {