scanoss 0.15.6 → 0.16.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/CHANGELOG.md +53 -87
- package/LICENSE +20 -20
- package/README.md +75 -3
- package/assets/ReportHTMLTemplate/index.html +11 -8
- package/assets/data/scanoss-crypto-library-rules.json +2930 -0
- package/build/main/cli/bin/cli-bin.js +6 -2
- package/build/main/cli/commands/crypto.js +14 -7
- package/build/main/cli/commands/scan.js +68 -25
- package/build/main/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.d.ts +19 -0
- package/build/main/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.js +27 -0
- package/build/main/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.d.ts +1 -0
- package/build/main/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.js +39 -0
- package/build/main/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.d.ts +42 -0
- package/build/main/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.js +87 -0
- package/build/main/sdk/Cryptography/{CryptoDef/CryptoDef.d.ts → Algorithm/Files/Helper/Helper.d.ts} +1 -1
- package/build/main/sdk/Cryptography/{CryptoDef/CryptoDef.js → Algorithm/Files/Helper/Helper.js} +1 -1
- package/build/main/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.d.ts +2 -2
- package/build/main/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.js +1 -1
- package/build/main/sdk/Cryptography/BaseCryptographyScanner.d.ts +25 -0
- package/build/main/sdk/Cryptography/BaseCryptographyScanner.js +23 -0
- package/build/main/sdk/Cryptography/CryptoCfg.d.ts +32 -5
- package/build/main/sdk/Cryptography/CryptoCfg.js +35 -5
- package/build/main/sdk/Cryptography/CryptographyScanner.d.ts +15 -21
- package/build/main/sdk/Cryptography/CryptographyScanner.js +31 -41
- package/build/main/sdk/Cryptography/CryptographyTypes.d.ts +47 -3
- package/build/main/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.d.ts +32 -0
- package/build/main/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.js +66 -0
- package/build/main/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.d.ts +36 -0
- package/build/main/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.js +65 -0
- package/build/main/sdk/Cryptography/Hint/Components/ComponentHintScanner.d.ts +19 -0
- package/build/main/sdk/Cryptography/Hint/Components/ComponentHintScanner.js +27 -0
- package/build/main/sdk/Cryptography/Hint/Files/FileHintScanner.d.ts +35 -0
- package/build/main/sdk/Cryptography/Hint/Files/FileHintScanner.js +69 -0
- package/build/main/sdk/Cryptography/Hint/Files/HintProcessor.d.ts +1 -0
- package/build/main/sdk/Cryptography/Hint/Files/HintProcessor.js +34 -0
- package/build/main/sdk/Filtering/Filtering.js +1 -2
- package/build/main/sdk/Logger.d.ts +2 -0
- package/build/main/sdk/Logger.js +7 -2
- package/build/main/sdk/Report/DataLayer/DataLayerTypes.d.ts +8 -4
- package/build/main/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.d.ts +7 -7
- package/build/main/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.js +71 -11
- package/build/main/sdk/Services/Grpc/BaseService.js +1 -1
- package/build/main/sdk/Services/Grpc/CryptographyService.d.ts +3 -0
- package/build/main/sdk/Services/Grpc/CryptographyService.js +16 -1
- package/build/main/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.d.ts +72 -0
- package/build/main/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.js +87 -3
- package/build/main/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_pb.js +1987 -127
- package/build/main/sdk/Utils/Concurrency/Job.d.ts +8 -0
- package/build/main/sdk/Utils/Concurrency/Job.js +17 -0
- package/build/main/sdk/Utils/Concurrency/JobProcessor.d.ts +10 -0
- package/build/main/sdk/Utils/Concurrency/JobProcessor.js +51 -0
- package/build/main/sdk/Utils/Concurrency/WorkerPool.d.ts +14 -0
- package/build/main/sdk/Utils/Concurrency/WorkerPool.js +69 -0
- package/build/main/sdk/Utils/Concurrency/types.d.ts +18 -0
- package/build/main/sdk/Utils/Concurrency/types.js +3 -0
- package/build/main/sdk/scanner/Scanner.d.ts +1 -1
- package/build/main/sdk/scanner/Scanner.js +16 -6
- package/build/main/sdk/scanner/ScannerTypes.js +1 -1
- package/build/main/tsconfig.tsbuildinfo +1 -1
- package/build/module/cli/bin/cli-bin.js +6 -2
- package/build/module/cli/commands/crypto.js +14 -7
- package/build/module/cli/commands/scan.js +89 -46
- package/build/module/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.d.ts +19 -0
- package/build/module/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.js +23 -0
- package/build/module/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.d.ts +1 -0
- package/build/module/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.js +36 -0
- package/build/module/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.d.ts +42 -0
- package/build/module/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.js +80 -0
- package/build/module/sdk/Cryptography/{CryptoDef/CryptoDef.d.ts → Algorithm/Files/Helper/Helper.d.ts} +1 -1
- package/build/module/sdk/Cryptography/{CryptoDef/CryptoDef.js → Algorithm/Files/Helper/Helper.js} +1 -1
- package/build/module/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.d.ts +2 -2
- package/build/module/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.js +1 -1
- package/build/module/sdk/Cryptography/BaseCryptographyScanner.d.ts +25 -0
- package/build/module/sdk/Cryptography/BaseCryptographyScanner.js +21 -0
- package/build/module/sdk/Cryptography/CryptoCfg.d.ts +32 -5
- package/build/module/sdk/Cryptography/CryptoCfg.js +39 -6
- package/build/module/sdk/Cryptography/CryptographyScanner.d.ts +15 -21
- package/build/module/sdk/Cryptography/CryptographyScanner.js +32 -39
- package/build/module/sdk/Cryptography/CryptographyTypes.d.ts +47 -3
- package/build/module/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.d.ts +32 -0
- package/build/module/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.js +60 -0
- package/build/module/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.d.ts +36 -0
- package/build/module/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.js +59 -0
- package/build/module/sdk/Cryptography/Hint/Components/ComponentHintScanner.d.ts +19 -0
- package/build/module/sdk/Cryptography/Hint/Components/ComponentHintScanner.js +23 -0
- package/build/module/sdk/Cryptography/Hint/Files/FileHintScanner.d.ts +35 -0
- package/build/module/sdk/Cryptography/Hint/Files/FileHintScanner.js +62 -0
- package/build/module/sdk/Cryptography/Hint/Files/HintProcessor.d.ts +1 -0
- package/build/module/sdk/Cryptography/Hint/Files/HintProcessor.js +31 -0
- package/build/module/sdk/Filtering/Filtering.js +1 -2
- package/build/module/sdk/Logger.d.ts +2 -0
- package/build/module/sdk/Logger.js +8 -2
- package/build/module/sdk/Report/DataLayer/DataLayerTypes.d.ts +8 -4
- package/build/module/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.d.ts +7 -7
- package/build/module/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.js +73 -14
- package/build/module/sdk/Services/Grpc/BaseService.js +1 -1
- package/build/module/sdk/Services/Grpc/CryptographyService.d.ts +3 -0
- package/build/module/sdk/Services/Grpc/CryptographyService.js +16 -1
- package/build/module/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.d.ts +72 -0
- package/build/module/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.js +87 -3
- package/build/module/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_pb.js +1987 -127
- package/build/module/sdk/Utils/Concurrency/Job.d.ts +8 -0
- package/build/module/sdk/Utils/Concurrency/Job.js +14 -0
- package/build/module/sdk/Utils/Concurrency/JobProcessor.d.ts +10 -0
- package/build/module/sdk/Utils/Concurrency/JobProcessor.js +47 -0
- package/build/module/sdk/Utils/Concurrency/WorkerPool.d.ts +14 -0
- package/build/module/sdk/Utils/Concurrency/WorkerPool.js +65 -0
- package/build/module/sdk/Utils/Concurrency/types.d.ts +18 -0
- package/build/module/sdk/Utils/Concurrency/types.js +2 -0
- package/build/module/sdk/scanner/Scanner.d.ts +1 -1
- package/build/module/sdk/scanner/Scanner.js +16 -7
- package/build/module/sdk/scanner/ScannerTypes.js +1 -1
- package/build/module/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/main/sdk/Cryptography/CryptoProvider/LocalCrypto.d.ts +0 -21
- package/build/main/sdk/Cryptography/CryptoProvider/LocalCrypto.js +0 -37
- package/build/main/sdk/Cryptography/Worker/ThreadPool.d.ts +0 -21
- package/build/main/sdk/Cryptography/Worker/ThreadPool.js +0 -87
- package/build/main/sdk/Cryptography/Worker/Worker.d.ts +0 -15
- package/build/main/sdk/Cryptography/Worker/Worker.js +0 -69
- package/build/main/sdk/Cryptography/utils/adapters/cryptoAdapters.d.ts +0 -8
- package/build/main/sdk/Cryptography/utils/adapters/cryptoAdapters.js +0 -15
- package/build/module/sdk/Cryptography/CryptoProvider/LocalCrypto.d.ts +0 -21
- package/build/module/sdk/Cryptography/CryptoProvider/LocalCrypto.js +0 -36
- package/build/module/sdk/Cryptography/Worker/ThreadPool.d.ts +0 -21
- package/build/module/sdk/Cryptography/Worker/ThreadPool.js +0 -89
- package/build/module/sdk/Cryptography/Worker/Worker.d.ts +0 -15
- package/build/module/sdk/Cryptography/Worker/Worker.js +0 -66
- package/build/module/sdk/Cryptography/utils/adapters/cryptoAdapters.d.ts +0 -8
- package/build/module/sdk/Cryptography/utils/adapters/cryptoAdapters.js +0 -12
- /package/assets/data/{defaultCryptoRules.json → scanoss-crypto-algorithm-rules.json} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,92 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### [0.15.0](https://github.com/scanoss/scanoss.js/compare/v0.14.1...v0.15.0) (2024-07-28)
|
|
10
|
-
|
|
11
|
-
### [0.14.1](https://github.com/scanoss/scanoss.js/compare/v0.14.0...v0.14.1) (2024-06-05)
|
|
12
|
-
|
|
13
|
-
### [0.14.0](https://github.com/scanoss/scanoss.js/compare/v0.13.2...v0.14.0) (2024-05-23)
|
|
14
|
-
|
|
15
|
-
### [0.13.2](https://github.com/scanoss/scanoss.js/compare/v0.13.1...v0.13.2) (2024-05-20)
|
|
16
|
-
|
|
17
|
-
### [0.13.1](https://github.com/scanoss/scanoss.js/compare/v0.13.0...v0.13.1) (2024-05-15)
|
|
18
|
-
|
|
19
|
-
### [0.13.0](https://github.com/scanoss/scanoss.js/compare/v0.12.2...v0.13.0) (2024-05-13)
|
|
20
|
-
|
|
21
|
-
### [0.12.2](https://github.com/scanoss/scanoss.js/compare/v0.12.0...v0.12.2) (2024-05-10)
|
|
22
|
-
|
|
23
|
-
### [0.12.0](https://github.com/scanoss/scanoss.js/compare/v0.11.5...v0.12.0) (2024-05-06)
|
|
24
|
-
|
|
25
|
-
### [0.11.5](https://github.com/scanoss/scanoss.js/compare/v0.11.4...v0.11.5) (2024-04-19)
|
|
26
|
-
|
|
27
|
-
### [0.11.4](https://github.com/scanoss/scanoss.js/compare/v0.11.3...v0.11.4) (2024-04-02)
|
|
28
|
-
|
|
29
|
-
### [0.11.3](https://github.com/scanoss/scanoss.js/compare/v0.11.2...v0.11.3) (2024-01-09)
|
|
30
|
-
|
|
31
|
-
### [0.11.2](https://github.com/scanoss/scanoss.js/compare/v0.11.1...v0.11.2) (2024-01-09)
|
|
32
|
-
|
|
33
|
-
### [0.11.1](https://github.com/scanoss/scanoss.js/compare/v0.11.0...v0.11.1) (2024-01-09)
|
|
34
|
-
|
|
35
|
-
### [0.11.0](https://github.com/scanoss/scanoss.js/compare/v0.10.5...v0.11.0) (2024-01-04)
|
|
36
|
-
|
|
37
|
-
### [0.10.5](https://github.com/scanoss/scanoss.js/compare/v0.10.4...v0.10.5) (2023-12-29)
|
|
38
|
-
|
|
39
|
-
### [0.10.4](https://github.com/scanoss/scanoss.js/compare/v0.10.3...v0.10.4) (2023-12-28)
|
|
40
|
-
|
|
41
|
-
### [0.10.3](https://github.com/scanoss/scanoss.js/compare/v0.10.2...v0.10.3) (2023-12-22)
|
|
42
|
-
|
|
43
|
-
### [0.10.2](https://github.com/scanoss/scanoss.js/compare/v0.10.1...v0.10.2) (2023-12-19)
|
|
44
|
-
|
|
45
|
-
### [0.10.1](https://github.com/scanoss/scanoss.js/compare/v0.10.0...v0.10.1) (2023-11-22)
|
|
46
|
-
|
|
47
|
-
### [0.10.0](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.10.0) (2023-11-22)
|
|
48
|
-
|
|
49
|
-
### [0.9.3](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.9.3) (2023-10-20)
|
|
50
|
-
|
|
51
|
-
### [0.9.2](https://github.com/scanoss/scanoss.js/compare/v0.9.1...v0.9.2) (2023-10-09)
|
|
52
|
-
|
|
53
|
-
### [0.9.1](https://github.com/scanoss/scanoss.js/compare/v0.9.0...v0.9.1) (2023-05-18)
|
|
54
|
-
|
|
55
|
-
### [0.9.0](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.9.0) (2023-04-19)
|
|
56
|
-
|
|
57
|
-
### [0.8.8](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.8.8) (2023-04-16)
|
|
58
|
-
|
|
59
|
-
### [0.8.7](https://github.com/scanoss/scanoss.js/compare/v0.8.6...v0.8.7) (2023-04-12)
|
|
60
|
-
|
|
61
|
-
### [0.8.6](https://github.com/scanoss/scanoss.js/compare/v0.8.5...v0.8.6) (2023-03-28)
|
|
62
|
-
|
|
63
|
-
### [0.8.5](https://github.com/scanoss/scanoss.js/compare/v0.8.0...v0.8.5) (2023-03-17)
|
|
64
|
-
|
|
65
|
-
### [0.8.0](https://github.com/scanoss/scanoss.js/compare/v0.7.8...v0.8.0) (2023-02-20)
|
|
66
|
-
|
|
67
|
-
### [0.7.8](https://github.com/scanoss/scanoss.js/compare/v0.4.0...v0.7.8) (2023-01-25)
|
|
68
|
-
|
|
69
|
-
### [0.4.0](https://github.com/scanoss/scanoss.js/compare/v0.4.0-beta...v0.4.0) (2022-09-30)
|
|
70
|
-
|
|
71
|
-
### [0.4.0-beta](https://github.com/scanoss/scanoss.js/compare/v0.4.0-alpha.0...v0.4.0-beta) (2022-08-31)
|
|
72
|
-
|
|
73
|
-
### [0.4.0-alpha.0](https://github.com/scanoss/scanoss.js/compare/v0.3.0...v0.4.0-alpha.0) (2022-08-19)
|
|
74
|
-
|
|
75
|
-
### [0.3.0](https://github.com/scanoss/scanoss.js/compare/v0.2.18...v0.3.0) (2022-07-02)
|
|
76
|
-
|
|
77
|
-
### [0.2.18](https://github.com/scanoss/scanoss.js/compare/v0.2.16...v0.2.18) (2022-02-23)
|
|
78
|
-
|
|
79
|
-
### [0.2.16](https://github.com/scanoss/scanoss.js/compare/v0.2.14...v0.2.16) (2022-02-14)
|
|
80
|
-
|
|
81
|
-
### [0.2.14](https://github.com/scanoss/scanoss.js/compare/v0.2.10...v0.2.14) (2022-02-09)
|
|
82
|
-
|
|
83
|
-
### [0.2.10](https://github.com/scanoss/scanoss.js/compare/v0.2.8...v0.2.10) (2022-01-11)
|
|
84
|
-
|
|
85
|
-
### [0.2.8](https://github.com/scanoss/scanoss.js/compare/v0.2.6...v0.2.8) (2022-01-10)
|
|
86
|
-
|
|
87
|
-
### [0.2.6](https://github.com/scanoss/scanoss.js/compare/v0.2.4...v0.2.6) (2022-01-06)
|
|
88
|
-
|
|
89
|
-
### [0.2.4](https://github.com/scanoss/scanoss.js/compare/v0.2.2...v0.2.4) (2022-01-05)
|
|
90
|
-
|
|
91
|
-
### 0.2.2 (2021-12-30)
|
|
5
|
+
## [0.16.0] (2025-04-22)
|
|
6
|
+
### Added
|
|
7
|
+
- Added local cryptography library scanning
|
|
92
8
|
|
|
93
9
|
### 0.1.2 (2021-12-28)
|
|
10
|
+
### 0.2.2 (2021-12-30)
|
|
11
|
+
### [0.2.4](https://github.com/scanoss/scanoss.js/compare/v0.2.2...v0.2.4) (2022-01-05)
|
|
12
|
+
### [0.2.6](https://github.com/scanoss/scanoss.js/compare/v0.2.4...v0.2.6) (2022-01-06)
|
|
13
|
+
### [0.2.8](https://github.com/scanoss/scanoss.js/compare/v0.2.6...v0.2.8) (2022-01-10)
|
|
14
|
+
### [0.2.10](https://github.com/scanoss/scanoss.js/compare/v0.2.8...v0.2.10) (2022-01-11)
|
|
15
|
+
### [0.2.14](https://github.com/scanoss/scanoss.js/compare/v0.2.10...v0.2.14) (2022-02-09)
|
|
16
|
+
### [0.2.16](https://github.com/scanoss/scanoss.js/compare/v0.2.14...v0.2.16) (2022-02-14)
|
|
17
|
+
### [0.2.18](https://github.com/scanoss/scanoss.js/compare/v0.2.16...v0.2.18) (2022-02-23)
|
|
18
|
+
### [0.3.0](https://github.com/scanoss/scanoss.js/compare/v0.2.18...v0.3.0) (2022-07-02)
|
|
19
|
+
### [0.4.0-alpha.0](https://github.com/scanoss/scanoss.js/compare/v0.3.0...v0.4.0-alpha.0) (2022-08-19)
|
|
20
|
+
### [0.4.0-beta](https://github.com/scanoss/scanoss.js/compare/v0.4.0-alpha.0...v0.4.0-beta) (2022-08-31)
|
|
21
|
+
### [0.4.0](https://github.com/scanoss/scanoss.js/compare/v0.4.0-beta...v0.4.0) (2022-09-30)
|
|
22
|
+
### [0.7.8](https://github.com/scanoss/scanoss.js/compare/v0.4.0...v0.7.8) (2023-01-25)
|
|
23
|
+
### [0.8.0](https://github.com/scanoss/scanoss.js/compare/v0.7.8...v0.8.0) (2023-02-20)
|
|
24
|
+
### [0.8.5](https://github.com/scanoss/scanoss.js/compare/v0.8.0...v0.8.5) (2023-03-17)
|
|
25
|
+
### [0.8.6](https://github.com/scanoss/scanoss.js/compare/v0.8.5...v0.8.6) (2023-03-28)
|
|
26
|
+
### [0.8.7](https://github.com/scanoss/scanoss.js/compare/v0.8.6...v0.8.7) (2023-04-12)
|
|
27
|
+
### [0.8.8](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.8.8) (2023-04-16)
|
|
28
|
+
### [0.9.0](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.9.0) (2023-04-19)
|
|
29
|
+
### [0.9.1](https://github.com/scanoss/scanoss.js/compare/v0.9.0...v0.9.1) (2023-05-18)
|
|
30
|
+
### [0.9.2](https://github.com/scanoss/scanoss.js/compare/v0.9.1...v0.9.2) (2023-10-09)
|
|
31
|
+
### [0.9.3](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.9.3) (2023-10-20)
|
|
32
|
+
### [0.10.0](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.10.0) (2023-11-22)
|
|
33
|
+
### [0.10.1](https://github.com/scanoss/scanoss.js/compare/v0.10.0...v0.10.1) (2023-11-22)
|
|
34
|
+
### [0.10.2](https://github.com/scanoss/scanoss.js/compare/v0.10.1...v0.10.2) (2023-12-19)
|
|
35
|
+
### [0.10.3](https://github.com/scanoss/scanoss.js/compare/v0.10.2...v0.10.3) (2023-12-22)
|
|
36
|
+
### [0.10.4](https://github.com/scanoss/scanoss.js/compare/v0.10.3...v0.10.4) (2023-12-28)
|
|
37
|
+
### [0.10.5](https://github.com/scanoss/scanoss.js/compare/v0.10.4...v0.10.5) (2023-12-29)
|
|
38
|
+
### [0.11.0](https://github.com/scanoss/scanoss.js/compare/v0.10.5...v0.11.0) (2024-01-04)
|
|
39
|
+
### [0.11.1](https://github.com/scanoss/scanoss.js/compare/v0.11.0...v0.11.1) (2024-01-09)
|
|
40
|
+
### [0.11.2](https://github.com/scanoss/scanoss.js/compare/v0.11.1...v0.11.2) (2024-01-09)
|
|
41
|
+
### [0.11.3](https://github.com/scanoss/scanoss.js/compare/v0.11.2...v0.11.3) (2024-01-09)
|
|
42
|
+
### [0.11.4](https://github.com/scanoss/scanoss.js/compare/v0.11.3...v0.11.4) (2024-04-02)
|
|
43
|
+
### [0.11.5](https://github.com/scanoss/scanoss.js/compare/v0.11.4...v0.11.5) (2024-04-19)
|
|
44
|
+
### [0.12.0](https://github.com/scanoss/scanoss.js/compare/v0.11.5...v0.12.0) (2024-05-06)
|
|
45
|
+
### [0.12.2](https://github.com/scanoss/scanoss.js/compare/v0.12.0...v0.12.2) (2024-05-10)
|
|
46
|
+
### [0.13.0](https://github.com/scanoss/scanoss.js/compare/v0.12.2...v0.13.0) (2024-05-13)
|
|
47
|
+
### [0.13.1](https://github.com/scanoss/scanoss.js/compare/v0.13.0...v0.13.1) (2024-05-15)
|
|
48
|
+
### [0.13.2](https://github.com/scanoss/scanoss.js/compare/v0.13.1...v0.13.2) (2024-05-20)
|
|
49
|
+
### [0.14.0](https://github.com/scanoss/scanoss.js/compare/v0.13.2...v0.14.0) (2024-05-23)
|
|
50
|
+
### [0.14.1](https://github.com/scanoss/scanoss.js/compare/v0.14.0...v0.14.1) (2024-06-05)
|
|
51
|
+
### [0.15.0](https://github.com/scanoss/scanoss.js/compare/v0.14.1...v0.15.0) (2024-07-28)
|
|
52
|
+
### [0.15.1](https://github.com/scanoss/scanoss.js/compare/v0.15.0...v0.15.1) (2024-08-27)
|
|
53
|
+
### [0.15.2](https://github.com/scanoss/scanoss.js/compare/v0.15.1...v0.15.2) (2024-08-29)
|
|
54
|
+
### [0.15.3](https://github.com/scanoss/scanoss.js/compare/v0.15.2...v0.15.3) (2024-11-24)
|
|
55
|
+
### [0.15.4](https://github.com/scanoss/scanoss.js/compare/v0.15.3...v0.15.4) (2024-11-27)
|
|
56
|
+
### [0.15.5](https://github.com/scanoss/scanoss.js/compare/v0.15.4...v0.15.5) (2024-12-30)
|
|
57
|
+
### [0.15.6](https://github.com/scanoss/scanoss.js/compare/v0.15.5...v0.15.6) (2025-01-08)
|
|
58
|
+
### [0.15.7](https://github.com/scanoss/scanoss.js/compare/v0.15.6...v0.15.7) (2025-03-05)
|
|
59
|
+
### [0.16.0](https://github.com/scanoss/scanoss.js/compare/v0.15.7...v0.16.0) (2025-04-22)
|
package/LICENSE
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
SPDX-License-Identifier: MIT
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- Copyright © 2022 Scan Open Source Solutions SL - https://scanoss.com
|
|
5
|
-
-
|
|
6
|
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
- of this software and associated documentation files (the “Software”), to
|
|
8
|
-
- deal in the Software \* without restriction, including without limitation
|
|
9
|
-
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
-
- and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
-
- Software is furnished to do so, subject to the following conditions:
|
|
3
|
+
The MIT License (MIT)
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
Copyright © 2025 Scan Open Source Solutions SL - https://scanoss.com
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the “Software”), to
|
|
9
|
+
deal in the Software without restriction, including without limitation
|
|
10
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
11
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
12
|
+
Software is furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
+
IN THE SOFTWARE.
|
|
15
23
|
|
|
16
|
-
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
-
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
-
- IN THE SOFTWARE.
|
|
23
|
-
\*/
|
package/README.md
CHANGED
|
@@ -38,18 +38,30 @@ Commands:
|
|
|
38
38
|
scan [options] <source> Scan a folder/file
|
|
39
39
|
dep [options] <source> Scan for dependencies
|
|
40
40
|
wfp [options] <source> Generates fingerprints for a folder/file
|
|
41
|
+
crypto [options] <source> Scan local cryptography
|
|
41
42
|
help [command] display help for command
|
|
42
43
|
```
|
|
43
44
|
|
|
44
45
|
### Command `scan`
|
|
46
|
+
* **Quick Analysis**: For a fast and free analysis of your project, simply run:
|
|
47
|
+
`scanoss-js scan -o results.json <source-folder>`
|
|
45
48
|
|
|
46
|
-
*
|
|
49
|
+
* **API Token Scanning**: Use your API token for enhanced scanning capabilities:
|
|
50
|
+
`scanoss-js scan -o results.json --key <your_token> --apiurl <your_apiurl> <source-folder>`
|
|
47
51
|
|
|
52
|
+
* **Dependency Detection**: Include dependency detection in your scan:
|
|
53
|
+
`scanoss-js scan -o results.json --dependencies <source-folder>`
|
|
48
54
|
|
|
49
|
-
*
|
|
55
|
+
* **Cryptography Detection**: Include cryptographic algorithm and library detection:
|
|
56
|
+
`scanoss-js scan results.json --cryptography --key <your_token>`
|
|
50
57
|
|
|
58
|
+
* You can also specify custom algorithm and library detection rules:
|
|
59
|
+
`scanoss-js scan results.json --cryptography --key <your_token> --algorithm-rules <path-to-algorithm-rules.json> --library-rules <path-to-library-rules.json>`
|
|
60
|
+
See examples of [algorithm rules](#example-algorithm-rules-file) and [library rules](#example-library-rules-file) files below.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
> **Note**: Component cryptography scanning is only performed when a token is provided. Without a token, only local cryptography scanning is performed. Custom rules for algorithms and libraries are applied to local cryptography detection in either case.
|
|
51
64
|
|
|
52
|
-
* Include Dependency detection in scanning: `scanoss-js scan -o results.json --dependencies <source-folder>`
|
|
53
65
|
|
|
54
66
|
### Command `wfp`
|
|
55
67
|
* Generate Hashes without analysis: `scanoss-js wfp -o fingerprints.wfp <source-folder>`
|
|
@@ -75,6 +87,66 @@ The manifest files acknowledged during the scanning process are:
|
|
|
75
87
|
* Gradle: build.gradle
|
|
76
88
|
|
|
77
89
|
|
|
90
|
+
### Command `crypto`
|
|
91
|
+
* Focus exclusively on local cryptographic algorithm and library detection:
|
|
92
|
+
```bash
|
|
93
|
+
scanoss-js crypto .
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Us can also specify custom cryptography algorithm detection rules and library detection rules:
|
|
97
|
+
``` bash
|
|
98
|
+
scanoss-js crypto . --algorithm-rules <path-to-algorithm-rules.json> --library-rules <path-to-library-rules.json>
|
|
99
|
+
```
|
|
100
|
+
See examples of [algorithm rules](#example-algorithm-rules-file) and [library rules](#example-library-rules-file) files below.
|
|
101
|
+
|
|
102
|
+
### Example Algorithm Rules File
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
[
|
|
106
|
+
{
|
|
107
|
+
"algorithm": "md5",
|
|
108
|
+
"strength": "128",
|
|
109
|
+
"keywords": [
|
|
110
|
+
"md5_file",
|
|
111
|
+
"md5crypt",
|
|
112
|
+
"md5_block_data_order",
|
|
113
|
+
"ossl_md5_sha1_",
|
|
114
|
+
"MD5_Init"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"algorithm": "crc32",
|
|
119
|
+
"strength": "32",
|
|
120
|
+
"keywords": [
|
|
121
|
+
"..."
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Example Library Rules File
|
|
128
|
+
```json
|
|
129
|
+
[
|
|
130
|
+
{
|
|
131
|
+
"id": "library/webcrypto",
|
|
132
|
+
"name": "Web Cryptography API",
|
|
133
|
+
"description": "A JavaScript API for performing basic cryptographic operations in web applications.",
|
|
134
|
+
"keywords": [
|
|
135
|
+
"window.crypto.subtle",
|
|
136
|
+
"crypto.subtle.",
|
|
137
|
+
"crypto.getRandomValues",
|
|
138
|
+
"NodeWebCrypto",
|
|
139
|
+
"WebCryptoAPI"
|
|
140
|
+
],
|
|
141
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API",
|
|
142
|
+
"category": "library",
|
|
143
|
+
"purl": "pkg:generic/webcrypto",
|
|
144
|
+
"tags": [
|
|
145
|
+
"JavaScript"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
```
|
|
78
150
|
|
|
79
151
|
|
|
80
152
|
## SDK Usage
|
|
@@ -676,8 +676,8 @@
|
|
|
676
676
|
<thead>
|
|
677
677
|
<tr>
|
|
678
678
|
<th>Component</th>
|
|
679
|
-
<th>
|
|
680
|
-
<th>
|
|
679
|
+
<th>Type</th>
|
|
680
|
+
<th>Detected</th>
|
|
681
681
|
</tr>
|
|
682
682
|
</thead>
|
|
683
683
|
<tbody>
|
|
@@ -697,7 +697,8 @@
|
|
|
697
697
|
<thead>
|
|
698
698
|
<tr>
|
|
699
699
|
<th>File</th>
|
|
700
|
-
<th>
|
|
700
|
+
<th>Type</th>
|
|
701
|
+
<th>Detected</th>
|
|
701
702
|
</tr>
|
|
702
703
|
</thead>
|
|
703
704
|
<tbody>
|
|
@@ -708,6 +709,7 @@
|
|
|
708
709
|
<tr>
|
|
709
710
|
<td></td>
|
|
710
711
|
<td></td>
|
|
712
|
+
<td></td>
|
|
711
713
|
</tr>
|
|
712
714
|
</template>
|
|
713
715
|
</div>
|
|
@@ -1178,9 +1180,9 @@
|
|
|
1178
1180
|
|
|
1179
1181
|
for (const crypto of cryptography.components) {
|
|
1180
1182
|
const clon = template.content.cloneNode(true);
|
|
1181
|
-
clon.querySelector('td:nth-child(1)').innerHTML = crypto.
|
|
1182
|
-
clon.querySelector('td:nth-child(2)').innerHTML = crypto.
|
|
1183
|
-
clon.querySelector('td:nth-child(3)').innerHTML = crypto.
|
|
1183
|
+
clon.querySelector('td:nth-child(1)').innerHTML = crypto.source;
|
|
1184
|
+
clon.querySelector('td:nth-child(2)').innerHTML = crypto.type;
|
|
1185
|
+
clon.querySelector('td:nth-child(3)').innerHTML = crypto.values.join(' - ');
|
|
1184
1186
|
table.appendChild(clon);
|
|
1185
1187
|
}
|
|
1186
1188
|
}
|
|
@@ -1195,8 +1197,9 @@
|
|
|
1195
1197
|
|
|
1196
1198
|
for (const crypto of cryptography.files) {
|
|
1197
1199
|
const clon = template.content.cloneNode(true);
|
|
1198
|
-
clon.querySelector('td:nth-child(1)').innerHTML = crypto.
|
|
1199
|
-
clon.querySelector('td:nth-child(2)').innerHTML = crypto.
|
|
1200
|
+
clon.querySelector('td:nth-child(1)').innerHTML = crypto.source;
|
|
1201
|
+
clon.querySelector('td:nth-child(2)').innerHTML = crypto.type;
|
|
1202
|
+
clon.querySelector('td:nth-child(3)').innerHTML = crypto.values.join(' - ');
|
|
1200
1203
|
table.appendChild(clon);
|
|
1201
1204
|
}
|
|
1202
1205
|
}
|