@@ -17,12 +17,14 @@ SPDX-License-Identifier: Apache-2.0
1717Copyright (c) OWASP Foundation. All Rights Reserved.
1818*/
1919
20+ import { chainI } from "../../_helpers/iterable" ;
2021import { isNotUndefined } from '../../_helpers/notUndefined'
2122import type { SortableIterable } from '../../_helpers/sortable'
2223import type { Stringable } from '../../_helpers/stringable'
2324import { treeIteratorSymbol } from '../../_helpers/tree'
2425import { escapeUri } from '../../_helpers/uri'
2526import type * as Models from '../../models'
27+ import { Tool , ToolRepository } from "../../models" ;
2628import { LicenseExpression , NamedLicense , SpdxLicense } from '../../models/license'
2729import { NamedLifecycle } from '../../models/lifecycle'
2830import { AffectedSingleVersion , AffectedVersionRange } from '../../models/vulnerability/affect'
@@ -33,8 +35,6 @@ import type { NormalizerOptions } from '../types'
3335import { normalizedString , token } from './_xsd'
3436import type { SimpleXml } from './types'
3537import { XmlSchema } from './types'
36- import { Tool , ToolRepository } from "../../models" ;
37- import { chainI } from "../../_helpers/iterable" ;
3838
3939export class Factory {
4040 readonly #spec: Spec
@@ -378,7 +378,7 @@ export class ToolsNormalizer extends BaseXmlNormalizer<Models.Tools> {
378378 let children : SimpleXml . Element [ ]
379379 if ( data . tools . size > 0 || ! this . _factory . spec . supportsToolsComponentsServices ) {
380380 children = this . _factory . makeForTool ( ) . normalizeIterable (
381- new ToolRepository ( chainI < Models . Tool > (
381+ new ToolRepository ( chainI (
382382 Array . from ( data . components , Tool . fromComponent ) ,
383383 // TODO services
384384 data . tools ,
0 commit comments