diff --git a/dist/package-lock.json b/dist/package-lock.json index 91ab7dd0..3ef1c5e4 100644 --- a/dist/package-lock.json +++ b/dist/package-lock.json @@ -20,7 +20,7 @@ "ip-sub": "^1.3.9", "js-yaml": "^4.1.0", "kafkajs": "^2.2.4", - "longest-prefix-match": "^1.2.3", + "longest-prefix-match": "^1.2.6", "md5": "^2.3.0", "moment": "^2.29.4", "node-cleanup": "^2.1.2", @@ -4640,12 +4640,11 @@ } }, "node_modules/longest-prefix-match": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/longest-prefix-match/-/longest-prefix-match-1.2.3.tgz", - "integrity": "sha512-K+cfF+W7grNrFiTwpepSd2CRe8iCLHE4qkNxerecPe0TCBnA8zRvfY27RUhEeXyxajdN8t1t/JUM3TwZ/iMSqg==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/longest-prefix-match/-/longest-prefix-match-1.2.6.tgz", + "integrity": "sha512-Rvujx+woWb72uXDI+eHhpPuI1FMge56YTgxYHfF25qeKTFkWTjk2ddRsRQiJ7WAf0BPsH2r0swnd96dh2iLzjQ==", "dependencies": { - "ip-sub": "^1.3.9", - "radix-trie-js": "^1.1.0" + "ip-sub": "^1.3.9" } }, "node_modules/loupe": { @@ -6060,11 +6059,6 @@ "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" }, - "node_modules/radix-trie-js": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/radix-trie-js/-/radix-trie-js-1.1.0.tgz", - "integrity": "sha512-mDW+2G4Y8T9bZzBh1Qs5axzU5QbozKm1uUROlPfk57Yr93tmYXF+0uTrZHUA5Qs4v5Src67L+6Z8PIEOrZT55A==" - }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", diff --git a/dist/package.json b/dist/package.json index ade8ef73..58388213 100644 --- a/dist/package.json +++ b/dist/package.json @@ -69,7 +69,7 @@ "ip-sub": "^1.3.9", "js-yaml": "^4.1.0", "kafkajs": "^2.2.4", - "longest-prefix-match": "^1.2.3", + "longest-prefix-match": "^1.2.6", "md5": "^2.3.0", "moment": "^2.29.4", "node-cleanup": "^2.1.2", diff --git a/dist/src/utils/rpkiUtils.js b/dist/src/utils/rpkiUtils.js index 767c639c..161a2280 100644 --- a/dist/src/utils/rpkiUtils.js +++ b/dist/src/utils/rpkiUtils.js @@ -290,7 +290,7 @@ var RpkiUtils = exports["default"] = /*#__PURE__*/_createClass(function RpkiUtil }); _defineProperty(this, "_markAsStale", function () { if (!!_this.params.preCacheROAs) { - var digest = (0, _md["default"])(JSON.stringify(_this.getVRPs())); + var digest = (0, _md["default"])(JSON.stringify(_this.getMetadata())) + "-" + _this.getVRPs().length; if (_this.oldDigest) { var stale = _this.oldDigest === digest; if (_this.status.stale !== stale) {