Comparing version 0.38.3 to 0.38.4
# Changelog | ||
## 0.38.4 | ||
* Fixing `KDTree` typings (@clhuang). | ||
## 0.38.3 | ||
@@ -4,0 +8,0 @@ |
@@ -22,5 +22,5 @@ /** | ||
static from<I>(iterable: Iterable<[I, Array<number>]>, dimensions: number): KDTree<I>; | ||
static from(axes: IArrayLike): KDTree<number>; | ||
static from<I>(axes: IArrayLike, labels: Array<I>): KDTree<I>; | ||
static fromAxes(axes: IArrayLike): KDTree<number>; | ||
static fromAxes<I>(axes: IArrayLike, labels: Array<I>): KDTree<I>; | ||
} | ||
@@ -42,2 +42,4 @@ /** | ||
throw new Error('mnemonist/lru-cache: capacity should be positive number.'); | ||
else if (!isFinite(this.capacity) || Math.floor(this.capacity) !== this.capacity) | ||
throw new Error('mnemonist/lru-cache: capacity should be a finite positive integer.'); | ||
@@ -44,0 +46,0 @@ var PointerArray = typed.getPointerArray(capacity); |
@@ -33,2 +33,4 @@ /** | ||
throw new Error('mnemonist/lru-map: capacity should be positive number.'); | ||
else if (!isFinite(this.capacity) || Math.floor(this.capacity) !== this.capacity) | ||
throw new Error('mnemonist/lru-map: capacity should be a finite positive integer.'); | ||
@@ -35,0 +37,0 @@ var PointerArray = typed.getPointerArray(capacity); |
{ | ||
"name": "mnemonist", | ||
"version": "0.38.3", | ||
"version": "0.38.4", | ||
"description": "Curated collection of data structures for the JavaScript language.", | ||
"scripts": { | ||
"lint": "eslint ./*.js ./utils ./test", | ||
"prepublish": "npm run lint && npm test && npm run test:types", | ||
"prepublishOnly": "npm run lint && npm test && npm run test:types", | ||
"test": "mocha", | ||
@@ -9,0 +9,0 @@ "test:types": "tsc --target es2015 --noEmit --noImplicitAny --noImplicitReturns ./test/types.ts" |
@@ -38,3 +38,3 @@ /** | ||
return Float64Array; | ||
throw new Error('mnemonist: Pointer Array of size > 4294967295 is not supported.'); | ||
}; | ||
@@ -41,0 +41,0 @@ |
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
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
368337
13186