launch-editor
Advanced tools
Comparing version 2.3.0 to 2.4.0
15
guess.js
@@ -16,2 +16,7 @@ const path = require('path') | ||
} | ||
if (process.versions.webcontainer) { | ||
return [process.env.EDITOR || 'code'] | ||
} | ||
// We can find out which editor is currently running by: | ||
@@ -22,3 +27,7 @@ // `ps x` on macOS and Linux | ||
if (process.platform === 'darwin') { | ||
const output = childProcess.execSync('ps x').toString() | ||
const output = childProcess | ||
.execSync('ps x', { | ||
stdio: ['pipe', 'pipe', 'ignore'] | ||
}) | ||
.toString() | ||
const processNames = Object.keys(COMMON_EDITORS_OSX) | ||
@@ -56,3 +65,5 @@ for (let i = 0; i < processNames.length; i++) { | ||
const output = childProcess | ||
.execSync('ps x --no-heading -o comm --sort=comm') | ||
.execSync('ps x --no-heading -o comm --sort=comm', { | ||
stdio: ['pipe', 'pipe', 'ignore'] | ||
}) | ||
.toString() | ||
@@ -59,0 +70,0 @@ const processNames = Object.keys(COMMON_EDITORS_LINUX) |
{ | ||
"name": "launch-editor", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "launch editor from node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11188
321
2
6
0