You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@cocreate/cli

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.45.3 to 1.46.0

src/commands/acme.js

4

package.json
{
"name": "@cocreate/cli",
"version": "1.45.3",
"version": "1.46.0",
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",

@@ -58,4 +58,6 @@ "keywords": [

"dependencies": {
"@cocreate/acme": "^1.0.0",
"@cocreate/config": "^1.8.0",
"@cocreate/file": "^1.13.0",
"@cocreate/nginx": "^1.0.0",
"glob": "^7.1.7",

@@ -62,0 +64,0 @@ "prettier": "^2.3.2"

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

const {createServer, deleteServer} = require('./other/nginxConfigManager.js')
const { createServer, deleteServer } = require('@cocreate/nginx')

@@ -14,3 +14,3 @@ module.exports = async function nginx(repos, args) {

await deleteServer(args);
} else
} else
await createServer(args);

@@ -21,3 +21,3 @@ }

console.error(err.red);
} finally {
} finally {
return failed;

@@ -24,0 +24,0 @@ }

@@ -110,2 +110,23 @@ const util = require('node:util');

async function hasServer(hosts) {
if (!Array.isArray(hosts))
hosts = [hosts]
for (let host of hosts) {
const { stdout, stderr } = await exec(`grep -Ri 'server_name.*${host}' /etc/nginx/sites-enabled`)
if (err) {
console.error(`exec error: ${err}`);
return;
}
if (stdout) {
console.log(`Host found in the following configuration file(s):\n${stdout}`);
} else {
console.log('Host not found in Nginx configurations.');
}
if (stderr) console.error(`stderr: ${stderr}`);
}
}
module.exports = { createServer, deleteServer }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc