@soos-io/soos-scm-audit 0.0.7 → 0.1.3

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/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # [SOOS](https://soos.io/)
2
2
  The SOOS SCM Audit script should be used to determine the number of contributing developers in your organization.
3
3
 
4
+ ## SOOS Badge Status
5
+ [![Dependency Vulnerabilities](https://img.shields.io/endpoint?url=https%3A%2F%2Fapi-hooks.soos.io%2Fapi%2Fshieldsio-badges%3FbadgeType%3DDependencyVulnerabilities%26pid%3Dzau3ko1vn%26branchName%3Dmain)](https://app.soos.io)
6
+ [![Out Of Date Dependencies](https://img.shields.io/endpoint?url=https%3A%2F%2Fapi-hooks.soos.io%2Fapi%2Fshieldsio-badges%3FbadgeType%3DOutOfDateDependencies%26pid%3Dzau3ko1vn%26branchName%3Dmain)](https://app.soos.io)
7
+
4
8
  ## Requirements
5
9
  - [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
6
10
 
@@ -51,7 +55,6 @@ NOTE: you can find values for the `--apiKey` and `--clientId` at [app.soos.io](h
51
55
  | --logLevel | | Minimum level to show logs: DEBUG, INFO, WARN, FAIL, ERROR. |
52
56
  | --saveResults | | Save results to file. |
53
57
  | --scmType | | Scm Type to use for the audit. Options: GitHub, BitBucketCloud |
54
- | --verbose | false | Enable verbose logging. |
55
58
 
56
59
  | BitBucket Cloud Parameters | Default | Description |
57
60
  |----------------------------|---------|----------------------------------------------------------|
package/bin/index.js CHANGED
@@ -9,6 +9,7 @@ const utilities_1 = require("@soos-io/api-client/dist/utilities");
9
9
  const ContributorAuditService_1 = tslib_1.__importDefault(require("@soos-io/api-client/dist/services/ContributorAuditService/ContributorAuditService"));
10
10
  const ContributorAuditArgumentParser_1 = tslib_1.__importDefault(require("@soos-io/api-client/dist/services/ContributorAuditArgumentParser"));
11
11
  class SOOSSCMAudit {
12
+ args;
12
13
  constructor(args) {
13
14
  this.args = args;
14
15
  }
@@ -54,8 +55,7 @@ class SOOSSCMAudit {
54
55
  try {
55
56
  const args = this.parseArgs();
56
57
  api_client_1.soosLogger.setMinLogLevel(args.logLevel);
57
- api_client_1.soosLogger.setVerbose(args.verbose);
58
- api_client_1.soosLogger.verboseDebug(JSON.stringify((0, utilities_1.obfuscateProperties)(args, ["apiKey", "secret"]), null, 2));
58
+ api_client_1.soosLogger.debug(JSON.stringify((0, utilities_1.obfuscateProperties)(args, ["apiKey", "secret"]), null, 2));
59
59
  api_client_1.soosLogger.logLineSeparator();
60
60
  const soosSCMAudit = new SOOSSCMAudit(args);
61
61
  await soosSCMAudit.runAudit();
@@ -0,0 +1,11 @@
1
+ import globals from "globals";
2
+ import pluginJs from "@eslint/js";
3
+ import tseslint from "typescript-eslint";
4
+
5
+ /** @type {import('eslint').Linter.Config[]} */
6
+ export default [
7
+ { files: ["**/*.{mjs,ts}"] },
8
+ { languageOptions: { globals: globals.node } },
9
+ pluginJs.configs.recommended,
10
+ ...tseslint.configs.recommended,
11
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soos-io/soos-scm-audit",
3
- "version": "0.0.7",
3
+ "version": "0.1.3",
4
4
  "description": "SOOS SCM Audit CLI",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -12,8 +12,10 @@
12
12
  "build:clean": "npx rimraf build",
13
13
  "format": "prettier ./src --check",
14
14
  "format:fix": "prettier ./src --write",
15
+ "lint": "eslint --max-warnings 0",
16
+ "lint:fix": "eslint --max-warnings 0 --fix",
15
17
  "typecheck": "tsc --noEmit",
16
- "check": "npm run format && npm run typecheck && npm outdated",
18
+ "check": "npm run format && npm run lint && npm run typecheck && (npm outdated || exit 0)",
17
19
  "patch": "npm version patch --no-git-tag-version",
18
20
  "patch-api-client": "npm run patch && npm run setup:clean && npm install @soos-io/api-client@latest --save-exact && npm install && npm run check",
19
21
  "link:local": "npm link @soos-io/api-client && npm run build && npm link"
@@ -29,15 +31,19 @@
29
31
  },
30
32
  "homepage": "https://github.com/soos-io/soos-scm-audit#readme",
31
33
  "dependencies": {
32
- "@soos-io/api-client": "0.2.47",
34
+ "@soos-io/api-client": "1.2.2",
33
35
  "argparse": "^2.0.1",
34
36
  "tslib": "^2.6.2"
35
37
  },
36
38
  "devDependencies": {
39
+ "@eslint/js": "^9.21.0",
37
40
  "@types/argparse": "^2.0.16",
38
41
  "@types/node": "^20.11.30",
42
+ "eslint": "^9.21.0",
43
+ "globals": "^16.0.0",
39
44
  "prettier": "^3.2.5",
40
- "typescript": "^5.4.3"
45
+ "typescript": "^5.4.3",
46
+ "typescript-eslint": "^8.24.1"
41
47
  },
42
48
  "bin": {
43
49
  "soos-scm-audit": "bin/index.js"