cross-spawn-cb 0.5.11 → 0.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ var JSON = require('json-buffer');
9
9
  var sleep = require('thread-sleep-compat');
10
10
  var mkdirp = require('mkdirp')
11
11
  var suffix = require('temp-suffix')
12
+ var shortHash = require('short-hash');
12
13
 
13
14
  function unlinkSafe(filename) {
14
15
  try {
@@ -20,7 +21,7 @@ module.exports = function spawnSyncFallback(/*cmd, commandArgs, options*/) {
20
21
  var args = Array.prototype.slice.call(arguments, 0);
21
22
 
22
23
  // location to store arguments
23
- var temp = path.join(tmpdir(), 'ss');
24
+ var temp = path.join(tmpdir(), 'spawn-sync', shortHash(process.cwd()));
24
25
  var input = path.join(temp , suffix("input"));
25
26
  var output = path.join(temp, suffix("output"));
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn-cb",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "Cross spawn with a completion callback",
5
5
  "keywords": [
6
6
  "cross-spawn",
@@ -32,6 +32,7 @@
32
32
  "object-keys": "^1.1.1",
33
33
  "once": "^1.4.0",
34
34
  "os-shim": "^0.1.3",
35
+ "short-hash": "^1.0.0",
35
36
  "temp-suffix": "^0.1.0",
36
37
  "thread-sleep-compat": "^0.0.1"
37
38
  },