ts-node-client 3.4.2 → 3.4.4

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/CHANGELOG.md CHANGED
@@ -8,6 +8,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
10
 
11
+ ## 3.4.4 - 2025-07-22
12
+
13
+ ### Fixed
14
+ * 403 request error
15
+
16
+
17
+ ## 3.4.3 - 2025-07-22
18
+
19
+ ### Changed
20
+ * bump dependencies
21
+ * full url optional param
22
+ * changelog moved
23
+
24
+
11
25
  ## 3.4.2 - 2024-08-20
12
26
 
13
27
  ### Changed
@@ -123,3 +137,115 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
123
137
 
124
138
  ### Changed
125
139
  * Migrate versions of dependencies
140
+
141
+
142
+ ## 2.0.*
143
+
144
+ ### Changed
145
+ * Support new scan tool and fix problem with programmatic API for >= npm@8.0.0
146
+ * Stop usage of [`global-npm`](https://github.com/dracupid/global-npm) until we find new resolution
147
+ * Get back `npm` as local dependency
148
+
149
+
150
+ ## 1.8.*
151
+
152
+ ### Changed
153
+ * SBOM
154
+ * **--saveAs** and **--saveAsFormat**
155
+ * Bump minimist from 1.2.5 to 1.2.6
156
+ * Bump urijs from 1.19.10 to 1.19.11
157
+ * replace packageurl-js with simple local function
158
+ * improve docs
159
+
160
+
161
+ ## 1.7.*
162
+
163
+ ### Changed
164
+ * request -> axios
165
+ * fix dependencies
166
+ * doc fixes
167
+
168
+
169
+ ## 1.6.*
170
+
171
+ ### Changed
172
+ * **--breakOnWarnings** and **--breakOnViolations**
173
+ * Bump devDependencies
174
+
175
+
176
+ ## 1.5.*
177
+
178
+ ### Changed
179
+ * Describe `Error: The programmatic API was removed in npm v8.0.0`
180
+ * Bump devDependencies
181
+ * Introduce sonarjs
182
+
183
+
184
+ ## 1.4.*
185
+
186
+ ### Changed
187
+ * Bump glob-parent from 5.1.1 to 5.1.2
188
+ * Bump path-parse from 1.0.6 to 1.0.7
189
+ * Bump lodash from 4.17.19 to 4.17.21
190
+ * Bump y18n from 4.0.0 to 4.0.1
191
+
192
+ ### Added
193
+ * option **--includeDevDependencies**. It is allow to scan dev dependencies
194
+
195
+
196
+ ## 1.3.*
197
+
198
+ ### Changed
199
+ * Use [`global-npm`](https://github.com/dracupid/global-npm) (meaning `npm` is no longer a dependency of `ts-node-client`)
200
+
201
+
202
+ ## 1.2.*
203
+
204
+ ### Added
205
+ * option **--brakeOnViolations**. It is fail build in case any violations after scan transferred.
206
+ * option **--brakeOnWarnings**. It is fail build in case any warning after scan transferred.
207
+
208
+
209
+ ## 1.1.*
210
+
211
+ ### Changed
212
+ * userName is not required param for scans
213
+ * Support usage of scan meta param binaryLinks inside Options definition
214
+
215
+
216
+ ## 1.0.*
217
+
218
+ ### Changed
219
+ * Node JS and dependencies updates "node": ">= 8.12.0"
220
+
221
+
222
+ ## 0.3.*
223
+
224
+ ### Changed
225
+ * Improve variable usage and tasks migration
226
+ * Support usage of scan meta params: branch and tag inside Options definition
227
+ * Skip npmDependency without names
228
+ * Update travis config
229
+ * Update dependency to resolve vulnerabilities
230
+
231
+
232
+ ## 0.2.*
233
+
234
+ ### Changed
235
+ * Added proxy support and config
236
+ * Update travis config
237
+ * Updated README.md with `app.trustsource.io`
238
+ * Updated default url to `app.trustsource.io`
239
+ * Added windows support
240
+ * Fixed json
241
+
242
+ ### Removed
243
+ * options: **--credentials** and **--credentialsFile** instead you should use **--config**.
244
+ * option **--baseUrl** instead you should use **--url**.
245
+
246
+ ### Added
247
+ * option **--config**. It is similar to credentials, but it will contain any config information.
248
+ * option **--url**. It is similar to baseUrl.
249
+ * option **--apiKey** and **--userName** so it will be unnecessary to create `.tsrc.json` file.
250
+ * options **--version** and **--help**.
251
+ * options shortcut.
package/README.md CHANGED
@@ -77,6 +77,7 @@ Options:
77
77
  --tag, -t Scan tag [default: null]
78
78
  --binaryLinks Binary links separated by comma [default: null]
79
79
  --url url [default: null]
80
+ --fullUrl fullUrl [default: null]
80
81
  --config, -c Config path [default: null]
81
82
  --proxy Proxy url like 'https://user:password@host:port' [default: null]
82
83
  --version Prints a version [default: null]
@@ -107,90 +108,5 @@ You should upgrade to 2.* versions of ts-node-client
107
108
 
108
109
  ## Changelog available inside `CHANGELOG.md`
109
110
 
110
- ## [DEPRECATED] Changelog
111
-
112
- #### 3.0.*
113
- - `npm.ls` cli -> `package-lock.json` parse
114
- - npm removed
115
- - updated dependencies
116
-
117
- #### 2.1.*
118
- - Migrate 1.6.* - 1.8.* changes to version 2.1
119
- - Bump dependencies
120
-
121
- #### 2.0.*
122
- - Support new scan tool and fix problem with programmatic API for >= npm@8.0.0
123
- - Stop usage of [`global-npm`](https://github.com/dracupid/global-npm) until we find new resolution
124
- - Get back `npm` as local dependency
125
-
126
- #### 1.8.*
127
- - SBOM
128
- - **--saveAs** and **--saveAsFormat**
129
- - Bump minimist from 1.2.5 to 1.2.6
130
- - Bump urijs from 1.19.10 to 1.19.11
131
- - replace packageurl-js with simple local function
132
- - improve docs
133
-
134
- #### 1.7.*
135
- - request -> axios
136
- - fix dependencies
137
- - doc fixes
138
-
139
- #### 1.6.*
140
- - **--breakOnWarnings** and **--breakOnViolations**
141
- - Bump devDependencies
142
-
143
- #### 1.5.*
144
- - Describe `Error: The programmatic API was removed in npm v8.0.0`
145
- - Bump devDependencies
146
- - Introduce sonarjs
147
-
148
- #### 1.4.*
149
- - Bump glob-parent from 5.1.1 to 5.1.2
150
- - Bump path-parse from 1.0.6 to 1.0.7
151
- - Bump lodash from 4.17.19 to 4.17.21
152
- - Bump y18n from 4.0.0 to 4.0.1
153
- - Added:
154
- - option **--includeDevDependencies**. It is allow to scan dev dependencies
155
-
156
- #### 1.3.*
157
- - Use [`global-npm`](https://github.com/dracupid/global-npm) (meaning `npm` is no longer a dependency of `ts-node-client`)
158
-
159
- #### 1.2.*
160
- - Added:
161
- - option **--brakeOnViolations**. It is fail build in case any violations after scan transferred.
162
- - option **--brakeOnWarnings**. It is fail build in case any warning after scan transferred.
163
-
164
- #### 1.1.*
165
- - userName is not required param for scans
166
- - Support usage of scan meta param binaryLinks inside Options definition
167
-
168
- #### 1.0.*
169
- - Node JS and dependencies updates "node": ">= 8.12.0"
170
-
171
- #### 0.3.*
172
- - Improve variable usage and tasks migration
173
- - Support usage of scan meta params: branch and tag inside Options definition
174
- - Skip npmDependency without names
175
- - Update travis config
176
- - Update dependency to resolve vulnerabilities
177
-
178
- #### 0.2.*
179
- - Added proxy support and config
180
- - Update travis config
181
- - Updated README.md with `app.trustsource.io`
182
- - Updated default url to `app.trustsource.io`
183
- - Added windows support
184
- - Fixed json
185
- - **Removed:**
186
- - options: **--credentials** and **--credentialsFile** instead you should use **--config**.
187
- - option **--baseUrl** instead you should use **--url**.
188
- - Added:
189
- - option **--config**. It is similar to credentials, but it will contain any config information.
190
- - option **--url**. It is similar to baseUrl.
191
- - option **--apiKey** and **--userName** so it will be unnecessary to create `.tsrc.json` file.
192
- - options **--version** and **--help**.
193
- - options shortcut.
194
-
195
111
  ## License
196
112
  [Apache-2.0](https://github.com/TrustSource/ts-node-client/blob/master/LICENSE)
@@ -164,6 +164,7 @@ if (options.debug) {
164
164
  console.log(`${FILL}tag = %s`, options.tag);
165
165
  console.log(`${FILL}binaryLinks = %s`, options.binaryLinks);
166
166
  console.log(`${FILL}url = %s`, options.url);
167
+ console.log(`${FILL}fullUrl = %s`, options.fullUrl);
167
168
  console.log(`${FILL}proxy = %s`, options.proxy);
168
169
  }
169
170
 
@@ -92,6 +92,11 @@ RestClient.prototype.transfer = function transfer(scan, cb) {
92
92
  'User-Agent': `${pckgJson.name}/${pckgJson.version}`,
93
93
  'x-api-key': options.apiKey
94
94
  };
95
+ if (options.fullUrl) {
96
+ reqOpts.url = options.fullUrl;
97
+ delete reqOpts.headers['x-api-key'];
98
+ reqOpts.headers['x-apikey'] = options.apiKey;
99
+ }
95
100
  reqOpts.json = true;
96
101
  reqOpts.data = scan;
97
102
  if (options.branch) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ts-node-client",
3
3
  "description": "npm / node module to transfer dependency information to TrustSource server.",
4
- "version": "3.4.2",
4
+ "version": "3.4.4",
5
5
  "homepage": "https://app.trustsource.io/",
6
6
  "author": {
7
7
  "name": "Oleksandr Dmukhovskyi",
@@ -18,7 +18,7 @@
18
18
  "main": "./lib/cli.js",
19
19
  "bin": "./bin/ts-node-client.js",
20
20
  "scripts": {
21
- "scan": "yarn node ./bin/ts-node-client.js",
21
+ "scan": "yarn node ./bin/ts-node-client.js --debug true",
22
22
  "scan-with-brakes": "yarn node ./bin/ts-node-client.js --breakOnViolations true --breakOnWarnings false",
23
23
  "scan-to-file": "yarn node ./bin/ts-node-client.js --saveAs test --saveAsFormat scan --includeDevDependencies false",
24
24
  "lint": "eslint bin lib test",
@@ -28,20 +28,20 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@yarnpkg/lockfile": "1.1.0",
31
- "axios": "1.7.4",
31
+ "axios": "1.10.0",
32
32
  "debuglog": "1.0.1",
33
33
  "js-yaml": "4.1.0",
34
34
  "packageurl-js": "1.2.1",
35
- "semver": "7.6.3",
35
+ "semver": "7.7.2",
36
36
  "yargs": "17.7.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "eslint": "8.57.0",
40
40
  "eslint-config-airbnb-base": "15.0.0",
41
- "eslint-plugin-import": "2.29.1",
41
+ "eslint-plugin-import": "2.32.0",
42
42
  "eslint-plugin-sonarjs": "0.25.1",
43
- "mocha": "10.7.3",
44
- "nock": "13.5.4"
43
+ "mocha": "10.8.2",
44
+ "nock": "13.5.6"
45
45
  },
46
46
  "keywords": [
47
47
  "node",
@@ -52,5 +52,6 @@
52
52
  "cydx",
53
53
  "spdx",
54
54
  "dependency-analysis"
55
- ]
55
+ ],
56
+ "packageManager": "yarn@3.5.0+sha512.2dc70be5fce9f66756d25b00a888f3ca66f86b502b76750e72ba54cec89da767b938c54124595e26f868825688e0fe3552c26c76a330673343057acadd5cfcf2"
56
57
  }