Socket
Socket
Sign inDemoInstall

cache-directory

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # `cache-directory` changelog

## 1.1.0 - 2016-07-23
* Added Windows support
## 1.0.0 - 2016-07-22

@@ -7,0 +11,0 @@

2

index.js

@@ -25,3 +25,3 @@ /*

case 'win32':
return null;
return process.env.APPDATA ? path.join(process.env.APPDATA, appName, 'Caches') : null;
case 'darwin':

@@ -28,0 +28,0 @@ return home ? path.join(home, 'Library/Caches', appName) : null;

{
"name": "cache-directory",
"version": "1.0.0",
"version": "1.1.0",
"description": "Find the proper cache directory based on operating system",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,4 +21,2 @@ # `cache-directory`

`cache-directory` doesn't support Windows. I will accept PRs to add this functionality, but all the docs I found were useless.
When run on OS X, `cache-directory` assumes it isn't run in a sandboxed process environment. If it is, it will probably break. Additionally, the app name is used instead of the [conventional][1] bundle identifier (for simplicity and because many `cache-directory` consumers won't necessarily _have_ a bundle identifier).

@@ -25,0 +23,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