Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generic-pool

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generic-pool - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2

7

lib/Pool.js

@@ -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": [

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