diff --git a/dist/package-lock.json b/dist/package-lock.json index 587a8086..91ab7dd0 100644 --- a/dist/package-lock.json +++ b/dist/package-lock.json @@ -24,16 +24,19 @@ "md5": "^2.3.0", "moment": "^2.29.4", "node-cleanup": "^2.1.2", - "nodemailer": "^6.9.6", + "nodemailer": "^6.9.7", "path": "^0.12.7", "restify": "github:massimocandela/node-restify", - "rpki-validator": "^2.13.1", + "rpki-validator": "^2.13.2", "semver": "^7.5.4", "syslog-client": "^1.1.1", "uuid": "^9.0.1", "ws": "^8.14.2", "yargs": "^17.7.2" }, + "bin": { + "bgpalerter": "index.js" + }, "devDependencies": { "@babel/cli": "^7.23.0", "@babel/core": "^7.23.2", @@ -5136,8 +5139,9 @@ "dev": true }, "node_modules/nodemailer": { - "version": "6.9.6", - "integrity": "sha512-s7pDtWwe5fLMkQUhw8TkWB/wnZ7SRdd9HRZslq/s24hlZvBP3j32N/ETLmnqTpmj4xoBZL9fOWyCIZ7r2HORHg==", + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.7.tgz", + "integrity": "sha512-rUtR77ksqex/eZRLmQ21LKVH5nAAsVicAtAYudK7JgwenEDZ0UIQ1adUGqErz7sMkWYxWTTU1aeP2Jga6WQyJw==", "engines": { "node": ">=6.0.0" } @@ -6345,13 +6349,14 @@ } }, "node_modules/rpki-validator": { - "version": "2.13.1", - "integrity": "sha512-ZaJrD+cPCQpdoGp+8j5ir8u1ILl0MfFIfJW66k+VAXialPZpbcNQFNk8LgqxoZiDdB3cU23kYq3D+TYiPrHpPA==", + "version": "2.13.2", + "resolved": "https://registry.npmjs.org/rpki-validator/-/rpki-validator-2.13.2.tgz", + "integrity": "sha512-qvTDo5Zdoi5/kq+XieaFdwxdGkaTWEm8vNEyLbfm01FGGq3dvbApoKPYSbUOWqPqf9n4w4DwU6BXFM2wEFN9ww==", "dependencies": { "axios": "=0.27.1", "brembo": "^2.0.7", - "ip-sub": "^1.3.8", - "longest-prefix-match": "^1.2.2", + "ip-sub": "^1.3.9", + "longest-prefix-match": "^1.2.3", "net-validations": "^1.0.7" }, "bin": { diff --git a/dist/package.json b/dist/package.json index 77de4426..ade8ef73 100644 --- a/dist/package.json +++ b/dist/package.json @@ -73,10 +73,10 @@ "md5": "^2.3.0", "moment": "^2.29.4", "node-cleanup": "^2.1.2", - "nodemailer": "^6.9.6", + "nodemailer": "^6.9.7", "path": "^0.12.7", "restify": "github:massimocandela/node-restify", - "rpki-validator": "^2.13.1", + "rpki-validator": "^2.13.2", "semver": "^7.5.4", "syslog-client": "^1.1.1", "uuid": "^9.0.1", diff --git a/dist/src/inputs/input.js b/dist/src/inputs/input.js index 64e7ebd1..42a17391 100644 --- a/dist/src/inputs/input.js +++ b/dist/src/inputs/input.js @@ -156,14 +156,14 @@ var Input = exports["default"] = /*#__PURE__*/_createClass(function Input(env) { _defineProperty(this, "getMonitoredPrefixes", function () { throw new Error('The method getMonitoredPrefixes MUST be implemented'); }); - _defineProperty(this, "_filterIgnoreMorespecifics", function (prefix, includeIgnoredMorespecifics) { - return function (i) { - return includeIgnoredMorespecifics || !i.ignoreMorespecifics || _ipSub["default"]._isEqualPrefix(i.prefix, prefix); // last piece says "or it is not a more specific" - }; + _defineProperty(this, "_filterIgnoreMorespecifics", function (i, prefix, includeIgnoredMorespecifics) { + return includeIgnoredMorespecifics || !i.ignoreMorespecifics || _ipSub["default"]._isEqualPrefix(i.prefix, prefix); // last piece says "or it is not a more specific" }); _defineProperty(this, "getMoreSpecificMatches", function (prefix) { var includeIgnoredMorespecifics = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - return _this.index.getMatch(prefix, false).filter(_this._filterIgnoreMorespecifics(prefix, includeIgnoredMorespecifics)); + return _this.index.getMatch(prefix, false).filter(function (i) { + return _this._filterIgnoreMorespecifics(i, prefix, includeIgnoredMorespecifics); + }); }); _defineProperty(this, "getMonitoredASns", function () { throw new Error('The method getMonitoredASns MUST be implemented');