nodemailer-smtp-pool
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "nodemailer-smtp-pool", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "SMTP transport for Nodemailer", | ||
@@ -37,2 +37,2 @@ "main": "src/smtp-pool.js", | ||
} | ||
} | ||
} |
@@ -145,2 +145,5 @@ 'use strict'; | ||
this._rateLimit.counter++; | ||
if (!this._rateLimit.checkpoint) { | ||
this._rateLimit.checkpoint = Date.now(); | ||
} | ||
} | ||
@@ -227,6 +230,2 @@ connection.send(element.mail, element.callback); | ||
if (!this._rateLimit.checkpoint) { | ||
this._rateLimit.checkpoint = now; | ||
} | ||
if (this._rateLimit.counter < this.options.rateLimit) { | ||
@@ -233,0 +232,0 @@ return callback(); |
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
18605