Comparing version 2.0.10 to 2.0.11
13
index.js
@@ -30,4 +30,13 @@ // this entire module is depressing. i should have spent my time learning | ||
var userHome = require('user-home'); | ||
var configpath = path.join(userHome || os.tmpdir(), configfile); | ||
var content; | ||
if (!userHome) { | ||
return tryOpenConfig(path.join(os.tmpdir(), configfile), cb); | ||
} | ||
tryOpenConfig(path.join(userHome, configfile), function (err, fd) { | ||
if (err) return tryOpenConfig(path.join(os.tmpdir(), configfile), cb); | ||
return cb(null, fd); | ||
}); | ||
} | ||
function tryOpenConfig (configpath, cb) { | ||
try { | ||
@@ -34,0 +43,0 @@ // if the config file is valid, it should be json and therefore |
{ | ||
"name": "v8flags", | ||
"description": "Get available v8 flags.", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"homepage": "https://github.com/tkellen/node-v8flags", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,2 +0,2 @@ | ||
# v8flags [![Build Status](https://secure.travis-ci.org/tkellen/js-v8flags.png)](http://travis-ci.org/tkellen/js-v8flags) [![Build status](https://ci.appveyor.com/api/projects/status/9psgmwayx9kpol1a?svg=true)](https://ci.appveyor.com/project/tkellen/js-v8flags) | ||
# v8flags [![Build Status](https://secure.travis-ci.org/js-cli/js-v8flags.png)](http://travis-ci.org/js-cli/js-v8flags) [![Build status](https://ci.appveyor.com/api/projects/status/9psgmwayx9kpol1a?svg=true)](https://ci.appveyor.com/project/js-cli/js-v8flags) | ||
> Get available v8 flags. | ||
@@ -26,2 +26,3 @@ | ||
* 2015-12-07 - v2.0.11 - cache to temp directory if home is present but unwritable | ||
* 2015-07-28 - v2.0.10 - don't throw for electron runtime, just call back with empty array | ||
@@ -28,0 +29,0 @@ * 2015-06-25 - v2.0.9 - call back with flags even if cache file can't be written |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
8775
120
48
2