tempfile 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
  var path = require('path');
3
- var tmpdir = require('os').tmpdir();
3
+ var os = require('os');
4
+ var tmpdir = (os.tmpdir || os.tmpDir)();
4
5
  var uuid = require('uuid');
5
6
 
6
7
  module.exports = function (ext) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tempfile",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Get a random temp file path",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/tempfile",