Socket
Socket
Sign inDemoInstall

tarn

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tarn - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

20

lib/Pool.js

@@ -15,16 +15,2 @@ 'use strict'

const OPTIONS = [
'create',
'destroy',
'validate',
'min',
'max',
'acquireTimeoutMillis',
'propagateCreateError',
'createTimeoutMillis',
'idleTimeoutMillis',
'reapIntervalMillis',
'createRetryIntervalMillis'
];
class Pool {

@@ -34,8 +20,2 @@ constructor(opt) {

Object.keys(opt).forEach(opt => {
if (OPTIONS.indexOf(opt) === -1) {
throw new Error(`Tarn: unknown option '${opt}'`);
}
});
if (!opt.create) {

@@ -42,0 +22,0 @@ throw new Error('Tarn: opt.create function most be provided');

2

package.json
{
"name": "tarn",
"version": "1.1.1",
"version": "1.1.2",
"description": "Simple and robust resource pool for node.js",

@@ -5,0 +5,0 @@ "main": "lib/tarn.js",

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