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

cachetree

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cachetree - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

17

lib/memorystore.js

@@ -40,5 +40,6 @@ /**

*
* @param {String} key Hash key
* @param {...String} field Hash field(s) or omit for all
* @param {Function} cb Callback function
* @param {String} key Hash key
* @param {Boolean} [asBuffer] true if return data as a Buffer
* @param {...String} field Hash field(s) or omit for all
* @param {Function} cb Callback function
* @return {this} for chaining

@@ -61,2 +62,12 @@ */

if (data) {
// Unwrap the fist argument
if (len === 1 && Array.isArray(args[0])) {
args = args[0];
len = args.length;
}
// Dispose of buffer flag, since not supported in this store
if (len && args[0] === true) {
args.shift();
len = len - 1;
}
if (len === 1) {

@@ -63,0 +74,0 @@ cb(null, data[args[0]]);

2

package.json
{
"name": "cachetree",
"description": "A scoped, fluent API for easily interacting with hierarchical, key-value data",
"version": "2.1.0",
"version": "3.0.0",
"author": "David Wood <bitprobe@gmail.com>",

@@ -6,0 +6,0 @@ "repository": {

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