@depup/systeminformation 5.33.12-depup.0 → 5.33.13-depup.0

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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/systeminformation
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [systeminformation](https://www.npmjs.com/package/systeminformation) @ 5.33.12 |
17
- | Processed | 2026-09-20 |
16
+ | Original | [systeminformation](https://www.npmjs.com/package/systeminformation) @ 5.33.13 |
17
+ | Processed | 2026-09-27 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-09-20T01:02:36.649Z",
3
+ "timestamp": "2026-09-27T01:03:51.851Z",
4
4
  "totalUpdated": 0
5
5
  }
package/lib/cpu.js CHANGED
@@ -58,7 +58,7 @@ let _current_cpu = {
58
58
  rawCurrentLoadSteal: 0,
59
59
  rawCurrentLoadGuest: 0
60
60
  };
61
- let _cpus = [];
61
+ const _cpus = [];
62
62
  let _corecount = 0;
63
63
 
64
64
  const AMDBaseFrequencies = {
@@ -843,7 +843,7 @@ function cpuBrandManufacturer(res) {
843
843
  res.brand = res.brand.replace(/CPU+/g, '').replace(/\s+/g, ' ').trim();
844
844
  res.manufacturer = cpuManufacturer(res.brand);
845
845
 
846
- let parts = res.brand.split(' ');
846
+ const parts = res.brand.split(' ');
847
847
  parts.shift();
848
848
  res.brand = parts.join(' ');
849
849
  return res;
@@ -851,9 +851,9 @@ function cpuBrandManufacturer(res) {
851
851
 
852
852
  function getAMDSpeed(brand) {
853
853
  let result = '0';
854
- for (let key in AMDBaseFrequencies) {
854
+ for (const key in AMDBaseFrequencies) {
855
855
  if ({}.hasOwnProperty.call(AMDBaseFrequencies, key)) {
856
- let parts = key.split('|');
856
+ const parts = key.split('|');
857
857
  let found = 0;
858
858
  parts.forEach((item) => {
859
859
  if (brand.indexOf(item) > -1) {
@@ -1140,8 +1140,8 @@ function getCpu() {
1140
1140
  workload.push(util.powerShell('(Get-CimInstance Win32_ComputerSystem).HypervisorPresent'));
1141
1141
 
1142
1142
  Promise.all(workload).then((data) => {
1143
- let lines = data[0].split('\r\n');
1144
- let name = util.getValue(lines, 'name', ':') || '';
1143
+ const lines = data[0].split('\r\n');
1144
+ const name = util.getValue(lines, 'name', ':') || '';
1145
1145
  if (name.indexOf('@') >= 0) {
1146
1146
  result.brand = name.split('@')[0].trim();
1147
1147
  result.speed = name.split('@')[1] ? parseFloat(name.split('@')[1].trim()) : 0;
@@ -1162,7 +1162,7 @@ function getCpu() {
1162
1162
  }
1163
1163
  result.speedMin = result.speed;
1164
1164
 
1165
- let description = util.getValue(lines, 'description', ':').split(' ');
1165
+ const description = util.getValue(lines, 'description', ':').split(' ');
1166
1166
  for (let i = 0; i < description.length; i++) {
1167
1167
  if (description[i].toLowerCase().startsWith('family') && i + 1 < description.length && description[i + 1]) {
1168
1168
  result.family = description[i + 1];
@@ -1242,8 +1242,8 @@ function getCpuCurrentSpeedSync() {
1242
1242
  const cores = [];
1243
1243
  const speeds = [];
1244
1244
 
1245
- if (cpus && cpus.length && Object.prototype.hasOwnProperty.call(cpus[0], 'speed')) {
1246
- for (let i in cpus) {
1245
+ if (cpus && cpus.length && {}.hasOwnProperty.call(cpus[0], 'speed')) {
1246
+ for (const i in cpus) {
1247
1247
  speeds.push(cpus[i].speed > 100 ? (cpus[i].speed + 1) / 1000 : cpus[i].speed / 10);
1248
1248
  }
1249
1249
  } else if (_linux) {
@@ -1252,7 +1252,7 @@ function getCpuCurrentSpeedSync() {
1252
1252
  .toString()
1253
1253
  .split('\n')
1254
1254
  .filter((line) => line.length > 0);
1255
- for (let i in speedStrings) {
1255
+ for (const i in speedStrings) {
1256
1256
  speeds.push(Math.floor(parseInt(speedStrings[i], 10) / 10) / 100);
1257
1257
  }
1258
1258
  } catch {
@@ -1352,7 +1352,7 @@ function cpuTemperature(callback) {
1352
1352
  result.chipset = Math.round(parseInt(lines2[i], 10) / 100) / 10;
1353
1353
  }
1354
1354
  // CPU thermal zone (e.g. cpu-thermal on Raspberry Pi)
1355
- if (cpuThermal === null && line.indexOf('cpu') !== -1 && lines2[i]) {
1355
+ if (cpuThermal === null && line.toLowerCase().indexOf('cpu') !== -1 && lines2[i]) {
1356
1356
  cpuThermal = Math.round(parseInt(lines2[i], 10) / 100) / 10;
1357
1357
  }
1358
1358
  }
@@ -1393,7 +1393,7 @@ function cpuTemperature(callback) {
1393
1393
  if (result.main === null) {
1394
1394
  result.main = Math.round(result.cores.reduce((a, b) => a + b, 0) / result.cores.length);
1395
1395
  }
1396
- let maxtmp = Math.max.apply(Math, result.cores);
1396
+ const maxtmp = Math.max.apply(Math, result.cores);
1397
1397
  result.max = maxtmp > result.main ? maxtmp : result.main;
1398
1398
  }
1399
1399
  if (result.main !== null) {
@@ -1663,13 +1663,13 @@ function cpuFlags(callback) {
1663
1663
  try {
1664
1664
  exec('reg query "HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0" /v FeatureSet', util.execOptsWin, (error, stdout) => {
1665
1665
  if (!error) {
1666
- let flag_hex = stdout.split('0x').pop().trim();
1667
- let flag_bin_unpadded = parseInt(flag_hex, 16).toString(2);
1668
- let flag_bin = '0'.repeat(32 - flag_bin_unpadded.length) + flag_bin_unpadded;
1666
+ const flag_hex = stdout.split('0x').pop().trim();
1667
+ const flag_bin_unpadded = parseInt(flag_hex, 16).toString(2);
1668
+ const flag_bin = '0'.repeat(32 - flag_bin_unpadded.length) + flag_bin_unpadded;
1669
1669
  // empty flags are the reserved fields in the CPUID feature bit list
1670
1670
  // as found on wikipedia:
1671
1671
  // https://en.wikipedia.org/wiki/CPUID
1672
- let all_flags = [
1672
+ const all_flags = [
1673
1673
  'fpu',
1674
1674
  'vme',
1675
1675
  'de',
@@ -1726,7 +1726,7 @@ function cpuFlags(callback) {
1726
1726
  try {
1727
1727
  exec('export LC_ALL=C; lscpu; unset LC_ALL', (error, stdout) => {
1728
1728
  if (!error) {
1729
- let lines = stdout.toString().split('\n');
1729
+ const lines = stdout.toString().split('\n');
1730
1730
  lines.forEach((line) => {
1731
1731
  if (line.split(':')[0].toUpperCase().indexOf('FLAGS') !== -1) {
1732
1732
  result = line.split(':')[1].trim().toLowerCase();
@@ -1736,7 +1736,7 @@ function cpuFlags(callback) {
1736
1736
  if (!result) {
1737
1737
  fs.readFile('/proc/cpuinfo', (error, stdout) => {
1738
1738
  if (!error) {
1739
- let lines = stdout.toString().split('\n');
1739
+ const lines = stdout.toString().split('\n');
1740
1740
  result = util.getValue(lines, 'features', ':', true).toLowerCase();
1741
1741
  }
1742
1742
  if (callback) {
@@ -1781,7 +1781,7 @@ function cpuFlags(callback) {
1781
1781
  if (_darwin) {
1782
1782
  exec('sysctl machdep.cpu.features', (error, stdout) => {
1783
1783
  if (!error) {
1784
- let lines = stdout.toString().split('\n');
1784
+ const lines = stdout.toString().split('\n');
1785
1785
  if (lines.length > 0 && lines[0].indexOf('machdep.cpu.features:') !== -1) {
1786
1786
  result = lines[0].split(':')[1].trim().toLowerCase();
1787
1787
  }
@@ -1883,9 +1883,9 @@ function cpuCache(callback) {
1883
1883
  if (_darwin) {
1884
1884
  exec('sysctl hw.l1icachesize hw.l1dcachesize hw.l2cachesize hw.l3cachesize', (error, stdout) => {
1885
1885
  if (!error) {
1886
- let lines = stdout.toString().split('\n');
1886
+ const lines = stdout.toString().split('\n');
1887
1887
  lines.forEach((line) => {
1888
- let parts = line.split(':');
1888
+ const parts = line.split(':');
1889
1889
  if (parts[0].toLowerCase().indexOf('hw.l1icachesize') !== -1) {
1890
1890
  result.l1i = parseInt(parts[1].trim()) * (parts[1].indexOf('K') !== -1 ? 1024 : 1);
1891
1891
  }
@@ -1946,7 +1946,7 @@ function parseWinCache(linesProc, linesCache) {
1946
1946
  };
1947
1947
 
1948
1948
  // Win32_processor
1949
- let lines = linesProc.split('\r\n');
1949
+ const lines = linesProc.split('\r\n');
1950
1950
  result.l1d = 0;
1951
1951
  result.l1i = 0;
1952
1952
  result.l2 = util.getValue(lines, 'l2cachesize', ':');
@@ -2043,7 +2043,7 @@ function getLoad() {
2043
2043
  lines.shift();
2044
2044
  if (lines.length === cpus.length) {
2045
2045
  for (let i = 0; i < lines.length; i++) {
2046
- let parts = lines[i].split(' ');
2046
+ const parts = lines[i].split(' ');
2047
2047
  if (parts.length >= 10) {
2048
2048
  const steal = parseFloat(parts[8]) || 0;
2049
2049
  const guest = parseFloat(parts[9]) || 0;
package/lib/memory.js CHANGED
@@ -380,11 +380,9 @@ function memLayout(callback) {
380
380
  bank,
381
381
  type: util.getValue(lines, 'Type:'),
382
382
  ecc: dataWidth && totalWidth ? totalWidth > dataWidth : false,
383
- clockSpeed: util.getValue(lines, 'Configured Clock Speed:')
384
- ? parseInt(util.getValue(lines, 'Configured Clock Speed:'), 10)
385
- : util.getValue(lines, 'Speed:')
386
- ? parseInt(util.getValue(lines, 'Speed:'), 10)
387
- : null,
383
+ // dmidecode >= 3.1 renamed "Configured Clock Speed" to "Configured Memory Speed" - without
384
+ // the new label this silently fell back to Speed, the rated instead of the running speed
385
+ clockSpeed: util.toInt(util.getValue(lines, 'Configured Memory Speed:')) || util.toInt(util.getValue(lines, 'Configured Clock Speed:')) || util.toInt(util.getValue(lines, 'Speed:')) || null,
388
386
  formFactor: util.getValue(lines, 'Form Factor:'),
389
387
  manufacturer: getManufacturer(util.getValue(lines, 'Manufacturer:')),
390
388
  partNum: util.getValue(lines, 'Part Number:'),
package/lib/network.js CHANGED
@@ -32,7 +32,7 @@ const _openbsd = _platform === 'openbsd';
32
32
  const _netbsd = _platform === 'netbsd';
33
33
  const _sunos = _platform === 'sunos';
34
34
 
35
- const _network = {};
35
+ const _network = Object.create(null);
36
36
  let _default_iface = '';
37
37
  let _ifaces = {};
38
38
  let _dhcpNics = [];
@@ -1529,7 +1529,10 @@ function networkStatsSingle(iface) {
1529
1529
  });
1530
1530
  });
1531
1531
  if (rx_bytes && tx_bytes) {
1532
- result = calcNetworkSpeed(ifaceName, parseInt(rx_bytes), parseInt(tx_bytes), operstate, rx_dropped, rx_errors, tx_dropped, tx_errors);
1532
+ // cache under the requested name, but report the adapter name
1533
+ result = calcNetworkSpeed(ifaceSanitized, parseInt(rx_bytes), parseInt(tx_bytes), operstate, rx_dropped, rx_errors, tx_dropped, tx_errors);
1534
+ result.iface = ifaceName;
1535
+ _network[ifaceSanitized].ifaceName = ifaceName;
1533
1536
  }
1534
1537
  resolve(result);
1535
1538
  });
@@ -1542,6 +1545,7 @@ function networkStatsSingle(iface) {
1542
1545
  result.tx_sec = _network[ifaceSanitized].tx_sec;
1543
1546
  result.ms = _network[ifaceSanitized].last_ms;
1544
1547
  result.operstate = _network[ifaceSanitized].operstate;
1548
+ result.iface = _network[ifaceSanitized].ifaceName || ifaceSanitized;
1545
1549
  resolve(result);
1546
1550
  }
1547
1551
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/systeminformation",
3
- "version": "5.33.12-depup.0",
3
+ "version": "5.33.13-depup.0",
4
4
  "description": "Advanced, lightweight system and OS information library (with updated dependencies)",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
@@ -111,8 +111,8 @@
111
111
  "changes": {},
112
112
  "depsUpdated": 0,
113
113
  "originalPackage": "systeminformation",
114
- "originalVersion": "5.33.12",
115
- "processedAt": "2026-09-20T01:02:37.142Z",
114
+ "originalVersion": "5.33.13",
115
+ "processedAt": "2026-09-27T01:03:52.448Z",
116
116
  "smokeTest": "passed"
117
117
  }
118
118
  }