ts-node-client 3.2.4 → 3.3.0
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/.travis.yml +3 -2
- package/CHANGELOG.md +13 -0
- package/SECURITY.md +4 -13
- package/lib/convertor.js +3 -2
- package/package-lock.json +108 -89
- package/package.json +9 -8
- package/lib/pkg.js +0 -36
- /package/{package-lock_dev_test.json → test/package-lock_dev_test.json} +0 -0
- /package/{package-lock_v1.json → test/package-lock_v1.json} +0 -0
- /package/{package-lock_v2.json → test/package-lock_v2.json} +0 -0
- /package/{package-lock_v3.json → test/package-lock_v3.json} +0 -0
package/.travis.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@ 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.3.0 - 2024-03-27
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
* migrated to packageurl-js@1.2.1
|
|
15
|
+
* Bump dependencies
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 3.2.5 - 2024-03-21
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
* Bump dependencies
|
|
22
|
+
|
|
23
|
+
|
|
11
24
|
## 3.2.4 - 2024-01-17
|
|
12
25
|
|
|
13
26
|
### Changed
|
package/SECURITY.md
CHANGED
|
@@ -2,20 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Supported Versions
|
|
4
4
|
|
|
5
|
-
Use this section to tell people about which versions of your project are
|
|
6
|
-
currently being supported with security updates.
|
|
7
|
-
|
|
8
5
|
| Version | Supported |
|
|
9
|
-
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
| 4.0.x | :white_check_mark: |
|
|
13
|
-
| < 4.0 | :x: |
|
|
6
|
+
|---------| ------------------ |
|
|
7
|
+
| 3.3.x | :white_check_mark: |
|
|
8
|
+
| < 3.0 | :x: |
|
|
14
9
|
|
|
15
10
|
## Reporting a Vulnerability
|
|
16
11
|
|
|
17
|
-
|
|
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.
|
|
12
|
+
No known vulnerabilities are available
|
package/lib/convertor.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*********************************************************/
|
|
7
7
|
/* eslint-enable */
|
|
8
|
-
const PackageURL = require('
|
|
8
|
+
const { PackageURL } = require('packageurl-js');
|
|
9
9
|
|
|
10
10
|
const Convertor = {};
|
|
11
11
|
|
|
@@ -65,7 +65,8 @@ function getPackageUrl(componentKey, version) {
|
|
|
65
65
|
const org = parts.length > 1 ? parts[0] : null;
|
|
66
66
|
const key = parts.length > 1 ? parts[1] : parts[0];
|
|
67
67
|
if (key) {
|
|
68
|
-
|
|
68
|
+
const purl = new PackageURL(result.manager, org, key, version);
|
|
69
|
+
return purl.toString();
|
|
69
70
|
}
|
|
70
71
|
return null;
|
|
71
72
|
}
|
package/package-lock.json
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-node-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "ts-node-client",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.3.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@yarnpkg/lockfile": "1.1.0",
|
|
13
|
-
"axios": "1.6.
|
|
13
|
+
"axios": "1.6.8",
|
|
14
14
|
"debuglog": "1.0.1",
|
|
15
15
|
"js-yaml": "4.1.0",
|
|
16
|
-
"
|
|
16
|
+
"packageurl-js": "1.2.1",
|
|
17
|
+
"semver": "7.6.0",
|
|
17
18
|
"yargs": "17.7.2"
|
|
18
19
|
},
|
|
19
20
|
"bin": {
|
|
20
21
|
"ts-node-client": "bin/ts-node-client.js"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"eslint": "8.
|
|
24
|
+
"eslint": "8.57.0",
|
|
24
25
|
"eslint-config-airbnb-base": "15.0.0",
|
|
25
26
|
"eslint-plugin-import": "2.29.1",
|
|
26
|
-
"eslint-plugin-sonarjs": "0.
|
|
27
|
-
"mocha": "10.
|
|
28
|
-
"nock": "13.5.
|
|
27
|
+
"eslint-plugin-sonarjs": "0.24.0",
|
|
28
|
+
"mocha": "10.3.0",
|
|
29
|
+
"nock": "13.5.4"
|
|
29
30
|
},
|
|
30
31
|
"engines": {
|
|
31
32
|
"node": ">= 12.0.0"
|
|
@@ -88,9 +89,9 @@
|
|
|
88
89
|
}
|
|
89
90
|
},
|
|
90
91
|
"node_modules/@eslint/js": {
|
|
91
|
-
"version": "8.
|
|
92
|
-
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.
|
|
93
|
-
"integrity": "sha512-
|
|
92
|
+
"version": "8.57.0",
|
|
93
|
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
|
|
94
|
+
"integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==",
|
|
94
95
|
"dev": true,
|
|
95
96
|
"engines": {
|
|
96
97
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
@@ -392,11 +393,11 @@
|
|
|
392
393
|
}
|
|
393
394
|
},
|
|
394
395
|
"node_modules/axios": {
|
|
395
|
-
"version": "1.6.
|
|
396
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.
|
|
397
|
-
"integrity": "sha512-
|
|
396
|
+
"version": "1.6.8",
|
|
397
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
|
|
398
|
+
"integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
|
|
398
399
|
"dependencies": {
|
|
399
|
-
"follow-redirects": "^1.15.
|
|
400
|
+
"follow-redirects": "^1.15.6",
|
|
400
401
|
"form-data": "^4.0.0",
|
|
401
402
|
"proxy-from-env": "^1.1.0"
|
|
402
403
|
}
|
|
@@ -807,16 +808,16 @@
|
|
|
807
808
|
}
|
|
808
809
|
},
|
|
809
810
|
"node_modules/eslint": {
|
|
810
|
-
"version": "8.
|
|
811
|
-
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.
|
|
812
|
-
"integrity": "sha512-
|
|
811
|
+
"version": "8.57.0",
|
|
812
|
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
|
|
813
|
+
"integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
|
|
813
814
|
"dev": true,
|
|
814
815
|
"dependencies": {
|
|
815
816
|
"@eslint-community/eslint-utils": "^4.2.0",
|
|
816
817
|
"@eslint-community/regexpp": "^4.6.1",
|
|
817
818
|
"@eslint/eslintrc": "^2.1.4",
|
|
818
|
-
"@eslint/js": "8.
|
|
819
|
-
"@humanwhocodes/config-array": "^0.11.
|
|
819
|
+
"@eslint/js": "8.57.0",
|
|
820
|
+
"@humanwhocodes/config-array": "^0.11.14",
|
|
820
821
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
821
822
|
"@nodelib/fs.walk": "^1.2.8",
|
|
822
823
|
"@ungap/structured-clone": "^1.2.0",
|
|
@@ -997,12 +998,12 @@
|
|
|
997
998
|
}
|
|
998
999
|
},
|
|
999
1000
|
"node_modules/eslint-plugin-sonarjs": {
|
|
1000
|
-
"version": "0.
|
|
1001
|
-
"resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.
|
|
1002
|
-
"integrity": "sha512-
|
|
1001
|
+
"version": "0.24.0",
|
|
1002
|
+
"resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.24.0.tgz",
|
|
1003
|
+
"integrity": "sha512-87zp50mbbNrSTuoEOebdRQBPa0mdejA5UEjyuScyIw8hEpEjfWP89Qhkq5xVZfVyVSRQKZc9alVm7yRKQvvUmg==",
|
|
1003
1004
|
"dev": true,
|
|
1004
1005
|
"engines": {
|
|
1005
|
-
"node": ">=
|
|
1006
|
+
"node": ">=16"
|
|
1006
1007
|
},
|
|
1007
1008
|
"peerDependencies": {
|
|
1008
1009
|
"eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
@@ -1191,9 +1192,9 @@
|
|
|
1191
1192
|
"dev": true
|
|
1192
1193
|
},
|
|
1193
1194
|
"node_modules/follow-redirects": {
|
|
1194
|
-
"version": "1.15.
|
|
1195
|
-
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.
|
|
1196
|
-
"integrity": "sha512-
|
|
1195
|
+
"version": "1.15.6",
|
|
1196
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
|
1197
|
+
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
|
|
1197
1198
|
"funding": [
|
|
1198
1199
|
{
|
|
1199
1200
|
"type": "individual",
|
|
@@ -2000,9 +2001,9 @@
|
|
|
2000
2001
|
}
|
|
2001
2002
|
},
|
|
2002
2003
|
"node_modules/mocha": {
|
|
2003
|
-
"version": "10.
|
|
2004
|
-
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.
|
|
2005
|
-
"integrity": "sha512-
|
|
2004
|
+
"version": "10.3.0",
|
|
2005
|
+
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz",
|
|
2006
|
+
"integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==",
|
|
2006
2007
|
"dev": true,
|
|
2007
2008
|
"dependencies": {
|
|
2008
2009
|
"ansi-colors": "4.1.1",
|
|
@@ -2012,13 +2013,12 @@
|
|
|
2012
2013
|
"diff": "5.0.0",
|
|
2013
2014
|
"escape-string-regexp": "4.0.0",
|
|
2014
2015
|
"find-up": "5.0.0",
|
|
2015
|
-
"glob": "
|
|
2016
|
+
"glob": "8.1.0",
|
|
2016
2017
|
"he": "1.2.0",
|
|
2017
2018
|
"js-yaml": "4.1.0",
|
|
2018
2019
|
"log-symbols": "4.1.0",
|
|
2019
2020
|
"minimatch": "5.0.1",
|
|
2020
2021
|
"ms": "2.1.3",
|
|
2021
|
-
"nanoid": "3.3.3",
|
|
2022
2022
|
"serialize-javascript": "6.0.0",
|
|
2023
2023
|
"strip-json-comments": "3.1.1",
|
|
2024
2024
|
"supports-color": "8.1.1",
|
|
@@ -2033,10 +2033,6 @@
|
|
|
2033
2033
|
},
|
|
2034
2034
|
"engines": {
|
|
2035
2035
|
"node": ">= 14.0.0"
|
|
2036
|
-
},
|
|
2037
|
-
"funding": {
|
|
2038
|
-
"type": "opencollective",
|
|
2039
|
-
"url": "https://opencollective.com/mochajs"
|
|
2040
2036
|
}
|
|
2041
2037
|
},
|
|
2042
2038
|
"node_modules/mocha/node_modules/brace-expansion": {
|
|
@@ -2059,6 +2055,25 @@
|
|
|
2059
2055
|
"wrap-ansi": "^7.0.0"
|
|
2060
2056
|
}
|
|
2061
2057
|
},
|
|
2058
|
+
"node_modules/mocha/node_modules/glob": {
|
|
2059
|
+
"version": "8.1.0",
|
|
2060
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
|
2061
|
+
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
|
2062
|
+
"dev": true,
|
|
2063
|
+
"dependencies": {
|
|
2064
|
+
"fs.realpath": "^1.0.0",
|
|
2065
|
+
"inflight": "^1.0.4",
|
|
2066
|
+
"inherits": "2",
|
|
2067
|
+
"minimatch": "^5.0.1",
|
|
2068
|
+
"once": "^1.3.0"
|
|
2069
|
+
},
|
|
2070
|
+
"engines": {
|
|
2071
|
+
"node": ">=12"
|
|
2072
|
+
},
|
|
2073
|
+
"funding": {
|
|
2074
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2062
2077
|
"node_modules/mocha/node_modules/minimatch": {
|
|
2063
2078
|
"version": "5.0.1",
|
|
2064
2079
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
|
|
@@ -2116,18 +2131,6 @@
|
|
|
2116
2131
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
2117
2132
|
"dev": true
|
|
2118
2133
|
},
|
|
2119
|
-
"node_modules/nanoid": {
|
|
2120
|
-
"version": "3.3.3",
|
|
2121
|
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
|
|
2122
|
-
"integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
|
|
2123
|
-
"dev": true,
|
|
2124
|
-
"bin": {
|
|
2125
|
-
"nanoid": "bin/nanoid.cjs"
|
|
2126
|
-
},
|
|
2127
|
-
"engines": {
|
|
2128
|
-
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
|
2129
|
-
}
|
|
2130
|
-
},
|
|
2131
2134
|
"node_modules/natural-compare": {
|
|
2132
2135
|
"version": "1.4.0",
|
|
2133
2136
|
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
|
|
@@ -2135,9 +2138,9 @@
|
|
|
2135
2138
|
"dev": true
|
|
2136
2139
|
},
|
|
2137
2140
|
"node_modules/nock": {
|
|
2138
|
-
"version": "13.5.
|
|
2139
|
-
"resolved": "https://registry.npmjs.org/nock/-/nock-13.5.
|
|
2140
|
-
"integrity": "sha512-
|
|
2141
|
+
"version": "13.5.4",
|
|
2142
|
+
"resolved": "https://registry.npmjs.org/nock/-/nock-13.5.4.tgz",
|
|
2143
|
+
"integrity": "sha512-yAyTfdeNJGGBFxWdzSKCBYxs5FxLbCg5X5Q4ets974hcQzG1+qCxvIyOo4j2Ry6MUlhWVMX4OoYDefAIIwupjw==",
|
|
2141
2144
|
"dev": true,
|
|
2142
2145
|
"dependencies": {
|
|
2143
2146
|
"debug": "^4.1.0",
|
|
@@ -2309,6 +2312,11 @@
|
|
|
2309
2312
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
2310
2313
|
}
|
|
2311
2314
|
},
|
|
2315
|
+
"node_modules/packageurl-js": {
|
|
2316
|
+
"version": "1.2.1",
|
|
2317
|
+
"resolved": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-1.2.1.tgz",
|
|
2318
|
+
"integrity": "sha512-cZ6/MzuXaoFd16/k0WnwtI298UCaDHe/XlSh85SeOKbGZ1hq0xvNbx3ILyCMyk7uFQxl6scF3Aucj6/EO9NwcA=="
|
|
2319
|
+
},
|
|
2312
2320
|
"node_modules/parent-module": {
|
|
2313
2321
|
"version": "1.0.1",
|
|
2314
2322
|
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
|
@@ -2591,9 +2599,9 @@
|
|
|
2591
2599
|
}
|
|
2592
2600
|
},
|
|
2593
2601
|
"node_modules/semver": {
|
|
2594
|
-
"version": "7.
|
|
2595
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.
|
|
2596
|
-
"integrity": "sha512-
|
|
2602
|
+
"version": "7.6.0",
|
|
2603
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz",
|
|
2604
|
+
"integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==",
|
|
2597
2605
|
"dependencies": {
|
|
2598
2606
|
"lru-cache": "^6.0.0"
|
|
2599
2607
|
},
|
|
@@ -3098,9 +3106,9 @@
|
|
|
3098
3106
|
}
|
|
3099
3107
|
},
|
|
3100
3108
|
"@eslint/js": {
|
|
3101
|
-
"version": "8.
|
|
3102
|
-
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.
|
|
3103
|
-
"integrity": "sha512-
|
|
3109
|
+
"version": "8.57.0",
|
|
3110
|
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
|
|
3111
|
+
"integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==",
|
|
3104
3112
|
"dev": true
|
|
3105
3113
|
},
|
|
3106
3114
|
"@humanwhocodes/config-array": {
|
|
@@ -3314,11 +3322,11 @@
|
|
|
3314
3322
|
"dev": true
|
|
3315
3323
|
},
|
|
3316
3324
|
"axios": {
|
|
3317
|
-
"version": "1.6.
|
|
3318
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.
|
|
3319
|
-
"integrity": "sha512-
|
|
3325
|
+
"version": "1.6.8",
|
|
3326
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
|
|
3327
|
+
"integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
|
|
3320
3328
|
"requires": {
|
|
3321
|
-
"follow-redirects": "^1.15.
|
|
3329
|
+
"follow-redirects": "^1.15.6",
|
|
3322
3330
|
"form-data": "^4.0.0",
|
|
3323
3331
|
"proxy-from-env": "^1.1.0"
|
|
3324
3332
|
}
|
|
@@ -3624,16 +3632,16 @@
|
|
|
3624
3632
|
"dev": true
|
|
3625
3633
|
},
|
|
3626
3634
|
"eslint": {
|
|
3627
|
-
"version": "8.
|
|
3628
|
-
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.
|
|
3629
|
-
"integrity": "sha512-
|
|
3635
|
+
"version": "8.57.0",
|
|
3636
|
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
|
|
3637
|
+
"integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==",
|
|
3630
3638
|
"dev": true,
|
|
3631
3639
|
"requires": {
|
|
3632
3640
|
"@eslint-community/eslint-utils": "^4.2.0",
|
|
3633
3641
|
"@eslint-community/regexpp": "^4.6.1",
|
|
3634
3642
|
"@eslint/eslintrc": "^2.1.4",
|
|
3635
|
-
"@eslint/js": "8.
|
|
3636
|
-
"@humanwhocodes/config-array": "^0.11.
|
|
3643
|
+
"@eslint/js": "8.57.0",
|
|
3644
|
+
"@humanwhocodes/config-array": "^0.11.14",
|
|
3637
3645
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
3638
3646
|
"@nodelib/fs.walk": "^1.2.8",
|
|
3639
3647
|
"@ungap/structured-clone": "^1.2.0",
|
|
@@ -3783,9 +3791,9 @@
|
|
|
3783
3791
|
}
|
|
3784
3792
|
},
|
|
3785
3793
|
"eslint-plugin-sonarjs": {
|
|
3786
|
-
"version": "0.
|
|
3787
|
-
"resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.
|
|
3788
|
-
"integrity": "sha512-
|
|
3794
|
+
"version": "0.24.0",
|
|
3795
|
+
"resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.24.0.tgz",
|
|
3796
|
+
"integrity": "sha512-87zp50mbbNrSTuoEOebdRQBPa0mdejA5UEjyuScyIw8hEpEjfWP89Qhkq5xVZfVyVSRQKZc9alVm7yRKQvvUmg==",
|
|
3789
3797
|
"dev": true,
|
|
3790
3798
|
"requires": {}
|
|
3791
3799
|
},
|
|
@@ -3924,9 +3932,9 @@
|
|
|
3924
3932
|
"dev": true
|
|
3925
3933
|
},
|
|
3926
3934
|
"follow-redirects": {
|
|
3927
|
-
"version": "1.15.
|
|
3928
|
-
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.
|
|
3929
|
-
"integrity": "sha512-
|
|
3935
|
+
"version": "1.15.6",
|
|
3936
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
|
3937
|
+
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA=="
|
|
3930
3938
|
},
|
|
3931
3939
|
"for-each": {
|
|
3932
3940
|
"version": "0.3.3",
|
|
@@ -4478,9 +4486,9 @@
|
|
|
4478
4486
|
"dev": true
|
|
4479
4487
|
},
|
|
4480
4488
|
"mocha": {
|
|
4481
|
-
"version": "10.
|
|
4482
|
-
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.
|
|
4483
|
-
"integrity": "sha512-
|
|
4489
|
+
"version": "10.3.0",
|
|
4490
|
+
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz",
|
|
4491
|
+
"integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==",
|
|
4484
4492
|
"dev": true,
|
|
4485
4493
|
"requires": {
|
|
4486
4494
|
"ansi-colors": "4.1.1",
|
|
@@ -4490,13 +4498,12 @@
|
|
|
4490
4498
|
"diff": "5.0.0",
|
|
4491
4499
|
"escape-string-regexp": "4.0.0",
|
|
4492
4500
|
"find-up": "5.0.0",
|
|
4493
|
-
"glob": "
|
|
4501
|
+
"glob": "8.1.0",
|
|
4494
4502
|
"he": "1.2.0",
|
|
4495
4503
|
"js-yaml": "4.1.0",
|
|
4496
4504
|
"log-symbols": "4.1.0",
|
|
4497
4505
|
"minimatch": "5.0.1",
|
|
4498
4506
|
"ms": "2.1.3",
|
|
4499
|
-
"nanoid": "3.3.3",
|
|
4500
4507
|
"serialize-javascript": "6.0.0",
|
|
4501
4508
|
"strip-json-comments": "3.1.1",
|
|
4502
4509
|
"supports-color": "8.1.1",
|
|
@@ -4526,6 +4533,19 @@
|
|
|
4526
4533
|
"wrap-ansi": "^7.0.0"
|
|
4527
4534
|
}
|
|
4528
4535
|
},
|
|
4536
|
+
"glob": {
|
|
4537
|
+
"version": "8.1.0",
|
|
4538
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
|
4539
|
+
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
|
4540
|
+
"dev": true,
|
|
4541
|
+
"requires": {
|
|
4542
|
+
"fs.realpath": "^1.0.0",
|
|
4543
|
+
"inflight": "^1.0.4",
|
|
4544
|
+
"inherits": "2",
|
|
4545
|
+
"minimatch": "^5.0.1",
|
|
4546
|
+
"once": "^1.3.0"
|
|
4547
|
+
}
|
|
4548
|
+
},
|
|
4529
4549
|
"minimatch": {
|
|
4530
4550
|
"version": "5.0.1",
|
|
4531
4551
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
|
|
@@ -4573,12 +4593,6 @@
|
|
|
4573
4593
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
4574
4594
|
"dev": true
|
|
4575
4595
|
},
|
|
4576
|
-
"nanoid": {
|
|
4577
|
-
"version": "3.3.3",
|
|
4578
|
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
|
|
4579
|
-
"integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
|
|
4580
|
-
"dev": true
|
|
4581
|
-
},
|
|
4582
4596
|
"natural-compare": {
|
|
4583
4597
|
"version": "1.4.0",
|
|
4584
4598
|
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
|
|
@@ -4586,9 +4600,9 @@
|
|
|
4586
4600
|
"dev": true
|
|
4587
4601
|
},
|
|
4588
4602
|
"nock": {
|
|
4589
|
-
"version": "13.5.
|
|
4590
|
-
"resolved": "https://registry.npmjs.org/nock/-/nock-13.5.
|
|
4591
|
-
"integrity": "sha512-
|
|
4603
|
+
"version": "13.5.4",
|
|
4604
|
+
"resolved": "https://registry.npmjs.org/nock/-/nock-13.5.4.tgz",
|
|
4605
|
+
"integrity": "sha512-yAyTfdeNJGGBFxWdzSKCBYxs5FxLbCg5X5Q4ets974hcQzG1+qCxvIyOo4j2Ry6MUlhWVMX4OoYDefAIIwupjw==",
|
|
4592
4606
|
"dev": true,
|
|
4593
4607
|
"requires": {
|
|
4594
4608
|
"debug": "^4.1.0",
|
|
@@ -4712,6 +4726,11 @@
|
|
|
4712
4726
|
"p-limit": "^3.0.2"
|
|
4713
4727
|
}
|
|
4714
4728
|
},
|
|
4729
|
+
"packageurl-js": {
|
|
4730
|
+
"version": "1.2.1",
|
|
4731
|
+
"resolved": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-1.2.1.tgz",
|
|
4732
|
+
"integrity": "sha512-cZ6/MzuXaoFd16/k0WnwtI298UCaDHe/XlSh85SeOKbGZ1hq0xvNbx3ILyCMyk7uFQxl6scF3Aucj6/EO9NwcA=="
|
|
4733
|
+
},
|
|
4715
4734
|
"parent-module": {
|
|
4716
4735
|
"version": "1.0.1",
|
|
4717
4736
|
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
|
@@ -4885,9 +4904,9 @@
|
|
|
4885
4904
|
}
|
|
4886
4905
|
},
|
|
4887
4906
|
"semver": {
|
|
4888
|
-
"version": "7.
|
|
4889
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.
|
|
4890
|
-
"integrity": "sha512-
|
|
4907
|
+
"version": "7.6.0",
|
|
4908
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz",
|
|
4909
|
+
"integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==",
|
|
4891
4910
|
"requires": {
|
|
4892
4911
|
"lru-cache": "^6.0.0"
|
|
4893
4912
|
}
|
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
|
+
"version": "3.3.0",
|
|
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",
|
|
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,19 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@yarnpkg/lockfile": "1.1.0",
|
|
31
|
-
"axios": "1.6.
|
|
31
|
+
"axios": "1.6.8",
|
|
32
32
|
"debuglog": "1.0.1",
|
|
33
33
|
"js-yaml": "4.1.0",
|
|
34
|
-
"
|
|
34
|
+
"packageurl-js": "1.2.1",
|
|
35
|
+
"semver": "7.6.0",
|
|
35
36
|
"yargs": "17.7.2"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"eslint": "8.
|
|
39
|
+
"eslint": "8.57.0",
|
|
39
40
|
"eslint-config-airbnb-base": "15.0.0",
|
|
40
41
|
"eslint-plugin-import": "2.29.1",
|
|
41
|
-
"eslint-plugin-sonarjs": "0.
|
|
42
|
-
"mocha": "10.
|
|
43
|
-
"nock": "13.5.
|
|
42
|
+
"eslint-plugin-sonarjs": "0.24.0",
|
|
43
|
+
"mocha": "10.3.0",
|
|
44
|
+
"nock": "13.5.4"
|
|
44
45
|
},
|
|
45
46
|
"keywords": [
|
|
46
47
|
"node",
|
package/lib/pkg.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/**********************************************************
|
|
3
|
-
* Copyright (c) 2022. Enterprise Architecture Group, EACG
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*********************************************************/
|
|
7
|
-
/* eslint-enable */
|
|
8
|
-
|
|
9
|
-
const PackageURL = {};
|
|
10
|
-
|
|
11
|
-
PackageURL.get = function get(manager, org, key, version) {
|
|
12
|
-
// scheme:type/namespace/name@version?qualifiers#subpath
|
|
13
|
-
const parts = [];
|
|
14
|
-
let partVersion;
|
|
15
|
-
if (manager) {
|
|
16
|
-
parts.push(fixPart(manager));
|
|
17
|
-
}
|
|
18
|
-
if (org) {
|
|
19
|
-
parts.push(fixPart(org));
|
|
20
|
-
}
|
|
21
|
-
if (key) {
|
|
22
|
-
parts.push(fixPart(key));
|
|
23
|
-
}
|
|
24
|
-
if (version) {
|
|
25
|
-
partVersion = `@${fixPart(version)}`;
|
|
26
|
-
}
|
|
27
|
-
return `pkg:${parts.join('/')}${partVersion}`;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function fixPart(str) {
|
|
31
|
-
const newStr = encodeURI(str);
|
|
32
|
-
return newStr.split('%3A').join(':');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
module.exports = PackageURL;
|
|
36
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|