New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

easy-object-pool

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-object-pool - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

src/index.ts

2

package.json
{
"name": "easy-object-pool",
"version": "1.0.3",
"version": "1.0.4",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -44,5 +44,5 @@ # Easy Object Pool

| :--- | :--- | :--- | :--- | :--- |
| `factoryMethod` | `(...params: any[]) => T` | ✅ | | factory method to instantiate a instance |
| `initializationMethod` | `(instance: T, ...params: any[]) => void` | | | initialize a instance when get a instance |
| `disposeMethod` | `(instance: T, ...params: any[]) => void` | | | call if clean instances |
| `factoryMethod` | (...params: any[]) => T | ✅ | | factory method to instantiate a instance |
| `initializationMethod` | (instance: T, ...params: any[]) => void | | | initialize a instance when get a instance |
| `disposeMethod` | (instance: T, ...params: any[]) => void | | | call if clean instances |
| `preInstantiationQuantity` | `number` | | `0` | instantiate some instances at ahead |

@@ -57,4 +57,4 @@ | `limit` | `number` | | `0` | set a limit quantity of pool |

| :--- | :--- | :--- |
| `getAInstance` | `(...params: any[]) => T` | get a instance |
| `getAInstance` | (...params: any[]) => T | get a instance |
| `recycleInstance` | (instance: T | T[]) => void | recycle a instance or instances |
| `cleanAllInstance` | `() => void` | clean all instances |
| `cleanAllInstance` | () => void | clean all instances |
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