@@ -146,11 +146,11 @@ export class CycloneDxWebpackPlugin {
146
146
}
147
147
148
148
const logger = compilation . getLogger ( pluginName )
149
- const cdxExternalReferenceFactory = new CDX . Factories . FromPackageJson . ExternalReferenceFactory ( )
149
+ const cdxExternalReferenceFactory = new CDX . Factories . FromNodePackageJson . ExternalReferenceFactory ( )
150
150
const cdxLicenseFactory = new CDX . Factories . LicenseFactory ( )
151
- const cdxPurlFactory = new CDX . Factories . PackageUrlFactory ( 'npm' )
152
- const cdxToolBuilder = new CDX . Builders . FromPackageJson . ToolBuilder ( cdxExternalReferenceFactory )
153
- const cdxComponentBuilder = new CDX . Builders . FromPackageJson . ComponentBuilder ( cdxExternalReferenceFactory , cdxLicenseFactory )
151
+ const cdxPurlFactory = new CDX . Factories . FromNodePackageJson . PackageUrlFactory ( 'npm' )
152
+ const cdxToolBuilder = new CDX . Builders . FromNodePackageJson . ToolBuilder ( cdxExternalReferenceFactory )
153
+ const cdxComponentBuilder = new CDX . Builders . FromNodePackageJson . ComponentBuilder ( cdxExternalReferenceFactory , cdxLicenseFactory )
154
154
155
155
const bom = new CDX . Models . Bom ( )
156
156
bom . metadata . component = this . #makeRootComponent( compilation . compiler . context , cdxComponentBuilder )
@@ -231,7 +231,7 @@ export class CycloneDxWebpackPlugin {
231
231
)
232
232
}
233
233
234
- #makeRootComponent ( cwd : string , builder : CDX . Builders . FromPackageJson . ComponentBuilder ) : CDX . Models . Component | undefined {
234
+ #makeRootComponent ( cwd : string , builder : CDX . Builders . FromNodePackageJson . ComponentBuilder ) : CDX . Models . Component | undefined {
235
235
const thisPackage = this . rootComponentAutodetect
236
236
? readPackageUpSync ( { cwd, normalize : false } )
237
237
: { packageJson : { name : this . rootComponentName , version : this . rootComponentVersion } }
@@ -242,7 +242,7 @@ export class CycloneDxWebpackPlugin {
242
242
243
243
#finalizeBom (
244
244
bom : CDX . Models . Bom ,
245
- cdxToolBuilder : CDX . Builders . FromPackageJson . ToolBuilder ,
245
+ cdxToolBuilder : CDX . Builders . FromNodePackageJson . ToolBuilder ,
246
246
cdxPurlFactory : CDX . Factories . PackageUrlFactory
247
247
) : void {
248
248
bom . metadata . timestamp = this . reproducibleResults
0 commit comments