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 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['preload']>['onstart']>;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "electron-incremental-update",
3
3
  "type": "module",
4
- "version": "2.3.0",
4
+ "version": "2.3.1",
5
5
  "description": "Electron incremental update tools with Vite plugin, support bytecode protection",
6
6
  "author": "subframe7536",
7
7
  "license": "MIT",