This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

View File

@@ -34,9 +34,9 @@ const windowsRelease = release => {
if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
let stdout;
try {
stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
} catch (_) {
stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
} catch (_) {
stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
}
const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];

View File

@@ -1,8 +1,8 @@
{
"_from": "windows-release@^3.1.0",
"_id": "windows-release@3.3.0",
"_id": "windows-release@3.3.3",
"_inBundle": false,
"_integrity": "sha512-2HetyTg1Y+R+rUgrKeUEhAG/ZuOmTrI1NBb3ZyAGQMYmOJjBBPe4MTodghRkmLJZHwkuPi02anbeGP+Zf401LQ==",
"_integrity": "sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg==",
"_location": "/windows-release",
"_phantomChildren": {},
"_requested": {
@@ -18,10 +18,10 @@
"_requiredBy": [
"/os-name"
],
"_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.0.tgz",
"_shasum": "dce167e9f8be733f21c849ebd4d03fe66b29b9f0",
"_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.3.tgz",
"_shasum": "1c10027c7225743eec6b89df160d64c2e0293999",
"_spec": "windows-release@^3.1.0",
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler/node_modules/os-name",
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/os-name",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -72,5 +72,5 @@
"scripts": {
"test": "xo && ava && tsd"
},
"version": "3.3.0"
"version": "3.3.3"
}