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

nano-memoize

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano-memoize - npm Package Compare versions

Comparing version 1.3.1 to 2.0.0

9

index.d.ts
declare module "nano-memoize" {
interface nanomemoize {
interface nanomemoize
{
clear(): void;

@@ -12,8 +13,2 @@ }

maxArgs?: number;
/*
* Go ahead and call memoized multi-args functions after a number of milliseconds via a timeout after the
* cached result has been returned, perhaps to ensure that callbacks are invoked, does not cache the timemout result
* e.g. `nanomemoize(function(a,b,cb) { var result = a + b; cb(result); return result; },{maxArgs:2,callTimeout:0});`
*/
callTimeout: number;
/**

@@ -20,0 +15,0 @@ * Number of milliseconds to cache a result, set to `Infinity` to never create timers or expire

{
"name": "nano-memoize",
"version": "v1.3.1",
"version": "v2.0.0",
"description": "Faster than fast, smaller than micro ... a nano speed and nano size memoizer.",

@@ -12,3 +12,3 @@ "main": "index.js",

"test": "mocha ./test/index.js"
},
},
"repository": {

@@ -38,3 +38,3 @@ "type": "git",

"codacy-coverage": "^2.0.0",
"codeclimate-test-reporter": "^0.2.0",
"codeclimate-test-reporter": "^0.5.1",
"fast-equals": "^1.6.3",

@@ -59,2 +59,2 @@ "fast-memoize": "^2.5.1",

"dependencies": {}
}
}

@@ -213,2 +213,4 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/30ce201484754fa5b0a6c6046abb842d)](https://www.codacy.com/app/syblackwell/nano-memoize?utm_source=github.com&utm_medium=referral&utm_content=anywhichway/nano-memoize&utm_campaign=Badge_Grade)

2022-12-08 v2.0.0 Removed callTimeout from TypeScript typings since it was not implemented and there are no plans to implement. Bumped version to 2.0.0 since this may break some users.
2022-10-20 v1.3.1 Bumping version for https://github.com/anywhichway/nano-memoize/pull/41

@@ -215,0 +217,0 @@

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