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

mnemonist

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mnemonist - npm Package Compare versions

Comparing version 0.38.3 to 0.38.4

4

CHANGELOG.md
# Changelog
## 0.38.4
* Fixing `KDTree` typings (@clhuang).
## 0.38.3

@@ -4,0 +8,0 @@

4

kd-tree.d.ts

@@ -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 @@

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