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.4.0 to 1.4.1

3

index.js

@@ -247,3 +247,3 @@ 'use strict';

}
if (index < size / 2) {
if (i < size / 2) {
this._head = (this._head + index + count + len) & this._capacityMask;

@@ -258,2 +258,3 @@ for (k = index; k > 0; k--) {

}
if (index < 0) this._tail = i;
} else {

@@ -260,0 +261,0 @@ this._tail = i;

{
"name": "denque",
"version": "1.4.0",
"version": "1.4.1",
"description": "The fastest javascript implementation of a double-ended queue. Maintains compatability with deque.",

@@ -32,22 +32,25 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/Salakar/denque.git"
"url": "git+https://github.com/invertase/denque.git"
},
"license": "Apache-2.0",
"author": {
"name": "Mike Diarmid",
"email": "mike.diarmid@gmail.com",
"url": "http://github.com/Salakar/"
"name": "Invertase",
"email": "oss@invertase.io",
"url": "http://github.com/invertase/"
},
"license": "Apache-2.0",
"contributors": [
"Mike Diarmid (Salakar) <mike@invertase.io>"
],
"bugs": {
"url": "https://github.com/Salakar/denque/issues"
"url": "https://github.com/invertase/denque/issues"
},
"homepage": "https://github.com/Salakar/denque#readme",
"homepage": "https://github.com/invertase/denque#readme",
"devDependencies": {
"benchmark": "^2.1.0",
"coveralls": "^2.13.1",
"benchmark": "^2.1.4",
"coveralls": "^2.13.3",
"double-ended-queue": "^2.1.0-0",
"istanbul": "^0.4.4",
"mocha": "^3.0.0",
"typescript": "^2.9.1"
"istanbul": "^0.4.5",
"mocha": "^3.5.3",
"typescript": "^3.4.1"
}
}

@@ -1,11 +0,18 @@

# DENQUE
<p align="center">
<a href="https://invertase.io">
<img src="https://static.invertase.io/assets/invertase-logo-small.png"><br/>
</a>
<h2 align="center">Denque</h2>
</p>
[![Downloads](https://img.shields.io/npm/dm/denque.svg?style=flat-square)](https://www.npmjs.com/package/denque)
[![npm version](https://img.shields.io/npm/v/denque.svg?style=flat-square)](https://www.npmjs.com/package/denque)
[![Coverage Status](https://coveralls.io/repos/github/Salakar/denque/badge.svg?branch=master)](https://coveralls.io/github/Salakar/denque?branch=master)
[![Build](https://travis-ci.org/Salakar/denque.svg)](https://travis-ci.org/Salakar/denque)
[![License](https://img.shields.io/npm/l/denque.svg)](/LICENSE)
<a href="https://twitter.com/mikediarmid"><img src="https://img.shields.io/twitter/follow/mikediarmid.svg?style=social&label=Follow" alt="Follow on Twitter"></a>
<p align="center">
<a href="https://www.npmjs.com/package/denque"><img src="https://img.shields.io/npm/dm/denque.svg?style=flat-square" alt="NPM downloads"></a>
<a href="https://www.npmjs.com/package/denque"><img src="https://img.shields.io/npm/v/denque.svg?style=flat-square" alt="NPM version"></a>
<a href="https://travis-ci.org/Salakar/denque"><img src="https://travis-ci.org/invertase/denque.svg" alt="Build version"></a>
<a href="https://coveralls.io/github/invertase/denque?branch=master"><img src="https://coveralls.io/repos/github/invertase/denque/badge.svg?branch=master" alt="Build version"></a>
<a href="/LICENSE"><img src="https://img.shields.io/npm/l/denque.svg?style=flat-square" alt="License"></a>
<a href="https://discord.gg/C9aK28N"><img src="https://img.shields.io/discord/295953187817521152.svg?logo=discord&style=flat-square&colorA=7289da&label=discord" alt="Chat"></a>
<a href="https://twitter.com/invertaseio"><img src="https://img.shields.io/twitter/follow/invertaseio.svg?style=social&label=Follow" alt="Follow on Twitter"></a>
</p>
Extremely fast and lightweight [double-ended queue](http://en.wikipedia.org/wiki/Double-ended_queue) implementation with zero dependencies.

@@ -61,3 +68,5 @@

var denque = new Denque();
denque.push(1, 2, 3);
denque.push(1);
denque.push(2);
denque.push(3);
denque.shift(); //1

@@ -347,1 +356,9 @@ denque.pop(); //3

native array splice x 5,300 ops/sec ±0.41% (96 runs sampled)
---
Built and maintained with 💛 by [Invertase](https://invertase.io).
- [💼 Hire Us](https://invertase.io/hire-us)
- [☕️ Sponsor Us](https://opencollective.com/react-native-firebase)
- [👩‍💻 Work With Us](https://invertase.io/jobs)
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