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

netget

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netget - npm Package Compare versions

Comparing version 2.4.34 to 2.4.35

src/modules/NetGetX/NGINX/nginxRestart.js

2

package.json
{
"name": "netget",
"version": "2.4.34",
"version": "2.4.35",
"description": "Rette Adepto/ Recibido Directamente.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -47,3 +47,3 @@ // netget_MainMenu.js

...`);
await NetGetX_CLI(x); // Proceed to the interactive menu if setup is verified
await NetGetX_CLI(); // Proceed to the interactive menu if setup is verified
} else {

@@ -50,0 +50,0 @@ console.log(chalk.red('Setup verification failed. Please resolve any issues before proceeding.'));

//i_DefaultNetGetX.js
import chalk from 'chalk';
import { getDir } from '../../../scripts/setupConfig.js';
import { initializeState } from '../xState.js';
import loadOrCreateUserConfig from './loadOrCreateUserConfig.js';

@@ -81,6 +82,6 @@ import setNginxPaths from './setNginxPaths.js';

};
console.log(chalk.green('Setup verification successful.'));
console.log(chalk.cyan.bold('Attaching Config Data to:'));
initializeState(x);
console.log(chalk.green('Setup Verification Successful.'));
return x;
};

@@ -8,4 +8,6 @@ // NetGetX.cli.js

import nginxMenu from './NGINX/nginx_menu.cli.js';
import { getState, updateState } from './xState.js';
//import { showNGXBlocks, addNewNGXBlock, showNGXDiscoveryNode, addNewNGXDiscoveryNode, netGetXSettings, aboutNetGetX } from './netGetXOptions.js';
export default async function NetGetX_CLI(x) {
export default async function NetGetX_CLI() {
const x = getState();
const answers = await inquirer.prompt({

@@ -38,3 +40,3 @@ type: 'list',

case 'NGINX Menu':
await nginxMenu(x);
await nginxMenu();
break;

@@ -41,0 +43,0 @@ case 'Main Menu':

@@ -7,5 +7,8 @@ // nginx_menu.cli.js

import { checkNginxStatus } from './checkNginxStatus.js';
import nginxRestart from './nginxRestart.js';
import NetGetX_CLI from '../NetGetX.cli.js';
import { getState, updateState } from '../xState.js';
export default async function nginxMenu(x) {
export default async function nginxMenu() {
const x = getState();
console.log(chalk.green('NGINX Management Menu'));

@@ -34,2 +37,4 @@ const answers = await inquirer.prompt({

case 'Restart NGINX':
await nginxRestart(x);
break;
case 'Reload NGINX':

@@ -36,0 +41,0 @@ case 'View NGINX Logs':

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