Socket
Socket
Sign inDemoInstall

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.1.1 to 1.2.0

9

index.js

@@ -11,7 +11,8 @@ 'use strict';

var chmod = fs.chmodSync;
var tmpDir = require('os').tmpdir();
var debug = require('debug')('sync-disk-cache');
var zlib = require('zlib');
var heimdall = require('heimdalljs');
var os = require('os');
var username = require('username').sync();
var tmpdir = path.join(os.tmpdir(), username);
var mode = {

@@ -119,3 +120,3 @@ mode: parseInt('0777', 8)

var options = _ || {};
this.tmpDir = options.location|| tmpDir;
this.tmpdir = options.location|| tmpdir;

@@ -129,3 +130,3 @@ if (options.compression) {

this.key = key || 'default-disk-cache';
this.root = path.join(this.tmpDir, 'if-you-need-to-delete-this-open-an-issue-sync-disk-cache', this.key);
this.root = path.join(this.tmpdir, 'if-you-need-to-delete-this-open-an-issue-sync-disk-cache', this.key);

@@ -132,0 +133,0 @@ debug('new Cache { root: %s, compression: %s }', this.root, this.compression);

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

@@ -32,3 +32,4 @@ "files": [

"mkdirp": "^0.5.0",
"rimraf": "^2.2.8"
"rimraf": "^2.2.8",
"username": "^1.0.1"
},

@@ -35,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