forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nodejs): use project dir when searching for workspaces for Yarn.l…
…ock files (aquasecurity#6102)
- Loading branch information
1 parent
3c1601b
commit 3ac6388
Showing
5 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...age/nodejs/yarn/testdata/project-with-workspace-in-subdir/foo/bar/generators/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "@test/bar-generators", | ||
"version": "0.0.1", | ||
"dependencies": { | ||
"hoek": "6.1.3" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
.../analyzer/language/nodejs/yarn/testdata/project-with-workspace-in-subdir/foo/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "@test/foo", | ||
"version": "1.0.0", | ||
"repository": "ssh://git@test.com/test.git/foo", | ||
"workspaces": [ | ||
"bar/*" | ||
], | ||
"main": "index.js", | ||
"license": "MIT" | ||
} |
8 changes: 8 additions & 0 deletions
8
...nal/analyzer/language/nodejs/yarn/testdata/project-with-workspace-in-subdir/foo/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
hoek@6.1.3: | ||
version "6.1.3" | ||
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.3.tgz#73b7d33952e01fe27a38b0457294b79dd8da242c" | ||
integrity sha512-YXXAAhmF9zpQbC7LEcREFtXfGq5K1fmd+4PHkBq8NUqmzW3G+Dq10bI/i0KucLRwss3YYFQ0fSfoxBZYiGUqtQ== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters