micro-memoize
Advanced tools
Comparing version 4.0.1 to 4.0.2-beta.0
@@ -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 @@ |
@@ -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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203307
31
3256
1