sindresorhus / p-queue

Promise queue with concurrency control
MIT License
3.45k stars 185 forks source link

Fix importing `TimeoutError` #88

Closed mboperator closed 4 years ago

mboperator commented 5 years ago

The Problem

The built TS file attempts to access ptimeout_1.default.TimeoutError() which under some conditions (IE: inside of Electron) returns undefined.

Changes