Socket
Socket
Sign inDemoInstall

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.0 to 0.38.1

4

CHANGELOG.md
# Changelog
## 0.38.1
* Fixing `SparseQueueSet` deopt.
## 0.38.0

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

10

package.json
{
"name": "mnemonist",
"version": "0.38.0",
"version": "0.38.1",
"description": "Curated collection of data structures for the JavaScript language.",

@@ -81,11 +81,11 @@ "scripts": {

"damerau-levenshtein": "^1.0.6",
"eslint": "^7.3.1",
"eslint": "^7.15.0",
"leven": "^3.1.0",
"lodash": "^4.17.15",
"matcha": "^0.7.0",
"mocha": "^8.0.1",
"pandemonium": "^1.5.0",
"mocha": "^8.2.1",
"pandemonium": "^2.0.0",
"seedrandom": "^3.0.5",
"static-kdtree": "^1.0.2",
"typescript": "^3.9.5"
"typescript": "^4.1.2"
},

@@ -92,0 +92,0 @@ "eslintConfig": {

@@ -51,5 +51,12 @@ /**

var inBounds = (index >= this.start) ?
(index < (this.start + this.size)) :
(index < ((this.start + this.size) % this.capacity));
var inBounds = (
index < this.capacity &&
(
index >= this.start &&
index < this.start + this.size
) ||
(
index < ((this.start + this.size) % this.capacity)
)
);

@@ -71,8 +78,17 @@ return (

var inBounds = (index >= this.start) ?
(index < (this.start + this.size)) :
(index < ((this.start + this.size) % this.capacity));
if (this.size !== 0) {
var inBounds = (
index < this.capacity &&
(
index >= this.start &&
index < this.start + this.size
) ||
(
index < ((this.start + this.size) % this.capacity)
)
);
if (this.size !== 0 && inBounds && this.dense[index] === member)
return this;
if (inBounds && this.dense[index] === member)
return this;
}

@@ -108,3 +124,3 @@ index = (this.start + this.size) % this.capacity;

this.sparse[member] = index + 1;
this.sparse[member] = this.capacity;

@@ -111,0 +127,0 @@ return member;

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