Socket
Socket
Sign inDemoInstall

flat-cache

Package Overview
Dependencies
16
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

2

cache.js
var path = require( 'path' );
var fs = require( 'graceful-fs' );
var fs = require( 'fs' );
var utils = require( './utils' );

@@ -4,0 +4,0 @@ var del = require( './del' );

# flat-cache - Changelog
## v2.0.1
- **Refactoring**
- upgrade node modules to latest versions - [6402ed3]( https://github.com/royriojas/flat-cache/commit/6402ed3 ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 21:47:05
## v2.0.0

@@ -4,0 +9,0 @@ - **Bug Fixes**

var rimraf = require( 'rimraf' ).sync;
var fs = require( 'graceful-fs' );
var fs = require( 'fs' );

@@ -4,0 +4,0 @@ module.exports = function del( file ) {

{
"name": "flat-cache",
"version": "2.0.0",
"version": "2.0.1",
"description": "A stupidly simple key/value storage using files to persist some data",

@@ -84,6 +84,5 @@ "repository": "royriojas/flat-cache",

"flatted": "^2.0.0",
"graceful-fs": "^4.1.2",
"rimraf": "~2.6.2",
"write": "^0.2.1"
"rimraf": "2.6.3",
"write": "1.0.3"
}
}

@@ -1,2 +0,2 @@

var fs = require( 'graceful-fs' );
var fs = require( 'fs' );
var write = require( 'write' );

@@ -6,3 +6,2 @@ var flatted = require( 'flatted' );

module.exports = {
tryParse: function ( filePath, defaultValue ) {

@@ -26,3 +25,5 @@ var result;

readJSON: function ( filePath ) {
return flatted.parse( fs.readFileSync( filePath ).toString() );
return flatted.parse( fs.readFileSync( filePath, {
encoding: 'utf8'
} ) );
},

@@ -40,3 +41,2 @@

}
};
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