repo-util 1.12.0 → 1.12.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-util",
3
- "version": "1.12.0",
3
+ "version": "1.12.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,12 +21,12 @@
21
21
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp"
22
22
  },
23
23
  "dependencies": {
24
- "aggregation-repository-provider": "^4.0.20",
25
- "bitbucket-repository-provider": "^3.10.6",
26
- "commander": "^8.3.0",
27
- "gitea-repository-provider": "^1.16.59",
28
- "github-repository-provider": "^7.25.16",
29
- "local-repository-provider": "^7.0.114"
24
+ "aggregation-repository-provider": "^4.0.30",
25
+ "bitbucket-repository-provider": "^3.10.10",
26
+ "commander": "^9.0.0",
27
+ "gitea-repository-provider": "^1.16.67",
28
+ "github-repository-provider": "^7.25.30",
29
+ "local-repository-provider": "^7.2.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "ava": "^4.0.1",
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { readFileSync } from "fs";
4
- import program, { Option } from "commander";
4
+ import { program, Option } from "commander";
5
5
  import AggregationProvider from "aggregation-repository-provider";
6
- import { asArray } from "repository-provider";
7
6
 
8
7
  process.on("uncaughtException", err => console.error(err));
9
8
  process.on("unhandledRejection", reason => console.error(reason));
@@ -31,7 +30,7 @@ program
31
30
  );
32
31
 
33
32
  for (const o of [
34
- ["provider", "providers", ["name"]],
33
+ ["provider", "providers", ["fullName"]],
35
34
  ["group", "repositoryGroups", ["name"]],
36
35
  ["repository", "repositories", ["fullName"]],
37
36
  ["branch", "branches", ["fullName"]],
@@ -107,12 +106,8 @@ async function list(provider, names, options, slot, attributes, actions) {
107
106
  if (options.json) {
108
107
  json.push(object);
109
108
  } else {
110
- let prefix = "";
111
- if (object.repository) {
112
- prefix = object.repository.fullName + ": ";
113
- }
114
109
  for (const a of attributes) {
115
- console.log(prefix, object[a]);
110
+ console.log(object.fullName + ":", object[a]);
116
111
  }
117
112
  }
118
113
  }