Skip to content

Commit fc667bb

Browse files
authored
Merge pull request #33 from snyk/test/add-npm-yarn-lockfile-tests
feat: add explicit scope label
2 parents 3d52a5b + be128b5 commit fc667bb

File tree

5 files changed

+30067
-2
lines changed

5 files changed

+30067
-2
lines changed

src/core/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export interface VersionProvenance {
4242
export interface NodeInfo {
4343
versionProvenance?: VersionProvenance;
4444
labels?: {
45-
[key: string]: string;
45+
[key: string]: string | undefined;
46+
scope?: 'dev' | 'prod';
4647
};
4748
}
4849

src/legacy/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ interface DepTreeDep {
2020
[depName: string]: DepTreeDep,
2121
};
2222
labels?: {
23-
[key: string]: string;
23+
[key: string]: string | undefined;
24+
scope?: 'dev' | 'prod';
2425
};
2526
}
2627

0 commit comments

Comments
 (0)