repo-util 1.22.1 → 1.22.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.22.1",
3
+ "version": "1.22.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "aggregation-repository-provider": "^5.2.35",
25
- "bitbucket-repository-provider": "^4.2.7",
25
+ "bitbucket-repository-provider": "^4.2.8",
26
26
  "commander": "^9.3.0",
27
- "etag-cache-leveldb": "^1.0.8",
28
- "gitea-repository-provider": "^2.2.7",
29
- "github-repository-provider": "^7.30.8",
27
+ "etag-cache-leveldb": "^1.0.9",
28
+ "gitea-repository-provider": "^2.2.8",
29
+ "github-repository-provider": "^7.30.9",
30
30
  "leveldown": "^6.1.1",
31
31
  "levelup": "^5.1.1",
32
32
  "local-repository-provider": "^8.0.12"
@@ -37,9 +37,6 @@ const properties = {};
37
37
  program
38
38
  .description(description)
39
39
  .version(version)
40
- .option("--trace", "log level trace")
41
- .option("--debug", "log level debug")
42
- .option("--cache", "cache requests")
43
40
  .option("-D --define <a=b>", "define property", str =>
44
41
  Object.assign(properties, Object.fromEntries([str.split(/=/)]))
45
42
  );
@@ -89,6 +86,9 @@ for (const o of [
89
86
  ]) {
90
87
  const command = program.command(`${o[0]} [name...]`);
91
88
  command
89
+ .option("--trace", "log level trace")
90
+ .option("--debug", "log level debug")
91
+ .option("--cache", "cache requests")
92
92
  .option("--json", "output as json")
93
93
  .option("--no-identifier", "do not output identifier, show attributes only")
94
94
  .option("-a, --attribute <attributes>", "list attribute", a =>
@@ -199,8 +199,8 @@ async function prepareProvider(options) {
199
199
  }
200
200
 
201
201
  provider.messageDestination = {
202
- trace: () => {},
203
- info: () => {},
202
+ trace: options.trace ? console.log : () => {},
203
+ info: console.log,
204
204
  warn: console.warn,
205
205
  error: console.error
206
206
  };