Comparing version 0.0.4 to 0.0.5
@@ -22,2 +22,12 @@ /** | ||
var normalize = function(path) { | ||
var last = Array.prototype.pop.apply(path); | ||
if (process.platform !== "win32" && last !== '/') { | ||
path += '/'; | ||
} | ||
return path; | ||
} | ||
/** | ||
@@ -29,6 +39,8 @@ * Returns tmp dir. Thank you npm. | ||
detector.tmp = function() { | ||
return process.env.TMPDIR | ||
var temp = process.env.TMPDIR | ||
|| process.env.TMP | ||
|| process.env.TEMP | ||
|| (process.platform === "win32" ? "c:\\windows\\temp\\" : "/tmp/") | ||
return normalize(temp); | ||
}; |
{ | ||
"name": "temporary" | ||
, "version": "0.0.4" | ||
, "version": "0.0.5" | ||
, "description": "The lord of tmp." | ||
@@ -8,3 +8,3 @@ , "keywords": ["tmp", "temp", "tempfile", "tempdirectory"] | ||
, "dependencies": { | ||
"package": ">= 1.0.0 < 1.2.0" | ||
"package": ">= 1.0.0 < 1.2.0" | ||
} | ||
@@ -11,0 +11,0 @@ , "devDependencies": { |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
17801
21
607
0