systeminformation 5.25.2 → 5.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/memory.js +1 -1
- package/lib/osinfo.js +1 -1
- package/package.json +1 -1
package/lib/memory.js
CHANGED
|
@@ -531,7 +531,7 @@ function memLayout(callback) {
|
|
|
531
531
|
const FormFactors = 'Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA'.split('|');
|
|
532
532
|
|
|
533
533
|
try {
|
|
534
|
-
util.powerShell('Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl').then((stdout, error) => {
|
|
534
|
+
util.powerShell('Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,Speed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl').then((stdout, error) => {
|
|
535
535
|
if (!error) {
|
|
536
536
|
let devices = stdout.toString().split(/\n\s*\n/);
|
|
537
537
|
devices.shift();
|
package/lib/osinfo.js
CHANGED
|
@@ -1081,7 +1081,7 @@ function versions(apps, callback) {
|
|
|
1081
1081
|
if ({}.hasOwnProperty.call(appsObj.versions, 'powershell')) {
|
|
1082
1082
|
if (_windows) {
|
|
1083
1083
|
util.powerShell('$PSVersionTable').then(stdout => {
|
|
1084
|
-
const lines = stdout.toString().split('\n').map(line => line.replace(/ +/g, ' ').replace(/ +/g, ':'));
|
|
1084
|
+
const lines = stdout.toString().toLowerCase().split('\n').map(line => line.replace(/ +/g, ' ').replace(/ +/g, ':'));
|
|
1085
1085
|
appsObj.versions.powershell = util.getValue(lines, 'psversion');
|
|
1086
1086
|
functionProcessed();
|
|
1087
1087
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.25.
|
|
3
|
+
"version": "5.25.4",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|