@@ -19,7 +19,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
1919
2020import * as CDX from '@cyclonedx/cyclonedx-library'
2121import { existsSync } from 'fs'
22- import * as normalizePackageJson from 'normalize-package-data'
22+ import normalizePackageJson from 'normalize-package-data'
2323import { join as joinPath , resolve } from 'path'
2424import { Compilation , type Compiler , sources , version as WEBPACK_VERSION } from 'webpack'
2525
@@ -368,7 +368,10 @@ export class CycloneDxWebpackPlugin {
368368 ? getPackageDescription ( path ) ?. packageJson
369369 : { name : this . rootComponentName , version : this . rootComponentVersion }
370370 if ( thisPackageJson === undefined ) { return undefined }
371- normalizePackageJson ( thisPackageJson , w => { logger . debug ( 'normalizePackageJson from PkgPath' , path , 'caused:' , w ) } )
371+ normalizePackageJson (
372+ thisPackageJson ,
373+ function ( w :string ) :void { logger . debug ( 'normalizePackageJson from PkgPath' , path , 'caused:' , w ) }
374+ )
372375 return builder . makeComponent ( thisPackageJson )
373376 }
374377
@@ -428,7 +431,10 @@ export class CycloneDxWebpackPlugin {
428431 for ( const [ packageJsonPath , cType ] of packageJsonPaths ) {
429432 logger . log ( 'try to build new Tool from PkgPath' , packageJsonPath )
430433 const packageJson : object = loadJsonFile ( packageJsonPath ) ?? { }
431- normalizePackageJson ( packageJson , w => { logger . debug ( 'normalizePackageJson from PkgPath' , packageJsonPath , 'caused:' , w ) } )
434+ normalizePackageJson (
435+ packageJson ,
436+ function ( w : string ) :void { logger . debug ( 'normalizePackageJson from PkgPath' , packageJsonPath , 'caused:' , w ) }
437+ )
432438 const tool = builder . makeComponent ( packageJson , cType )
433439 if ( tool !== undefined ) {
434440 yield tool
0 commit comments