Socket
Socket
Sign inDemoInstall

cachedir

Package Overview
Dependencies
1
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

9

index.js

@@ -5,3 +5,3 @@ var os = require('os')

function linux (id) {
function posix (id) {
var cacheHome = process.env.XDG_CACHE_HOME || path.join(homedir(), '.cache')

@@ -22,7 +22,8 @@ return path.join(cacheHome, id)

switch (os.platform()) {
case 'android':
case 'linux': return linux
case 'android': return posix
case 'darwin': return darwin
case 'freebsd': return posix
case 'linux': return posix
case 'win32': return win32
default: throw new Error('Your OS is currently not supported by node-cachedir.')
default: throw new Error('Your OS "' + os.platform() + '" is currently not supported by node-cachedir.')
}

@@ -29,0 +30,0 @@ }())

{
"name": "cachedir",
"version": "1.2.0",
"version": "1.3.0",
"license": "MIT",

@@ -12,5 +12,5 @@ "author": "Linus Unnebäck <linus@folkdatorn.se>",

"devDependencies": {
"mocha": "^2.4.5",
"mocha": "^4.1.0",
"proxyquire": "^1.7.4",
"standard": "^6.0.8"
"standard": "^10.0.3"
},

@@ -17,0 +17,0 @@ "dependencies": {

@@ -8,4 +8,5 @@ /* eslint-env mocha */

var platforms = [
['darwin', homedir() + '/Library/Caches/linusu'],
['freebsd', homedir() + '/.cache/linusu'],
['linux', homedir() + '/.cache/linusu'],
['darwin', homedir() + '/Library/Caches/linusu'],
['win32', homedir() + '/AppData/Local/linusu/Cache']

@@ -12,0 +13,0 @@ ]

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc