Socket
Socket
Sign inDemoInstall

windows-release

Package Overview
Dependencies
16
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.0 to 5.1.1

6

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc