@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
33exports . parseDependents = void 0 ;
44const processor_1 = require ( "@github/dependency-submission-toolkit/dist/processor" ) ;
55function parseDependents ( contents ) {
6- const stdoutArr = contents . split ( "\n" ) ;
6+ const stdoutArr = contents . split ( '\n' ) ;
77 const splitStdoutArr = stdoutArr . map ( function ( line ) {
8- return line . split ( " " ) ;
8+ return line . split ( ' ' ) ;
99 } ) ;
1010 const entries = { } ;
1111 const repoName = splitStdoutArr [ 0 ] [ 0 ] ;
@@ -18,21 +18,21 @@ function parseDependents(contents) {
1818 const dependencyPkg = `pkg:golang/${ line [ 1 ] } ` ;
1919 const matchFound = line [ 0 ] . match ( repoName ) ;
2020 if ( matchFound && matchFound . index != null ) {
21- entries [ dependencyPkg ] = new processor_1 . Entry ( dependencyPkg , " direct" ) ;
21+ entries [ dependencyPkg ] = new processor_1 . Entry ( dependencyPkg , ' direct' ) ;
2222 return ;
2323 }
2424 if ( targetPkg in entries ) {
2525 targetEntry = entries [ targetPkg ] ;
2626 }
2727 else {
28- targetEntry = new processor_1 . Entry ( targetPkg , " indirect" ) ;
28+ targetEntry = new processor_1 . Entry ( targetPkg , ' indirect' ) ;
2929 entries [ targetPkg ] = targetEntry ;
3030 }
3131 if ( dependencyPkg in entries ) {
3232 dependencyEntry = entries [ dependencyPkg ] ;
3333 }
3434 else {
35- dependencyEntry = new processor_1 . Entry ( dependencyPkg , " indirect" ) ;
35+ dependencyEntry = new processor_1 . Entry ( dependencyPkg , ' indirect' ) ;
3636 entries [ dependencyPkg ] = dependencyEntry ;
3737 }
3838 targetEntry . addDependency ( dependencyEntry ) ;
0 commit comments