Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

temporary

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temporary - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

History.md

14

lib/detector.js

@@ -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);
};

4

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc