Comparing version 2.3.0 to 2.4.0
18
index.js
'use strict'; | ||
var exec = require('child_process').exec; | ||
var path = require('path'); | ||
var winapi; | ||
@@ -10,5 +13,20 @@ try { | ||
var winapiCS = path.join(__dirname, 'WinAPI.exe'); | ||
winapi.GetDisplaySettings = function(chain){ | ||
exec([winapiCS, "GetDisplaySettings"].join(' '), function(err, stdout){ | ||
chain(err, JSON.parse(stdout)); | ||
}); | ||
} | ||
winapi.ReOrientDisplay = function(orientation, chain){ | ||
exec([winapiCS, "ReOrientDisplay", orientation].join(' '), {}, chain); | ||
} | ||
var bootTime; | ||
@@ -15,0 +33,0 @@ |
{ | ||
"name": "winapi", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Misc windows API wrappers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
203885
9
24
5