Skip to content

Commit

Permalink
REF: upgrade deps to remove some security warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
royriojas committed Nov 6, 2018
1 parent 00f6892 commit f405719
Show file tree
Hide file tree
Showing 4 changed files with 5,494 additions and 33 deletions.
12 changes: 9 additions & 3 deletions cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ var cache = {
* @return {Boolean} true or false if the file was successfully deleted
*/
removeCacheFile: function () {
return del( this._pathToFile, { force: true } );
return del( this._pathToFile, {
force: true
} );
},
/**
* Destroy the file cache and cache content.
Expand Down Expand Up @@ -183,7 +185,9 @@ module.exports = {
*/
clearCacheById: function ( docId, cacheDir ) {
var filePath = cacheDir ? path.resolve( cacheDir, docId ) : path.resolve( __dirname, './.cache/', docId );
return del( filePath, { force: true } ).length > 0;
return del( filePath, {
force: true
} ).length > 0;
},
/**
* Remove all cache stored in the cache directory
Expand All @@ -192,6 +196,8 @@ module.exports = {
*/
clearAll: function ( cacheDir ) {
var filePath = cacheDir ? path.resolve( cacheDir ) : path.resolve( __dirname, './.cache/' );
return del( filePath, { force: true } ).length > 0;
return del( filePath, {
force: true
} ).length > 0;
}
};
Loading

0 comments on commit f405719

Please sign in to comment.