Comparing version 2.2.2 to 2.3.0
'use strict'; | ||
const os = require('os'); | ||
const execa = require('execa'); | ||
@@ -23,2 +24,6 @@ const mem = require('mem'); | ||
module.exports = mem(() => { | ||
if (os.userInfo) { | ||
return Promise.resolve(os.userInfo().username); | ||
} | ||
const envVar = getEnvVar(); | ||
@@ -40,2 +45,6 @@ | ||
module.exports.sync = mem(() => { | ||
if (os.userInfo) { | ||
return os.userInfo().username; | ||
} | ||
const envVar = getEnvVar(); | ||
@@ -42,0 +51,0 @@ |
{ | ||
"name": "username", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"description": "Get the username of the current user", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4084
48