Comparing version 1.0.1 to 1.1.0
@@ -24,2 +24,3 @@ 'use strict'; | ||
tmp.in = function (root) { | ||
root = root || require('osenv').tmpdir(); | ||
// Everytime it returns a different directory | ||
@@ -26,0 +27,0 @@ var dir = node_path.join( |
{ | ||
"name": "tmp-sync", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "The sync version of tmp just for test cases, making it much easier.", | ||
@@ -15,8 +15,8 @@ "main": "index.js", | ||
"tmp-sync", | ||
"temporary", | ||
"tmp", | ||
"temp", | ||
"tempdir", | ||
"tempfile", | ||
"tmpdir", | ||
"temporary", | ||
"tmp", | ||
"temp", | ||
"tempdir", | ||
"tempfile", | ||
"tmpdir", | ||
"tmpfile" | ||
@@ -37,4 +37,5 @@ ], | ||
"dependencies": { | ||
"fs-sync": "^0.2.4" | ||
"fs-sync": "^0.2.4", | ||
"osenv": "^0.1.0" | ||
} | ||
} |
@@ -19,3 +19,3 @@ # tmp-sync [![NPM version](https://badge.fury.io/js/tmp-sync.svg)](http://badge.fury.io/js/tmp-sync) [![Build Status](https://travis-ci.org/kaelzhang/node-tmp-sync.svg?branch=master)](https://travis-ci.org/kaelzhang/node-tmp-sync) [![Dependency Status](https://gemnasium.com/kaelzhang/node-tmp-sync.svg)](https://gemnasium.com/kaelzhang/node-tmp-sync) | ||
- root `path` the root path for the temp directory | ||
- root `path` the root path for the temp directory (default to OS tmp directory) | ||
@@ -22,0 +22,0 @@ Makes a temp dir inside `root` and returns `path` the newly created dir. |
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
4556
39
2
+ Addedosenv@^0.1.0
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)