lightning-pool
Advanced tools
Comparing version 2.1.8 to 2.1.10
@@ -1,13 +0,10 @@ | ||
import Pool, {IPoolFactory} from './Pool'; | ||
import {Pool, IPoolFactory} from './Pool'; | ||
import type {PoolOptions} from './PoolOptions'; | ||
declare module 'lightning-pool' { | ||
export {IPoolFactory, PoolState} from './Pool'; | ||
export {PoolOptions, Pool}; | ||
export {IPoolFactory, PoolState} from './Pool'; | ||
export {PoolOptions}; | ||
export class AbortError extends Error { | ||
} | ||
export class AbortError extends Error { | ||
} | ||
export function createPool(factory: IPoolFactory, options: PoolOptions): Pool; | ||
} | ||
export function createPool(factory: IPoolFactory, options: PoolOptions): Pool; |
@@ -9,3 +9,3 @@ /* lightning-pool | ||
const Pool = require('./Pool'); | ||
const {Pool} = require('./Pool'); | ||
const AbortError = require('./AbortError'); | ||
@@ -12,0 +12,0 @@ |
@@ -24,3 +24,3 @@ /// <reference lib="es2015.symbol" /> | ||
export default class Pool { | ||
export class Pool { | ||
public readonly acquired: number; | ||
@@ -27,0 +27,0 @@ public readonly available: number; |
@@ -470,2 +470,2 @@ /* lightning-pool | ||
module.exports = Pool; | ||
module.exports = {Pool}; |
@@ -15,2 +15,1 @@ export declare class PoolOptions { | ||
} | ||
{ | ||
"name": "lightning-pool", | ||
"description": "Fastest object pool implementation for JavaScript", | ||
"version": "2.1.8", | ||
"version": "2.1.10", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37261
818