New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@nativephp/electron-plugin

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativephp/electron-plugin - npm Package Compare versions

Comparing version
0.3.1
to
0.4.0
+1
-1
package.json
{
"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;