From e577ff374ea00dc38d1afc8e81141c971fd01313 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Mon, 21 Nov 2022 11:33:27 +0100 Subject: [PATCH] osInfo() improved uefi parsing (FreeBSD) --- lib/index.d.ts | 2 +- lib/osinfo.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index f390102..e270954 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -370,7 +370,7 @@ export namespace Systeminformation { serial: string; build: string; servicepack: string; - uefi: boolean; + uefi: boolean | null; hypervizor?: boolean; remoteSession?: boolean; hypervisor?: boolean; diff --git a/lib/osinfo.js b/lib/osinfo.js index 4f2064d..402a3d1 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -277,7 +277,7 @@ function osInfo(callback) { result.serial = serial || result.serial; result.codename = ''; result.codepage = util.getCodepage(); - result.uefi = uefi || result.uefi; + result.uefi = uefi || null; if (callback) { callback(result); }