vite-plugin-electron
Advanced tools
Comparing version 0.28.3 to 0.28.4
@@ -147,3 +147,6 @@ "use strict"; | ||
} | ||
process.kill(tree.pid); | ||
try { | ||
process.kill(tree.pid); | ||
} catch { | ||
} | ||
} | ||
@@ -150,0 +153,0 @@ function build(options) { |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); | ||
@@ -77,3 +99,3 @@ const fs = require("node:fs"); | ||
try { | ||
const renderer = await Promise.resolve().then(() => require("./index-C2o8MN18.js")); | ||
const renderer = await import("vite-plugin-electron-renderer"); | ||
plugins.push(renderer.default(options.renderer)); | ||
@@ -80,0 +102,0 @@ } catch (error) { |
{ | ||
"name": "vite-plugin-electron", | ||
"version": "0.28.3", | ||
"version": "0.28.4", | ||
"description": "Electron π Vite", | ||
@@ -39,2 +39,10 @@ "main": "./dist/index.js", | ||
}, | ||
"peerDependencies": { | ||
"vite-plugin-electron-renderer": "*" | ||
}, | ||
"peerDependenciesMeta": { | ||
"vite-plugin-electron-renderer": { | ||
"optional": true | ||
} | ||
}, | ||
"devDependencies": { | ||
@@ -41,0 +49,0 @@ "rollup": "^4.13.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2
1
51903
1
17
904