windows-release
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -7,3 +7,3 @@ import os from 'node:os'; | ||
const names = new Map([ | ||
['10.0.22', '11'], // It's unclear whether future Windows 11 versions will use this version scheme: https://github.com/sindresorhus/windows-release/pull/26/files#r744945281 | ||
['10.0.2', '11'], // It's unclear whether future Windows 11 versions will use this version scheme: https://github.com/sindresorhus/windows-release/pull/26/files#r744945281 | ||
['10.0', '10'], | ||
@@ -54,4 +54,4 @@ ['6.3', '8.1'], | ||
// Windows 11 | ||
if (ver === '10.0' && build.startsWith('22')) { | ||
ver = '10.0.22'; | ||
if (ver === '10.0' && build.startsWith('2')) { | ||
ver = '10.0.2'; | ||
} | ||
@@ -58,0 +58,0 @@ |
{ | ||
"name": "windows-release", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
5969