Comparing version 1.1.1 to 1.1.2
@@ -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'); |
{ | ||
"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", |
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
18256
463