Comparing version 0.1.2 to 0.1.3
var os = require('os') | ||
var path = require('path') | ||
var homedir = require('os-homedir') | ||
function linux (id) { | ||
return path.join(os.homedir(), '.cache', id) | ||
return path.join(homedir(), '.cache', id) | ||
} | ||
function darwin (id) { | ||
return path.join(os.homedir(), 'Library', 'Caches', id) | ||
return path.join(homedir(), 'Library', 'Caches', id) | ||
} | ||
@@ -11,0 +12,0 @@ |
{ | ||
"name": "cachedir", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"license": "MIT", | ||
@@ -15,3 +15,6 @@ "author": "Linus Unnebäck <linus@folkdatorn.se>", | ||
"standard": "^6.0.8" | ||
}, | ||
"dependencies": { | ||
"os-homedir": "^1.0.1" | ||
} | ||
} |
/* eslint-env mocha */ | ||
var assert = require('assert') | ||
var homedir = require('os-homedir') | ||
var proxyquire = require('proxyquire') | ||
var platforms = [ | ||
['linux', '$HOME/.cache/linusu'], | ||
['darwin', '$HOME/Library/Caches/linusu'] | ||
['linux', homedir() + '/.cache/linusu'], | ||
['darwin', homedir() + '/Library/Caches/linusu'] | ||
] | ||
@@ -17,3 +18,2 @@ | ||
var os = { | ||
homedir: function () { return '$HOME' }, | ||
platform: function () { return platform[0] } | ||
@@ -20,0 +20,0 @@ } |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
3726
62
0
1
+ Addedos-homedir@^1.0.1
+ Addedos-homedir@1.0.2(transitive)