display-control
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "display-control", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Sleep and wake the display", | ||
@@ -17,2 +17,2 @@ "main": "src/index.js", | ||
} | ||
} | ||
} |
@@ -5,7 +5,9 @@ 'use strict'; | ||
const linux = {}; | ||
const DISPLAY = process.env.DISPLAY || ':0'; | ||
linux.sleep = () => { | ||
exec('export DISPLAY=:0; xset dpms force suspend'); | ||
exec(`export DISPLAY=${DISPLAY}; xset dpms force suspend`); | ||
}; | ||
linux.wake = () => { | ||
exec('export DISPLAY=:0; xset dpms force on'); | ||
exec(`export DISPLAY=${DISPLAY}; xset dpms force on`); | ||
}; | ||
@@ -15,2 +17,2 @@ linux.supported = () => { | ||
}; | ||
module.exports = linux; | ||
module.exports = linux; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
9632
8
77
4