generic-pool
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
@@ -6,3 +6,2 @@ 'use strict' | ||
const PoolDefaults = require('./PoolDefaults') | ||
const PooledResourceCollection = require('./PooledResourceCollection') | ||
const PriorityQueue = require('./PriorityQueue') | ||
@@ -154,3 +153,3 @@ const ResourceRequest = require('./ResourceRequest') | ||
*/ | ||
this._allObjects = new PooledResourceCollection() | ||
this._allObjects = new Set() | ||
@@ -175,3 +174,3 @@ /** | ||
pooledResource.invalidate() | ||
this._allObjects.remove(pooledResource) | ||
this._allObjects.delete(pooledResource) | ||
// NOTE: this maybe very bad promise usage? | ||
@@ -400,3 +399,3 @@ const destroyOp = this._factory.destroy(pooledResource.obj) | ||
const pooledResource = new PooledResource(resource) | ||
this._allObjects.addPooledResource(pooledResource) | ||
this._allObjects.add(pooledResource) | ||
// TODO: check we aren't exceding our maxPoolSize before doing | ||
@@ -403,0 +402,0 @@ this._dispatchPooledResourceToNextWaitingClient(pooledResource) |
{ | ||
"name": "generic-pool", | ||
"description": "Generic resource pooling for Node.JS", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.2", | ||
"author": "James Cooper <james@bitmechanic.com>", | ||
@@ -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
75748
25
1843