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.3.84 to 2.3.85

2

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

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

@@ -0,1 +1,2 @@

//configureDefaultServerBlock.js
import fs from 'fs';

@@ -49,3 +50,5 @@ import chalk from 'chalk';

const tryElevatedPrivileges = (path, data) => {
const command = `echo '${data.replace(/'/g, "\\'")}' | sudo tee ${path}`;
// Proper escaping of data to be echoed
const escapedData = escapeDataForShell(data);
const command = `echo '${escapedData}' | sudo tee ${path} > /dev/null && sudo systemctl reload nginx`;
execShellCommand(command).then(() => {

@@ -58,2 +61,6 @@ console.log(chalk.green('Successfully configured NGINX with elevated privileges.'));

const escapeDataForShell = (data) => {
return data.replace(/'/g, "'\\''");
};
const displayManualInstructions = (path, data) => {

@@ -60,0 +67,0 @@ console.log(chalk.yellow('Please follow these instructions to manually configure the NGINX server block:'));

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