systeminformation
Advanced tools
Comparing version 5.23.22 to 5.23.23
@@ -20,2 +20,3 @@ 'use strict'; | ||
const util = require('./util'); | ||
const bluetoothVendors = require('./bluetoothVendors'); | ||
const fs = require('fs'); | ||
@@ -67,2 +68,7 @@ | ||
function parseBluetoothVendor(str) { | ||
const id = parseInt(str); | ||
if (!isNaN(id)) return bluetoothVendors[id]; | ||
} | ||
function parseLinuxBluetoothInfo(lines, macAddr1, macAddr2) { | ||
@@ -89,3 +95,3 @@ const result = {}; | ||
result.name = bluetoothObject.device_name || ''; | ||
result.manufacturer = bluetoothObject.device_manufacturer || parseBluetoothManufacturer(bluetoothObject.device_name || '') || ''; | ||
result.manufacturer = bluetoothObject.device_manufacturer || parseBluetoothVendor(bluetoothObject.device_vendorID) || parseBluetoothManufacturer(bluetoothObject.device_name || '') || ''; | ||
result.macDevice = (bluetoothObject.device_addr || bluetoothObject.device_address || '').toLowerCase().replace(/-/g, ':'); | ||
@@ -92,0 +98,0 @@ result.macHost = macAddr2; |
@@ -582,3 +582,3 @@ 'use strict'; | ||
try { | ||
const stdout = execSync('echo $LANG', util.execOptsLinux); | ||
const stdout = execSync('echo $LANG', execOptsLinux); | ||
const lines = stdout.toString().split('\r\n'); | ||
@@ -1160,3 +1160,3 @@ const parts = lines[0].split('.'); | ||
try { | ||
result = execSync('uname -v', util.execOptsLinux).toString(); | ||
result = execSync('uname -v', execOptsLinux).toString(); | ||
} catch (e) { | ||
@@ -1163,0 +1163,0 @@ result = ''; |
{ | ||
"name": "systeminformation", | ||
"version": "5.23.22", | ||
"version": "5.23.23", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
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
810361
27
18208