Socket
Socket
Sign inDemoInstall

sync-disk-cache

Package Overview
Dependencies
32
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

14

index.js

@@ -190,4 +190,12 @@ 'use strict';

mkdirp(path.dirname(filePath), mode);
writeFile(filePath, this.compress(value), mode);
try {
writeFile(filePath, this.compress(value), mode);
} catch (e) {
if (e.code === 'ENOENT') {
mkdirp(path.dirname(filePath), mode);
writeFile(filePath, this.compress(value), mode);
} else {
throw e;
}
}
chmod(filePath, mode.mode);

@@ -224,3 +232,3 @@

defineFunction(Cache.prototype, 'pathFor', function(key) {
return path.join(this.root, key);
return path.join(this.root, new Buffer(key).toString('base64'));
});

@@ -227,0 +235,0 @@

{
"name": "sync-disk-cache",
"version": "1.2.0",
"version": "1.2.1",
"description": "sync disk cache",

@@ -33,3 +33,3 @@ "files": [

"rimraf": "^2.2.8",
"username": "^1.0.1"
"username": "^2.3.0"
},

@@ -36,0 +36,0 @@ "devDependencies": {

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