Skip to content

Commit 9e50acd

Browse files
authored
Rename internal helpers namespace (#252)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a0fb2d6 commit 9e50acd

20 files changed

+25
-22
lines changed

src/_helpers/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Helpers
2+
3+
These are _internal_ helpers, that are not intended to be exported/published.
4+
5+
The helpers shall **not** be marked as `@internal`, so that TypeScript might pick up on them and still render definitions for them.
6+
The internal defined interfaces, classes, functions are required for proper type checking downstream, but should not be utilized/called downstream.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/builders/fromNodePackageJson.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20+
import { PackageJson, splitNameGroup } from '../_helpers/packageJson'
2021
import * as Enums from '../enums'
2122
import * as Factories from '../factories/index.node'
22-
import { PackageJson, splitNameGroup } from '../helpers/packageJson'
2323
import * as Models from '../models'
2424

2525
/**

src/factories/fromNodePackageJson.node.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
1919

2020
import { PackageURL } from 'packageurl-js'
2121

22+
import { isNotUndefined } from '../_helpers/notUndefined'
23+
import { PackageJson } from '../_helpers/packageJson'
24+
import { PackageUrlQualifierNames } from '../_helpers/packageUrl'
2225
import * as Enums from '../enums'
23-
import { isNotUndefined } from '../helpers/notUndefined'
24-
import { PackageJson } from '../helpers/packageJson'
25-
import { PackageUrlQualifierNames } from '../helpers/packageUrl'
2626
import * as Models from '../models'
2727
import { PackageUrlFactory as PlainPackageUrlFactory } from './packageUrl'
2828

src/factories/packageUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
1919

2020
import { PackageURL } from 'packageurl-js'
2121

22+
import { PackageUrlQualifierNames } from '../_helpers/packageUrl'
2223
import { ExternalReferenceType } from '../enums'
23-
import { PackageUrlQualifierNames } from '../helpers/packageUrl'
2424
import { Component } from '../models'
2525

2626
export class PackageUrlFactory {

0 commit comments

Comments
 (0)