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

eidetic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eidetic - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

lib/eidetic.js

@@ -6,2 +6,3 @@ module.exports = function Cache(options) {

_ = require('underscore'),
clone = require('clone'),
hits = 0,

@@ -90,5 +91,5 @@ total = 0,

}
cachedItems[key] = {
value: _.extend({}, value),
value: clone(value),
durationSeconds: durationSeconds,

@@ -131,2 +132,2 @@ useSlidingExpiration: useSlidingExpiration,

};
};
};

@@ -7,9 +7,10 @@ {

],
"version": "0.1.0",
"version": "0.1.1",
"dependencies": {
"underscore": "1.3.3"
"underscore": "1.x.x",
"clone": "0.1.x"
},
"devDependencies": {
"mocha": "1.3.0",
"jshint": "0.6.3"
"mocha": "1.x.x",
"jshint": "0.6.x"

@@ -16,0 +17,0 @@ },

var assert = require('assert'),
Cache = require('../lib-test/Eidetic.js'),
Cache = require('../lib-test/eidetic.js'),
_ = require('underscore'),

@@ -54,3 +54,3 @@ options = {

var value = cache.get('key');
assert(_.isEqual(value, testValue), 'The cached value should be equal to the test value');

@@ -57,0 +57,0 @@ done();

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