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.15.5 to 0.15.6

2

dist/index.d.ts

@@ -37,3 +37,3 @@ import { type Plugin } from 'vite';

var hookedProcessExit: boolean;
var exit: () => Promise<void>;
var exit: () => Promise<null> | Promise<void | Error>;
}

@@ -110,12 +110,3 @@ "use strict";

function calcEntryCount(optionsArray) {
return optionsArray.reduce((count, options) => {
var _a, _b, _c;
const input = (_c = (_b = (_a = options.vite) == null ? void 0 : _a.build) == null ? void 0 : _b.rollupOptions) == null ? void 0 : _c.input;
if (input) {
count += typeof input === "string" ? 1 : Object.keys(input).length;
} else if (options.entry) {
count += typeof options.entry === "string" ? 1 : Object.keys(options.entry).length;
}
return count;
}, 0);
return optionsArray.length;
}

@@ -197,4 +188,4 @@ function build(options) {

startup.hookedProcessExit = true;
process.once("exit", () => {
startup.exit();
process.once("exit", async () => {
await startup.exit();
process.electronApp.kill();

@@ -205,11 +196,13 @@ });

startup.hookedProcessExit = false;
startup.exit = async () => {
if (process.electronApp) {
process.electronApp.removeAllListeners();
startup.exit = () => {
if (!process.electronApp) {
return Promise.resolve(null);
}
process.electronApp.removeAllListeners();
return new Promise(async (resolve) => {
await import("tree-kill").then((m) => m.default(
process.electronApp.pid,
"SIGKILL",
(error) => error && process.electronApp.kill()
resolve
)).catch((e) => {
process.electronApp.kill();
if (e.code === "ERR_MODULE_NOT_FOUND") {

@@ -223,4 +216,6 @@ console.log(

}
process.electronApp.kill();
resolve(e);
});
}
});
};

@@ -227,0 +222,0 @@ exports.build = build;

{
"name": "vite-plugin-electron",
"version": "0.15.5",
"version": "0.15.6",
"description": "Electron 🔗 Vite",

@@ -29,3 +29,3 @@ "main": "./dist/index.js",

},
"author": "草鞋没号 <308487730@qq.com>",
"author": "Leo Wang(草鞋没号) <308487730@qq.com>",
"license": "MIT",

@@ -56,5 +56,5 @@ "packageManager": "pnpm@8.0.0",

"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite": "^4.5.1",
"vite-plugin-electron-renderer": "^0.14.5",
"vitest": "^0.34.6"
"vitest": "^1.2.0"
},

@@ -61,0 +61,0 @@ "files": [

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