@trustify-da/trustify-da-javascript-client 0.3.0-ea.c9a9877 → 0.3.0-ea.d349baa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@babel/core": "^7.23.2",
48
- "@cyclonedx/cyclonedx-library": "~1.13.3",
48
+ "@cyclonedx/cyclonedx-library": "^6.13.0",
49
49
  "fast-toml": "^0.5.4",
50
- "fast-xml-parser": "^4.5.3",
50
+ "fast-xml-parser": "^5.3.4",
51
51
  "help": "^3.0.2",
52
52
  "https-proxy-agent": "^7.0.6",
53
53
  "node-fetch": "^2.7.0",
54
- "packageurl-js": "^1.0.2",
54
+ "packageurl-js": "~1.0.2",
55
55
  "yargs": "^17.7.2"
56
56
  },
57
57
  "devDependencies": {
@@ -60,14 +60,14 @@
60
60
  "@types/node": "^20.17.30",
61
61
  "@types/which": "^3.0.4",
62
62
  "babel-plugin-rewire": "^1.2.0",
63
- "c8": "^8.0.0",
63
+ "c8": "^10.1.3",
64
64
  "chai": "^4.3.7",
65
65
  "eslint": "^8.42.0",
66
66
  "eslint-plugin-editorconfig": "^4.0.3",
67
67
  "eslint-plugin-import": "^2.29.1",
68
68
  "esmock": "^2.6.2",
69
69
  "mocha": "^10.2.0",
70
- "msw": "^1.3.2",
70
+ "msw": "^2.12.7",
71
71
  "sinon": "^15.1.2",
72
72
  "sinon-chai": "^3.7.0",
73
73
  "typescript": "^5.1.3",
@@ -13,7 +13,7 @@ export default _default;
13
13
  * @param {import("index.js").Options} [opts={}] - optional various options to pass along the application
14
14
  * @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
15
15
  */
16
- declare function requestComponent(provider: import('./provider').Provider, manifest: string, url: string, opts?: import("index.js").Options | undefined): Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>;
16
+ declare function requestComponent(provider: import("./provider").Provider, manifest: string, url: string, opts?: import("index.js").Options): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
17
17
  /**
18
18
  * Send a stack analysis request and get the report as 'text/html' or 'application/json'.
19
19
  * @param {import('./provider').Provider} provider - the provided data for constructing the request
@@ -23,7 +23,7 @@ declare function requestComponent(provider: import('./provider').Provider, manif
23
23
  * @param {import("index.js").Options} [opts={}] - optional various options to pass along the application
24
24
  * @returns {Promise<string|import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
25
25
  */
26
- declare function requestStack(provider: import('./provider').Provider, manifest: string, url: string, html?: boolean | undefined, opts?: import("index.js").Options | undefined): Promise<string | import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>;
26
+ declare function requestStack(provider: import("./provider").Provider, manifest: string, url: string, html?: boolean, opts?: import("index.js").Options): Promise<string | import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
27
27
  /**
28
28
  *
29
29
  * @param {Array<string>} imageRefs
@@ -31,8 +31,8 @@ declare function requestStack(provider: import('./provider').Provider, manifest:
31
31
  * @param {import("index.js").Options} [opts={}] - optional various options to pass along the application
32
32
  * @returns {Promise<string|Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>>}
33
33
  */
34
- declare function requestImages(imageRefs: Array<string>, url: string, html?: boolean, opts?: import("index.js").Options | undefined): Promise<string | {
35
- [x: string]: import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport;
34
+ declare function requestImages(imageRefs: Array<string>, url: string, html?: boolean, opts?: import("index.js").Options): Promise<string | {
35
+ [x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport;
36
36
  }>;
37
37
  /**
38
38
  *
@@ -40,4 +40,4 @@ declare function requestImages(imageRefs: Array<string>, url: string, html?: boo
40
40
  * @param {import("index.js").Options} [opts={}] - optional various options to pass headers for t he validateToken Request
41
41
  * @return {Promise<number>} return the HTTP status Code of the response from the validate token request.
42
42
  */
43
- declare function validateToken(url: any, opts?: import("index.js").Options | undefined): Promise<number>;
43
+ declare function validateToken(url: any, opts?: import("index.js").Options): Promise<number>;
@@ -1,4 +1,3 @@
1
- /// <reference types="packageurl-js/src/package-url" />
2
1
  export default class CycloneDxSbom {
3
2
  sbomObject: any;
4
3
  rootComponent: any;
@@ -12,7 +12,7 @@
12
12
  export function selectTrustifyDABackend(opts?: {
13
13
  TRUSTIFY_DA_DEBUG?: string | undefined;
14
14
  TRUSTIFY_DA_BACKEND_URL?: string | undefined;
15
- } | undefined): string;
15
+ }): string;
16
16
  export { parseImageRef } from "./oci_image/utils.js";
17
17
  export { ImageRef } from "./oci_image/images.js";
18
18
  declare namespace _default {
@@ -23,7 +23,6 @@ declare namespace _default {
23
23
  }
24
24
  export default _default;
25
25
  export type Options = {
26
- [key: string]: string | undefined;
27
26
  TRUSTIFY_DA_DOCKER_PATH?: string | undefined;
28
27
  TRUSTIFY_DA_GO_MVS_LOGIC_ENABLED?: string | undefined;
29
28
  TRUSTIFY_DA_GO_PATH?: string | undefined;
@@ -52,6 +51,7 @@ export type Options = {
52
51
  RHDA_SOURCE?: string | undefined;
53
52
  RHDA_TOKEN?: string | undefined;
54
53
  RHDA_TELEMETRY_ID?: string | undefined;
54
+ [key: string]: string | undefined;
55
55
  };
56
56
  /**
57
57
  * Get component analysis report for a manifest content.
@@ -60,16 +60,68 @@ export type Options = {
60
60
  * @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
61
61
  * @throws {Error} if no matching provider, failed to get create content, or backend request failed
62
62
  */
63
- declare function componentAnalysis(manifest: string, opts?: Options | undefined): Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>;
63
+ declare function componentAnalysis(manifest: string, opts?: Options): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
64
+ /**
65
+ * @overload
66
+ * @param {string} manifest
67
+ * @param {true} html
68
+ * @param {Options} [opts={}]
69
+ * @returns {Promise<string>}
70
+ * @throws {Error}
71
+ */
64
72
  declare function stackAnalysis(manifest: string, html: true, opts?: Options | undefined): Promise<string>;
65
- declare function stackAnalysis(manifest: string, html: false, opts?: Options | undefined): Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>;
66
- declare function stackAnalysis(manifest: string, html?: boolean | undefined, opts?: Options | undefined): Promise<string | import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>;
73
+ /**
74
+ * @overload
75
+ * @param {string} manifest
76
+ * @param {false} html
77
+ * @param {Options} [opts={}]
78
+ * @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
79
+ * @throws {Error}
80
+ */
81
+ declare function stackAnalysis(manifest: string, html: false, opts?: Options | undefined): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
82
+ /**
83
+ * Get stack analysis report for a manifest file.
84
+ * @overload
85
+ * @param {string} manifest - path for the manifest
86
+ * @param {boolean} [html=false] - true will return a html string, false will return AnalysisReport object.
87
+ * @param {Options} [opts={}] - optional various options to pass along the application
88
+ * @returns {Promise<string|import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
89
+ * @throws {Error} if manifest inaccessible, no matching provider, failed to get create content,
90
+ * or backend request failed
91
+ */
92
+ declare function stackAnalysis(manifest: string, html?: boolean | undefined, opts?: Options | undefined): Promise<string | import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
93
+ /**
94
+ * @overload
95
+ * @param {Array<string>} imageRefs
96
+ * @param {true} html
97
+ * @param {Options} [opts={}]
98
+ * @returns {Promise<string>}
99
+ * @throws {Error}
100
+ */
67
101
  declare function imageAnalysis(imageRefs: Array<string>, html: true, opts?: Options | undefined): Promise<string>;
102
+ /**
103
+ * @overload
104
+ * @param {Array<string>} imageRefs
105
+ * @param {false} html
106
+ * @param {Options} [opts={}]
107
+ * @returns {Promise<Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>>}
108
+ * @throws {Error}
109
+ */
68
110
  declare function imageAnalysis(imageRefs: Array<string>, html: false, opts?: Options | undefined): Promise<{
69
- [x: string]: import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport;
111
+ [x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport;
70
112
  }>;
113
+ /**
114
+ * Get image analysis report for a set of OCI image references.
115
+ * @overload
116
+ * @param {Array<string>} imageRefs - OCI image references
117
+ * @param {boolean} [html=false] - true will return a html string, false will return AnalysisReport
118
+ * @param {Options} [opts={}] - optional various options to pass along the application
119
+ * @returns {Promise<string|Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>>}
120
+ * @throws {Error} if manifest inaccessible, no matching provider, failed to get create content,
121
+ * or backend request failed
122
+ */
71
123
  declare function imageAnalysis(imageRefs: Array<string>, html?: boolean | undefined, opts?: Options | undefined): Promise<string | {
72
- [x: string]: import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport;
124
+ [x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport;
73
125
  }>;
74
126
  /**
75
127
  * Validates the Exhort token.
@@ -77,4 +129,4 @@ declare function imageAnalysis(imageRefs: Array<string>, html?: boolean | undefi
77
129
  * @returns {Promise<object>} A promise that resolves with the validation result from the backend.
78
130
  * @throws {Error} if the backend request failed.
79
131
  */
80
- declare function validateToken(opts?: Options | undefined): Promise<object>;
132
+ declare function validateToken(opts?: Options): Promise<object>;
@@ -1,4 +1,3 @@
1
- /// <reference types="packageurl-js/src/package-url.js" />
2
1
  /**
3
2
  * Helper class for parsing docker repository/image names:
4
3
  *
@@ -26,7 +25,7 @@ export class Image {
26
25
  * @param {string} fullName
27
26
  * @param {string} [givenTag]
28
27
  */
29
- constructor(fullName: string, givenTag?: string | undefined);
28
+ constructor(fullName: string, givenTag?: string);
30
29
  repository: string;
31
30
  registry: string;
32
31
  tag: string;
@@ -46,12 +45,12 @@ export class Image {
46
45
  * @param {string} [optionalRegistry]
47
46
  * @returns {string}
48
47
  */
49
- getNameWithoutTag(optionalRegistry?: string | undefined): string;
48
+ getNameWithoutTag(optionalRegistry?: string): string;
50
49
  /**
51
50
  * @param {string} [optionalRegistry]
52
51
  * @returns {string}
53
52
  */
54
- getFullName(optionalRegistry?: string | undefined): string;
53
+ getFullName(optionalRegistry?: string): string;
55
54
  /**
56
55
  * @returns {string}
57
56
  */
@@ -79,7 +78,7 @@ export class ImageRef {
79
78
  * @param {string} [platform]
80
79
  * @param {import("index.js").Options} [opts={}]
81
80
  */
82
- constructor(image: string, platform?: string | undefined, opts?: import("index.js").Options | undefined);
81
+ constructor(image: string, platform?: string, opts?: import("index.js").Options);
83
82
  /** @type {Image} */
84
83
  image: Image;
85
84
  /** @type {Platform} */
@@ -4,20 +4,20 @@
4
4
  * @param {import("../index.js").Options} [opts={}] - optional various options to pass along the application
5
5
  * @returns {{}}
6
6
  */
7
- export function generateImageSBOM(imageRef: import('./images').ImageRef, opts?: import("../index.js").Options | undefined): {};
7
+ export function generateImageSBOM(imageRef: import("./images").ImageRef, opts?: import("../index.js").Options): {};
8
8
  /**
9
9
  *
10
10
  * @param {string} image
11
11
  * @param {import("../index.js").Options} [opts={}] - optional various options to pass along the application
12
12
  * @returns {ImageRef}
13
13
  */
14
- export function parseImageRef(image: string, opts?: import("../index.js").Options | undefined): ImageRef;
14
+ export function parseImageRef(image: string, opts?: import("../index.js").Options): ImageRef;
15
15
  /**
16
16
  * Gets the platform information for an image
17
17
  * @param {import("../index.js").Options} [opts={}] - optional various options to pass along the application
18
18
  * @returns {Platform|null} - The platform information or null
19
19
  */
20
- export function getImagePlatform(opts?: import("../index.js").Options | undefined): Platform | null;
20
+ export function getImagePlatform(opts?: import("../index.js").Options): Platform | null;
21
21
  /**
22
22
  * Gets the digests for an image
23
23
  * @param {import('./images').ImageRef} imageRef - The image reference
@@ -25,7 +25,7 @@ export function getImagePlatform(opts?: import("../index.js").Options | undefine
25
25
  * @returns {Object.<string, string>} - The image digests
26
26
  * @throws {Error} If the image info is invalid
27
27
  */
28
- export function getImageDigests(imageRef: import('./images').ImageRef, opts?: import("../index.js").Options | undefined): {
28
+ export function getImageDigests(imageRef: import("./images").ImageRef, opts?: import("../index.js").Options): {
29
29
  [x: string]: string;
30
30
  };
31
31
  export type SyftImageSource = {
@@ -1,6 +1,4 @@
1
- /// <reference types="node" />
2
- /// <reference types="packageurl-js/src/package-url.js" />
3
- export type ecosystem_maven = import('../provider').Provider;
1
+ export type ecosystem_maven = import("../provider").Provider;
4
2
  /** @typedef {import('../provider').Provider} */
5
3
  /** @typedef {import('../provider').Provided} Provided */
6
4
  /** @typedef {{name: string, version: string}} Package */
@@ -51,7 +49,7 @@ export default class Base_Java {
51
49
  * @param {import('child_process').ExecFileOptionsWithStringEncoding} [opts={}]
52
50
  * @protected
53
51
  */
54
- protected _invokeCommand(bin: any, args: any, opts?: import("child_process").ExecFileOptionsWithStringEncoding | undefined): string;
52
+ protected _invokeCommand(bin: any, args: any, opts?: import("child_process").ExecFileOptionsWithStringEncoding): string;
55
53
  /**
56
54
  *
57
55
  * @param {string} manifestPath
@@ -70,7 +68,7 @@ export default class Base_Java {
70
68
  normalizePath(thePath: any): string;
71
69
  #private;
72
70
  }
73
- export type Provided = import('../provider').Provided;
71
+ export type Provided = import("../provider").Provided;
74
72
  export type Package = {
75
73
  name: string;
76
74
  version: string;
@@ -121,7 +121,7 @@ export default class Base_javascript {
121
121
  protected _parseDepTreeOutput(output: string): string;
122
122
  #private;
123
123
  }
124
- export type Provider = import('../provider.js').Provider;
125
- export type Provided = import('../provider.js').Provided;
124
+ export type Provider = import("../provider.js").Provider;
125
+ export type Provided = import("../provider.js").Provided;
126
126
  import Manifest from './manifest.js';
127
127
  import Sbom from '../sbom.js';
@@ -5,7 +5,7 @@ declare namespace _default {
5
5
  export { provideStack };
6
6
  }
7
7
  export default _default;
8
- export type Provided = import('../provider').Provided;
8
+ export type Provided = import("../provider").Provided;
9
9
  export type Package = {
10
10
  name: string;
11
11
  version: string;
@@ -32,11 +32,11 @@ declare function validateLockFile(): boolean;
32
32
  * @param {{}} [opts={}] - optional various options to pass along the application
33
33
  * @returns {Provided}
34
34
  */
35
- declare function provideComponent(manifest: string, opts?: {} | undefined): Provided;
35
+ declare function provideComponent(manifest: string, opts?: {}): Provided;
36
36
  /**
37
37
  * Provide content and content type for maven-maven stack analysis.
38
38
  * @param {string} manifest - the manifest path or name
39
39
  * @param {{}} [opts={}] - optional various options to pass along the application
40
40
  * @returns {Provided}
41
41
  */
42
- declare function provideStack(manifest: string, opts?: {} | undefined): Provided;
42
+ declare function provideStack(manifest: string, opts?: {}): Provided;
@@ -21,15 +21,15 @@ export default class Java_gradle extends Base_java {
21
21
  * @param {{}} [opts={}] - optional various options to pass along the application
22
22
  * @returns {Provided}
23
23
  */
24
- provideStack(manifest: string, opts?: {} | undefined): Provided;
24
+ provideStack(manifest: string, opts?: {}): Provided;
25
25
  /**
26
26
  * Provide content and content type for maven-maven component analysis.
27
27
  * @param {string} manifest - path to pom.xml for component report
28
28
  * @param {{}} [opts={}] - optional various options to pass along the application
29
29
  * @returns {Provided}
30
30
  */
31
- provideComponent(manifest: string, opts?: {} | undefined): Provided;
31
+ provideComponent(manifest: string, opts?: {}): Provided;
32
32
  #private;
33
33
  }
34
- export type Provided = import('../provider.js').Provided;
34
+ export type Provided = import("../provider.js").Provided;
35
35
  import Base_java from "./base_java.js";
@@ -3,5 +3,5 @@ export default class Java_gradle_groovy extends Java_gradle {
3
3
  _parseAliasForLibsNotation(alias: any): any;
4
4
  _extractDepToBeIgnored(dep: any): any;
5
5
  }
6
- export type Provided = import('../provider').Provided;
6
+ export type Provided = import("../provider").Provided;
7
7
  import Java_gradle from './java_gradle.js';
@@ -7,5 +7,5 @@ export default class Java_gradle_kotlin extends Java_gradle {
7
7
  _parseAliasForLibsNotation(alias: any): any;
8
8
  _extractDepToBeIgnored(dep: any): string | null;
9
9
  }
10
- export type Provided = import('../provider').Provided;
10
+ export type Provided = import("../provider").Provided;
11
11
  import Java_gradle from './java_gradle.js';
@@ -19,14 +19,14 @@ export default class Java_maven extends Base_java {
19
19
  * @param {{}} [opts={}] - optional various options to pass along the application
20
20
  * @returns {Provided}
21
21
  */
22
- provideStack(manifest: string, opts?: {} | undefined): Provided;
22
+ provideStack(manifest: string, opts?: {}): Provided;
23
23
  /**
24
24
  * Provide content and content type for maven-maven component analysis.
25
25
  * @param {string} manifest - path to the manifest file
26
26
  * @param {{}} [opts={}] - optional various options to pass along the application
27
27
  * @returns {Provided}
28
28
  */
29
- provideComponent(manifest: string, opts?: {} | undefined): Provided;
29
+ provideComponent(manifest: string, opts?: {}): Provided;
30
30
  /**
31
31
  *
32
32
  * @param {String} textGraphList Text graph String of the manifest
@@ -36,8 +36,8 @@ export default class Java_maven extends Base_java {
36
36
  createSbomFileFromTextFormat(textGraphList: string, ignoredDeps: [string], opts: any): string;
37
37
  #private;
38
38
  }
39
- export type Java_maven = import('../provider').Provider;
40
- export type Provided = import('../provider').Provided;
39
+ export type Java_maven = import("../provider").Provider;
40
+ export type Provided = import("../provider").Provided;
41
41
  export type Package = {
42
42
  name: string;
43
43
  version: string;
@@ -209,7 +209,7 @@ export default class Java_maven extends Base_java {
209
209
  let ignored = [];
210
210
  // build xml parser with options
211
211
  let parser = new XMLParser({
212
- commentPropName: '#comment',
212
+ commentPropName: '#comment', // mark comments with #comment
213
213
  isArray: (_, jpath) => 'project.dependencies.dependency' === jpath,
214
214
  parseTagValue: false
215
215
  });
@@ -25,11 +25,11 @@ declare function validateLockFile(): boolean;
25
25
  * @param {{}} [opts={}] - optional various options to pass along the application
26
26
  * @returns {Provided}
27
27
  */
28
- declare function provideComponent(manifest: string, opts?: {} | undefined): Provided;
28
+ declare function provideComponent(manifest: string, opts?: {}): Provided;
29
29
  /**
30
30
  * Provide content and content type for python-pip stack analysis.
31
31
  * @param {string} manifest - the manifest path or name
32
32
  * @param {{}} [opts={}] - optional various options to pass along the application
33
33
  * @returns {Provided}
34
34
  */
35
- declare function provideStack(manifest: string, opts?: {} | undefined): Provided;
35
+ declare function provideStack(manifest: string, opts?: {}): Provided;
@@ -1,12 +1,10 @@
1
- /// <reference types="node" />
2
- /// <reference types="packageurl-js/src/package-url" />
3
1
  /**
4
2
  *
5
3
  * @param {string} key to log its value from environment variables and from opts, if it exists
6
4
  * @param {{}} [opts={}] different options of application, if key in it, log it.
7
5
  * @param {string }defValue default value of key in case there is no option and environment variable values for key
8
6
  */
9
- export function logValueFromObjects(key: string, opts?: {} | undefined, defValue: string): void;
7
+ export function logValueFromObjects(key: string, opts?: {}, defValue: string): void;
10
8
  /**
11
9
  * Utility function will return the value for key from the environment variables,
12
10
  * if not present will return the value for key from the opts objects only if it's a string,
@@ -17,7 +15,7 @@ export function logValueFromObjects(key: string, opts?: {} | undefined, defValue
17
15
  * @returns {string|null} the value of the key found in the environment, options object, or the
18
16
  * default supplied
19
17
  */
20
- export function getCustom(key: string, def?: string | null | undefined, opts?: {} | undefined): string | null;
18
+ export function getCustom(key: string, def?: string | null, opts?: {}): string | null;
21
19
  /**
22
20
  * Utility function for looking up custom variable for a binary path.
23
21
  * Will look in the environment variables (1) or in opts (2) for a key with TRUSTIFY_DA_x_PATH, x is an
@@ -28,7 +26,7 @@ export function getCustom(key: string, def?: string | null | undefined, opts?: {
28
26
  * @returns {string|null} the value of the key found in the environment, options object, or the
29
27
  * original name supplied
30
28
  */
31
- export function getCustomPath(name: any, opts?: {} | undefined): string | null;
29
+ export function getCustomPath(name: any, opts?: {}): string | null;
32
30
  /**
33
31
  * Utility function for determining whether wrappers for build tools such as gradlew/mvnw should be
34
32
  * preferred over invoking the binary directly.
@@ -69,6 +67,6 @@ export function getGitRootDir(cwd: string): string | undefined;
69
67
  * @param {import('child_process').ExecFileOptionsWithStringEncoding} [opts={}]
70
68
  * @returns {string}
71
69
  */
72
- export function invokeCommand(bin: string, args: Array<string>, opts?: import("child_process").ExecFileOptionsWithStringEncoding | undefined): string;
70
+ export function invokeCommand(bin: string, args: Array<string>, opts?: import("child_process").ExecFileOptionsWithStringEncoding): string;
73
71
  export const RegexNotToBeLogged: RegExp;
74
72
  import { PackageURL } from "packageurl-js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustify-da/trustify-da-javascript-client",
3
- "version": "0.3.0-ea.c9a9877",
3
+ "version": "0.3.0-ea.d349baa",
4
4
  "description": "Code-Ready Dependency Analytics JavaScript API.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/guacsec/trustify-da-javascript-client#README.md",
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@babel/core": "^7.23.2",
48
- "@cyclonedx/cyclonedx-library": "~1.13.3",
48
+ "@cyclonedx/cyclonedx-library": "^6.13.0",
49
49
  "fast-toml": "^0.5.4",
50
- "fast-xml-parser": "^4.5.3",
50
+ "fast-xml-parser": "^5.3.4",
51
51
  "help": "^3.0.2",
52
52
  "https-proxy-agent": "^7.0.6",
53
53
  "node-fetch": "^2.7.0",
54
- "packageurl-js": "^1.0.2",
54
+ "packageurl-js": "~1.0.2",
55
55
  "yargs": "^17.7.2"
56
56
  },
57
57
  "devDependencies": {
@@ -60,14 +60,14 @@
60
60
  "@types/node": "^20.17.30",
61
61
  "@types/which": "^3.0.4",
62
62
  "babel-plugin-rewire": "^1.2.0",
63
- "c8": "^8.0.0",
63
+ "c8": "^10.1.3",
64
64
  "chai": "^4.3.7",
65
65
  "eslint": "^8.42.0",
66
66
  "eslint-plugin-editorconfig": "^4.0.3",
67
67
  "eslint-plugin-import": "^2.29.1",
68
68
  "esmock": "^2.6.2",
69
69
  "mocha": "^10.2.0",
70
- "msw": "^1.3.2",
70
+ "msw": "^2.12.7",
71
71
  "sinon": "^15.1.2",
72
72
  "sinon-chai": "^3.7.0",
73
73
  "typescript": "^5.1.3",