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

fwk

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fwk - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

23

lib/cache.js

@@ -51,2 +51,3 @@ // Copyright Teleportd

var invalidate; /* invalidate(key{optional}) */
var count; /* size() */

@@ -139,9 +140,3 @@ //private

dte: Date.now() };
var count = 0;
for(var s in my.cache) {
if(my.cache.hasOwnProperty(s)) {
count ++;
}
}
var count = that.count();
if(count > my.size)

@@ -163,2 +158,15 @@ evict[my.modes[my.evict]](count);

};
/**
* @return count the number of elements within the cache.
*/
count = function() {
var count = 0;
for(var s in my.cache) {
if(my.cache.hasOwnProperty(s)) {
count ++;
}
}
return count;
};

@@ -193,2 +201,3 @@ /**

base.method(that, 'invalidate', invalidate, _super);
base.method(that, 'count', count, _super);

@@ -195,0 +204,0 @@ return that;

{
"name": "fwk",
"version": "0.1.14",
"version": "0.1.15",
"description": "Simple JS framework for node.js",

@@ -5,0 +5,0 @@ "keywords": ["fwk", "node"],

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