Merge branch 'main' into add-mrmime

This commit is contained in:
Luke Hagar
2025-10-18 22:57:24 -05:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# @sveltejs/adapter-electron # adapter-electron
A SvelteKit adapter for Electron desktop apps that uses native protocol handling for production and seamless Vite dev server integration for development. A SvelteKit adapter for Electron desktop apps that uses native protocol handling for production and seamless Vite dev server integration for development.

View File

@@ -53,7 +53,7 @@ export function getPreloadPath() {
let preloadPath = path.resolve(path.join(__dirname, 'PRELOAD')) let preloadPath = path.resolve(path.join(__dirname, 'PRELOAD'))
if (isDev) { if (isDev) {
preloadPath = path.resolve(path.join(__dirname, '..', 'preload', 'index.js')) preloadPath = path.resolve(path.join(__dirname, '..', 'preload', 'index.cjs'))
} }
return preloadPath; return preloadPath;
@@ -387,4 +387,4 @@ export const isSafePath = (base, target) => {
reportError(new Error(`Unsafe path detected: base=${base}, target=${target}, relative=${relative}`), 'Path traversal attempt'); reportError(new Error(`Unsafe path detected: base=${base}, target=${target}, relative=${relative}`), 'Path traversal attempt');
} }
return safe; return safe;
}; };

View File

@@ -1,6 +1,6 @@
{ {
"name": "adapter-electron", "name": "adapter-electron",
"version": "1.0.6", "version": "1.0.7",
"description": "A SvelteKit adapter for Electron Desktop Apps using protocol interception", "description": "A SvelteKit adapter for Electron Desktop Apps using protocol interception",
"author": { "author": {
"name": "Luke Hagar", "name": "Luke Hagar",
@@ -55,4 +55,4 @@
"rollup": "^4.45.1", "rollup": "^4.45.1",
"set-cookie-parser": "^2.6.0" "set-cookie-parser": "^2.6.0"
} }
} }