@trustify-da/trustify-da-javascript-client 0.3.0-ea.ce73b2f → 0.3.0-ea.d2edf6e

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 (76) hide show
  1. package/README.md +191 -11
  2. package/dist/package.json +38 -27
  3. package/dist/src/analysis.d.ts +21 -5
  4. package/dist/src/analysis.js +74 -80
  5. package/dist/src/batch_opts.d.ts +24 -0
  6. package/dist/src/batch_opts.js +35 -0
  7. package/dist/src/cli.js +241 -8
  8. package/dist/src/cyclone_dx_sbom.d.ts +17 -3
  9. package/dist/src/cyclone_dx_sbom.js +56 -8
  10. package/dist/src/index.d.ts +197 -11
  11. package/dist/src/index.js +356 -8
  12. package/dist/src/license/index.d.ts +28 -0
  13. package/dist/src/license/index.js +100 -0
  14. package/dist/src/license/license_utils.d.ts +40 -0
  15. package/dist/src/license/license_utils.js +134 -0
  16. package/dist/src/license/licenses_api.d.ts +34 -0
  17. package/dist/src/license/licenses_api.js +98 -0
  18. package/dist/src/license/project_license.d.ts +20 -0
  19. package/dist/src/license/project_license.js +62 -0
  20. package/dist/src/oci_image/images.d.ts +4 -5
  21. package/dist/src/oci_image/utils.d.ts +7 -7
  22. package/dist/src/oci_image/utils.js +11 -2
  23. package/dist/src/provider.d.ts +18 -5
  24. package/dist/src/provider.js +31 -5
  25. package/dist/src/providers/base_java.d.ts +15 -15
  26. package/dist/src/providers/base_java.js +18 -44
  27. package/dist/src/providers/base_javascript.d.ts +45 -12
  28. package/dist/src/providers/base_javascript.js +138 -24
  29. package/dist/src/providers/base_pyproject.d.ts +158 -0
  30. package/dist/src/providers/base_pyproject.js +322 -0
  31. package/dist/src/providers/golang_gomodules.d.ts +30 -13
  32. package/dist/src/providers/golang_gomodules.js +176 -121
  33. package/dist/src/providers/gomod_parser.d.ts +4 -0
  34. package/dist/src/providers/gomod_parser.js +16 -0
  35. package/dist/src/providers/java_gradle.d.ts +28 -3
  36. package/dist/src/providers/java_gradle.js +128 -4
  37. package/dist/src/providers/java_gradle_groovy.d.ts +1 -1
  38. package/dist/src/providers/java_gradle_kotlin.d.ts +1 -1
  39. package/dist/src/providers/java_maven.d.ts +20 -5
  40. package/dist/src/providers/java_maven.js +198 -6
  41. package/dist/src/providers/javascript_bun.d.ts +10 -0
  42. package/dist/src/providers/javascript_bun.js +100 -0
  43. package/dist/src/providers/javascript_npm.d.ts +6 -0
  44. package/dist/src/providers/javascript_npm.js +21 -0
  45. package/dist/src/providers/javascript_pnpm.d.ts +1 -1
  46. package/dist/src/providers/javascript_pnpm.js +8 -4
  47. package/dist/src/providers/manifest.d.ts +2 -0
  48. package/dist/src/providers/manifest.js +22 -4
  49. package/dist/src/providers/marker_evaluator.d.ts +14 -0
  50. package/dist/src/providers/marker_evaluator.js +191 -0
  51. package/dist/src/providers/processors/yarn_berry_processor.d.ts +2 -2
  52. package/dist/src/providers/processors/yarn_berry_processor.js +88 -5
  53. package/dist/src/providers/processors/yarn_classic_processor.d.ts +2 -2
  54. package/dist/src/providers/python_controller.d.ts +10 -3
  55. package/dist/src/providers/python_controller.js +118 -62
  56. package/dist/src/providers/python_pip.d.ts +16 -4
  57. package/dist/src/providers/python_pip.js +51 -58
  58. package/dist/src/providers/python_pip_pyproject.d.ts +61 -0
  59. package/dist/src/providers/python_pip_pyproject.js +146 -0
  60. package/dist/src/providers/python_poetry.d.ts +98 -0
  61. package/dist/src/providers/python_poetry.js +286 -0
  62. package/dist/src/providers/python_uv.d.ts +46 -0
  63. package/dist/src/providers/python_uv.js +269 -0
  64. package/dist/src/providers/requirements_parser.d.ts +6 -0
  65. package/dist/src/providers/requirements_parser.js +24 -0
  66. package/dist/src/providers/rust_cargo.d.ts +56 -0
  67. package/dist/src/providers/rust_cargo.js +641 -0
  68. package/dist/src/providers/tree-sitter-gomod.wasm +0 -0
  69. package/dist/src/providers/tree-sitter-requirements.wasm +0 -0
  70. package/dist/src/sbom.d.ts +17 -2
  71. package/dist/src/sbom.js +16 -4
  72. package/dist/src/tools.d.ts +48 -6
  73. package/dist/src/tools.js +114 -1
  74. package/dist/src/workspace.d.ts +70 -0
  75. package/dist/src/workspace.js +256 -0
  76. package/package.json +39 -28
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.ce73b2f",
3
+ "version": "0.3.0-ea.d2edf6e",
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",
@@ -35,43 +35,57 @@
35
35
  "config/**/*"
