Socket
Socket
Sign inDemoInstall

denque

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

6

index.js

@@ -193,7 +193,3 @@ 'use strict';

_fromArray(array) {
// const list = this._list = new Array(0);
// while (list.length < array.length) this._growArray();
for (let i = 0; i < array.length; i++) this.push(array[i]);
// console.log(this._list);
// this._tail = array.length & this._capacityMask;
}

@@ -234,3 +230,3 @@

this._tail = this._list.length;
// console.log(this._list.length);
this._list.length *= 2;

@@ -237,0 +233,0 @@ this._capacityMask = (this._capacityMask << 1) | 1;

2

package.json
{
"name": "denque",
"version": "1.0.0",
"version": "1.0.1",
"description": "The fastest javascript implementation of a double-ended queue. Maintains compatability with deque.",

@@ -5,0 +5,0 @@ "main": "index.js",

# DENQUE
[![Coverage Status](https://coveralls.io/repos/github/Salakar/denque/badge.svg?branch=master)](https://coveralls.io/github/Salakar/denque?branch=master)
![Downloads](https://img.shields.io/npm/dt/denque.svg)
[![npm version](https://img.shields.io/npm/v/denque.svg)](https://www.npmjs.com/package/denque)
[![dependencies](https://img.shields.io/david/Salakar/denque.svg)](https://david-dm.org/Salakar/denque)
[![build](https://travis-ci.org/Salakar/denque.svg)](https://travis-ci.org/Salakar/denque)
[![npm version](https://img.shields.io/npm/v/denque.svg)](https://www.npmjs.com/package/denque)
[![License](https://img.shields.io/npm/l/denque.svg)](/LICENSE)

@@ -17,3 +16,3 @@

Every queue operation is done in constant `O(1)` - including random access from `.peekAt(index)`.
Every queue operation is done at a constant `O(1)` - including random access from `.peekAt(index)`.

@@ -20,0 +19,0 @@ # Quick Start

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc