scanoss 0.2.26 → 0.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.
Files changed (158) hide show
  1. package/.github/workflows/reuse.yml +15 -0
  2. package/.github/workflows/scanoss.yml +24 -0
  3. package/.gitignore +0 -1
  4. package/.idea/.gitignore +5 -0
  5. package/.idea/codeStyles/Project.xml +61 -0
  6. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  7. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  8. package/.idea/modules.xml +8 -0
  9. package/.idea/scanoss.js.iml +12 -0
  10. package/.idea/vcs.xml +6 -0
  11. package/.idea/workspace.xml +366 -0
  12. package/.nyc_output/a25d3ac4-ee71-4c5e-926e-3a17714555cd.json +1 -0
  13. package/.nyc_output/processinfo/a25d3ac4-ee71-4c5e-926e-3a17714555cd.json +1 -0
  14. package/.nyc_output/processinfo/index.json +1 -0
  15. package/.reuse/dep5 +16 -0
  16. package/LICENSES/CC0-1.0.txt +121 -0
  17. package/LICENSES/MIT.txt +9 -0
  18. package/README.md +9 -0
  19. package/build/main/bin/cli-bin.js +5 -3
  20. package/build/main/commands/dep.js +1 -2
  21. package/build/main/commands/fingerprint.js +20 -12
  22. package/build/main/commands/helpers.js +1 -2
  23. package/build/main/commands/scan.js +7 -2
  24. package/build/main/index.js +1 -2
  25. package/build/main/lib/dependencies/DependencyScanner.d.ts +1 -1
  26. package/build/main/lib/dependencies/DependencyScanner.js +23 -12
  27. package/build/main/lib/dependencies/DependencyScannerCfg.js +1 -2
  28. package/build/main/lib/dependencies/DependencyTypes.js +0 -1
  29. package/build/main/lib/dependencies/LocalDependency/DependencyTypes.js +0 -1
  30. package/build/main/lib/dependencies/LocalDependency/LocalDependency.js +3 -2
  31. package/build/main/lib/dependencies/LocalDependency/parsers/golangParser.d.ts +1 -0
  32. package/build/main/lib/dependencies/LocalDependency/parsers/golangParser.js +50 -16
  33. package/build/main/lib/dependencies/LocalDependency/parsers/mavenParser.js +130 -15
  34. package/build/main/lib/dependencies/LocalDependency/parsers/npmParser.d.ts +10 -0
  35. package/build/main/lib/dependencies/LocalDependency/parsers/npmParser.js +146 -10
  36. package/build/main/lib/dependencies/LocalDependency/parsers/pyParser.js +1 -2
  37. package/build/main/lib/dependencies/LocalDependency/parsers/rubyParser.js +1 -2
  38. package/build/main/lib/dependencies/LocalDependency/parsers/utils.js +1 -2
  39. package/build/main/lib/filters/defaultFilter.js +1 -2
  40. package/build/main/lib/filters/filtering.js +1 -2
  41. package/build/main/lib/grpc/GrpcDependencyService.js +1 -2
  42. package/build/main/lib/grpc/scanoss/api/components/v2/scanoss-components_grpc_pb.d.ts +62 -0
  43. package/build/main/lib/grpc/scanoss/api/components/v2/scanoss-components_grpc_pb.js +128 -0
  44. package/build/main/lib/grpc/scanoss/api/components/v2/scanoss-components_pb.d.ts +1 -0
  45. package/build/main/lib/grpc/scanoss/api/components/v2/scanoss-components_pb.js +1403 -0
  46. package/build/main/lib/scanner/Dispatcher/DispatchableItem.d.ts +14 -5
  47. package/build/main/lib/scanner/Dispatcher/DispatchableItem.js +30 -10
  48. package/build/main/lib/scanner/Dispatcher/Dispatcher.d.ts +2 -2
  49. package/build/main/lib/scanner/Dispatcher/Dispatcher.js +10 -15
  50. package/build/main/lib/scanner/Dispatcher/DispatcherResponse.js +1 -2
  51. package/build/main/lib/scanner/Dispatcher/GlobalControllerAborter.js +1 -2
  52. package/build/main/lib/scanner/Scannable/ScannableItem.js +1 -2
  53. package/build/main/lib/scanner/Scanner.js +13 -9
  54. package/build/main/lib/scanner/ScannerCfg.js +2 -3
  55. package/build/main/lib/scanner/ScannerQueue.d.ts +3 -0
  56. package/build/main/lib/scanner/ScannerQueue.js +8 -0
  57. package/build/main/lib/scanner/ScannerTypes.d.ts +9 -2
  58. package/build/main/lib/scanner/ScannerTypes.js +8 -3
  59. package/build/main/lib/scanner/WfpProvider/FingerprintPackage.d.ts +9 -0
  60. package/build/main/lib/scanner/WfpProvider/FingerprintPackage.js +31 -0
  61. package/build/main/lib/scanner/WfpProvider/WfpCalculator/WfpCalculator.js +178 -21
  62. package/build/main/lib/scanner/WfpProvider/WfpCalculator/Winnower.d.ts +3 -0
  63. package/build/main/lib/scanner/WfpProvider/WfpCalculator/Winnower.js +211 -0
  64. package/build/main/lib/scanner/WfpProvider/WfpProvider.d.ts +2 -2
  65. package/build/main/lib/scanner/WfpProvider/WfpProvider.js +6 -7
  66. package/build/main/lib/scanner/WfpProvider/WfpSplitter/WfpSplitter.js +1 -2
  67. package/build/main/lib/tree/File.js +1 -2
  68. package/build/main/lib/tree/Folder.js +1 -2
  69. package/build/main/lib/tree/Node.js +1 -2
  70. package/build/main/lib/tree/Tree.js +1 -2
  71. package/build/module/bin/cli-bin.js +5 -2
  72. package/build/module/commands/fingerprint.js +25 -16
  73. package/build/module/commands/scan.js +8 -2
  74. package/build/module/lib/dependencies/DependencyScanner.d.ts +1 -1
  75. package/build/module/lib/dependencies/DependencyScanner.js +23 -11
  76. package/build/module/lib/dependencies/LocalDependency/LocalDependency.js +5 -3
  77. package/build/module/lib/dependencies/LocalDependency/parsers/golangParser.d.ts +1 -0
  78. package/build/module/lib/dependencies/LocalDependency/parsers/golangParser.js +47 -14
  79. package/build/module/lib/dependencies/LocalDependency/parsers/mavenParser.js +130 -14
  80. package/build/module/lib/dependencies/LocalDependency/parsers/npmParser.d.ts +10 -0
  81. package/build/module/lib/dependencies/LocalDependency/parsers/npmParser.js +140 -8
  82. package/build/module/lib/grpc/scanoss/api/components/v2/scanoss-components_grpc_pb.d.ts +62 -0
  83. package/build/module/lib/grpc/scanoss/api/components/v2/scanoss-components_grpc_pb.js +128 -0
  84. package/build/module/lib/grpc/scanoss/api/components/v2/scanoss-components_pb.d.ts +1 -0
  85. package/build/module/lib/grpc/scanoss/api/components/v2/scanoss-components_pb.js +1403 -0
  86. package/build/module/lib/scanner/Dispatcher/DispatchableItem.d.ts +14 -5
  87. package/build/module/lib/scanner/Dispatcher/DispatchableItem.js +32 -10
  88. package/build/module/lib/scanner/Dispatcher/Dispatcher.d.ts +2 -2
  89. package/build/module/lib/scanner/Dispatcher/Dispatcher.js +10 -14
  90. package/build/module/lib/scanner/Scanner.js +12 -8
  91. package/build/module/lib/scanner/ScannerCfg.js +2 -2
  92. package/build/module/lib/scanner/ScannerQueue.d.ts +3 -0
  93. package/build/module/lib/scanner/ScannerQueue.js +4 -0
  94. package/build/module/lib/scanner/ScannerTypes.d.ts +9 -2
  95. package/build/module/lib/scanner/ScannerTypes.js +7 -1
  96. package/build/module/lib/scanner/WfpProvider/FingerprintPackage.d.ts +9 -0
  97. package/build/module/lib/scanner/WfpProvider/FingerprintPackage.js +30 -0
  98. package/build/module/lib/scanner/WfpProvider/WfpCalculator/WfpCalculator.js +178 -20
  99. package/build/module/lib/scanner/WfpProvider/WfpCalculator/Winnower.d.ts +3 -0
  100. package/build/module/lib/scanner/WfpProvider/WfpCalculator/Winnower.js +211 -0
  101. package/build/module/lib/scanner/WfpProvider/WfpProvider.d.ts +2 -2
  102. package/build/module/lib/scanner/WfpProvider/WfpProvider.js +6 -6
  103. package/build/tsconfig.module.tsbuildinfo +1 -1
  104. package/build/tsconfig.tsbuildinfo +1 -1
  105. package/package.json +6 -17
  106. package/src/bin/cli-bin.ts +4 -1
  107. package/src/commands/fingerprint.ts +26 -17
  108. package/src/commands/scan.ts +16 -3
  109. package/src/lib/dependencies/DependencyScanner.ts +20 -13
  110. package/src/lib/dependencies/LocalDependency/LocalDependency.ts +8 -2
  111. package/src/lib/dependencies/LocalDependency/parsers/golangParser.ts +67 -15
  112. package/src/lib/dependencies/LocalDependency/parsers/mavenParser.ts +143 -16
  113. package/src/lib/dependencies/LocalDependency/parsers/npmParser.ts +182 -7
  114. package/src/lib/scanner/Dispatcher/DispatchableItem.ts +45 -11
  115. package/src/lib/scanner/Dispatcher/Dispatcher.ts +11 -14
  116. package/src/lib/scanner/Scanner.ts +17 -13
  117. package/src/lib/scanner/ScannerCfg.ts +2 -1
  118. package/src/lib/scanner/ScannerTypes.ts +10 -2
  119. package/src/lib/scanner/WfpProvider/{FingerprintPacket.ts → FingerprintPackage.ts} +4 -14
  120. package/src/lib/scanner/WfpProvider/WfpCalculator/WfpCalculator.ts +177 -20
  121. package/src/lib/scanner/WfpProvider/WfpProvider.ts +5 -5
  122. package/tests/WfpCalculator.spec.ts +103 -0
  123. package/tests/data/dependencies/Gemfile/1/Gemfile +6 -0
  124. package/tests/data/dependencies/Gemfile/1/Gemfile~ +0 -0
  125. package/tests/data/dependencies/Gemfile/2/Gemfile +3 -0
  126. package/tests/data/dependencies/Gemfile/2/Gemfile~ +6 -0
  127. package/tests/data/dependencies/Gemfile/3/Gemfile +7 -0
  128. package/tests/data/dependencies/Gemfile/3/Gemfile~ +6 -0
  129. package/tests/data/dependencies/Gemfile/4/Gemfile +31 -0
  130. package/tests/data/dependencies/Gemfile/4/Gemfile~ +7 -0
  131. package/tests/data/dependencies/Gemfile.lock/1/Gemfile.lock +180 -0
  132. package/tests/data/dependencies/Gemfile.lock/2/Gemfile.lock +60 -0
  133. package/tests/data/dependencies/Gemfile.lock/2/Gemfile.lock~ +0 -0
  134. package/tests/data/dependencies/go.sum/1/go.sum +119 -0
  135. package/tests/data/dependencies/go.sum/depJSON.sh +23 -0
  136. package/tests/data/dependencies/package-lock/1/package-lock.json +715 -0
  137. package/tests/data/dependencies/package-lock/2/package-lock.json +32069 -0
  138. package/tests/data/dependencies/package-lock/3/package-lock.json +9013 -0
  139. package/tests/data/dependencies/pom.xml/1/pom.xml +162 -0
  140. package/tests/data/dependencies/yarn-lock/generate_expected_output.sh +4 -0
  141. package/tests/data/dependencies/yarn-lock/v1/yarn.lock +50 -0
  142. package/tests/data/dependencies/yarn-lock/v1/yarn.lock-expected +13 -0
  143. package/tests/data/dependencies/yarn-lock/v1-complex/yarn.lock +27 -0
  144. package/tests/data/dependencies/yarn-lock/v1-complex/yarn.lock-expected +8 -0
  145. package/tests/data/dependencies/yarn-lock/v1-complex2/yarn.lock +220 -0
  146. package/tests/data/dependencies/yarn-lock/v2/yarn.lock +31 -0
  147. package/tests/data/dependencies/yarn-lock/v2/yarn.lock-expected +57 -0
  148. package/tests/data/dependencies/yarn-lock/v2-local/yarn.lock +11 -0
  149. package/tests/data/dependencies/yarn-lock/v2-local/yarn.lock-expected +27204 -0
  150. package/tests/data/scanner/file1.c +41 -0
  151. package/tests/data/scanner/file2.go +87 -0
  152. package/tests/dependencies/golangParser.goModParser.specs.ts +146 -0
  153. package/tests/dependencies/npmParser.spec.ts +133 -0
  154. package/tsconfig.json +4 -3
  155. package/yarn.lock +4596 -5321
  156. package/examples/defaultFilter.json +0 -203
  157. package/package-lock.json +0 -18588
  158. package/src/lib/scanner/Winnower/WinnowerExtractor.ts +0 -37
@@ -0,0 +1,15 @@
1
+ # SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
2
+ #
3
+ # SPDX-License-Identifier: CC0-1.0
4
+
5
+ name: REUSE Compliance Check
6
+
7
+ on: [push, pull_request]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: REUSE Compliance Check
15
+ uses: fsfe/reuse-action@v1.1.1
@@ -0,0 +1,24 @@
1
+ name: SCANOSS CI Scan
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+
11
+ build:
12
+
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+
18
+ - name: Scan
19
+ run: docker run -v "$(pwd)":"/scanoss" ghcr.io/scanoss/scanoss-py scan --output output.json .
20
+
21
+ - uses: actions/upload-artifact@v3
22
+ with:
23
+ name: output.json
24
+ path: output.json
package/.gitignore CHANGED
@@ -4,7 +4,6 @@
4
4
  .circleci
5
5
  build
6
6
  node_modules
7
- test
8
7
  src/**.js
9
8
  coverage
10
9
  *.log
@@ -0,0 +1,5 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
@@ -0,0 +1,61 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <HTMLCodeStyleSettings>
4
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
+ <option name="HTML_QUOTE_STYLE" value="Single" />
6
+ <option name="HTML_ENFORCE_QUOTES" value="true" />
7
+ </HTMLCodeStyleSettings>
8
+ <JSCodeStyleSettings version="0">
9
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
10
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
11
+ <option name="USE_DOUBLE_QUOTES" value="false" />
12
+ <option name="FORCE_QUOTE_STYlE" value="true" />
13
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
14
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
15
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
16
+ </JSCodeStyleSettings>
17
+ <TypeScriptCodeStyleSettings version="0">
18
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
19
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
20
+ <option name="USE_DOUBLE_QUOTES" value="false" />
21
+ <option name="FORCE_QUOTE_STYlE" value="true" />
22
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
23
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
24
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
25
+ </TypeScriptCodeStyleSettings>
26
+ <VueCodeStyleSettings>
27
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
28
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
29
+ </VueCodeStyleSettings>
30
+ <codeStyleSettings language="HTML">
31
+ <option name="SOFT_MARGINS" value="80" />
32
+ <indentOptions>
33
+ <option name="INDENT_SIZE" value="2" />
34
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
35
+ <option name="TAB_SIZE" value="2" />
36
+ </indentOptions>
37
+ </codeStyleSettings>
38
+ <codeStyleSettings language="JavaScript">
39
+ <option name="SOFT_MARGINS" value="80" />
40
+ <indentOptions>
41
+ <option name="INDENT_SIZE" value="2" />
42
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
43
+ <option name="TAB_SIZE" value="2" />
44
+ </indentOptions>
45
+ </codeStyleSettings>
46
+ <codeStyleSettings language="TypeScript">
47
+ <option name="SOFT_MARGINS" value="80" />
48
+ <indentOptions>
49
+ <option name="INDENT_SIZE" value="2" />
50
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
51
+ <option name="TAB_SIZE" value="2" />
52
+ </indentOptions>
53
+ </codeStyleSettings>
54
+ <codeStyleSettings language="Vue">
55
+ <option name="SOFT_MARGINS" value="80" />
56
+ <indentOptions>
57
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
58
+ </indentOptions>
59
+ </codeStyleSettings>
60
+ </code_scheme>
61
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/scanoss.js.iml" filepath="$PROJECT_DIR$/.idea/scanoss.js.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,366 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="0ac507d1-fb77-4a7e-8a1c-824548785ccb" name="Changes" comment="* Add yarn.lock test and fix minors bugs&#10;* Add skeleton for generate expected output in test with scancode" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="Git.Settings">
14
+ <option name="RECENT_BRANCH_BY_REPOSITORY">
15
+ <map>
16
+ <entry key="$PROJECT_DIR$" value="main" />
17
+ </map>
18
+ </option>
19
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
20
+ </component>
21
+ <component name="HighlightingSettingsPerFile">
22
+ <setting file="file://$PROJECT_DIR$/.gitignore" root0="FORCE_HIGHLIGHTING" />
23
+ <setting file="file://$PROJECT_DIR$/.reuse/dep5" root0="FORCE_HIGHLIGHTING" />
24
+ <setting file="file://$PROJECT_DIR$/package.json" root0="FORCE_HIGHLIGHTING" />
25
+ <setting file="file://$PROJECT_DIR$/src/bin/cli-bin.ts" root0="FORCE_HIGHLIGHTING" />
26
+ <setting file="file://$PROJECT_DIR$/src/commands/scan.ts" root0="FORCE_HIGHLIGHTING" />
27
+ <setting file="file://$PROJECT_DIR$/src/index.ts" root0="FORCE_HIGHLIGHTING" />
28
+ <setting file="file://$PROJECT_DIR$/src/lib/dependencies/LocalDependency/DependencyTypes.ts" root0="FORCE_HIGHLIGHTING" />
29
+ <setting file="file://$PROJECT_DIR$/src/lib/dependencies/LocalDependency/LocalDependency.ts" root0="FORCE_HIGHLIGHTING" />
30
+ <setting file="file://$PROJECT_DIR$/src/lib/dependencies/LocalDependency/parsers/mavenParser.ts" root0="FORCE_HIGHLIGHTING" />
31
+ <setting file="file://$PROJECT_DIR$/src/lib/dependencies/LocalDependency/parsers/npmParser.ts" root0="FORCE_HIGHLIGHTING" />
32
+ <setting file="file://$PROJECT_DIR$/src/lib/scanner/WfpProvider/FingerprintPackage.ts" root0="FORCE_HIGHLIGHTING" />
33
+ <setting file="file://$PROJECT_DIR$/src/lib/scanner/WfpProvider/WfpCalculator/WfpCalculator.ts" root0="FORCE_HIGHLIGHTING" />
34
+ <setting file="file://$PROJECT_DIR$/src/lib/scanner/WfpProvider/WfpProvider.ts" root0="FORCE_HIGHLIGHTING" />
35
+ <setting file="file://$PROJECT_DIR$/src/lib/tree/File.ts" root0="FORCE_HIGHLIGHTING" />
36
+ <setting file="file://$PROJECT_DIR$/src/lib/tree/Folder.ts" root0="FORCE_HIGHLIGHTING" />
37
+ <setting file="file://$PROJECT_DIR$/src/lib/tree/Tree.ts" root0="FORCE_HIGHLIGHTING" />
38
+ </component>
39
+ <component name="MarkdownSettingsMigration">
40
+ <option name="stateVersion" value="1" />
41
+ </component>
42
+ <component name="ProjectId" id="28NwqMrRNzf1WmRliDY1hQDlsTG" />
43
+ <component name="ProjectViewState">
44
+ <option name="hideEmptyMiddlePackages" value="true" />
45
+ <option name="showLibraryContents" value="true" />
46
+ </component>
47
+ <component name="PropertiesComponent">{
48
+ &quot;keyToString&quot;: {
49
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
50
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
51
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
52
+ &quot;eslint.code.style.apply.dismiss&quot;: &quot;true&quot;,
53
+ &quot;last_opened_file_path&quot;: &quot;/home/ubuntu/Projects/SCANOSS/scanoss.js/tests/data/dependencies/yarn-lock/v1-complex2&quot;,
54
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
55
+ &quot;node.js.detected.package.standard&quot;: &quot;true&quot;,
56
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
57
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
58
+ &quot;node.js.selected.package.standard&quot;: &quot;&quot;,
59
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
60
+ &quot;nodejs.mocha.mocha_node_package_dir&quot;: &quot;/home/ubuntu/Projects/SCANOSS/scanoss.js/node_modules/mocha&quot;,
61
+ &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
62
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.lookFeel&quot;,
63
+ &quot;ts.external.directory.path&quot;: &quot;/home/ubuntu/Projects/SCANOSS/scanoss.js/node_modules/typescript/lib&quot;,
64
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
65
+ }
66
+ }</component>
67
+ <component name="RecentsManager">
68
+ <key name="CopyFile.RECENT_KEYS">
69
+ <recent name="$PROJECT_DIR$/tests/data/dependencies/yarn-lock/v1-complex2" />
70
+ <recent name="$PROJECT_DIR$/tests/data/dependencies" />
71
+ <recent name="$PROJECT_DIR$/tests/data/dependencies/yarn.lock/2" />
72
+ <recent name="$PROJECT_DIR$/tests/data/dependencies/data/package-lock/3" />
73
+ <recent name="$PROJECT_DIR$/tests/data/dependencies/data/yarn.lock/1" />
74
+ </key>
75
+ <key name="MoveFile.RECENT_KEYS">
76
+ <recent name="$PROJECT_DIR$/tests/data/dependencies" />
77
+ <recent name="$PROJECT_DIR$" />
78
+ <recent name="$PROJECT_DIR$/src" />
79
+ <recent name="$PROJECT_DIR$/tests" />
80
+ <recent name="$PROJECT_DIR$/test/data" />
81
+ </key>
82
+ </component>
83
+ <component name="RunManager" selected="Mocha.test">
84
+ <configuration name="depJSON.sh" type="ShConfigurationType" temporary="true">
85
+ <option name="SCRIPT_TEXT" value="" />
86
+ <option name="INDEPENDENT_SCRIPT_PATH" value="true" />
87
+ <option name="SCRIPT_PATH" value="$PROJECT_DIR$/tests/data/dependencies/go.sum/depJSON.sh" />
88
+ <option name="SCRIPT_OPTIONS" value="" />
89
+ <option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
90
+ <option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$/tests/data/dependencies/go.sum" />
91
+ <option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
92
+ <option name="INTERPRETER_PATH" value="/bin/bash" />
93
+ <option name="INTERPRETER_OPTIONS" value="" />
94
+ <option name="EXECUTE_IN_TERMINAL" value="true" />
95
+ <option name="EXECUTE_SCRIPT_FILE" value="true" />
96
+ <envs />
97
+ <method v="2" />
98
+ </configuration>
99
+ <configuration name="Suit test for yarn lock files.Testing yarn lock file v1 complex" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
100
+ <node-interpreter>project</node-interpreter>
101
+ <node-options />
102
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
103
+ <working-directory>$PROJECT_DIR$</working-directory>
104
+ <pass-parent-env>true</pass-parent-env>
105
+ <ui>bdd</ui>
106
+ <extra-mocha-options>--require ts-node/register</extra-mocha-options>
107
+ <test-kind>TEST</test-kind>
108
+ <test-file>$PROJECT_DIR$/tests/dependencies/npmParser.spec.ts</test-file>
109
+ <test-names>
110
+ <name value="Suit test for yarn lock files" />
111
+ <name value="Testing yarn lock file v1 complex" />
112
+ </test-names>
113
+ <method v="2" />
114
+ </configuration>
115
+ <configuration name="Suit test for yarn lock files.Testing yarn lock file v1" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
116
+ <node-interpreter>project</node-interpreter>
117
+ <node-options />
118
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
119
+ <working-directory>$PROJECT_DIR$</working-directory>
120
+ <pass-parent-env>true</pass-parent-env>
121
+ <ui>bdd</ui>
122
+ <extra-mocha-options>--require ts-node/register</extra-mocha-options>
123
+ <test-kind>TEST</test-kind>
124
+ <test-file>$PROJECT_DIR$/tests/dependencies/npmParser.spec.ts</test-file>
125
+ <test-names>
126
+ <name value="Suit test for yarn lock files" />
127
+ <name value="Testing yarn lock file v1" />
128
+ </test-names>
129
+ <method v="2" />
130
+ </configuration>
131
+ <configuration name="test" type="mocha-javascript-test-runner">
132
+ <node-interpreter>project</node-interpreter>
133
+ <node-options />
134
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
135
+ <working-directory>$PROJECT_DIR$</working-directory>
136
+ <pass-parent-env>true</pass-parent-env>
137
+ <ui>bdd</ui>
138
+ <extra-mocha-options>-r ts-node/register</extra-mocha-options>
139
+ <test-kind>PATTERN</test-kind>
140
+ <test-pattern>tests/**/*.ts</test-pattern>
141
+ <method v="2" />
142
+ </configuration>
143
+ <configuration name="tests/dependencies/golangParser.goModParser.specs.ts" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
144
+ <node-interpreter>project</node-interpreter>
145
+ <node-options />
146
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
147
+ <working-directory>$PROJECT_DIR$</working-directory>
148
+ <pass-parent-env>true</pass-parent-env>
149
+ <ui>bdd</ui>
150
+ <extra-mocha-options>--require ts-node/register</extra-mocha-options>
151
+ <test-kind>TEST_FILE</test-kind>
152
+ <test-file>$PROJECT_DIR$/tests/dependencies/golangParser.goModParser.specs.ts</test-file>
153
+ <method v="2" />
154
+ </configuration>
155
+ <configuration name="tests/dependencies/npmParser.packagelockParser.spec.ts" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
156
+ <node-interpreter>project</node-interpreter>
157
+ <node-options />
158
+ <mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
159
+ <working-directory>$PROJECT_DIR$</working-directory>
160
+ <pass-parent-env>true</pass-parent-env>
161
+ <ui>bdd</ui>
162
+ <extra-mocha-options>-r ts-node/register</extra-mocha-options>
163
+ <test-kind>TEST_FILE</test-kind>
164
+ <test-file>$PROJECT_DIR$/tests/dependencies/npmParser.packagelockParser.spec.ts</test-file>
165
+ <method v="2" />
166
+ </configuration>
167
+ <list>
168
+ <item itemvalue="Mocha.test" />
169
+ <item itemvalue="Mocha.Suit test for yarn lock files.Testing yarn lock file v1" />
170
+ <item itemvalue="Mocha.Suit test for yarn lock files.Testing yarn lock file v1 complex" />
171
+ <item itemvalue="Mocha.tests/dependencies/golangParser.goModParser.specs.ts" />
172
+ <item itemvalue="Mocha.tests/dependencies/npmParser.packagelockParser.spec.ts" />
173
+ <item itemvalue="Shell Script.depJSON.sh" />
174
+ </list>
175
+ <recent_temporary>
176
+ <list>
177
+ <item itemvalue="Mocha.Suit test for yarn lock files.Testing yarn lock file v1" />
178
+ <item itemvalue="Mocha.Suit test for yarn lock files.Testing yarn lock file v1 complex" />
179
+ <item itemvalue="Shell Script.depJSON.sh" />
180
+ <item itemvalue="Mocha.tests/dependencies/golangParser.goModParser.specs.ts" />
181
+ <item itemvalue="Mocha.tests/dependencies/npmParser.packagelockParser.spec.ts" />
182
+ </list>
183
+ </recent_temporary>
184
+ </component>
185
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
186
+ <component name="TaskManager">
187
+ <task active="true" id="Default" summary="Default task">
188
+ <changelist id="0ac507d1-fb77-4a7e-8a1c-824548785ccb" name="Changes" comment="" />
189
+ <created>1651070540410</created>
190
+ <option name="number" value="Default" />
191
+ <option name="presentableId" value="Default" />
192
+ <updated>1651070540410</updated>
193
+ <workItem from="1651070541670" duration="3451000" />
194
+ <workItem from="1651569756485" duration="1225000" />
195
+ <workItem from="1651663237297" duration="13457000" />
196
+ <workItem from="1652785069251" duration="779000" />
197
+ <workItem from="1652809087706" duration="4774000" />
198
+ <workItem from="1654506242138" duration="36000" />
199
+ <workItem from="1654705576296" duration="318000" />
200
+ <workItem from="1654707874890" duration="1599000" />
201
+ <workItem from="1655390694310" duration="750000" />
202
+ <workItem from="1655458490891" duration="14000" />
203
+ <workItem from="1655465582917" duration="1843000" />
204
+ <workItem from="1655735190951" duration="17000" />
205
+ <workItem from="1656002006275" duration="1350000" />
206
+ <workItem from="1656053431632" duration="3891000" />
207
+ <workItem from="1656082177370" duration="25000" />
208
+ <workItem from="1656320489753" duration="5000" />
209
+ <workItem from="1656325489065" duration="2298000" />
210
+ <workItem from="1656399893527" duration="30641000" />
211
+ <workItem from="1656486078326" duration="21723000" />
212
+ <workItem from="1656572884873" duration="19109000" />
213
+ <workItem from="1656924556940" duration="2788000" />
214
+ <workItem from="1657186595141" duration="182000" />
215
+ <workItem from="1657187130551" duration="716000" />
216
+ <workItem from="1657616968841" duration="704000" />
217
+ <workItem from="1657706892745" duration="36000" />
218
+ <workItem from="1657873064121" duration="27264000" />
219
+ <workItem from="1658142856075" duration="5233000" />
220
+ <workItem from="1658161705544" duration="14837000" />
221
+ <workItem from="1658240215822" duration="4076000" />
222
+ <workItem from="1658309793309" duration="4831000" />
223
+ <workItem from="1658338301161" duration="5824000" />
224
+ <workItem from="1658393685030" duration="1015000" />
225
+ <workItem from="1658402084211" duration="11846000" />
226
+ <workItem from="1658422709014" duration="2701000" />
227
+ </task>
228
+ <task id="LOCAL-00001" summary="Keep version parsed on empty response">
229
+ <created>1656062780722</created>
230
+ <option name="number" value="00001" />
231
+ <option name="presentableId" value="LOCAL-00001" />
232
+ <option name="project" value="LOCAL" />
233
+ <updated>1656062780722</updated>
234
+ </task>
235
+ <task id="LOCAL-00002" summary="Added HPSM algorithm">
236
+ <created>1656517576316</created>
237
+ <option name="number" value="00002" />
238
+ <option name="presentableId" value="LOCAL-00002" />
239
+ <option name="project" value="LOCAL" />
240
+ <updated>1656517576316</updated>
241
+ </task>
242
+ <task id="LOCAL-00003" summary="Added comments in crc8 algorithm and tidy functions">
243
+ <created>1656575009148</created>
244
+ <option name="number" value="00003" />
245
+ <option name="presentableId" value="LOCAL-00003" />
246
+ <option name="project" value="LOCAL" />
247
+ <updated>1656575009148</updated>
248
+ </task>
249
+ <task id="LOCAL-00004" summary="* Added test suit for Winnower Class&#10;* Added hpsm option to CLI">
250
+ <created>1656594508647</created>
251
+ <option name="number" value="00004" />
252
+ <option name="presentableId" value="LOCAL-00004" />
253
+ <option name="project" value="LOCAL" />
254
+ <updated>1656594508647</updated>
255
+ </task>
256
+ <task id="LOCAL-00005" summary="* Added support for dependencies package-lock.json, go.sum&#10;* Added testing for new dependencies parser">
257
+ <created>1657906728599</created>
258
+ <option name="number" value="00005" />
259
+ <option name="presentableId" value="LOCAL-00005" />
260
+ <option name="project" value="LOCAL" />
261
+ <updated>1657906728599</updated>
262
+ </task>
263
+ <task id="LOCAL-00006" summary="* Fix go.sum package URL JS issue&#10;* Added skeleton for yarn.lock parser&#10;* Added test for yarn.lock">
264
+ <created>1658247438086</created>
265
+ <option name="number" value="00006" />
266
+ <option name="presentableId" value="LOCAL-00006" />
267
+ <option name="project" value="LOCAL" />
268
+ <updated>1658247438086</updated>
269
+ </task>
270
+ <task id="LOCAL-00007" summary="* Finish yarn.lock parser (V1)">
271
+ <created>1658344000792</created>
272
+ <option name="number" value="00007" />
273
+ <option name="presentableId" value="LOCAL-00007" />
274
+ <option name="project" value="LOCAL" />
275
+ <updated>1658344000793</updated>
276
+ </task>
277
+ <task id="LOCAL-00008" summary="* Add yarn.lock, go.sum parser to map">
278
+ <created>1658394160622</created>
279
+ <option name="number" value="00008" />
280
+ <option name="presentableId" value="LOCAL-00008" />
281
+ <option name="project" value="LOCAL" />
282
+ <updated>1658394160622</updated>
283
+ </task>
284
+ <task id="LOCAL-00009" summary="* Add yarn.lock test and fix minors bugs&#10;* Add skeleton for generate expected output in test with scancode">
285
+ <created>1658421300230</created>
286
+ <option name="number" value="00009" />
287
+ <option name="presentableId" value="LOCAL-00009" />
288
+ <option name="project" value="LOCAL" />
289
+ <updated>1658421300230</updated>
290
+ </task>
291
+ <option name="localTasksCounter" value="10" />
292
+ <servers />
293
+ </component>
294
+ <component name="TypeScriptGeneratedFilesManager">
295
+ <option name="version" value="3" />
296
+ <option name="exactExcludedFiles">
297
+ <list>
298
+ <option value="$PROJECT_DIR$/src/index.js" />
299
+ </list>
300
+ </option>
301
+ </component>
302
+ <component name="Vcs.Log.Tabs.Properties">
303
+ <option name="TAB_STATES">
304
+ <map>
305
+ <entry key="MAIN">
306
+ <value>
307
+ <State />
308
+ </value>
309
+ </entry>
310
+ </map>
311
+ </option>
312
+ </component>
313
+ <component name="VcsManagerConfiguration">
314
+ <MESSAGE value="Keep version parsed on empty response" />
315
+ <MESSAGE value="Added HPSM algorithm" />
316
+ <MESSAGE value="Added comments in crc8 algorithm and tidy functions" />
317
+ <MESSAGE value="* Added test suit for Winnower Class&#10;* Added hpsm option to CLI" />
318
+ <MESSAGE value="* Added support for dependencies package-lock.json, go.sum&#10;* Added testing for new dependencies parser" />
319
+ <MESSAGE value="* Fix go.sum package URL JS issue&#10;* Added skeleton for yarn.lock parser&#10;* Added test for yarn.lock" />
320
+ <MESSAGE value="* Finish yarn.lock parser (V1)" />
321
+ <MESSAGE value="* Add yarn.lock, go.sum parser to map" />
322
+ <MESSAGE value="* Add yarn.lock test and fix minors bugs&#10;* Add skeleton for generate expected output in test with scancode" />
323
+ <option name="LAST_COMMIT_MESSAGE" value="* Add yarn.lock test and fix minors bugs&#10;* Add skeleton for generate expected output in test with scancode" />
324
+ </component>
325
+ <component name="XDebuggerManager">
326
+ <breakpoint-manager>
327
+ <breakpoints>
328
+ <line-breakpoint enabled="true" type="javascript">
329
+ <url>file://$PROJECT_DIR$/src/lib/dependencies/LocalDependency/parsers/npmParser.ts</url>
330
+ <line>225</line>
331
+ <option name="timeStamp" value="42" />
332
+ </line-breakpoint>
333
+ <line-breakpoint enabled="true" type="javascript">
334
+ <url>file://$PROJECT_DIR$/tests/dependencies/npmParser.spec.ts</url>
335
+ <line>125</line>
336
+ <option name="timeStamp" value="51" />
337
+ </line-breakpoint>
338
+ <line-breakpoint enabled="true" type="javascript">
339
+ <url>file://$PROJECT_DIR$/tests/dependencies/npmParser.spec.ts</url>
340
+ <line>117</line>
341
+ <option name="timeStamp" value="52" />
342
+ </line-breakpoint>
343
+ </breakpoints>
344
+ <default-breakpoints>
345
+ <breakpoint enabled="true" type="javascript-exception" />
346
+ </default-breakpoints>
347
+ </breakpoint-manager>
348
+ <watches-manager>
349
+ <configuration name="NodeJSConfigurationType">
350
+ <watch expression="crc8_MAXIM_DOW_Buffer(arrayNormalized)" />
351
+ <watch expression="crc ^= CRC8_MAXIM_DOW_FINAL" />
352
+ <watch expression="input.slice(0, 1)" language="JavaScript" />
353
+ </configuration>
354
+ <configuration name="mocha-javascript-test-runner">
355
+ <watch expression="new PackageURL(PURL_TYPE, namespace, name, undefined, undefined, undefined)" />
356
+ </configuration>
357
+ <configuration name="js.build_tools.npm">
358
+ <watch expression="wfpResponse.getContent()" />
359
+ <watch expression="wfpResponse.getContent() == wfpExpected" />
360
+ </configuration>
361
+ </watches-manager>
362
+ </component>
363
+ <component name="com.intellij.coverage.CoverageDataManagerImpl">
364
+ <SUITE FILE_PATH="coverage/scanoss_js$test.dat" NAME="test Coverage Results" MODIFIED="1657898449678" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="MochaJavaScriptTestRunnerCoverage" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
365
+ </component>
366
+ </project>