From 6cb2cc2ab2ea7510356ed202c44468add7f2271a Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 7 Feb 2023 14:47:45 -0800 Subject: [PATCH] lint fix (#22) --- .gitmodules | 3 +++ .release | 1 + Changes.md | 31 +++++++++++++++++++------------ index.js | 2 +- 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .gitmodules create mode 160000 .release diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a8e94cb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".release"] + path = .release + url = git@github.com:msimerson/.release.git diff --git a/.release b/.release new file mode 160000 index 0000000..0890e94 --- /dev/null +++ b/.release @@ -0,0 +1 @@ +Subproject commit 0890e945e4e061c96c7b2ab45017525904c17728 diff --git a/Changes.md b/Changes.md index ab85686..22e6776 100644 --- a/Changes.md +++ b/Changes.md @@ -1,15 +1,19 @@ -## 2.0.2 - 2022-10-21 +### Unreleased + + +### 2.0.2 - 2023-02-07 - fix: catching DNS timeout exception -## 2.0.1 - 2022-05-27 + +### 2.0.1 - 2022-05-27 - fix: when adding headers, assure ASN is string - fix: when adding header, look in correct location for asn.org - when create conn note, only assign properties with values -## 2.0.0 - 2022-05-23 +### 2.0.0 - 2022-05-23 - style: replace most callbacks with async/await - use builtin/promises where available @@ -17,7 +21,7 @@ - dep: remove async -## 1.0.9 - 2022-05-22 +### 1.0.9 - 2022-05-22 - ci: add GitHub Actions CI, #17 - ci: remove appveyor and travis configs @@ -27,7 +31,7 @@ - dep(async): bump version to 3.2 -## 1.0.8 - 2018-01-22 +### 1.0.8 - 2018-01-22 - parse maxmind ASN w/o Org data - es6: var => const|let, function () => arrow functions @@ -36,24 +40,27 @@ - emit rspamd DNS provider results (when enabled) -## 1.0.7 - 2017-02-06 +### 1.0.7 - 2017-02-06 - updated eslint to use eslint-plugin-haraka - aggregate results before emitting -## 1.0.6 - 2016-10-20 +### 1.0.6 - 2016-10-20 * when protocols[setting]=false, don't enable that protocol * ie, do what the config implies -## 1.0.5 - 2016-10-08 +### 1.0.5 - 2016-10-08 + +### 1.0.4 - 2016-10-08 + +### 1.0.2 - 2016-10-06 -## 1.0.4 - 2016-10-08 +### 1.0.1 - 2016-02-07 -## 1.0.2 - 2016-10-06 +### 1.0.0 - 2016-07-21 -## 1.0.1 - 2016-02-07 -## 1.0.0 - 2016-07-21 +[2.0.2]: https://github.com/haraka/haraka-plugin-asn/releases/tag/2.0.2 diff --git a/index.js b/index.js index a3be429..c9209c5 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,7 @@ exports.get_dns_results = async function (zone, ip) { const first = addrs[0]; this.logdebug(this, `${zone} answers: ${first}`); - + return this.get_result(zone, first); } catch (err) {