File tree Expand file tree Collapse file tree
test/library-tests/PackageExports Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ private int countSlashes(string path) { result = count(path.splitAt("/")) - 1 }
2828 * There can be multiple results if the there exists multiple package.json that are equally deeply nested in the folder structure.
2929 * Results are limited to package.json files that are at most nested 2 directories deep.
3030 */
31- private PackageJSON getTopmostPackageJSON ( ) {
31+ PackageJSON getTopmostPackageJSON ( ) {
3232 result =
3333 min ( PackageJSON j |
3434 countSlashes ( j .getFile ( ) .getRelativePath ( ) ) <= 3 and
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import semmle.javascript.PackageExports as Exports
33
44query PackageJSON getTopmostPackageJSON ( ) { result = Exports:: getTopmostPackageJSON ( ) }
55
6- query DataFlow:: Node getAValueExportedBy ( PackageJSON json ) {
7- result = Exports:: getAValueExportedBy ( json )
8- }
6+ query DataFlow:: Node getALibraryInputParameter ( ) { result = Exports:: getALibraryInputParameter ( ) }
97
108query DataFlow:: Node getAnExportedValue ( Module mod , string name ) {
119 result = mod .getAnExportedValue ( name )
You can’t perform that action at this time.
0 commit comments