@sveltejs/kit 2.2.1 → 2.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -194,7 +194,7 @@ class BaseProvider {
194
194
  this.#style_src_elem.push(`sha256-${hash}`);
195
195
  }
196
196
  } else {
197
- if (this.#style_src.length === 0) {
197
+ if (this.#style_src.length === 0 && !d['style-src']?.includes('unsafe-inline')) {
198
198
  this.#style_src.push(`nonce-${this.#nonce}`);
199
199
  }
200
200
  if (d['style-src-attr']?.length) {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.2.1';
4
+ export const VERSION = '2.2.2';