Comparing version 4.3.3 to 4.3.4
@@ -298,7 +298,2 @@ 'use strict'; | ||
const getPolicy = async (domain, knownPolicy, opts) => { | ||
if (knownPolicy?.expires && new Date(knownPolicy?.expires) > new Date()) { | ||
// no need to check | ||
return { policy: knownPolicy, status: 'cached' }; | ||
} | ||
let policyId; | ||
@@ -316,4 +311,4 @@ try { | ||
if (knownPolicy && knownPolicy.id === policyId) { | ||
// no changes | ||
if (knownPolicy && knownPolicy.id === policyId && !(knownPolicy?.expires && new Date(knownPolicy?.expires) > new Date())) { | ||
// no changes, not expired | ||
return { | ||
@@ -320,0 +315,0 @@ policy: Object.assign({}, knownPolicy, { |
name license type link installed version author | ||
---- ------------ ---- ----------------- ------ | ||
@postalsys/vmc MIT https://registry.npmjs.org/@postalsys/vmc/-/vmc-1.0.6.tgz 1.0.6 Postal Systems OÜ | ||
fast-xml-parser MIT git+https://github.com/NaturalIntelligence/fast-xml-parser.git 4.1.3 Amit Gupta (https://amitkumargupta.work/) | ||
fast-xml-parser MIT git+https://github.com/NaturalIntelligence/fast-xml-parser.git 4.2.0 Amit Gupta (https://amitkumargupta.work/) | ||
ipaddr.js MIT git://github.com/whitequark/ipaddr.js.git 2.0.1 whitequark <whitequark@whitequark.org> | ||
@@ -6,0 +6,0 @@ joi BSD-3-Clause git://github.com/hapijs/joi.git 17.9.1 n/a |
{ | ||
"name": "mailauth", | ||
"version": "4.3.3", | ||
"version": "4.3.4", | ||
"description": "Email authentication library for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/mailauth.js", |
267125
5178