@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
exports . parseDependents = void 0 ;
4
4
const processor_1 = require ( "@github/dependency-submission-toolkit/dist/processor" ) ;
5
5
function parseDependents ( contents ) {
6
- const stdoutArr = contents . split ( "\n" ) ;
6
+ const stdoutArr = contents . split ( '\n' ) ;
7
7
const splitStdoutArr = stdoutArr . map ( function ( line ) {
8
- return line . split ( " " ) ;
8
+ return line . split ( ' ' ) ;
9
9
} ) ;
10
10
const entries = { } ;
11
11
const repoName = splitStdoutArr [ 0 ] [ 0 ] ;
@@ -18,21 +18,21 @@ function parseDependents(contents) {
18
18
const dependencyPkg = `pkg:golang/${ line [ 1 ] } ` ;
19
19
const matchFound = line [ 0 ] . match ( repoName ) ;
20
20
if ( matchFound && matchFound . index != null ) {
21
- entries [ dependencyPkg ] = new processor_1 . Entry ( dependencyPkg , " direct" ) ;
21
+ entries [ dependencyPkg ] = new processor_1 . Entry ( dependencyPkg , ' direct' ) ;
22
22
return ;
23
23
}
24
24
if ( targetPkg in entries ) {
25
25
targetEntry = entries [ targetPkg ] ;
26
26
}
27
27
else {
28
- targetEntry = new processor_1 . Entry ( targetPkg , " indirect" ) ;
28
+ targetEntry = new processor_1 . Entry ( targetPkg , ' indirect' ) ;
29
29
entries [ targetPkg ] = targetEntry ;
30
30
}
31
31
if ( dependencyPkg in entries ) {
32
32
dependencyEntry = entries [ dependencyPkg ] ;
33
33
}
34
34
else {
35
- dependencyEntry = new processor_1 . Entry ( dependencyPkg , " indirect" ) ;
35
+ dependencyEntry = new processor_1 . Entry ( dependencyPkg , ' indirect' ) ;
36
36
entries [ dependencyPkg ] = dependencyEntry ;
37
37
}
38
38
targetEntry . addDependency ( dependencyEntry ) ;
0 commit comments