ts-node-client 3.2.1 → 3.2.3

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 CHANGED
@@ -1,191 +1,191 @@
1
- # TrustSource ts-node-client
2
-
3
- [![Version](https://img.shields.io/npm/v/ts-node-client.svg)](http://npm.im/ts-node-client)
4
- [![Downloads](https://img.shields.io/npm/dm/ts-node-client.svg)](http://npm-stat.com/charts.html?package=ts-node-client)
5
- [![Downloads](https://img.shields.io/npm/dt/ts-node-client.svg)](http://npm-stat.com/charts.html?package=ts-node-client)
6
- [![Apache-2.0 License](https://img.shields.io/npm/l/ts-node-client?style=flat-square)](http://opensource.org/licenses/Apache-2.0)
7
-
8
- [![npm package](https://nodei.co/npm/ts-node-client.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ts-node-client/)
9
-
10
- > TrustSource node client - node module to transfer dependency information to TrustSource server.
11
-
12
- ## Release 3.2.0
13
- Package now support package-lock.json v.3
14
-
15
- ## Release 3.1.0
16
- Package now support yarn v.2+
17
-
18
- ## Release 3.0.0
19
- Package now is not including `npm` anymore. The addition has been done due to missing programmatic API in npm >= 8.0.0 and in order to skip deprecated dependencies
20
-
21
- This change affects the structure of scans slightly, but it heavily improves the scanner.
22
-
23
- ## Requirements
24
- * node >= 12.0.0 use **ts-node-client@3.1.+***
25
-
26
- ## Older versions
27
- * node >= 8.9.0
28
- * npm < 8.0.0 use **ts-node-client@1.***
29
- * npm >= 8.0.0 use **ts-node-client@2.***
30
-
31
- ## Installation
32
- Run: `npm install --save-dev ts-node-client` or `yarn add --dev ts-node-client`
33
-
34
- You can add `install_and_scan` script to the package.json file to install and transfer dependency information using one command `npm run install_and_scan`:
35
-
36
- ```
37
- "scripts": {
38
- "install_and_scan": "npm install && ts-node-client -k apiKey -p Project"
39
- },
40
- ```
41
-
42
- To store your credentials for automated transfer you may create `.tsrc.json` in your project directory or in your home directory to set credentials globally (not recommended!)
43
-
44
- `.tsrc.json` example:
45
-
46
- ```
47
- {
48
- "apiKey": "apiKey",
49
- "url": "https://app.trustsource.io",
50
- "project": "Project Description"
51
- }
52
-
53
- ```
54
-
55
- Usage
56
- =====
57
-
58
- You also may initiate transfer to TrustSource server manually by executing following command via terminal:
59
-
60
- ```
61
- node_modules/.bin/ts-node-client
62
- node_modules/.bin/ts-node-client -k apiKey -p Project --breakOnWarnings false --breakOnViolations true
63
- node_modules/.bin/ts-node-client -c config.json
64
- ```
65
- ```
66
- npm / node module to transfer dependency information to TrustSource server.
67
-
68
- Options:
69
- --apiKey, -k apiKey [default: null]
70
- --project, -p Project name [default: null]
71
- --branch, -b Scan branch [default: null]
72
- --tag, -t Scan tag [default: null]
73
- --binaryLinks Binary links separated by comma [default: null]
74
- --url url [default: null]
75
- --config, -c Config path [default: null]
76
- --proxy Proxy url like 'https://user:password@host:port' [default: null]
77
- --version Prints a version [default: null]
78
- --saveAs, -o Save as file (file name prefix) [default: null]
79
- --saveAsFormat, -f Save as format (scan / cydx / spdx) [default: null]
80
- --debug [default: null]
81
- --simulate [default: null]
82
- --includeDevDependencies [default: null]
83
- --meteor [default: null]
84
- --breakOnWarnings [default: null]
85
- --breakOnViolations [default: null]
86
- --help Prints a usage statement [boolean]
87
-
88
- ```
89
- PLEASE NOTE: if you want to pass param into function
90
- you should add value, for example:
91
-
92
- `--breakOnViolations true` or `--saveAs sbom`
93
-
94
- ## Software bill of materials
95
-
96
- [View SBOM <img alt="TrustSource" src="https://app.trustsource.io/logo.png" width="70"/>](https://app.trustsource.io/api/v1/public-BoM/ae0832c6-5a55-4aa8-8c45-75528d0833fb)
97
-
98
- ## Known problems
99
-
100
- #### Error: The programmatic API was removed in npm v8.0.0
101
- You should upgrade to 2.* versions of ts-node-client
102
-
103
- ## Changelog available inside `CHANGELOG.md`
104
-
105
- ## [DEPRECATED] Changelog
106
-
107
- #### 3.0.*
108
- - `npm.ls` cli -> `package-lock.json` parse
109
- - npm removed
110
- - updated dependencies
111
-
112
- #### 2.1.*
113
- - Migrate 1.6.* - 1.8.* changes to version 2.1
114
- - Bump dependencies
115
-
116
- #### 2.0.*
117
- - Support new scan tool and fix problem with programmatic API for >= npm@8.0.0
118
- - Stop usage of [`global-npm`](https://github.com/dracupid/global-npm) until we find new resolution
119
- - Get back `npm` as local dependency
120
-
121
- #### 1.8.*
122
- - SBOM
123
- - **--saveAs** and **--saveAsFormat**
124
- - Bump minimist from 1.2.5 to 1.2.6
125
- - Bump urijs from 1.19.10 to 1.19.11
126
- - replace packageurl-js with simple local function
127
- - improve docs
128
-
129
- #### 1.7.*
130
- - request -> axios
131
- - fix dependencies
132
- - doc fixes
133
-
134
- #### 1.6.*
135
- - **--breakOnWarnings** and **--breakOnViolations**
136
- - Bump devDependencies
137
-
138
- #### 1.5.*
139
- - Describe `Error: The programmatic API was removed in npm v8.0.0`
140
- - Bump devDependencies
141
- - Introduce sonarjs
142
-
143
- #### 1.4.*
144
- - Bump glob-parent from 5.1.1 to 5.1.2
145
- - Bump path-parse from 1.0.6 to 1.0.7
146
- - Bump lodash from 4.17.19 to 4.17.21
147
- - Bump y18n from 4.0.0 to 4.0.1
148
- - Added:
149
- - option **--includeDevDependencies**. It is allow to scan dev dependencies
150
-
151
- #### 1.3.*
152
- - Use [`global-npm`](https://github.com/dracupid/global-npm) (meaning `npm` is no longer a dependency of `ts-node-client`)
153
-
154
- #### 1.2.*
155
- - Added:
156
- - option **--brakeOnViolations**. It is fail build in case any violations after scan transferred.
157
- - option **--brakeOnWarnings**. It is fail build in case any warning after scan transferred.
158
-
159
- #### 1.1.*
160
- - userName is not required param for scans
161
- - Support usage of scan meta param binaryLinks inside Options definition
162
-
163
- #### 1.0.*
164
- - Node JS and dependencies updates "node": ">= 8.12.0"
165
-
166
- #### 0.3.*
167
- - Improve variable usage and tasks migration
168
- - Support usage of scan meta params: branch and tag inside Options definition
169
- - Skip npmDependency without names
170
- - Update travis config
171
- - Update dependency to resolve vulnerabilities
172
-
173
- #### 0.2.*
174
- - Added proxy support and config
175
- - Update travis config
176
- - Updated README.md with `app.trustsource.io`
177
- - Updated default url to `app.trustsource.io`
178
- - Added windows support
179
- - Fixed json
180
- - **Removed:**
181
- - options: **--credentials** and **--credentialsFile** instead you should use **--config**.
182
- - option **--baseUrl** instead you should use **--url**.
183
- - Added:
184
- - option **--config**. It is similar to credentials, but it will contain any config information.
185
- - option **--url**. It is similar to baseUrl.
186
- - option **--apiKey** and **--userName** so it will be unnecessary to create `.tsrc.json` file.
187
- - options **--version** and **--help**.
188
- - options shortcut.
189
-
190
- ## License
191
- [Apache-2.0](https://github.com/TrustSource/ts-node-client/blob/master/LICENSE)
1
+ # TrustSource ts-node-client
2
+
3
+ [![Version](https://img.shields.io/npm/v/ts-node-client.svg)](http://npm.im/ts-node-client)
4
+ [![Downloads](https://img.shields.io/npm/dm/ts-node-client.svg)](http://npm-stat.com/charts.html?package=ts-node-client)
5
+ [![Downloads](https://img.shields.io/npm/dt/ts-node-client.svg)](http://npm-stat.com/charts.html?package=ts-node-client)
6
+ [![Apache-2.0 License](https://img.shields.io/npm/l/ts-node-client?style=flat-square)](http://opensource.org/licenses/Apache-2.0)
7
+
8
+ [![npm package](https://nodei.co/npm/ts-node-client.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ts-node-client/)
9
+
10
+ > TrustSource node client - node module to transfer dependency information to TrustSource server.
11
+
12
+ ## Release 3.2.0
13
+ Package now support package-lock.json v.3
14
+
15
+ ## Release 3.1.0
16
+ Package now support yarn v.2+
17
+
18
+ ## Release 3.0.0
19
+ Package now is not including `npm` anymore. The addition has been done due to missing programmatic API in npm >= 8.0.0 and in order to skip deprecated dependencies
20
+
21
+ This change affects the structure of scans slightly, but it heavily improves the scanner.
22
+
23
+ ## Requirements
24
+ * node >= 12.0.0 use **ts-node-client@3.1.+***
25
+
26
+ ## Older versions
27
+ * node >= 8.9.0
28
+ * npm < 8.0.0 use **ts-node-client@1.***
29
+ * npm >= 8.0.0 use **ts-node-client@2.***
30
+
31
+ ## Installation
32
+ Run: `npm install --save-dev ts-node-client` or `yarn add --dev ts-node-client`
33
+
34
+ You can add `install_and_scan` script to the package.json file to install and transfer dependency information using one command `npm run install_and_scan`:
35
+
36
+ ```
37
+ "scripts": {
38
+ "install_and_scan": "npm install && ts-node-client -k apiKey -p Project"
39
+ },
40
+ ```
41
+
42
+ To store your credentials for automated transfer you may create `.tsrc.json` in your project directory or in your home directory to set credentials globally (not recommended!)
43
+
44
+ `.tsrc.json` example:
45
+
46
+ ```
47
+ {
48
+ "apiKey": "apiKey",
49
+ "url": "https://app.trustsource.io",
50
+ "project": "Project Description"
51
+ }
52
+
53
+ ```
54
+
55
+ Usage
56
+ =====
57
+
58
+ You also may initiate transfer to TrustSource server manually by executing following command via terminal:
59
+
60
+ ```
61
+ node_modules/.bin/ts-node-client
62
+ node_modules/.bin/ts-node-client -k apiKey -p Project --breakOnWarnings false --breakOnViolations true
63
+ node_modules/.bin/ts-node-client -c config.json
64
+ ```
65
+ ```
66
+ npm / node module to transfer dependency information to TrustSource server.
67
+
68
+ Options:
69
+ --apiKey, -k apiKey [default: null]
70
+ --project, -p Project name [default: null]
71
+ --branch, -b Scan branch [default: null]
72
+ --tag, -t Scan tag [default: null]
73
+ --binaryLinks Binary links separated by comma [default: null]
74
+ --url url [default: null]
75
+ --config, -c Config path [default: null]
76
+ --proxy Proxy url like 'https://user:password@host:port' [default: null]
77
+ --version Prints a version [default: null]
78
+ --saveAs, -o Save as file (file name prefix) [default: null]
79
+ --saveAsFormat, -f Save as format (scan / cydx / spdx) [default: null]
80
+ --debug [default: null]
81
+ --simulate [default: null]
82
+ --includeDevDependencies [default: null]
83
+ --meteor [default: null]
84
+ --breakOnWarnings [default: null]
85
+ --breakOnViolations [default: null]
86
+ --help Prints a usage statement [boolean]
87
+
88
+ ```
89
+ PLEASE NOTE: if you want to pass param into function
90
+ you should add value, for example:
91
+
92
+ `--breakOnViolations true` or `--saveAs sbom`
93
+
94
+ ## Software bill of materials
95
+
96
+ [View SBOM <img alt="TrustSource" src="https://app.trustsource.io/logo.png" width="70"/>](https://app.trustsource.io/api/v1/public-BoM/ae0832c6-5a55-4aa8-8c45-75528d0833fb)
97
+
98
+ ## Known problems
99
+
100
+ #### Error: The programmatic API was removed in npm v8.0.0
101
+ You should upgrade to 2.* versions of ts-node-client
102
+
103
+ ## Changelog available inside `CHANGELOG.md`
104
+
105
+ ## [DEPRECATED] Changelog
106
+
107
+ #### 3.0.*
108
+ - `npm.ls` cli -> `package-lock.json` parse
109
+ - npm removed
110
+ - updated dependencies
111
+
112
+ #### 2.1.*
113
+ - Migrate 1.6.* - 1.8.* changes to version 2.1
114
+ - Bump dependencies
115
+
116
+ #### 2.0.*
117
+ - Support new scan tool and fix problem with programmatic API for >= npm@8.0.0
118
+ - Stop usage of [`global-npm`](https://github.com/dracupid/global-npm) until we find new resolution
119
+ - Get back `npm` as local dependency
120
+
121
+ #### 1.8.*
122
+ - SBOM
123
+ - **--saveAs** and **--saveAsFormat**
124
+ - Bump minimist from 1.2.5 to 1.2.6
125
+ - Bump urijs from 1.19.10 to 1.19.11
126
+ - replace packageurl-js with simple local function
127
+ - improve docs
128
+
129
+ #### 1.7.*
130
+ - request -> axios
131
+ - fix dependencies
132
+ - doc fixes
133
+
134
+ #### 1.6.*
135
+ - **--breakOnWarnings** and **--breakOnViolations**
136
+ - Bump devDependencies
137
+
138
+ #### 1.5.*
139
+ - Describe `Error: The programmatic API was removed in npm v8.0.0`
140
+ - Bump devDependencies
141
+ - Introduce sonarjs
142
+
143
+ #### 1.4.*
144
+ - Bump glob-parent from 5.1.1 to 5.1.2
145
+ - Bump path-parse from 1.0.6 to 1.0.7
146
+ - Bump lodash from 4.17.19 to 4.17.21
147
+ - Bump y18n from 4.0.0 to 4.0.1
148
+ - Added:
149
+ - option **--includeDevDependencies**. It is allow to scan dev dependencies
150
+
151
+ #### 1.3.*
152
+ - Use [`global-npm`](https://github.com/dracupid/global-npm) (meaning `npm` is no longer a dependency of `ts-node-client`)
153
+
154
+ #### 1.2.*
155
+ - Added:
156
+ - option **--brakeOnViolations**. It is fail build in case any violations after scan transferred.
157
+ - option **--brakeOnWarnings**. It is fail build in case any warning after scan transferred.
158
+
159
+ #### 1.1.*
160
+ - userName is not required param for scans
161
+ - Support usage of scan meta param binaryLinks inside Options definition
162
+
163
+ #### 1.0.*
164
+ - Node JS and dependencies updates "node": ">= 8.12.0"
165
+
166
+ #### 0.3.*
167
+ - Improve variable usage and tasks migration
168
+ - Support usage of scan meta params: branch and tag inside Options definition
169
+ - Skip npmDependency without names
170
+ - Update travis config
171
+ - Update dependency to resolve vulnerabilities
172
+
173
+ #### 0.2.*
174
+ - Added proxy support and config
175
+ - Update travis config
176
+ - Updated README.md with `app.trustsource.io`
177
+ - Updated default url to `app.trustsource.io`
178
+ - Added windows support
179
+ - Fixed json
180
+ - **Removed:**
181
+ - options: **--credentials** and **--credentialsFile** instead you should use **--config**.
182
+ - option **--baseUrl** instead you should use **--url**.
183
+ - Added:
184
+ - option **--config**. It is similar to credentials, but it will contain any config information.
185
+ - option **--url**. It is similar to baseUrl.
186
+ - option **--apiKey** and **--userName** so it will be unnecessary to create `.tsrc.json` file.
187
+ - options **--version** and **--help**.
188
+ - options shortcut.
189
+
190
+ ## License
191
+ [Apache-2.0](https://github.com/TrustSource/ts-node-client/blob/master/LICENSE)
package/SECURITY.md CHANGED
@@ -1,21 +1,21 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
-
5
- Use this section to tell people about which versions of your project are
6
- currently being supported with security updates.
7
-
8
- | Version | Supported |
9
- | ------- | ------------------ |
10
- | 5.1.x | :white_check_mark: |
11
- | 5.0.x | :x: |
12
- | 4.0.x | :white_check_mark: |
13
- | < 4.0 | :x: |
14
-
15
- ## Reporting a Vulnerability
16
-
17
- Use this section to tell people how to report a vulnerability.
18
-
19
- Tell them where to go, how often they can expect to get an update on a
20
- reported vulnerability, what to expect if the vulnerability is accepted or
21
- declined, etc.
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Use this section to tell people about which versions of your project are
6
+ currently being supported with security updates.
7
+
8
+ | Version | Supported |
9
+ | ------- | ------------------ |
10
+ | 5.1.x | :white_check_mark: |
11
+ | 5.0.x | :x: |
12
+ | 4.0.x | :white_check_mark: |
13
+ | < 4.0 | :x: |
14
+
15
+ ## Reporting a Vulnerability
16
+
17
+ Use this section to tell people how to report a vulnerability.
18
+
19
+ Tell them where to go, how often they can expect to get an update on a
20
+ reported vulnerability, what to expect if the vulnerability is accepted or
21
+ declined, etc.