@sveltejs/kit
Advanced tools
Comparing version 2.5.2 to 2.5.3
{ | ||
"name": "@sveltejs/kit", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"description": "The fastest way to build Svelte apps", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -58,6 +58,5 @@ import fs from 'node:fs'; | ||
const include = new Set([ | ||
'ambient.d.ts', | ||
'ambient.d.ts', // careful: changing this name would be a breaking change, because it's referenced in the service-workers documentation | ||
'non-ambient.d.ts', | ||
'./types/**/$types.d.ts', | ||
config_relative('svelte.config.js'), | ||
config_relative('vite.config.js'), | ||
@@ -86,2 +85,11 @@ config_relative('vite.config.ts') | ||
const exclude = [config_relative('node_modules/**')]; | ||
// Add service worker to exclude list so that worker types references in it don't spill over into the rest of the app | ||
// (i.e. suddenly ServiceWorkerGlobalScope would be available throughout the app, and some types might even clash) | ||
if (path.extname(kit.files.serviceWorker)) { | ||
exclude.push(config_relative(kit.files.serviceWorker)); | ||
} else { | ||
exclude.push(config_relative(`${kit.files.serviceWorker}.js`)); | ||
exclude.push(config_relative(`${kit.files.serviceWorker}.ts`)); | ||
exclude.push(config_relative(`${kit.files.serviceWorker}.d.ts`)); | ||
} | ||
@@ -88,0 +96,0 @@ const config = { |
@@ -76,3 +76,2 @@ // This module contains types that are visible in the documentation, | ||
type Sources = Source[]; | ||
type UriPath = `${HttpDelineator}${string}`; | ||
} | ||
@@ -117,3 +116,3 @@ | ||
'navigate-to'?: Array<Csp.Source | Csp.ActionSource>; | ||
'report-uri'?: Csp.UriPath[]; | ||
'report-uri'?: string[]; | ||
'report-to'?: string[]; | ||
@@ -120,0 +119,0 @@ |
// generated during release, do not modify | ||
/** @type {string} */ | ||
export const VERSION = '2.5.2'; | ||
export const VERSION = '2.5.3'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
728921
21238