Comparing version 1.0.0 to 1.1.0
# appdirsjs changelog | ||
## v1.1.0 (2016-12-22) | ||
* Changing supported Node.js versions to include v4 and v6. | ||
* PR #1 - Adding Windows support (Thanks, @f3lang!) | ||
## v1.0.0 (2015-06-27) | ||
@@ -4,0 +9,0 @@ |
26
index.js
@@ -52,3 +52,3 @@ // Copyright (c) 2014. David M. Lee, II. | ||
/** | ||
* Windows appdirs implementation. (unimplemented) | ||
* Windows appdirs implementation. | ||
* | ||
@@ -60,21 +60,29 @@ * The standard directory structure for Windows can be found on | ||
exports.windows = { | ||
// Judging from appdirs.py, Windows support is quite complicated. | ||
// Maybe another time... | ||
userDataDir: function (appname, appauthor, version, roaming) { | ||
throw new Error('Unimplemented'); | ||
var dir = roaming ? process.env.APPDATA : process.env.LOCALAPPDATA; | ||
return appendNameVersion(dir, appname, version); | ||
}, | ||
userConfigDir: function (appname, appauthor, version, roaming) { | ||
throw new Error('Unimplemented'); | ||
var dir = roaming ? process.env.APPDATA : process.env.LOCALAPPDATA; | ||
return appendNameVersion(dir, appname, version); | ||
}, | ||
userCacheDir: function (appname, appauthor, version) { | ||
throw new Error('Unimplemented'); | ||
return appendNameVersion(process.env.LOCALAPPDATA, appname, version); | ||
}, | ||
siteDataDir: function (appname, appauthor, version, multipath) { | ||
throw new Error('Unimplemented'); | ||
var dir = appendNameVersion(process.env.ALLUSERSPROFILE, appname, version); | ||
if (multipath) { | ||
return [dir]; | ||
} | ||
return dir; | ||
}, | ||
siteConfigDir: function (appname, appauthor, version, multipath) { | ||
throw new Error('Unimplemented'); | ||
var dir = appendNameVersion(process.env.ALLUSERSPROFILE, appname, version); | ||
if (multipath) { | ||
return [dir]; | ||
} | ||
return dir; | ||
}, | ||
userLogDir: function (appname, appauthor, version) { | ||
throw new Error('Unimplemented'); | ||
return appendNameVersion(process.env.ALLUSERSPROFILE, appname, version); | ||
} | ||
@@ -81,0 +89,0 @@ }; |
{ | ||
"name": "appdirs", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "David M. Lee, II <leedm777@yahoo.com>", | ||
@@ -5,0 +5,0 @@ "description": "Node.js port of Python's appdirs", |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances 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
18067
388
19