repo-util 1.22.0 → 1.22.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/package.json +7 -7
- package/src/repo-util-cli.mjs +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repo-util",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,21 +21,21 @@
|
|
|
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": "^5.2.
|
|
25
|
-
"bitbucket-repository-provider": "^4.2.
|
|
24
|
+
"aggregation-repository-provider": "^5.2.35",
|
|
25
|
+
"bitbucket-repository-provider": "^4.2.8",
|
|
26
26
|
"commander": "^9.3.0",
|
|
27
27
|
"etag-cache-leveldb": "^1.0.8",
|
|
28
|
-
"gitea-repository-provider": "^2.2.
|
|
29
|
-
"github-repository-provider": "^7.30.
|
|
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
|
-
"local-repository-provider": "^8.0.
|
|
32
|
+
"local-repository-provider": "^8.0.12"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"ava": "^4.3.0",
|
|
36
36
|
"c8": "^7.11.3",
|
|
37
37
|
"execa": "^6.1.0",
|
|
38
|
-
"semantic-release": "^19.0.
|
|
38
|
+
"semantic-release": "^19.0.3"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=16.15.1"
|
package/src/repo-util-cli.mjs
CHANGED
|
@@ -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
|
};
|