ts-node-client 1.8.5 → 1.8.6
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/README.md +6 -2
- package/lib/pkg.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,8 +48,8 @@ You also may initiate transfer to TrustSource server manually by executing follo
|
|
|
48
48
|
|
|
49
49
|
```
|
|
50
50
|
node_modules/.bin/ts-node-client
|
|
51
|
-
node_modules/.bin/ts-node-client -k apiKey -p Project
|
|
52
|
-
node_modules/.bin/ts-node-client -c config.json
|
|
51
|
+
node_modules/.bin/ts-node-client -k apiKey -p Project --breakOnWarnings false --breakOnViolations true
|
|
52
|
+
node_modules/.bin/ts-node-client -c config.json
|
|
53
53
|
```
|
|
54
54
|
```
|
|
55
55
|
npm / node module to transfer dependency information to TrustSource server.
|
|
@@ -73,7 +73,11 @@ Options:
|
|
|
73
73
|
--breakOnWarnings [default: null]
|
|
74
74
|
--breakOnViolations [default: null]
|
|
75
75
|
--help Prints a usage statement [boolean]
|
|
76
|
+
|
|
76
77
|
```
|
|
78
|
+
PLEASE NOTE: if you want to pass param into function
|
|
79
|
+
you should add value, for example:
|
|
80
|
+
`--breakOnViolations true` or `--saveAs sbom`
|
|
77
81
|
|
|
78
82
|
## Software bill of materials
|
|
79
83
|
|
package/lib/pkg.js
CHANGED
|
@@ -16,13 +16,13 @@ PackageURL.get = function get(manager, org, key, version) {
|
|
|
16
16
|
parts.push(encodeURI(manager));
|
|
17
17
|
}
|
|
18
18
|
if (org) {
|
|
19
|
-
parts.push(encodeURI(org));
|
|
19
|
+
parts.push(encodeURI(org).replace('%3A', ':'));
|
|
20
20
|
}
|
|
21
21
|
if (key) {
|
|
22
|
-
parts.push(encodeURI(key));
|
|
22
|
+
parts.push(encodeURI(key).replace('%3A', ':'));
|
|
23
23
|
}
|
|
24
24
|
if (version) {
|
|
25
|
-
partVersion = `@${encodeURI(version)}`;
|
|
25
|
+
partVersion = `@${encodeURI(version).replace('%3A', ':')}`;
|
|
26
26
|
}
|
|
27
27
|
return `pkg:${parts.join('/')}${partVersion}`;
|
|
28
28
|
};
|
package/package.json
CHANGED