36
36
  ],
37
37
  "scripts": {
38
- "lint": "eslint src test --ext js",
39
- "lint:fix": "eslint src test --ext js --fix",
38
+ "lint": "eslint src test",
39
+ "lint:fix": "eslint src test --fix",
40
40
  "test": "c8 npm run tests",
41
- "tests": "mocha --config .mocharc.json --grep \".*analysis module.*\" --invert",
41
+ "tests": "mocha --config .mocharc.json",
42
42
  "tests:rep": "mocha --reporter-option maxDiffSize=0 --reporter json > unit-tests-result.json",
43
+ "pretest": "cp node_modules/tree-sitter-requirements/tree-sitter-requirements.wasm src/providers/tree-sitter-requirements.wasm && cp node_modules/tree-sitter-gomod/tree-sitter-gomod.wasm src/providers/tree-sitter-gomod.wasm",
43
44
  "precompile": "rm -rf dist",
44
- "compile": "tsc -p tsconfig.json"
45
+ "compile": "tsc -p tsconfig.json",
46
+ "compile:dev": "tsc -p tsconfig.dev.json",
47
+ "postcompile": "cp node_modules/tree-sitter-requirements/tree-sitter-requirements.wasm dist/src/providers/tree-sitter-requirements.wasm && cp node_modules/tree-sitter-gomod/tree-sitter-gomod.wasm dist/src/providers/tree-sitter-gomod.wasm"
45
48
  },
46
49
  "dependencies": {
47
50
  "@babel/core": "^7.23.2",
48
- "@cyclonedx/cyclonedx-library": "~1.13.3",
49
- "fast-toml": "^0.5.4",
50
- "fast-xml-parser": "^4.5.3",
51
+ "@cyclonedx/cyclonedx-library": "^10.0.0",
52
+ "eslint-import-resolver-typescript": "^4.4.4",
53
+ "fast-glob": "^3.3.3",
54
+ "fast-xml-parser": "^5.3.4",
51
55
  "help": "^3.0.2",
52
- "https-proxy-agent": "^7.0.6",
53
- "node-fetch": "^2.7.0",
54
- "packageurl-js": "^1.0.2",
55
- "yargs": "^17.7.2"
56
+ "https-proxy-agent": "^9.0.0",
57
+ "js-yaml": "^4.1.1",
58
+ "jsonc-parser": "^3.3.1",
59
+ "micromatch": "^4.0.8",
60
+ "node-fetch": "^3.3.2",
61
+ "p-limit": "^7.3.0",
62
+ "packageurl-js": "~1.0.2",
63
+ "smol-toml": "^1.6.0",
64
+ "tree-sitter-gomod": "github:strum355/tree-sitter-go-mod#56326f2ad478892ace58ff247a97d492a3cbcdda",
65
+ "tree-sitter-requirements": "github:Strum355/tree-sitter-requirements#d0261ee76b84253997fe70d7d397e78c006c3801",
66
+ "web-tree-sitter": "^0.26.7",
67
+ "yargs": "^18.0.0"
56
68
  },
57
69
  "devDependencies": {
58
70
  "@babel/core": "^7.23.2",
59
- "@trustify-da/trustify-da-api-model": "^2.0.1",
60
- "@types/node": "^20.17.30",
71
+ "@trustify-da/trustify-da-api-model": "^2.0.7",
72
+ "@types/node": "^25.9.1",
61
73
  "@types/which": "^3.0.4",
62
74
  "babel-plugin-rewire": "^1.2.0",
63
- "c8": "^8.0.0",
64
- "chai": "^4.3.7",
65
- "eslint": "^8.42.0",
66
- "eslint-plugin-editorconfig": "^4.0.3",
67
- "eslint-plugin-import": "^2.29.1",
75
+ "c8": "^11.0.0",
76
+ "chai": "^6.2.2",
77
+ "@eslint/js": "^10.0.0",
78
+ "eslint": "^10.4.1",
79
+ "eslint-import-resolver-typescript": "^4.4.4",
80
+ "eslint-plugin-import-x": "^4.16.2",
81
+ "globals": "^16.0.0",
68
82
  "esmock": "^2.6.2",
69
- "mocha": "^10.2.0",
70
- "msw": "^1.3.2",
71
- "sinon": "^15.1.2",
72
- "sinon-chai": "^3.7.0",
73
- "typescript": "^5.1.3",
74
- "which": "^5.0.0"
83
+ "mocha": "^11.7.6",
84
+ "msw": "^2.12.7",
85
+ "sinon": "^22.0.0",
86
+ "sinon-chai": "^4.0.1",
87
+ "typescript": "^6.0.3",
88
+ "which": "^7.0.0"
75
89
  },
76
90
  "mocha": {
77
91
  "check-leaks": false,
@@ -102,9 +116,6 @@
102
116
  "text"
103
117
  ]
104
118
  },
105
- "eslintIgnore": [
106
- "index.js"
107
- ],
108
119
  "resolutions": {
109
120
  "@hapi/joi": "17.1.1"
110
121
  }