@nativephp/electron-plugin
Advanced tools
+1
-1
| { | ||
| "name": "@nativephp/electron-plugin", | ||
| "version": "0.3.1", | ||
| "version": "0.4.0", | ||
| "description": "NativePHP Electron support", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| "use strict"; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const express_1 = __importDefault(require("express")); | ||
| const electron_1 = require("electron"); | ||
| const router = express_1.default.Router(); | ||
| router.get('/is-started', (req, res) => { | ||
| res.json({ | ||
| isStarted: electron_1.powerSaveBlocker.isStarted(req.query.id), | ||
| }); | ||
| }); | ||
| router.post('/start', (req, res) => { | ||
| res.json({ | ||
| id: electron_1.powerSaveBlocker.start(req.body.type), | ||
| }); | ||
| }); | ||
| router.post('/stop', (req, res) => { | ||
| electron_1.powerSaveBlocker.stop(req.body.id); | ||
| res.status(200); | ||
| }); | ||
| exports.default = router; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
63764
-17%30
-9.09%1578
-1.44%