Comparing version 3.0.0 to 3.1.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = (platform, release) => { | ||
const osName = (platform, release) => { | ||
if (!platform && release) { | ||
@@ -46,1 +46,3 @@ throw new Error('You can\'t specify a `release` without specifying `platform`'); | ||
}; | ||
module.exports = osName; |
{ | ||
"name": "os-name", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Get the name of the current operating system. Example: macOS Sierra", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -36,9 +37,11 @@ "keywords": [ | ||
"dependencies": { | ||
"macos-release": "^2.0.0", | ||
"macos-release": "^2.2.0", | ||
"windows-release": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"xo": "^0.23.0" | ||
"@types/node": "^11.13.0", | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5082
5
61
4
Updatedmacos-release@^2.2.0