@supercharge/promise-pool
Advanced tools
Comparing version 1.9.0 to 2.0.0
import { PromisePool } from './promise-pool'; | ||
export = PromisePool; | ||
export default PromisePool; | ||
export * from './promise-pool'; | ||
export * from './promise-pool-error'; | ||
export * from './return-value'; | ||
export * from './stoppable'; | ||
export * from './stop-the-promise-pool-error'; |
'use strict'; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const promise_pool_1 = require("./promise-pool"); | ||
module.exports = promise_pool_1.PromisePool; | ||
exports.default = promise_pool_1.PromisePool; | ||
__exportStar(require("./promise-pool"), exports); | ||
__exportStar(require("./promise-pool-error"), exports); | ||
__exportStar(require("./return-value"), exports); | ||
__exportStar(require("./stoppable"), exports); | ||
__exportStar(require("./stop-the-promise-pool-error"), exports); |
{ | ||
"name": "@supercharge/promise-pool", | ||
"description": "Map-like, concurrent promise processing for Node.js", | ||
"version": "1.9.0", | ||
"version": "2.0.0", | ||
"author": "Marcus Pöhls <marcus@superchargejs.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -49,3 +49,3 @@ <div align="center"> | ||
```js | ||
const PromisePool = require('@supercharge/promise-pool') | ||
const { PromisePool } = require('@supercharge/promise-pool') | ||
@@ -97,2 +97,4 @@ const users = [ | ||
```js | ||
const { PromisePool } = require('@supercharge/promise-pool') | ||
await PromisePool | ||
@@ -121,2 +123,4 @@ .for(users) | ||
```js | ||
const { PromisePool } = require('@supercharge/promise-pool') | ||
try { | ||
@@ -123,0 +127,0 @@ const errors = [] |
31076
173
17
852