Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-electron

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-electron - npm Package Compare versions

Comparing version 0.28.4 to 0.28.5

6

dist/index.d.ts

@@ -22,2 +22,4 @@ /// <reference types="node" />

* @param argv default value `['.', '--no-sandbox']`
* @param options options for `child_process.spawn`
* @param customElectronPkg custom electron package name (default: 'electron')
*/

@@ -35,4 +37,6 @@ startup: (argv?: string[], options?: import('node:child_process').SpawnOptions) => Promise<void>;

* @param argv default value `['.', '--no-sandbox']`
* @param options options for `child_process.spawn`
* @param customElectronPkg custom electron package name (default: 'electron')
*/
export declare function startup(argv?: string[], options?: import('node:child_process').SpawnOptions): Promise<void>;
export declare function startup(argv?: string[], options?: import('node:child_process').SpawnOptions, customElectronPkg?: string): Promise<void>;
export declare namespace startup {

@@ -39,0 +43,0 @@ var hookedProcessExit: boolean;

6

dist/index.js

@@ -189,3 +189,3 @@ "use strict";

if (process.electronApp) {
server.ws.send({ type: "full-reload" });
server.hot.send({ type: "full-reload" });
} else {

@@ -225,5 +225,5 @@ startup();

}
async function startup(argv = [".", "--no-sandbox"], options) {
async function startup(argv = [".", "--no-sandbox"], options, customElectronPkg) {
const { spawn } = await import("node:child_process");
const electron2 = await import("electron");
const electron2 = await import(customElectronPkg ?? "electron");
const electronPath = electron2.default ?? electron2;

@@ -230,0 +230,0 @@ await startup.exit();

{
"name": "vite-plugin-electron",
"version": "0.28.4",
"version": "0.28.5",
"description": "Electron 🔗 Vite",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -149,2 +149,4 @@ <p align="center">

* @param argv default value `['.', '--no-sandbox']`
* @param options options for `child_process.spawn`
* @param customElectronPkg custom electron package name (default: 'electron')
*/

@@ -151,0 +153,0 @@ startup: (argv?: string[], options?: import('node:child_process').SpawnOptions) => Promise<void>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc