Skip to content

Commit 38a4678

Browse files
committed
chore:ES-76 Avoids applying the replace rule on no match files
1 parent a2c9f06 commit 38a4678

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scanoss",
3-
"version": "0.15.5",
3+
"version": "0.15.6",
44
"description": "The SCANOSS JS package provides a simple, easy to consume module for interacting with SCANOSS APIs/Engine.",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",

Diff for: src/sdk/scanner/ScannnerResultPostProcessor/rules/replace-rule.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export class ReplaceRule extends Rule {
5656
}
5757

5858
private replace(result: any, bomItem: ReplaceBomItem){
59+
if (result.id === 'none') return;
5960
result.purl = [bomItem.replace_with];
6061
const pkg = PackageURL.fromString(bomItem.replace_with);
6162
const cachedComponent = this.componentData.get(bomItem.replace_with);

0 commit comments

Comments
 (0)