electron-incremental-update 2.3.0 → 2.3.1
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/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -1
- package/package.json +1 -1
package/dist/vite.d.ts
CHANGED
|
@@ -295,7 +295,7 @@ type ReplaceKey<T, Key extends keyof T, NewKey extends string> = Omit<T, Key> &
|
|
|
295
295
|
[P in NewKey]: T[Key];
|
|
296
296
|
};
|
|
297
297
|
type MakeRequiredAndReplaceKey<T, K extends keyof T, NewKey extends string> = MakeRequired<ReplaceKey<T, K, NewKey>, NewKey>;
|
|
298
|
-
type StartupFn = NonNullable<NonNullable<ElectronSimpleOptions['
|
|
298
|
+
type StartupFn = NonNullable<NonNullable<ElectronSimpleOptions['main']>['onstart']>;
|
|
299
299
|
/**
|
|
300
300
|
* Startup function for debug (see {@link https://github.com/electron-vite/electron-vite-vue/blob/main/vite.config.ts electron-vite-vue template})
|
|
301
301
|
* @example
|
package/dist/vite.js
CHANGED
|
@@ -222,7 +222,7 @@ function parseOptions(pkg, sourcemap = false, minify = false, options = {}) {
|
|
|
222
222
|
overrideViteOptions,
|
|
223
223
|
ignoreDynamicRequires,
|
|
224
224
|
external: (source, importer, isResolved) => {
|
|
225
|
-
if (source.endsWith(".node")) {
|
|
225
|
+
if (source.endsWith(".node") || source.startsWith("node:")) {
|
|
226
226
|
return false;
|
|
227
227
|
}
|
|
228
228
|
if (!external) {
|
|
@@ -294,6 +294,9 @@ function parseVersionPath(versionPath) {
|
|
|
294
294
|
}
|
|
295
295
|
return new URL(versionPath, "file://").pathname.slice(1);
|
|
296
296
|
}
|
|
297
|
+
var ex = startup.exit;
|
|
298
|
+
startup.exit = () => ex().catch(() => {
|
|
299
|
+
});
|
|
297
300
|
async function electronWithUpdater(options) {
|
|
298
301
|
let {
|
|
299
302
|
isBuild,
|
package/package.json
CHANGED