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

micro-memoize

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-memoize - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2-beta.0

src/Cache.ts

25

index.d.ts

@@ -11,18 +11,3 @@ type Dictionary<Type> = {

export interface Cache {
canTransformKey: boolean;
getKeyIndex: KeyIndexGetter;
keys: Key[];
options: Options;
shouldCloneArguments: boolean;
shouldUpdateOnAdd: boolean;
shouldUpdateOnChange: boolean;
shouldUpdateOnHit: boolean;
snapshot: {
keys: Key[];
size: number;
values: Value[];
};
values: Value[];
}
export type Cache = import('./src/Cache').Cache;

@@ -41,3 +26,3 @@ export type EqualityComparator = (object1: any, object2: any) => boolean;

export type KeyIndexGetter = (allKeys: Key[], keyToMatch: RawKey) => number;
export type KeyIndexGetter = (keyToMatch: RawKey) => number;

@@ -59,6 +44,6 @@ export type StandardOptions = {

Dictionary<any> & {
cache?: Cache;
cache: Cache;
fn: Fn;
isMemoized?: boolean;
options?: Options;
isMemoized: true;
options: Options;
};

@@ -65,0 +50,0 @@

3

package.json

@@ -93,2 +93,3 @@ {

"release": "release-it",
"release:beta": "release-it --config=.release-it.beta.json",
"start": "npm run dev",

@@ -101,3 +102,3 @@ "test": "NODE_PATH=. jest",

"types": "./index.d.ts",
"version": "4.0.1"
"version": "4.0.2-beta.0"
}

@@ -8,3 +8,3 @@ {

"lib": ["dom", "es2015"],
"module": "es2015",
"module": "esnext",
"moduleResolution": "node",

@@ -11,0 +11,0 @@ "noImplicitAny": true,

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