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

big-sparse-array

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-sparse-array - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.github/workflows/test.yml

16

index.js

@@ -20,9 +20,11 @@ const FACTOR = new Uint16Array(8)

set (index, val) {
while (val !== undefined && index >= this.maxLength) {
this.maxLength *= 4096
this.factor++
if (!this.tiny.isEmptyish()) {
const t = new TinyArray()
t.set(0, this.tiny)
this.tiny = t
if (val !== undefined) {
while (index >= this.maxLength) {
this.maxLength *= 4096
this.factor++
if (!this.tiny.isEmptyish()) {
const t = new TinyArray()
t.set(0, this.tiny)
this.tiny = t
}
}

@@ -29,0 +31,0 @@ }

{
"name": "big-sparse-array",
"version": "1.0.0",
"version": "1.0.1",
"description": "A sparse array optimised for low memory whilst still being fast",

@@ -11,2 +11,5 @@ "main": "index.js",

},
"scripts": {
"test": "standard && tape test.js"
},
"repository": {

@@ -13,0 +16,0 @@ "type": "git",

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