Skip to content

Commit 2b9e1f3

Browse files
committed
refactor: moved contrib foo
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent bcfe8d4 commit 2b9e1f3

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

src/builders/index.node.ts

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

20-
export * as FromNodePackageJson from '../contrib/fromNodePackageJson.node' // DEPRECATED - use original
20+
/** @deprecated import original instead */
21+
export * as FromNodePackageJson from '../contrib/fromNodePackageJson.node'

src/factories/index.common.ts

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

2020
// not everything is public, yet
2121

22-
export * from '../contrib/license/factories' // DEPRECATED - use original
23-
export * from '../contrib/packageUrl/factories' // DEPRECATED - use original
22+
/** @deprecated import original instead */
23+
export * from '../contrib/license/factories'
24+
/** @deprecated import original instead */
25+
export * from '../contrib/packageUrl/factories'

src/factories/index.node.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export * from './index.common'
2121

2222
// region node-specifics
2323

24-
export * as FromNodePackageJson from '../contrib/fromNodePackageJson.node/factories' // DEPRECATED - use original
24+
/** @deprecated import original instead */
25+
export * as FromNodePackageJson from '../contrib/fromNodePackageJson.node/factories'
2526

2627
// endregion node-specifics

src/types/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ export * from './integer'
2323
export * from './mimeType'
2424

2525
// yes, this is node-specific, but who cares - these are just types
26-
export * from '../contrib/fromNodePackageJson.node/types' // DEPRECATED - use original
26+
/** @deprecated import original instead */
27+
export * from '../contrib/fromNodePackageJson.node/types'

src/utils/index.node.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export * from './index.common'
2121

2222
// region node-specifics
2323

24-
export * as NpmjsUtility from '../contrib/fromNodePackageJson.node/utils' // DEPRECATED - use original
25-
export * as LicenseUtility from '../contrib/license/utils.node' // DEPRECATED - use original
24+
/** @deprecated import original instead */
25+
export * as NpmjsUtility from '../contrib/fromNodePackageJson.node/utils'
26+
/** @deprecated import original instead */
27+
export * as LicenseUtility from '../contrib/license/utils.node'
2628

2729
// endregion node-specifics

0 commit comments

Comments
 (0)