Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sync-disk-cache

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-disk-cache - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc