diff --git a/package-lock.json b/package-lock.json index 91ab7dd0..3ef1c5e4 100644 --- a/package-lock.json +++ b/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/package.json b/package.json index 46bafdb5..f31c2e3c 100644 --- a/package.json +++ b/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/src/utils/rpkiUtils.js b/src/utils/rpkiUtils.js index 17cd96b6..73a0115f 100644 --- a/src/utils/rpkiUtils.js +++ b/src/utils/rpkiUtils.js @@ -301,7 +301,7 @@ export default class RpkiUtils { _markAsStale = () => { if (!!this.params.preCacheROAs) { - const digest = md5(JSON.stringify(this.getVRPs())); + const digest = md5(JSON.stringify(this.getMetadata())) + "-" + this.getVRPs().length; if (this.oldDigest) { const stale = this.oldDigest === digest;