windows-release
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -37,5 +37,5 @@ 'use strict'; | ||
try { | ||
stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || ''; | ||
} catch (_) { | ||
stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || ''; | ||
} catch (_) { | ||
stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || ''; | ||
} | ||
@@ -42,0 +42,0 @@ |
{ | ||
"name": "windows-release", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |