@trustify-da/trustify-da-javascript-client 0.3.0-ea.e12bc82 → 0.3.0-ea.f2c4df7

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 (43) hide show
  1. package/README.md +43 -1
  2. package/dist/package.json +14 -9
  3. package/dist/src/analysis.d.ts +5 -5
  4. package/dist/src/analysis.js +21 -76
  5. package/dist/src/cli.js +72 -6
  6. package/dist/src/cyclone_dx_sbom.d.ts +3 -2
  7. package/dist/src/cyclone_dx_sbom.js +16 -4
  8. package/dist/src/index.d.ts +65 -11
  9. package/dist/src/index.js +5 -3
  10. package/dist/src/license/index.d.ts +28 -0
  11. package/dist/src/license/index.js +100 -0
  12. package/dist/src/license/license_utils.d.ts +40 -0
  13. package/dist/src/license/license_utils.js +134 -0
  14. package/dist/src/license/licenses_api.d.ts +34 -0
  15. package/dist/src/license/licenses_api.js +91 -0
  16. package/dist/src/license/project_license.d.ts +28 -0
  17. package/dist/src/license/project_license.js +73 -0
  18. package/dist/src/oci_image/images.d.ts +4 -5
  19. package/dist/src/oci_image/utils.d.ts +4 -4
  20. package/dist/src/provider.d.ts +12 -3
  21. package/dist/src/provider.js +16 -1
  22. package/dist/src/providers/base_java.d.ts +3 -5
  23. package/dist/src/providers/base_javascript.d.ts +10 -4
  24. package/dist/src/providers/base_javascript.js +30 -4
  25. package/dist/src/providers/golang_gomodules.d.ts +11 -4
  26. package/dist/src/providers/golang_gomodules.js +13 -4
  27. package/dist/src/providers/java_gradle.d.ts +9 -3
  28. package/dist/src/providers/java_gradle.js +12 -2
  29. package/dist/src/providers/java_gradle_groovy.d.ts +1 -1
  30. package/dist/src/providers/java_gradle_kotlin.d.ts +1 -1
  31. package/dist/src/providers/java_maven.d.ts +12 -5
  32. package/dist/src/providers/java_maven.js +33 -5
  33. package/dist/src/providers/python_controller.d.ts +5 -2
  34. package/dist/src/providers/python_controller.js +56 -58
  35. package/dist/src/providers/python_pip.d.ts +11 -4
  36. package/dist/src/providers/python_pip.js +46 -53
  37. package/dist/src/providers/requirements_parser.d.ts +6 -0
  38. package/dist/src/providers/requirements_parser.js +23 -0
  39. package/dist/src/sbom.d.ts +3 -1
  40. package/dist/src/sbom.js +3 -2
  41. package/dist/src/tools.d.ts +22 -6
  42. package/dist/src/tools.js +56 -1
  43. package/package.json +15 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustify-da/trustify-da-javascript-client",
3
- "version": "0.3.0-ea.e12bc82",
3
+ "version": "0.3.0-ea.f2c4df7",
4
4
  "description": "Code-Ready Dependency Analytics JavaScript API.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/guacsec/trustify-da-javascript-client#README.md",
@@ -41,33 +41,38 @@
41
41
  "tests": "mocha --config .mocharc.json --grep \".*analysis module.*\" --invert",
42
42
  "tests:rep": "mocha --reporter-option maxDiffSize=0 --reporter json > unit-tests-result.json",
43
43
  "precompile": "rm -rf dist",
44
- "compile": "tsc -p tsconfig.json"
44
+ "compile": "tsc -p tsconfig.json",
45
+ "compile:dev": "tsc -p tsconfig.dev.json"
45
46
  },
46
47
  "dependencies": {
47
48
  "@babel/core": "^7.23.2",
48
- "@cyclonedx/cyclonedx-library": "~1.13.3",
49
+ "@cyclonedx/cyclonedx-library": "^6.13.0",
50
+ "eslint-import-resolver-typescript": "^4.4.4",
49
51
  "fast-toml": "^0.5.4",
50
- "fast-xml-parser": "^4.5.3",
52
+ "fast-xml-parser": "^5.3.4",
51
53
  "help": "^3.0.2",
52
54
  "https-proxy-agent": "^7.0.6",
53
- "node-fetch": "^2.7.0",
54
- "packageurl-js": "^1.0.2",
55
- "yargs": "^17.7.2"
55
+ "node-fetch": "^3.3.2",
56
+ "packageurl-js": "~1.0.2",
57
+ "tree-sitter-requirements": "github:Strum355/tree-sitter-requirements#d0261ee76b84253997fe70d7d397e78c006c3801",
58
+ "web-tree-sitter": "^0.26.6",
59
+ "yargs": "^18.0.0"
56
60
  },
57
61
  "devDependencies": {
58
62
  "@babel/core": "^7.23.2",
59
- "@trustify-da/trustify-da-api-model": "^2.0.1",
63
+ "@trustify-da/trustify-da-api-model": "^2.0.7",
60
64
  "@types/node": "^20.17.30",
61
65
  "@types/which": "^3.0.4",
62
66
  "babel-plugin-rewire": "^1.2.0",
63
- "c8": "^8.0.0",
67
+ "c8": "^11.0.0",
64
68
  "chai": "^4.3.7",
65
69
  "eslint": "^8.42.0",
70
+ "eslint-import-resolver-typescript": "^4.4.4",
66
71
  "eslint-plugin-editorconfig": "^4.0.3",
67
72
  "eslint-plugin-import": "^2.29.1",
68
73
  "esmock": "^2.6.2",
69
74
  "mocha": "^10.2.0",
70
- "msw": "^1.3.2",
75
+ "msw": "^2.12.7",
71
76
  "sinon": "^15.1.2",
72
77
  "sinon-chai": "^3.7.0",
73
78
  "typescript": "^5.1.3",