Socket
Socket
Sign inDemoInstall

p-queue

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-queue - npm Package Compare versions

Comparing version 7.3.4 to 7.4.1

2

dist/index.d.ts

@@ -1,2 +0,2 @@

import EventEmitter from 'eventemitter3';
import { EventEmitter } from 'eventemitter3';
import { Queue, RunFunction } from './queue.js';

@@ -3,0 +3,0 @@ import PriorityQueue from './priority-queue.js';

@@ -13,3 +13,3 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

var _PQueue_instances, _PQueue_carryoverConcurrencyCount, _PQueue_isIntervalIgnored, _PQueue_intervalCount, _PQueue_intervalCap, _PQueue_interval, _PQueue_intervalEnd, _PQueue_intervalId, _PQueue_timeoutId, _PQueue_queue, _PQueue_queueClass, _PQueue_pending, _PQueue_concurrency, _PQueue_isPaused, _PQueue_throwOnTimeout, _PQueue_doesIntervalAllowAnother_get, _PQueue_doesConcurrentAllowAnother_get, _PQueue_next, _PQueue_onResumeInterval, _PQueue_isIntervalPaused_get, _PQueue_tryToStartAnother, _PQueue_initializeIntervalIfNeeded, _PQueue_onInterval, _PQueue_processQueue, _PQueue_throwOnAbort, _PQueue_onEvent;
import EventEmitter from 'eventemitter3';
import { EventEmitter } from 'eventemitter3';
import pTimeout, { TimeoutError } from 'p-timeout';

@@ -25,3 +25,3 @@ import PriorityQueue from './priority-queue.js';

*/
export default class PQueue extends EventEmitter {
class PQueue extends EventEmitter {
// TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`

@@ -333,1 +333,2 @@ constructor(options) {

};
export default PQueue;

@@ -8,3 +8,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

import lowerBound from './lower-bound.js';
export default class PriorityQueue {
class PriorityQueue {
constructor() {

@@ -41,1 +41,2 @@ _PriorityQueue_queue.set(this, []);

_PriorityQueue_queue = new WeakMap();
export default PriorityQueue;
{
"name": "p-queue",
"version": "7.3.4",
"version": "7.4.1",
"description": "Promise queue with concurrency control",

@@ -15,3 +15,4 @@ "license": "MIT",

"build": "del-cli dist && tsc",
"test": "xo && ava && del-cli dist && tsc && tsd",
"//test": "xo && ava && del-cli dist && tsc && tsd",
"test": "ava && del-cli dist && tsc && tsd",
"bench": "node --loader=ts-node/esm bench.ts",

@@ -47,3 +48,3 @@ "prepublishOnly": "del-cli dist && tsc"

"dependencies": {
"eventemitter3": "^4.0.7",
"eventemitter3": "^5.0.1",
"p-timeout": "^5.0.2"

@@ -55,3 +56,3 @@ },

"@types/node": "^17.0.13",
"ava": "^5.1.1",
"ava": "^5.3.1",
"benchmark": "^2.1.4",

@@ -66,4 +67,4 @@ "del-cli": "^5.0.0",

"tsd": "^0.25.0",
"typescript": "^4.8.4",
"xo": "^0.44.0"
"typescript": "^5.2.2",
"xo": "^0.52.0"
},

@@ -70,0 +71,0 @@ "ava": {

@@ -17,3 +17,3 @@ # p-queue

**Warning:** This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides a CommonJS export. If your project uses CommonJS, you'll have to [convert to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) or use the [dynamic `import()`](https://v8.dev/features/dynamic-import) function. Please don't open issues for questions regarding CommonJS / ESM. You can also use [version 6](https://github.com/sindresorhus/p-queue/tree/v6.6.2) instead which is pretty stable. We will backport security fixes to v6 for the foreseeable future.
**Warning:** This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides a CommonJS export. If your project uses CommonJS, you'll have to [convert to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) or use the [dynamic `import()`](https://v8.dev/features/dynamic-import) function. Please don't open issues for questions regarding CommonJS / ESM.

@@ -508,13 +508,1 @@ ## Usage

- [More…](https://github.com/sindresorhus/promise-fun)
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-p-queue?utm_source=npm-p-queue&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
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