@netlify/plugin-csp-nonce 1.2.8 → 1.2.10

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 CHANGED
@@ -92,6 +92,7 @@ If your HTML does not contain the `nonce` attribute on the `<script>` tags that
92
92
  - The request method is `GET`
93
93
  - The `content-type` response header starts with `text/html`
94
94
  - The path of the request is satisfied by the `path` config option, and not included in the `excludedPath` config option
95
+ - This site does not use [Split Testing](https://docs.netlify.com/site-deploys/split-testing/). There is a [known limitation](https://docs.netlify.com/edge-functions/limits/#feature-limitations) that requests to sites with Split Testing enabled will not execute edge functions.
95
96
 
96
97
  ### Controlling rollout
97
98
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@netlify/plugin-csp-nonce",
4
- "version": "1.2.8",
4
+ "version": "1.2.10",
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": {
@@ -4,7 +4,7 @@ import type { Config, Context } from "netlify:edge";
4
4
  // @ts-ignore
5
5
  import { randomBytes } from "node:crypto";
6
6
  // @ts-ignore
7
- import { HTMLRewriter } from "https://ghuc.cc/worker-tools/html-rewriter@0.1.0-pre.17/index.ts";
7
+ import { HTMLRewriter } from "https://ghuc.cc/worker-tools/html-rewriter@0.1.0-pre.19/index.ts";
8
8
 
9
9
  // @ts-ignore
10
10
  import inputs from "./__csp-nonce-inputs.json" assert { type: "json" };
@@ -179,7 +179,7 @@ const excludedExtensions = [
179
179
 
180
180
  export const config: Config = {
181
181
  path: params.path,
182
- excludedPath: ["/.netlify/*", `**/*.(${excludedExtensions.join("|")})`]
182
+ excludedPath: ["/.netlify*", `**/*.(${excludedExtensions.join("|")})`]
183
183
  .concat(params.excludedPath)
184
184
  .filter(Boolean),
185
185
  handler,